This commit is contained in:
[witbox2018]
2023-04-06 17:07:36 +08:00
parent 03b3f16472
commit 7c0027ffcd
11 changed files with 9222 additions and 1049 deletions

View File

@@ -3,7 +3,7 @@
--white: white;
--black: rgb(48, 48, 48);
--gray: rgb(250, 250, 250);
--primary: rgb(29, 147, 171);
--primary: rgba(78, 91, 246, 0.88);
--second: rgb(231, 248, 255);
--hover-color: #f3f3f3;
--bar-color: rgba(0, 0, 0, 0.1);
@@ -19,13 +19,13 @@
@mixin dark {
/* color */
--white: rgb(30, 30, 30);
--black: rgb(187, 187, 187);
--white: #040415;
--black: rgb(255, 255, 255);
--gray: rgb(21, 21, 21);
--primary: rgb(29, 147, 171);
--second: rgb(27 38 42);
--hover-color: #323232;
--primary: rgba(78, 91, 246, 0.88);
--second: #1D1D2C;
--hover-color: #040415;
--text: #AEB9CA;
--bar-color: rgba(255, 255, 255, 0.1);
--border-in-light: 1px solid rgba(255, 255, 255, 0.192);
@@ -52,14 +52,13 @@
--window-height: 90vh;
--sidebar-width: 300px;
--window-content-width: calc(100% - var(--sidebar-width));
--message-max-width: 80%;
--full-height: 100%;
--message-max-width: 100%;
}
@media only screen and (max-width: 600px) {
:root {
--window-width: 100vw;
--window-height: var(--full-height);
--window-height: 100vh;
--sidebar-width: 100vw;
--window-content-width: var(--window-width);
--message-max-width: 100%;
@@ -75,22 +74,19 @@
@include dark;
}
}
html {
height: var(--full-height);
}
body {
background-color: var(--gray);
color: var(--black);
margin: 0;
padding: 0;
height: var(--full-height);
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
font-family: "Noto Sans SC", "SF Pro SC", "SF Pro Text", "SF Pro Icons",
font-family: sans-serif, "SF Pro SC", "SF Pro Text", "SF Pro Icons",
"PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
@media only screen and (max-width: 600px) {
@@ -99,7 +95,7 @@ body {
}
::-webkit-scrollbar {
--bar-width: 5px;
--bar-width: 4px;
width: var(--bar-width);
height: var(--bar-width);
}
@@ -117,21 +113,12 @@ body {
select {
border: var(--border-in-light);
padding: 10px;
padding: 8px 10px;
border-radius: 10px;
appearance: none;
cursor: pointer;
background-color: var(--white);
color: var(--black);
text-align: center;
}
label {
cursor: pointer;
}
input {
text-align: center;
}
input[type="checkbox"] {
@@ -188,12 +175,11 @@ input[type="range"]::-webkit-slider-thumb:hover {
}
input[type="number"],
input[type="text"],
input[type="password"] {
input[type="text"] {
appearance: none;
border-radius: 10px;
border: var(--border-in-light);
min-height: 36px;
height: 32px;
box-sizing: border-box;
background: var(--white);
color: var(--black);
@@ -210,7 +196,7 @@ div.math {
position: fixed;
top: 0;
left: 0;
height: var(--full-height);
height: 100vh;
width: 100vw;
background-color: rgba($color: #000000, $alpha: 0.5);
display: flex;
@@ -240,7 +226,6 @@ pre {
.copy-code-button {
position: absolute;
right: 10px;
top: 1em;
cursor: pointer;
padding: 0px 5px;
background-color: var(--black);
@@ -261,30 +246,3 @@ pre {
}
}
}
.clickable {
cursor: pointer;
div:not(.no-dark) > svg {
filter: invert(0.5);
}
&:hover {
filter: brightness(0.9);
}
}
.error {
width: 80%;
border-radius: 20px;
border: var(--border-in-light);
box-shadow: var(--card-shadow);
padding: 20px;
overflow: auto;
background-color: var(--white);
color: var(--black);
pre {
overflow: auto;
}
}

View File

@@ -76,7 +76,7 @@
--color-prettylights-syntax-brackethighlighter-angle: #8b949e;
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
--color-fg-default: #c9d1d9;
--color-fg-default: #ffffff;
--color-fg-muted: #8b949e;
--color-fg-subtle: #6e7681;
--color-canvas-default: transparent;
@@ -317,7 +317,7 @@
cursor: pointer;
}
.markdown-body details:not([open]) > *:not(summary) {
.markdown-body details:not([open])>*:not(summary) {
display: none !important;
}
@@ -487,11 +487,11 @@
content: "";
}
.markdown-body > *:first-child {
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body > *:last-child {
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
@@ -527,11 +527,11 @@
margin-bottom: 16px;
}
.markdown-body blockquote > :first-child {
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote > :last-child {
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
@@ -630,7 +630,7 @@
list-style-type: decimal;
}
.markdown-body div > ol:not([type]) {
.markdown-body div>ol:not([type]) {
list-style-type: decimal;
}
@@ -642,11 +642,11 @@
margin-bottom: 0;
}
.markdown-body li > p {
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body li + li {
.markdown-body li+li {
margin-top: 0.25em;
}
@@ -709,7 +709,7 @@
overflow: hidden;
}
.markdown-body span.frame > span {
.markdown-body span.frame>span {
display: block;
float: left;
width: auto;
@@ -737,7 +737,7 @@
clear: both;
}
.markdown-body span.align-center > span {
.markdown-body span.align-center>span {
display: block;
margin: 13px auto 0;
overflow: hidden;
@@ -755,7 +755,7 @@
clear: both;
}
.markdown-body span.align-right > span {
.markdown-body span.align-right>span {
display: block;
margin: 13px 0 0;
overflow: hidden;
@@ -785,7 +785,7 @@
overflow: hidden;
}
.markdown-body span.float-right > span {
.markdown-body span.float-right>span {
display: block;
margin: 13px auto 0;
overflow: hidden;
@@ -819,7 +819,7 @@
font-size: 100%;
}
.markdown-body pre > code {
.markdown-body pre>code {
padding: 0;
margin: 0;
word-break: normal;
@@ -1082,7 +1082,7 @@
cursor: pointer;
}
.markdown-body .task-list-item + .task-list-item {
.markdown-body .task-list-item+.task-list-item {
margin-top: 4px;
}
@@ -1104,9 +1104,7 @@
}
.markdown-body .contains-task-list:hover .task-list-item-convert-container,
.markdown-body
.contains-task-list:focus-within
.task-list-item-convert-container {
.markdown-body .contains-task-list:focus-within .task-list-item-convert-container {
display: block;
width: auto;
height: 24px;