Files
Automata/packages/design-system/src/css/divider.scss
कारतोफ्फेलस्क्रिप्ट™ 13659d036f ci: Ensure that eslint runs on all frontend code (no-changelog) (#4602)
* ensure that eslint runs on all frontend code

* remove tslint from `design-system`

* enable prettier and eslint-prettier for `design-system`

* Delete tslint.json

* use a single editorconfig for the repo

* enable prettier for all code in `design-system`

* more linting fixes on design-system

* ignore coverage for git and prettier

* lintfix on editor-ui
2022-11-15 18:20:54 +01:00

48 lines
849 B
SCSS

@use './common/var';
@use 'mixins/mixins';
@include mixins.b(divider) {
background-color: var(--border-color-base);
position: relative;
@include mixins.m(horizontal) {
display: block;
height: 1px;
width: 100%;
margin: 24px 0;
}
@include mixins.m(vertical) {
display: inline-block;
width: 1px;
height: 1em;
margin: 0 8px;
vertical-align: middle;
position: relative;
}
@include mixins.e(text) {
position: absolute;
background-color: var.$color-white;
padding: 0 20px;
font-weight: 500;
color: var(--color-text-dark);
font-size: 14px;
@include mixins.when(left) {
left: 20px;
transform: translateY(-50%);
}
@include mixins.when(center) {
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
@include mixins.when(right) {
right: 20px;
transform: translateY(-50%);
}
}
}