mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
51 lines
927 B
SCSS
51 lines
927 B
SCSS
|
// Divider
|
||
|
.divider,
|
||
|
.divider-vert {
|
||
|
display: block;
|
||
|
position: relative;
|
||
|
|
||
|
&[data-content]::after {
|
||
|
background: $bg-color-light;
|
||
|
color: $gray-color;
|
||
|
content: attr(data-content);
|
||
|
display: inline-block;
|
||
|
font-size: $font-size-sm;
|
||
|
padding: 0 $unit-2;
|
||
|
transform: translateY(-$font-size-sm + $border-width);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.divider {
|
||
|
border-top: $border-width solid $border-color-light;
|
||
|
height: $border-width;
|
||
|
margin: $unit-2 0;
|
||
|
|
||
|
&[data-content] {
|
||
|
margin: $unit-4 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.divider-vert {
|
||
|
display: block;
|
||
|
padding: $unit-4;
|
||
|
|
||
|
&::before {
|
||
|
border-left: $border-width solid $border-color;
|
||
|
bottom: $unit-2;
|
||
|
content: "";
|
||
|
display: block;
|
||
|
left: 50%;
|
||
|
position: absolute;
|
||
|
top: $unit-2;
|
||
|
transform: translateX(-50%);
|
||
|
}
|
||
|
|
||
|
&[data-content]::after {
|
||
|
left: 50%;
|
||
|
padding: $unit-1 0;
|
||
|
position: absolute;
|
||
|
top: 50%;
|
||
|
transform: translate(-50%, -50%);
|
||
|
}
|
||
|
}
|