tghandbook/style/main.scss

150 lines
2.4 KiB
SCSS
Raw Normal View History

2020-06-16 15:08:44 +00:00
$nanotrasen: #384e68;
2020-06-16 09:32:48 +00:00
html,
body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
2020-06-16 10:51:24 +00:00
.bgimage {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 0;
img {
opacity: 0.4;
}
}
2020-06-16 09:32:48 +00:00
#app {
height: 100%;
display: grid;
2020-06-16 10:51:24 +00:00
background: linear-gradient(
to bottom,
darken($nanotrasen, 20%),
darken($nanotrasen, 10%)
);
2020-06-16 09:32:48 +00:00
background-size: 100% 100%;
background-attachment: fixed;
color: #fff;
font-family: "Iosevka Aile Web", sans-serif;
font-size: 9pt;
line-height: 1.6em;
grid-template-rows: 40px 1fr;
}
2020-06-16 15:08:44 +00:00
::-webkit-scrollbar {
width: 14pt;
}
::-webkit-scrollbar-track {
background: linear-gradient(
to bottom,
darken($nanotrasen, 0%),
darken($nanotrasen, 10%),
darken($nanotrasen, 0%)
);
border: 1px solid lighten($nanotrasen, 10%);
}
::-webkit-scrollbar-thumb {
border-radius: 2px;
background: linear-gradient(
to bottom,
lighten($nanotrasen, 20%),
lighten($nanotrasen, 30%),
lighten($nanotrasen, 20%)
);
border: 1px solid lighten($nanotrasen, 10%);
}
2020-06-16 09:32:48 +00:00
#tabs {
grid-row: 2;
2020-06-16 10:51:24 +00:00
z-index: 1;
2020-06-16 16:00:29 +00:00
display: grid;
overflow: hidden;
2020-06-16 09:32:48 +00:00
.page {
2020-06-16 16:00:29 +00:00
padding-top: 10pt;
overflow-y: scroll;
grid-row: 1;
grid-column: 1;
2020-06-16 15:08:44 +00:00
&.waiting {
display: flex;
flex-direction: column;
height: 100%;
.speen {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
img {
flex: 1;
width: 50%;
height: 50%;
opacity: 0.9;
}
}
}
p,
h2,
h3,
h4 {
padding-left: 10pt;
padding-right: 10pt;
}
2020-06-16 09:32:48 +00:00
a[href] {
color: white;
}
#toctitle,
h1,
h2,
h3 {
position: sticky;
top: -10pt;
2020-06-16 10:51:24 +00:00
background: $nanotrasen;
2020-06-16 15:08:44 +00:00
padding: 10px;
2020-06-16 10:51:24 +00:00
z-index: 999;
2020-06-16 09:32:48 +00:00
}
#toctitle h2 {
margin: 0;
}
.mw-headline {
display: flex;
align-items: center;
}
}
}
2020-06-16 15:08:44 +00:00
$tab-active: lighten($nanotrasen, 10%);
.tab-list {
2020-06-16 16:00:29 +00:00
z-index: 1;
2020-06-16 09:32:48 +00:00
grid-row: 1;
2020-06-16 15:08:44 +00:00
display: flex;
border-bottom: 2px solid $tab-active;
.tab {
max-width: 200px;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
2020-06-16 16:00:29 +00:00
user-select: none;
2020-06-16 15:08:44 +00:00
&.active {
background-color: $tab-active;
}
2020-06-16 16:00:29 +00:00
&.clickable {
cursor: pointer;
}
2020-06-16 15:08:44 +00:00
}
2020-06-16 09:32:48 +00:00
}