mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 14:57:18 +10:00
Include :after pseudo element in property set
This commit is contained in:
parent
565a2c07c6
commit
ecba2bb679
2 changed files with 9 additions and 11 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 ================ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue