1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul-website synced 2024-11-21 21:22:21 +00:00
strimertul-website/themes/strimertul/assets/scss/guide.scss

286 lines
4.9 KiB
SCSS
Raw Permalink Normal View History

2023-02-28 16:59:26 +00:00
.apidocs,
.guide {
2023-02-18 00:04:20 +00:00
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 250px 1fr;
@media only screen and (max-width: $mobile) {
2023-03-06 09:55:20 +00:00
display: flex;
flex-direction: column;
2023-02-19 20:17:13 +00:00
& > div.doc {
padding: 1rem;
2023-03-06 09:55:20 +00:00
grid-column: 1;
grid-row: 1;
2023-02-19 20:17:13 +00:00
}
2023-02-18 00:04:20 +00:00
}
2023-03-06 09:55:20 +00:00
@media (min-width: 1500px) {
2023-03-01 09:15:30 +00:00
grid-template-columns: 1fr 1000px 1fr;
}
2023-02-18 00:04:20 +00:00
& > nav,
& > .doc {
grid-row: 1;
padding: 1rem;
}
& > nav {
2023-03-06 16:01:31 +00:00
display: flex;
flex-direction: column;
2023-02-19 20:17:13 +00:00
background-color: $gray2;
2023-02-18 00:04:20 +00:00
padding: 0;
grid-column: 1;
2023-02-28 16:59:26 +00:00
header {
font-weight: bold;
padding: 0.6rem 0.9rem;
border-bottom: 1px solid $gray4;
margin-top: 0.5rem;
}
2023-02-18 00:04:20 +00:00
ul {
list-style-type: none;
margin: 0;
padding: 0;
li {
display: flex;
align-items: stretch;
justify-content: stretch;
transition: all 100ms;
2023-02-28 16:59:26 +00:00
font-size: 14px;
&.active {
pointer-events: none;
background-color: $gray5;
a {
color: $teal11;
}
2023-02-18 00:04:20 +00:00
}
&:hover {
background-color: rgba(255, 255, 255, 0.05);
}
a {
flex: 1;
2023-02-28 16:59:26 +00:00
padding: 0.6rem 1rem;
color: $teal12;
text-decoration: none;
&:first-of-type {
padding-top: 0.8rem;
}
2023-02-18 00:04:20 +00:00
}
a:hover {
2023-02-28 16:59:26 +00:00
color: $teal11;
2023-02-18 00:04:20 +00:00
}
}
}
}
& > .doc {
grid-column: 2;
2023-02-19 20:17:13 +00:00
padding: 1rem 2rem;
2023-02-18 00:04:20 +00:00
}
2023-11-12 11:05:04 +00:00
.monotitle,
code {
2023-02-18 00:04:20 +00:00
font-family: "Iosevka Web", monospace;
}
.reference {
.api {
padding-bottom: 15px;
.tag {
background-color: #5699e1;
color: rgb(239, 245, 249);
font-size: 12px;
text-transform: uppercase;
display: inline-block;
padding: 3px 5px;
border-radius: 8px;
&.rpc {
background-color: #8e56e1;
}
&.event {
background-color: #018937;
}
&.history {
background-color: #037f88;
}
}
}
}
}
2023-03-06 16:01:31 +00:00
select {
background-color: $gray2;
color: $gray12;
border-radius: 4px;
}
#api-version {
margin: 1rem;
margin-bottom: 0;
}
2023-02-18 00:04:20 +00:00
.schema {
margin-top: 1rem;
2023-02-18 12:18:01 +00:00
code > ul:first-of-type > li > blockquote {
padding-top: 0;
}
blockquote {
margin: 0;
padding: 0;
padding-top: 0.5rem;
color: $gray9;
&::before {
content: "// ";
}
}
2023-02-18 00:04:20 +00:00
.nameblock {
display: none;
}
2023-02-18 00:27:11 +00:00
.kind.array,
.kind.object,
.kind.dictionary {
color: $grass12;
}
2023-02-18 00:04:20 +00:00
li {
list-style-type: none;
& > code > .nameblock {
display: inline-flex;
padding-right: 0.5rem;
2023-02-18 00:04:20 +00:00
& > .name {
&::before,
&::after {
content: '"';
}
}
}
}
2023-02-18 00:27:11 +00:00
.dict {
display: inline;
.key {
display: inline;
}
.element {
display: inline;
}
}
2023-02-18 00:04:20 +00:00
ul {
padding: 0;
margin: 0;
margin-left: 2rem;
}
.name {
color: $yellow11;
}
.kind {
color: $grass10;
}
}
2023-03-01 09:15:30 +00:00
.doc {
h2 {
border-bottom: 1px solid $gray5;
padding-bottom: 0.4rem;
margin-top: 2rem;
}
2023-03-06 09:55:20 +00:00
h3 {
padding-bottom: 0.4rem;
margin-top: 2rem;
font-size: 20px;
}
2023-03-01 10:18:16 +00:00
2023-11-12 11:05:04 +00:00
img {
max-width: 100%;
border: 2px solid $gray4;
border-radius: 3px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.noborder img {
border: none;
box-shadow: none;
}
&.flashbang {
2023-03-01 11:53:20 +00:00
img {
2023-11-12 11:05:04 +00:00
filter: brightness(80%) contrast(80%);
2023-03-01 11:53:20 +00:00
}
2023-03-01 10:18:16 +00:00
}
2023-03-01 09:15:30 +00:00
}
2023-03-01 13:17:50 +00:00
.toc {
2023-03-06 09:55:20 +00:00
@media only screen and (max-width: 1500px) {
2023-03-01 13:17:50 +00:00
display: none;
}
padding: 0;
position: fixed;
right: 0;
top: 60px;
header {
font-weight: bold;
padding: 0.6rem 0.9rem;
margin-top: 0.5rem;
}
2023-03-06 09:55:20 +00:00
#TableOfContents > ul {
2023-03-01 13:17:50 +00:00
list-style-type: none;
margin: 0;
padding: 0;
li {
display: flex;
2023-03-06 09:55:20 +00:00
flex-direction: column;
2023-03-01 13:17:50 +00:00
align-items: stretch;
justify-content: stretch;
transition: all 100ms;
font-size: 14px;
2023-03-06 09:55:20 +00:00
ul {
margin: 0;
padding: 0;
}
&.active > a {
2023-03-01 13:17:50 +00:00
border-left-color: $teal8;
2023-03-06 09:55:20 +00:00
color: $teal11;
2023-03-01 13:17:50 +00:00
}
&:hover {
background-color: rgba(255, 255, 255, 0.05);
}
a {
2023-03-06 09:55:20 +00:00
border-left: 5px solid $gray3;
2023-03-01 13:17:50 +00:00
flex: 1;
padding: 0.6rem 1rem;
color: $teal12;
text-decoration: none;
&:first-of-type {
padding-top: 0.8rem;
}
}
a:hover {
color: $teal11;
}
}
}
}
2023-03-06 09:55:20 +00:00
.copy {
ul li {
line-height: 1.4;
}
dl {
dt {
font-weight: bold;
margin-bottom: 0.3em;
}
dd {
margin-left: 1em;
margin-bottom: 0.8em;
}
}
table {
border-collapse: collapse;
margin-bottom: 1em;
th,
td {
padding: 5px 8px;
}
th {
background-color: $gray4;
border: 1px solid $gray2;
color: $teal11;
}
td {
background-color: $gray2;
border: 1px solid $gray1;
}
}
}