mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-25 13:50:47 +01:00
Add utilities to hide first/last child elements
This commit is contained in:
@@ -160,9 +160,18 @@ blockquote {
|
||||
.hidden-blockquote { blockquote { display: none; } }
|
||||
.hidden-pre { pre { display: none; } }
|
||||
|
||||
.hidden-leading-br {
|
||||
> br:first-child {
|
||||
display: none;
|
||||
$hidden-elements-for-first-last-child: br, hr;
|
||||
|
||||
@each $element in $hidden-elements-for-first-last-child {
|
||||
.hidden-first-child-#{$element} {
|
||||
> #{$element}:first-child {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.hidden-last-child-#{$element} {
|
||||
> #{$element}:last-child {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user