0
я следующий код:Как реализовать различные атрибуты, разделяющие один элемент с sass?
ul.post, ul.user_profile {
/* this attributes are the same for both classes */
margin-top: 1em;
list-style: none;
padding-bottom: 20px;
border-bottom: 1px solid #CCC;
/* how to implement different attributes for ul.user_profile li.minithumb here? */
/* this for ul.user_profile */
li.minithumb {
float: right;
margin: 0 auto;
}
/* this for ul.post */
li.minithumb {
float: left;
margin-right: 20px;
span.feed_post_image_not_found {
width: 80px;
height: 55px;
color: #333;
font-size: 20%;
padding-top: 25px;
text-align: center;
display: block;
background-color: $lightgray;
}
}
Прохладный! Благодаря @Rick! Я действительно хотел знать, как это сделать, гнездя. Прекрасно работает! –