Anbei der Inhalt der all.less
// display-flex
@import ‚display-flex‘;
.emotion–article-list{
// 1) article list (default)
// ------------------------------
height:100%;
width:100%;
position:relative;
overflow: hidden;
.article–list-title{
display:inline-block;
margin-left:0;
margin-right:0;
width:100%;
.unitize-height(46.25);
}
.article–list{
.list-item{
overflow:hidden;
list-style:none;
width:100%;
border-bottom:1px dotted #ddd;
.unitize-height(46.25);
.unitize-padding(5,0);
&:nth-child(odd){
background: @gray;
}
&:nth-child(even){
background: @gray-dark;
}
@media screen and (min-width: @phoneLandscapeViewportWidth){
.unitize-padding(0,0);
}
// list item span
[class^=„list–item-“] {
float: left;
display: block;
height:auto;
.unitize-padding(0,5);
.displayflex(flex, row, wrap, start, start, start);
@media screen and (min-width: @tabletViewportWidth) {
.unitize-padding(0,25);
.displayflex(inline-flex, row, wrap, start, center, center);
}
@media screen and (min-width: @phoneLandscapeViewportWidth){
height:100%;
.unitize-padding(2,5);
}
// name and description
&:first-child,
&:nth-child(2){
width:100%;
@media screen and (min-width: @phoneLandscapeViewportWidth){
width:25%;
}
}
&:nth-child(2){
.price–unit {
margin-right:5px;
span{
float:right;
&.ressource–info{
margin-right:5px;
&:after{
content:’;’;
}
}
}
br{
display:none;
}
}
}
// price
&:nth-child(3){
width:75%;
.displayflex(flex, row, wrap, start, center, center);
@media screen and (min-width: @phoneLandscapeViewportWidth){
.displayflex(flex, row, wrap, start, start, start);
width:25%;
}
@media screen and (min-width: @tabletViewportWidth) {
.displayflex(flex, row, wrap, end, center, center);