mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Change clearfix solution
Use a clearfix solution that makes use of the :after pseudo element.
This commit is contained in:
parent
95cb2647fd
commit
565a2c07c6
2 changed files with 17 additions and 6 deletions
|
|
@ -2,18 +2,15 @@
|
|||
|
||||
.root {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Clearfix */
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
.root:after {
|
||||
@apply --clearfix;
|
||||
}
|
||||
|
||||
.messageItem {
|
||||
margin-bottom: 35px;
|
||||
|
||||
/* Clearfix */
|
||||
overflow: auto;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
|
@ -23,6 +20,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.messageItem:after {
|
||||
@apply --clearfix;
|
||||
}
|
||||
|
||||
.message,
|
||||
.ownMessage {
|
||||
/* Preserve newlines, but collapse other whitespace */
|
||||
|
|
|
|||
|
|
@ -96,6 +96,16 @@
|
|||
--modalPadding: 24px 24px 48px 24px;
|
||||
--modalPaddingMedium: 55px 60px 55px 60px;
|
||||
|
||||
/* ================ Clearfix solution ================ */
|
||||
|
||||
/* Apply to an :after pseudo element of the container where
|
||||
* the clearfix effect is desired */
|
||||
--clearfix {
|
||||
content: '';
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* ================ Links ================ */
|
||||
|
||||
--marketplaceLinkStyles: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue