2023-04-24 16:49:27 +00:00
|
|
|
@import "./animation.scss";
|
|
|
|
@import "./window.scss";
|
|
|
|
|
2023-03-12 19:06:21 +00:00
|
|
|
@mixin light {
|
2023-04-12 18:07:24 +00:00
|
|
|
--theme: light;
|
|
|
|
|
2023-03-12 19:06:21 +00:00
|
|
|
/* color */
|
|
|
|
--white: white;
|
|
|
|
--black: rgb(48, 48, 48);
|
|
|
|
--gray: rgb(250, 250, 250);
|
|
|
|
--primary: rgb(29, 147, 171);
|
|
|
|
--second: rgb(231, 248, 255);
|
|
|
|
--hover-color: #f3f3f3;
|
2023-03-15 17:24:03 +00:00
|
|
|
--bar-color: rgba(0, 0, 0, 0.1);
|
2023-03-27 09:04:11 +00:00
|
|
|
--theme-color: var(--gray);
|
2023-03-12 19:06:21 +00:00
|
|
|
|
|
|
|
/* shadow */
|
|
|
|
--shadow: 50px 50px 100px 10px rgb(0, 0, 0, 0.1);
|
|
|
|
--card-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.05);
|
|
|
|
|
|
|
|
/* stroke */
|
|
|
|
--border-in-light: 1px solid rgb(222, 222, 222);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin dark {
|
2023-04-12 18:07:24 +00:00
|
|
|
--theme: dark;
|
|
|
|
|
2023-03-12 19:06:21 +00:00
|
|
|
/* color */
|
|
|
|
--white: rgb(30, 30, 30);
|
|
|
|
--black: rgb(187, 187, 187);
|
|
|
|
--gray: rgb(21, 21, 21);
|
|
|
|
--primary: rgb(29, 147, 171);
|
|
|
|
--second: rgb(27 38 42);
|
|
|
|
--hover-color: #323232;
|
|
|
|
|
2023-03-15 17:24:03 +00:00
|
|
|
--bar-color: rgba(255, 255, 255, 0.1);
|
2023-03-15 05:50:11 +00:00
|
|
|
|
2023-03-12 19:06:21 +00:00
|
|
|
--border-in-light: 1px solid rgba(255, 255, 255, 0.192);
|
2023-03-27 09:04:11 +00:00
|
|
|
|
|
|
|
--theme-color: var(--gray);
|
2023-04-12 18:07:24 +00:00
|
|
|
|
|
|
|
div:not(.no-dark) > svg {
|
|
|
|
filter: invert(0.5);
|
|
|
|
}
|
2023-03-12 19:06:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.light {
|
|
|
|
@include light;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dark {
|
|
|
|
@include dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mask {
|
|
|
|
filter: invert(0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
:root {
|
|
|
|
@include light;
|
2023-03-13 16:25:07 +00:00
|
|
|
|
|
|
|
--window-width: 90vw;
|
|
|
|
--window-height: 90vh;
|
|
|
|
--sidebar-width: 300px;
|
2023-03-15 03:54:14 +00:00
|
|
|
--window-content-width: calc(100% - var(--sidebar-width));
|
2023-03-14 17:44:42 +00:00
|
|
|
--message-max-width: 80%;
|
2023-03-31 11:21:11 +00:00
|
|
|
--full-height: 100%;
|
2023-03-14 17:44:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
|
|
:root {
|
|
|
|
--window-width: 100vw;
|
2023-03-30 16:20:47 +00:00
|
|
|
--window-height: var(--full-height);
|
2023-03-14 17:44:42 +00:00
|
|
|
--sidebar-width: 100vw;
|
|
|
|
--window-content-width: var(--window-width);
|
|
|
|
--message-max-width: 100%;
|
|
|
|
}
|
2023-03-21 17:16:36 +00:00
|
|
|
|
|
|
|
.no-mobile {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-03-12 19:06:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
@include dark;
|
|
|
|
}
|
|
|
|
}
|
2023-03-31 11:21:11 +00:00
|
|
|
html {
|
|
|
|
height: var(--full-height);
|
2023-05-05 14:49:41 +00:00
|
|
|
|
2023-08-07 09:44:32 +00:00
|
|
|
font-family: "Noto Sans", "SF Pro SC", "SF Pro Text", "SF Pro Icons",
|
2023-05-05 14:49:41 +00:00
|
|
|
"PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
2023-03-31 11:21:11 +00:00
|
|
|
}
|
2023-03-12 19:06:21 +00:00
|
|
|
|
|
|
|
body {
|
|
|
|
background-color: var(--gray);
|
|
|
|
color: var(--black);
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2023-03-30 16:20:47 +00:00
|
|
|
height: var(--full-height);
|
2023-03-12 19:06:21 +00:00
|
|
|
width: 100vw;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
user-select: none;
|
2023-04-26 06:43:43 +00:00
|
|
|
touch-action: pan-x pan-y;
|
2023-08-12 18:47:07 +00:00
|
|
|
overflow: hidden;
|
2023-03-27 09:04:11 +00:00
|
|
|
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
|
|
background-color: var(--second);
|
|
|
|
}
|
2023-03-12 19:06:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
2023-03-15 17:24:03 +00:00
|
|
|
--bar-width: 5px;
|
2023-03-15 05:50:11 +00:00
|
|
|
width: var(--bar-width);
|
|
|
|
height: var(--bar-width);
|
2023-03-12 19:06:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
2023-03-15 05:50:11 +00:00
|
|
|
background-color: var(--bar-color);
|
2023-03-12 19:06:21 +00:00
|
|
|
border-radius: 20px;
|
|
|
|
background-clip: content-box;
|
2023-03-15 17:28:13 +00:00
|
|
|
border: 1px solid transparent;
|
2023-03-12 19:06:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
border: var(--border-in-light);
|
2023-04-02 17:48:43 +00:00
|
|
|
padding: 10px;
|
2023-03-12 19:06:21 +00:00
|
|
|
border-radius: 10px;
|
|
|
|
appearance: none;
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--white);
|
|
|
|
color: var(--black);
|
2023-03-30 15:25:38 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2023-04-05 18:37:12 +00:00
|
|
|
label {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2023-03-30 15:25:38 +00:00
|
|
|
input {
|
|
|
|
text-align: center;
|
2023-04-17 17:34:12 +00:00
|
|
|
font-family: inherit;
|
2023-03-12 19:06:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--white);
|
|
|
|
color: var(--black);
|
|
|
|
appearance: none;
|
|
|
|
border: var(--border-in-light);
|
|
|
|
border-radius: 5px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2023-03-20 06:06:29 +00:00
|
|
|
display: inline-flex;
|
2023-03-12 19:06:21 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]:checked::after {
|
2023-03-20 06:06:29 +00:00
|
|
|
display: inline-block;
|
2023-03-12 19:06:21 +00:00
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
background-color: var(--primary);
|
|
|
|
content: " ";
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="range"] {
|
|
|
|
appearance: none;
|
|
|
|
background-color: var(--white);
|
|
|
|
color: var(--black);
|
|
|
|
}
|
|
|
|
|
2023-04-06 04:39:31 +00:00
|
|
|
@mixin thumb() {
|
2023-03-12 19:06:21 +00:00
|
|
|
appearance: none;
|
|
|
|
height: 8px;
|
|
|
|
width: 20px;
|
|
|
|
background-color: var(--primary);
|
|
|
|
border-radius: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all ease 0.3s;
|
|
|
|
margin-left: 5px;
|
2023-04-06 04:39:31 +00:00
|
|
|
border: none;
|
2023-03-12 19:06:21 +00:00
|
|
|
}
|
|
|
|
|
2023-04-06 04:39:31 +00:00
|
|
|
input[type="range"]::-webkit-slider-thumb {
|
|
|
|
@include thumb();
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="range"]::-moz-range-thumb {
|
|
|
|
@include thumb();
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="range"]::-ms-thumb {
|
|
|
|
@include thumb();
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin thumbHover() {
|
2023-03-12 19:06:21 +00:00
|
|
|
transform: scaleY(1.2);
|
|
|
|
width: 24px;
|
|
|
|
}
|
2023-03-15 03:54:14 +00:00
|
|
|
|
2023-04-06 04:39:31 +00:00
|
|
|
input[type="range"]::-webkit-slider-thumb:hover {
|
|
|
|
@include thumbHover();
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="range"]::-moz-range-thumb:hover {
|
|
|
|
@include thumbHover();
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="range"]::-ms-thumb:hover {
|
|
|
|
@include thumbHover();
|
|
|
|
}
|
|
|
|
|
2023-03-26 06:53:40 +00:00
|
|
|
input[type="number"],
|
2023-04-03 12:18:04 +00:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"] {
|
2023-03-19 15:13:10 +00:00
|
|
|
appearance: none;
|
|
|
|
border-radius: 10px;
|
|
|
|
border: var(--border-in-light);
|
2023-04-02 18:41:25 +00:00
|
|
|
min-height: 36px;
|
2023-03-19 15:13:10 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
background: var(--white);
|
|
|
|
color: var(--black);
|
|
|
|
padding: 0 10px;
|
2023-03-26 06:53:40 +00:00
|
|
|
max-width: 50%;
|
2023-04-17 17:34:12 +00:00
|
|
|
font-family: inherit;
|
2023-03-19 15:13:10 +00:00
|
|
|
}
|
|
|
|
|
2023-03-15 03:54:14 +00:00
|
|
|
div.math {
|
|
|
|
overflow-x: auto;
|
2023-03-15 17:24:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-mask {
|
|
|
|
z-index: 9999;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2023-03-30 16:20:47 +00:00
|
|
|
height: var(--full-height);
|
2023-03-15 17:24:03 +00:00
|
|
|
width: 100vw;
|
|
|
|
background-color: rgba($color: #000000, $alpha: 0.5);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-05-08 14:49:51 +00:00
|
|
|
|
|
|
|
@media screen and (max-width: 600px) {
|
|
|
|
align-items: flex-end;
|
|
|
|
}
|
2023-03-21 17:16:36 +00:00
|
|
|
}
|
2023-03-23 16:01:00 +00:00
|
|
|
|
|
|
|
.link {
|
|
|
|
font-size: 12px;
|
|
|
|
color: var(--primary);
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
2023-03-26 12:29:02 +00:00
|
|
|
|
|
|
|
pre {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:hover .copy-code-button {
|
|
|
|
pointer-events: all;
|
|
|
|
transform: translateX(0px);
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.copy-code-button {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
2023-04-02 14:48:18 +00:00
|
|
|
top: 1em;
|
2023-03-26 12:29:02 +00:00
|
|
|
cursor: pointer;
|
|
|
|
padding: 0px 5px;
|
|
|
|
background-color: var(--black);
|
|
|
|
color: var(--white);
|
|
|
|
border: var(--border-in-light);
|
|
|
|
border-radius: 10px;
|
|
|
|
transform: translateX(10px);
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
|
|
|
transition: all ease 0.3s;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "copy";
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-02 17:48:43 +00:00
|
|
|
|
|
|
|
.clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
filter: brightness(0.9);
|
|
|
|
}
|
2023-06-28 16:09:56 +00:00
|
|
|
&:focus {
|
|
|
|
filter: brightness(0.95);
|
|
|
|
}
|
2023-04-02 17:48:43 +00:00
|
|
|
}
|
2023-04-03 05:29:37 +00:00
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
2023-04-21 17:13:23 +00:00
|
|
|
|
|
|
|
.password-input-container {
|
|
|
|
max-width: 50%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
.password-eye {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.password-input {
|
|
|
|
min-width: 80%;
|
|
|
|
}
|
|
|
|
}
|
2023-04-22 17:27:15 +00:00
|
|
|
|
2023-04-25 18:02:46 +00:00
|
|
|
.user-avatar {
|
2023-04-22 17:27:15 +00:00
|
|
|
height: 30px;
|
2023-04-25 18:02:46 +00:00
|
|
|
min-height: 30px;
|
2023-04-22 17:27:15 +00:00
|
|
|
width: 30px;
|
2023-04-25 18:02:46 +00:00
|
|
|
min-width: 30px;
|
2023-04-22 17:27:15 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
border: var(--border-in-light);
|
|
|
|
box-shadow: var(--card-shadow);
|
2023-08-18 10:18:16 +00:00
|
|
|
border-radius: 11px;
|
2023-04-22 17:27:15 +00:00
|
|
|
}
|
2023-04-23 17:15:44 +00:00
|
|
|
|
|
|
|
.one-line {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2023-11-08 17:51:33 +00:00
|
|
|
|
|
|
|
.copyable {
|
|
|
|
user-select: text;
|
|
|
|
}
|