Files
LiveSplitOne/src/css/Sidebar.scss
T
Christopher Serr d503c39c32 Format everything with prettier (#1029)
We didn't have Prettier until now, so this adds a configuration and
reformats everything with it.
2025-03-25 19:10:25 +00:00

106 lines
2.1 KiB
SCSS

@use "sass:math";
@use "Toggle";
@use "variables.icss";
$h1-font-size: 24px;
$h2-font-size: 22px;
.sidebar-overlay {
z-index: 3 !important;
}
.sidebar {
display: flex;
flex-direction: column;
gap: variables.$ui-margin;
background: variables.$sidebar-background-color;
padding: variables.$ui-margin;
width: 250px;
z-index: 4 !important;
@include Toggle.toggle;
> div > div.small {
display: flex;
> button {
width: 50%;
font-size: 18px;
}
}
.sidebar-buttons {
display: contents;
hr {
border-color: variables.$border-color;
margin: variables.$ui-margin 0;
&.livesplit-title-separator {
margin-top: 0;
}
}
h1,
h2 {
text-align: center;
margin: 0;
}
h1 {
font-size: $h1-font-size;
margin-top: variables.$ui-large-margin;
}
h2 {
font-size: $h2-font-size;
}
button {
width: 100%;
}
.livesplit-title {
display: flex;
justify-content: center;
align-items: center;
gap: variables.$ui-margin;
margin-top: variables.$ui-margin;
h1 {
margin: 0;
}
.livesplit-icon {
height: 40px;
img {
height: 100%;
}
}
}
.modified-icon {
position: absolute;
padding-bottom: 10px;
padding-left: 5px;
}
}
.choose-comparison {
padding: 0 6px 0 6px;
width: 100%;
height: 40px;
appearance: none;
background: variables.$button-middle-color;
border: 1px solid variables.$border-color;
border-radius: 5px;
color: white;
cursor: pointer;
font-family: "fira", sans-serif;
font-size: 20px;
text-align: center;
text-overflow: ellipsis;
}
}