💄 Replace css files with scss and factorize CSS rules
This commit is contained in:
60
frontend/src/passagesDisplay.scss
Normal file
60
frontend/src/passagesDisplay.scss
Normal file
@@ -0,0 +1,60 @@
|
||||
@use "_common";
|
||||
@use "_utils";
|
||||
|
||||
.passagesDisplay {
|
||||
@extend %widget;
|
||||
|
||||
.header {
|
||||
$header-element-height: calc(80/100*100%);
|
||||
$component-border: solid var(--idfm-white) calc(0.25*1vh);
|
||||
$component-border-radius: calc(9/86*100%);
|
||||
.transportMode {
|
||||
@extend %transportMode;
|
||||
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
margin-right: calc(23/1920*100%);
|
||||
}
|
||||
|
||||
.title {
|
||||
@extend %title;
|
||||
}
|
||||
|
||||
.menu {
|
||||
height: $header-element-height;
|
||||
aspect-ratio: 1;
|
||||
margin-right: calc(30/1920*100%);
|
||||
margin-left: auto;
|
||||
|
||||
button {
|
||||
height: 100%;
|
||||
aspect-ratio: 1;
|
||||
|
||||
background-color: var(--idfm-black);
|
||||
border: $component-border;
|
||||
border-radius: $component-border-radius;
|
||||
}
|
||||
}
|
||||
|
||||
.clock {
|
||||
width: calc(175/1920*100%);
|
||||
height: $header-element-height;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
border: $component-border;
|
||||
border-radius: $component-border-radius;
|
||||
|
||||
svg {
|
||||
aspect-ratio: 2.45;
|
||||
height: calc(0.7*100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.body {
|
||||
@extend %body
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user