mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-31 02:26:50 +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 {
|
.root {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.root:after {
|
/* Clearfix */
|
||||||
@apply --clearfix;
|
@apply --clearfix;
|
||||||
}
|
}
|
||||||
|
|
||||||
.messageItem {
|
.messageItem {
|
||||||
margin-bottom: 35px;
|
margin-bottom: 35px;
|
||||||
|
|
||||||
|
/* Clearfix */
|
||||||
|
@apply --clearfix;
|
||||||
|
|
||||||
@media (--viewportMedium) {
|
@media (--viewportMedium) {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
|
|
@ -20,10 +22,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.messageItem:after {
|
|
||||||
@apply --clearfix;
|
|
||||||
}
|
|
||||||
|
|
||||||
.message,
|
.message,
|
||||||
.ownMessage {
|
.ownMessage {
|
||||||
/* Preserve newlines, but collapse other whitespace */
|
/* Preserve newlines, but collapse other whitespace */
|
||||||
|
|
|
||||||
|
|
@ -98,12 +98,12 @@
|
||||||
|
|
||||||
/* ================ Clearfix solution ================ */
|
/* ================ Clearfix solution ================ */
|
||||||
|
|
||||||
/* Apply to an :after pseudo element of the container where
|
|
||||||
* the clearfix effect is desired */
|
|
||||||
--clearfix {
|
--clearfix {
|
||||||
content: '';
|
&:after {
|
||||||
display: table;
|
content: '';
|
||||||
clear: both;
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================ Links ================ */
|
/* ================ Links ================ */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue