style: add support for no-bottom-margin cell class (#28410)
This commit is contained in:
parent
42d3ef6603
commit
68432c18eb
|
@ -1,3 +1,5 @@
|
|||
$cell-border-radius: 3px;
|
||||
|
||||
div.cell.shown-because-admin {
|
||||
opacity: 0.5;
|
||||
background-image: repeating-linear-gradient(-45deg, #eee 0px, #eee 14px, transparent 15px, transparent 30px);
|
||||
|
@ -15,7 +17,7 @@ div#portal-agent-content {
|
|||
background: white;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
border-radius: 3px;
|
||||
border-radius: $cell-border-radius;
|
||||
&.transparent {
|
||||
background: transparent;
|
||||
}
|
||||
|
@ -26,6 +28,27 @@ div#portal-agent-content {
|
|||
color: white;
|
||||
}
|
||||
}
|
||||
&.no-bottom-margin {
|
||||
margin-bottom: 0;
|
||||
border-radius: $cell-border-radius $cell-border-radius 0 0;
|
||||
border-bottom: 0;
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 1ex;
|
||||
}
|
||||
+ div {
|
||||
margin-top: 0;
|
||||
border-radius: 0 0 $cell-border-radius $cell-border-radius;
|
||||
border-top: 0;
|
||||
&.no-bottom-margin {
|
||||
border-radius: 0;
|
||||
}
|
||||
p:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 1ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue