This repository has been archived on 2022-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
tghandbook/style/main.scss

165 lines
2.7 KiB
SCSS
Raw Normal View History

2020-06-17 08:33:49 +00:00
@import "vars.scss";
2020-06-16 15:08:44 +00:00
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;
}
}
body {
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;
}
#app {
height: 100%;
display: grid;
2020-06-16 09:32:48 +00:00
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%));
2020-06-16 15:08:44 +00:00
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-17 09:43:21 +00:00
visibility: hidden;
2020-06-16 16:00:29 +00:00
padding-top: 10pt;
overflow-y: scroll;
grid-row: 1;
grid-column: 1;
2020-06-17 09:43:21 +00:00
&.active {
visibility: visible;
}
2020-06-16 15:08:44 +00:00
&.waiting {
2020-06-17 09:43:21 +00:00
user-select: none;
2020-06-17 00:43:10 +00:00
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
2020-06-16 15:08:44 +00:00
display: flex;
flex-direction: column;
height: 100%;
.speen {
flex: 1;
display: flex;
2020-06-17 00:43:10 +00:00
flex-direction: column;
2020-06-16 15:08:44 +00:00
justify-content: center;
align-items: center;
img {
2020-06-17 00:43:10 +00:00
width: 60vmin;
2020-06-16 15:08:44 +00:00
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%);
2020-06-17 09:43:21 +00:00
#tab-list {
z-index: 2;
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-17 09:43:21 +00:00
&:not(.active) {
2020-06-16 16:00:29 +00:00
cursor: pointer;
}
2020-06-16 15:08:44 +00:00
}
2020-06-16 09:32:48 +00:00
}
2020-06-18 11:15:41 +00:00
noscript {
position: fixed;
top: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: transparent;
width: 100%;
}