Include :after pseudo element in property set

This commit is contained in:
Hannu Lyytikainen 2017-11-14 16:20:52 +02:00
parent 565a2c07c6
commit ecba2bb679
2 changed files with 9 additions and 11 deletions

View file

@ -2,15 +2,17 @@
.root {
margin: 0;
}
.root:after {
/* Clearfix */
@apply --clearfix;
}
.messageItem {
margin-bottom: 35px;
/* Clearfix */
@apply --clearfix;
@media (--viewportMedium) {
margin-bottom: 40px;
}
@ -20,10 +22,6 @@
}
}
.messageItem:after {
@apply --clearfix;
}
.message,
.ownMessage {
/* Preserve newlines, but collapse other whitespace */

View file

@ -98,12 +98,12 @@
/* ================ Clearfix solution ================ */
/* Apply to an :after pseudo element of the container where
* the clearfix effect is desired */
--clearfix {
content: '';
display: table;
clear: both;
&:after {
content: '';
display: table;
clear: both;
}
}
/* ================ Links ================ */