monkeytype/public/css/style.scss

2284 lines
39 KiB
SCSS
Raw Normal View History

2020-05-09 08:29:47 +08:00
@import url("https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap");
2020-07-03 10:03:29 +08:00
:root {
--roundness: 0.25rem;
2020-07-26 08:18:08 +08:00
--font: "Roboto Mono";
}
2020-05-09 08:29:47 +08:00
2020-07-03 10:03:29 +08:00
::placeholder {
color: var(--sub-color);
2020-07-03 10:03:29 +08:00
opacity: 1;
/* Firefox */
}
2020-05-09 08:29:47 +08:00
2020-07-04 23:44:47 +08:00
html {
@extend .ffscroll;
}
.ffscroll {
scrollbar-width: thin;
scrollbar-color: var(--sub-color) transparent;
}
2020-07-03 10:03:29 +08:00
input {
outline: none;
border: none;
border-radius: var(--roundness);
background: rgba(0, 0, 0, 0.1);
color: var(--text-color);
padding: 0.5rem;
font-size: 1rem;
line-height: 1rem;
2020-07-26 08:13:36 +08:00
font-family: var(--font);
}
2020-06-11 09:59:22 +08:00
input[type="color"] {
2020-07-03 10:03:29 +08:00
-webkit-appearance: none;
2020-06-27 11:46:18 +08:00
padding: 0;
width: 100%;
2020-07-03 02:35:41 +08:00
// height: 32px;
height: 1.8rem;
2020-06-27 11:46:18 +08:00
overflow: hidden;
2020-06-11 09:59:22 +08:00
border-radius: var(--roundness);
}
2020-07-03 10:03:29 +08:00
2020-06-11 09:59:22 +08:00
input[type="color"]::-webkit-color-swatch-wrapper {
2020-07-03 10:03:29 +08:00
padding: 0;
2020-06-11 09:59:22 +08:00
}
2020-07-03 10:03:29 +08:00
2020-06-11 09:59:22 +08:00
input[type="color"]::-webkit-color-swatch {
2020-07-03 10:03:29 +08:00
border: none;
2020-06-11 09:59:22 +08:00
}
2020-06-27 11:46:18 +08:00
.colorPicker {
text-align: center;
will-change: transform;
transition: transform 0.2s ease-in-out;
2020-06-27 11:46:18 +08:00
overflow: hidden;
border-radius: var(--roundness);
2020-07-03 10:03:29 +08:00
2020-06-27 11:46:18 +08:00
& label {
position: absolute;
width: 100%;
2020-07-03 02:35:41 +08:00
// height: 32px;
line-height: 1.8rem;
display: flex;
align-items: center;
justify-content: center;
2020-06-27 11:46:18 +08:00
padding: auto;
color: var(--bg-color);
2020-06-11 09:59:22 +08:00
cursor: pointer;
2020-06-27 11:46:18 +08:00
}
2020-07-03 10:03:29 +08:00
& [for="--bg-color"] {
color: var(--text-color);
}
2020-07-03 10:03:29 +08:00
& #--bg-color {
border: 1px solid var(--sub-color);
2020-06-11 09:59:22 +08:00
}
}
2020-05-09 08:29:47 +08:00
body {
margin: 0;
padding: 0;
min-height: 100vh;
2020-05-09 08:29:47 +08:00
background: var(--bg-color);
2020-07-26 08:13:36 +08:00
font-family: var(--font);
2020-05-09 08:29:47 +08:00
color: var(--main-color);
// overflow-x: hidden;
2020-05-09 08:29:47 +08:00
}
2020-07-03 10:03:29 +08:00
html {
overflow-y: scroll;
}
2020-05-10 09:04:05 +08:00
2020-06-09 04:33:43 +08:00
/* width */
::-webkit-scrollbar {
2020-07-04 23:44:47 +08:00
width: 7px;
2020-06-09 04:33:43 +08:00
}
/* Track */
::-webkit-scrollbar-track {
background: transparent;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: var(--sub-color);
transition: 0.25s;
2020-06-09 04:45:28 +08:00
border-radius: 2px !important;
2020-06-09 04:33:43 +08:00
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: var(--main-color);
}
2020-05-09 08:29:47 +08:00
a {
color: var(--sub-color);
transition: 0.25s;
}
a:hover {
color: var(--main-color);
}
2020-07-03 10:03:29 +08:00
.notification {
position: fixed;
background: var(--main-color);
color: var(--bg-color);
padding: 0.5rem 1rem;
border-radius: var(--roundness);
left: 50%;
z-index: 9999;
transform: translateX(-50%);
top: -5rem;
}
2020-07-03 10:03:29 +08:00
#backgroundLoader {
2020-06-13 00:30:20 +08:00
height: 3px;
position: fixed;
width: 100%;
background: var(--main-color);
animation-name: loader;
animation-iteration-count: infinite;
animation-duration: 2s;
animation-timing-function: cubic-bezier(0.38, 0.16, 0.57, 0.82);
2020-07-04 03:10:40 +08:00
z-index: 9999;
2020-06-13 00:30:20 +08:00
}
2020-07-03 10:03:29 +08:00
@keyframes loader {
0% {
2020-06-13 00:30:20 +08:00
width: 0;
left: 0;
}
2020-07-03 10:03:29 +08:00
50% {
width: 100%;
2020-06-13 00:30:20 +08:00
left: 0;
}
2020-07-03 10:03:29 +08:00
100% {
2020-06-13 00:30:20 +08:00
width: 0;
left: 100%;
}
}
2020-06-12 02:19:39 +08:00
2020-07-04 02:30:05 +08:00
#leaderboardsWrapper {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
position: fixed;
left: 0;
top: 0;
z-index: 1000;
display: grid;
justify-content: center;
align-items: center;
padding: 5rem 0;
#leaderboards {
width: 85vw;
2020-07-04 09:44:21 +08:00
height: calc(100vh - 10rem);
2020-07-04 02:30:05 +08:00
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
display: grid;
2020-07-04 09:44:21 +08:00
gap: 2rem;
grid-template-rows: 3rem auto;
grid-template-areas:
"title buttons"
2020-07-04 02:30:05 +08:00
"tables tables";
grid-template-columns: 1fr 1fr;
.mainTitle {
font-size: 3rem;
line-height: 3rem;
grid-area: title;
}
.title {
font-size: 2rem;
line-height: 2rem;
margin-bottom: 0.5rem;
2020-07-04 02:30:05 +08:00
}
.tables {
grid-area: tables;
display: grid;
gap: 1rem;
grid-template-columns: 1fr 1fr;
2020-07-04 09:44:21 +08:00
margin-bottom: 2rem;
font-size: 0.8rem;
2020-07-04 09:44:21 +08:00
.titleAndTable {
display: grid;
.title {
grid-area: 1/1;
}
.subtitle {
grid-area: 1/1;
align-self: center;
justify-self: right;
color: var(--sub-color);
}
}
2020-07-04 09:44:21 +08:00
.globalTableWrapper,
.dailyTableWrapper {
height: calc(100vh - 22rem);
2020-07-04 23:44:47 +08:00
@extend .ffscroll;
2020-07-04 09:44:21 +08:00
overflow-y: scroll;
overflow-x: hidden;
2020-07-04 09:44:21 +08:00
}
2020-07-04 02:30:05 +08:00
table {
width: 100%;
border-spacing: 0;
border-collapse: collapse;
tr td:first-child {
text-align: center;
}
2020-07-04 02:30:05 +08:00
td {
padding: 0.25rem 0.5rem;
2020-07-04 21:15:43 +08:00
&.me {
color: var(--main-color);
font-weight: 900;
}
2020-07-04 02:30:05 +08:00
}
thead {
color: var(--sub-color);
font-size: 0.75rem;
td {
background: var(--bg-color);
position: -webkit-sticky;
position: sticky;
top: 0;
}
2020-07-04 02:30:05 +08:00
}
tbody {
color: var(--text-color);
tr:nth-child(odd) td {
background: rgba(0, 0, 0, 0.1);
2020-07-04 02:30:05 +08:00
}
}
tfoot {
td {
position: -webkit-sticky;
position: sticky;
bottom: 0;
background: var(--bg-color);
color: var(--main-color);
z-index: 4;
}
}
2020-07-04 02:30:05 +08:00
}
}
.buttons {
grid-area: buttons;
display: -ms-grid;
display: grid;
gap: 1rem;
grid-template-columns: 1fr 1fr;
align-self: center;
.buttonGroup {
display: grid;
grid-auto-flow: column;
gap: 1rem;
grid-area: 1/2;
2020-07-04 02:30:05 +08:00
}
}
}
}
2020-07-03 10:03:29 +08:00
#tagsWrapper {
2020-06-12 02:19:39 +08:00
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
position: fixed;
left: 0;
top: 0;
z-index: 1000;
display: grid;
justify-content: center;
align-items: center;
padding: 5rem 0;
2020-07-03 10:03:29 +08:00
#tagsEdit {
2020-06-12 02:19:39 +08:00
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
display: grid;
gap: 1rem;
overflow-y: scroll;
}
}
#customTextPopupWrapper {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
position: fixed;
left: 0;
top: 0;
z-index: 1000;
display: grid;
justify-content: center;
align-items: center;
padding: 5rem 0;
#customTextPopup {
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
display: grid;
gap: 1rem;
width: 60vw;
textarea {
background: var(--bg-color);
padding: 1rem;
color: var(--main-color);
border: none;
outline: none;
font-size: 1rem;
2020-07-26 08:13:36 +08:00
font-family: var(--font);
width: 100%;
border-radius: var(--roundness);
resize: vertical;
height: 200px;
color: var(--text-color);
}
.inputs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
align-items: center;
justify-items: center;
}
.check {
input {
margin: 0 !important;
cursor: pointer;
width: 0;
height: 0;
display: none;
&~.customTextRandomCheckbox {
width: 12px;
height: 12px;
background: rgba(0, 0, 0, .1);
border-radius: 2px;
box-shadow: 0 0 0 4px rgba(0, 0, 0, .1);
display: inline-block;
margin: 0 .5rem 0 .25rem;
transition: .25s;
}
&:checked~.customTextRandomCheckbox {
background: var(--main-color);
}
}
}
}
}
2020-07-14 05:47:28 +08:00
#customThemeShareWrapper {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
position: fixed;
left: 0;
top: 0;
z-index: 1000;
display: grid;
justify-content: center;
align-items: center;
padding: 5rem 0;
#customThemeShare {
width: 50vw;
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
display: grid;
gap: 1rem;
overflow-y: scroll;
}
}
2020-06-12 02:19:39 +08:00
2020-07-03 10:03:29 +08:00
#resultEditTagsPanelWrapper {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
position: fixed;
left: 0;
top: 0;
z-index: 1000;
display: grid;
justify-content: center;
align-items: center;
padding: 5rem 0;
2020-07-03 10:03:29 +08:00
#resultEditTagsPanel {
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
display: grid;
gap: 1rem;
overflow-y: scroll;
width: 500px;
2020-07-03 10:03:29 +08:00
.buttons {
display: grid;
gap: 1rem;
grid-template-columns: 1fr 1fr 1fr;
}
}
}
2020-07-03 10:03:29 +08:00
#versionHistoryWrapper {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
position: fixed;
left: 0;
top: 0;
z-index: 1000;
display: grid;
justify-content: center;
align-items: start;
padding: 5rem 0;
2020-07-03 10:03:29 +08:00
#versionHistory {
width: 75vw;
height: 100%;
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
display: grid;
gap: 1rem;
2020-07-04 23:44:47 +08:00
@extend .ffscroll;
overflow-y: scroll;
2020-07-03 10:03:29 +08:00
.tip {
text-align: center;
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
.releases {
display: grid;
gap: 2rem;
2020-07-03 10:03:29 +08:00
.release {
display: grid;
grid-template-areas:
"title date"
2020-07-03 10:03:29 +08:00
"body body";
.title {
grid-area: title;
font-size: 2rem;
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
.date {
grid-area: date;
text-align: right;
color: var(--sub-color);
align-self: center;
}
2020-07-03 10:03:29 +08:00
.body {
grid-area: body;
color: var(--text-color);
}
2020-07-03 10:03:29 +08:00
&:last-child {
margin-bottom: 2rem;
}
}
}
}
}
2020-05-09 08:29:47 +08:00
#commandLineWrapper {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
position: fixed;
left: 0;
top: 0;
z-index: 1000;
display: grid;
justify-content: center;
align-items: start;
padding: 5rem 0;
2020-07-03 10:03:29 +08:00
#commandInput {
width: 700px;
background: var(--bg-color);
border-radius: var(--roundness);
2020-07-03 10:03:29 +08:00
textarea {
background: var(--bg-color);
padding: 1rem;
color: var(--main-color);
border: none;
outline: none;
font-size: 1rem;
2020-07-26 08:13:36 +08:00
font-family: var(--font);
width: 100%;
border-radius: var(--roundness);
resize: vertical;
height: 200px;
}
2020-07-03 10:03:29 +08:00
.shiftEnter {
padding: 0.5rem 1rem;
font-size: 0.75rem;
line-height: 0.75rem;
color: var(--sub-color);
text-align: center;
}
}
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
#commandLine {
width: 700px;
2020-05-09 08:29:47 +08:00
background: var(--bg-color);
border-radius: var(--roundness);
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
input {
background: var(--bg-color);
padding: 1rem;
color: var(--main-color);
border: none;
outline: none;
font-size: 1rem;
2020-07-26 08:13:36 +08:00
font-family: var(--font);
2020-05-09 08:29:47 +08:00
width: 100%;
border-radius: var(--roundness);
2020-05-09 08:29:47 +08:00
}
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
.separator {
background: black;
width: 100%;
height: 1px;
margin-bottom: 0.5rem;
}
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
.listTitle {
color: var(--main-color);
padding: 0.5rem 1rem;
font-size: 0.75rem;
line-height: 0.75rem;
}
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
.suggestions {
2020-06-30 04:46:26 +08:00
display: block;
2020-07-04 23:44:47 +08:00
@extend .ffscroll;
2020-06-30 04:46:26 +08:00
overflow-y: scroll;
max-height: calc(100vh - 10rem - 3rem);
2020-05-09 08:29:47 +08:00
display: grid;
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
.entry {
padding: 0.5rem 1rem;
font-size: 0.75rem;
line-height: 0.75rem;
color: var(--sub-color);
2020-07-03 10:03:29 +08:00
.fas {
margin-right: 0.5rem;
}
2020-07-03 10:03:29 +08:00
&:last-child {
border-radius: 0 0 var(--roundness) var(--roundness);
}
2020-07-03 10:03:29 +08:00
&.activeMouse {
color: var(--bg-color);
background: var(--main-color);
2020-05-09 08:29:47 +08:00
}
2020-07-03 10:03:29 +08:00
&.activeKeyboard {
color: var(--bg-color);
background: var(--main-color);
}
2020-07-03 10:03:29 +08:00
&:hover {
color: var(--text-color);
background: var(--sub-color);
cursor: pointer;
}
2020-05-09 08:29:47 +08:00
}
}
}
}
#timerWrapper {
opacity: 0;
transition: 0.25s;
z-index: -1;
2020-05-17 19:40:58 +08:00
position: relative;
z-index: 99;
2020-05-09 08:29:47 +08:00
}
#timer {
position: fixed;
top: 0;
2020-06-16 05:52:47 +08:00
left: 0;
width: 100vw;
2020-05-09 08:29:47 +08:00
/* height: 0.5rem; */
height: 0.5rem;
2020-07-12 07:41:14 +08:00
background: black;
2020-05-09 08:29:47 +08:00
/* background: #0f0f0f; */
/* background: red; */
// transition: 1s linear;
2020-05-09 08:29:47 +08:00
z-index: -1;
}
2020-07-03 10:03:29 +08:00
#liveWpm,
#timerNumber {
position: relative;
2020-05-09 08:29:47 +08:00
font-size: 10rem;
color: black;
opacity: 0;
2020-05-09 08:29:47 +08:00
width: 100%;
2020-05-15 10:26:24 +08:00
left: 0;
2020-05-09 08:29:47 +08:00
text-align: center;
z-index: -1;
height: 0;
transition: 0.25s;
2020-06-16 06:13:40 +08:00
line-height: 0;
2020-05-09 08:29:47 +08:00
}
2020-07-03 10:03:29 +08:00
#timerNumber {
2020-07-12 07:41:14 +08:00
bottom: 6rem;
2020-06-16 06:13:40 +08:00
transition: none;
}
2020-07-12 07:41:14 +08:00
#liveWpm.timerMain,
#timerNumber.timerMain {
color: var(--main-color);
}
#timer.timerMain {
background: var(--main-color);
}
#liveWpm.timerSub,
#timerNumber.timerSub {
color: var(--sub-color);
}
#timer.timerSub {
background: var(--sub-color);
}
#liveWpm.timerText,
#timerNumber.timerText {
color: var(--text-color);
}
#timer.timerText {
background: var(--text-color);
}
2020-07-03 10:03:29 +08:00
#liveWpm {
2020-07-12 07:41:14 +08:00
top: 6rem;
2020-06-16 06:13:40 +08:00
}
2020-05-09 08:29:47 +08:00
#centerContent {
2020-06-01 03:32:08 +08:00
max-width: 1000px;
min-width: 500px;
2020-05-09 08:29:47 +08:00
margin: 0 auto;
display: grid;
grid-auto-flow: row;
min-height: 100vh;
padding: 2rem;
2020-05-28 07:35:41 +08:00
gap: 2rem;
2020-05-09 08:29:47 +08:00
align-items: center;
z-index: 999;
grid-template-rows: auto 1fr auto;
2020-05-09 08:29:47 +08:00
}
#caret {
height: 1.5rem;
background: var(--caret-color);
animation-name: caretFlash;
/* animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955); */
animation-iteration-count: infinite;
animation-duration: 1s;
position: absolute;
border-radius: var(--roundness);
// transition: 0.05s;
transform-origin: top left;
2020-07-03 10:03:29 +08:00
&.default {
width: 2px;
}
2020-07-03 10:03:29 +08:00
&.block {
width: 0.7em;
margin-left: 0.25em;
border-radius: 0;
z-index: -1;
}
2020-07-03 10:03:29 +08:00
&.outline {
@extend #caret,
.block;
background: transparent;
border: 1px solid var(--caret-color);
}
2020-07-03 10:03:29 +08:00
&.underline {
height: 2px;
width: 0.8em;
margin-top: 1.3em;
margin-left: 0.3em;
2020-07-03 10:03:29 +08:00
&.size125 {
margin-top: 1.8em;
}
2020-07-03 10:03:29 +08:00
&.size15 {
margin-top: 2.1em;
}
2020-07-03 10:03:29 +08:00
&.size2 {
margin-top: 2.7em;
}
}
2020-07-03 10:03:29 +08:00
&.size125 {
transform: scale(1.25);
}
2020-07-03 10:03:29 +08:00
&.size15 {
transform: scale(1.45);
}
2020-07-03 10:03:29 +08:00
&.size2 {
transform: scale(1.9);
}
}
2020-05-09 08:29:47 +08:00
@keyframes caretFlash {
2020-07-03 10:03:29 +08:00
0%,
100% {
opacity: 0;
2020-05-09 08:29:47 +08:00
}
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
50% {
opacity: 1;
2020-05-09 08:29:47 +08:00
}
}
#menu {
font-size: 1rem;
line-height: 1rem;
color: var(--sub-color);
display: grid;
grid-auto-flow: column;
gap: 0.5rem;
// margin-bottom: -0.4rem;
2020-05-09 08:29:47 +08:00
width: fit-content;
width: -moz-fit-content;
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
/* transition: 0.25s; */
2020-07-03 10:03:29 +08:00
.button.discord {
&.discord {
2020-05-22 18:51:05 +08:00
position: relative;
2020-07-03 10:03:29 +08:00
&::after {
transition: 0.25s;
width: 0.5rem;
height: 0.5rem;
2020-05-22 18:51:05 +08:00
content: "";
position: absolute;
background: var(--main-color);
2020-05-22 18:51:05 +08:00
border-radius: 1rem;
top: 0.25rem;
right: 0.25rem;
2020-05-22 18:51:05 +08:00
border: 2px solid var(--bg-color);
}
2020-07-03 10:03:29 +08:00
&.dotHidden::after {
background: transparent;
border-color: transparent;
}
2020-05-22 18:51:05 +08:00
}
}
2020-07-03 10:03:29 +08:00
.icon-button {
.icon {
display: grid;
align-items: center;
justify-items: center;
text-align: center;
width: 1.25rem;
height: 1.25rem;
}
2020-07-03 10:03:29 +08:00
.text {
font-size: 0.65rem;
line-height: 0.65rem;
align-self: center;
margin-left: 0.25rem;
}
2020-07-03 10:03:29 +08:00
&:hover {
cursor: pointer;
color: var(--main-color);
}
}
2020-07-03 10:03:29 +08:00
.separator {
width: 2px;
height: 1rem;
background-color: var(--sub-color);
}
2020-05-09 08:29:47 +08:00
}
2020-07-03 10:03:29 +08:00
#top.focus #menu .icon-button.discord::after {
background: transparent;
}
2020-05-09 08:29:47 +08:00
#top.focus #menu {
color: transparent !important;
}
#top.focus #menu .icon-button {
color: transparent !important;
2020-05-09 08:29:47 +08:00
}
#top {
grid-template-areas: "logo menu config";
2020-05-09 08:29:47 +08:00
line-height: 2.3rem;
font-size: 2.3rem;
/* text-align: center; */
2020-05-15 05:22:11 +08:00
transition: 0.25s;
2020-05-09 08:29:47 +08:00
padding: 0 5px;
display: grid;
grid-auto-flow: column;
grid-template-columns: auto 1fr auto;
z-index: 2;
align-items: center;
gap: 0.5rem;
2020-07-03 10:03:29 +08:00
.logo {
margin-bottom: -0.12rem;
white-space: nowrap;
2020-07-03 10:03:29 +08:00
.top {
font-size: 0.65rem;
line-height: 0.65rem;
margin-bottom: -0.4rem;
margin-left: -0.1rem;
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
.bottom {
margin-left: -0.15rem;
color: var(--main-color);
transition: 0.25s;
cursor: pointer;
}
}
2020-07-03 10:03:29 +08:00
.config {
grid-area: config;
justify-self: right;
display: grid;
grid-auto-flow: row;
grid-gap: 0.2rem;
width: min-content;
width: -moz-min-content;
transition: 0.25s;
/* margin-bottom: 0.1rem; */
justify-items: self-end;
2020-07-03 10:03:29 +08:00
.group {
transition: 0.25s;
2020-07-03 10:03:29 +08:00
.title {
color: var(--sub-color);
font-size: 0.5rem;
line-height: 0.5rem;
margin-bottom: 0.15rem;
}
2020-07-03 10:03:29 +08:00
.buttons {
font-size: 0.7rem;
line-height: 0.7rem;
display: flex;
}
}
2020-07-03 10:03:29 +08:00
.punctuationMode {
margin-bottom: -0.1rem;
}
}
2020-07-03 10:03:29 +08:00
.result {
display: grid;
grid-auto-flow: column;
grid-gap: 1rem;
width: min-content;
width: -moz-min-content;
transition: 0.25s;
grid-column: 3/4;
grid-row: 1/2;
2020-07-03 10:03:29 +08:00
.group {
.title {
font-size: 0.65rem;
line-height: 0.65rem;
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
.val {
font-size: 1.7rem;
line-height: 1.7rem;
color: var(--main-color);
transition: 0.25s;
}
}
}
2020-05-09 08:29:47 +08:00
//top focus
2020-07-03 10:03:29 +08:00
&.focus {
color: var(--sub-color) !important;
2020-07-03 10:03:29 +08:00
.result {
opacity: 0 !important;
}
2020-07-03 10:03:29 +08:00
.logo .bottom {
color: var(--sub-color) !important;
}
2020-07-03 10:03:29 +08:00
.config {
opacity: 0 !important;
}
}
2020-05-09 08:29:47 +08:00
}
#tip {
font-size: 0.75rem;
line-height: 0.75rem;
color: var(--sub-color);
text-align: center;
/* margin-top: 1rem; */
align-self: center;
margin-top: 1rem;
opacity: 0;
transition: 0.25s;
}
key {
color: var(--bg-color);
background-color: var(--sub-color);
/* font-weight: bold; */
padding: 0.1rem 0.3rem;
margin: 3px 0;
2020-05-09 08:29:47 +08:00
border-radius: 0.1rem;
display: inline-block;
font-size: 0.7rem;
line-height: 0.7rem;
2020-05-09 08:29:47 +08:00
}
#bottom {
text-align: center;
line-height: 1rem;
font-size: 0.75rem;
color: var(--sub-color);
transition: 0.5s;
2020-07-03 10:03:29 +08:00
// margin-bottom: 2rem;
2020-07-03 10:03:29 +08:00
.keyTips {
2020-05-10 09:04:05 +08:00
margin-bottom: 1rem;
}
2020-07-03 10:03:29 +08:00
.version {
opacity: 0;
transition: 0.25s;
2020-07-03 10:03:29 +08:00
&:hover {
cursor: pointer;
color: var(--main-color);
}
}
2020-05-09 08:29:47 +08:00
}
#bottom.focus {
opacity: 0 !important;
}
#result {
display: grid;
// height: 200px;
gap: 1rem;
grid-template-columns: auto 1fr;
2020-05-09 08:29:47 +08:00
justify-content: center;
align-items: center;
2020-07-03 10:03:29 +08:00
.chart {
canvas {
2020-05-15 10:04:10 +08:00
width: 100%;
height: 100%;
}
2020-07-03 10:03:29 +08:00
2020-05-24 09:08:13 +08:00
max-height: 200px;
height: 200px;
2020-07-03 10:03:29 +08:00
.title {
color: var(--sub-color);
margin-bottom: 1rem;
}
}
2020-07-03 10:03:29 +08:00
.loginTip {
grid-column: 1/3;
text-align: center;
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
.stats {
display: grid;
column-gap: 0.5rem;
justify-content: center;
align-items: center;
2020-07-03 10:03:29 +08:00
grid-template-areas:
"wpm acc"
"wpm key"
"raw time"
"source source"
2020-07-04 05:09:47 +08:00
"leaderboards leaderboards"
2020-07-03 10:03:29 +08:00
"testType infoAndTags";
.group {
margin-bottom: 0.5rem;
2020-07-04 08:39:39 +08:00
2020-07-03 10:03:29 +08:00
.top {
color: var(--sub-color);
font-size: 1rem;
line-height: 1rem;
}
2020-07-03 10:03:29 +08:00
.bottom {
color: var(--main-color);
font-size: 2rem;
line-height: 2rem;
}
}
2020-07-03 10:03:29 +08:00
.testType {
align-self: baseline;
grid-area: testType;
color: var(--sub-color);
2020-07-03 10:03:29 +08:00
.top {
2020-07-03 07:01:46 +08:00
font-size: 1rem;
line-height: 1.25rem;
}
2020-07-03 10:03:29 +08:00
.bottom {
2020-07-03 07:01:46 +08:00
font-size: 1rem;
line-height: 1rem;
}
}
2020-07-03 10:03:29 +08:00
.leaderboards {
align-self: baseline;
grid-area: leaderboards;
color: var(--sub-color);
.top {
font-size: 1rem;
line-height: 1.25rem;
}
.bottom {
font-size: 1rem;
line-height: 1rem;
}
}
2020-07-03 10:03:29 +08:00
.source {
2020-07-03 07:01:46 +08:00
align-self: baseline;
2020-07-03 08:25:52 +08:00
grid-area: source;
2020-07-03 07:01:46 +08:00
color: var(--sub-color);
2020-07-03 08:25:52 +08:00
max-width: 15rem;
2020-07-03 10:03:29 +08:00
.top {
font-size: 1rem;
line-height: 1.25rem;
}
2020-07-03 10:03:29 +08:00
.bottom {
font-size: 1rem;
line-height: 1rem;
}
}
2020-07-03 10:03:29 +08:00
.infoAndTags {
display: grid;
gap: 0.5rem;
align-self: baseline;
grid-area: infoAndTags;
color: var(--sub-color);
2020-07-03 10:03:29 +08:00
.top {
font-size: 1rem;
line-height: 1.25rem;
}
2020-07-03 10:03:29 +08:00
.bottom {
font-size: 1rem;
line-height: 1rem;
}
}
2020-07-03 10:03:29 +08:00
.wpm {
grid-area: wpm;
2020-07-03 10:03:29 +08:00
.top {
font-size: 3rem;
line-height: 3rem;
display: flex;
margin-top: -0.5rem;
2020-07-03 10:03:29 +08:00
.crownWrapper {
width: 1.7rem;
overflow: hidden;
height: 1.7rem;
margin-left: 0.5rem;
margin-top: 0.98rem;
2020-07-03 10:03:29 +08:00
.crown {
font-size: 0.7rem;
line-height: 1.7rem;
background: var(--main-color);
color: var(--bg-color);
border-radius: 0.6rem;
text-align: center;
align-self: center;
width: 1.7rem;
height: 1.7rem;
}
}
}
2020-07-03 10:03:29 +08:00
.bottom {
font-size: 4rem;
line-height: 4rem;
}
}
2020-07-03 10:03:29 +08:00
.acc {
grid-area: acc;
}
2020-07-03 10:03:29 +08:00
.key {
grid-area: key;
}
2020-07-03 10:03:29 +08:00
.time {
grid-area: time;
}
2020-07-03 10:03:29 +08:00
.raw {
2020-05-27 00:52:07 +08:00
grid-area: raw;
}
}
2020-05-09 08:29:47 +08:00
}
2020-07-23 20:42:16 +08:00
#capsWarning {
background: var(--main-color);
color: var(--bg-color);
display: table;
position: absolute;
left: 50%;
2020-07-23 22:32:35 +08:00
top: 66vh;
2020-07-23 20:42:16 +08:00
transform: translateX(-50%) translateY(-50%);
padding: 1rem;
border-radius: var(--roundness);
/* margin-top: 1rem; */
transition: .25s;
z-index: 999;
pointer-events: none;
i {
margin-right: .5rem;
}
}
2020-05-09 08:29:47 +08:00
#wordsInput {
height: 0;
padding: 0;
margin: 0;
border: none;
outline: none;
display: block;
}
2020-07-03 10:03:29 +08:00
#wordsTitle {
color: var(--sub-color);
margin-left: 0.25rem;
margin-top: 1rem;
display: none;
}
2020-05-09 08:29:47 +08:00
#words {
height: fit-content;
display: flex;
flex-wrap: wrap;
width: 100%;
align-content: flex-start;
user-select: none;
2020-07-03 10:03:29 +08:00
&.flipped {
.word {
color: var(--text-color);
2020-07-03 10:03:29 +08:00
& letter.correct {
color: var(--sub-color);
}
2020-06-01 03:30:56 +08:00
}
}
2020-07-03 10:03:29 +08:00
&.colorfulMode {
.word {
& letter.correct {
color: var(--main-color);
}
2020-07-03 10:03:29 +08:00
& letter.incorrect {
color: var(--colorful-error-color);
}
2020-07-03 10:03:29 +08:00
& letter.incorrect.extra {
color: var(--colorful-error-extra-color);
}
}
}
2020-07-03 10:03:29 +08:00
&.flipped.colorfulMode {
.word {
color: var(--main-color);
2020-07-03 10:03:29 +08:00
& letter.correct {
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
& letter.incorrect {
color: var(--colorful-error-color);
}
2020-07-03 10:03:29 +08:00
& letter.incorrect.extra {
color: var(--colorful-error-extra-color);
}
}
}
}
#words.flipped.colorfulMode .word.error,
2020-07-03 10:03:29 +08:00
#words.colorfulMode .word.error {
border-bottom: 2px solid var(--colorful-error-color);
}
2020-07-03 10:03:29 +08:00
.pageTest #resultExtraButtons {
opacity: 0;
display: grid;
grid-auto-flow: column;
gap: 1rem;
}
2020-07-03 10:03:29 +08:00
#restartTestButton,
#showWordHistoryButton,
#copyResultToClipboardButton,
#restartTestButtonWithSameWordset {
position: relative;
2020-05-09 08:29:47 +08:00
border-radius: var(--roundness);
2020-06-06 09:51:10 +08:00
padding: 1rem 2rem;
2020-05-09 08:29:47 +08:00
width: min-content;
width: -moz-min-content;
color: var(--sub-color);
transition: 0.25s;
margin-top: 1rem;
2020-05-09 08:29:47 +08:00
cursor: pointer;
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
&:hover,
&:focus {
color: var(--main-color);
outline: none;
}
2020-07-03 10:03:29 +08:00
2020-05-09 08:29:47 +08:00
&:focus {
background: var(--sub-color);
2020-05-09 08:29:47 +08:00
}
}
2020-07-03 10:03:29 +08:00
#middle {
.pageTest {
#testModesNotice {
display: grid;
grid-auto-flow: column;
gap: 1rem;
color: var(--sub-color);
text-align: center;
margin-bottom: 1.25rem;
height: 1rem;
line-height: 1rem;
transition: 0.125s;
justify-content: center;
2020-07-03 10:03:29 +08:00
.fas {
margin-right: 0.5rem;
}
}
}
2020-07-03 10:03:29 +08:00
&.focus .pageTest {
#testModesNotice {
opacity: 0 !important;
}
}
}
2020-07-03 10:03:29 +08:00
#showWordHistoryButton {
opacity: 1;
}
2020-05-09 08:29:47 +08:00
.word {
margin: 0.25rem;
2020-05-09 08:29:47 +08:00
color: var(--sub-color);
display: flex;
// transition: 0.25s;
2020-05-09 08:29:47 +08:00
/* margin-bottom: 1px; */
border-bottom: 2px solid transparent;
line-height: 1rem;
2020-07-03 10:03:29 +08:00
2020-06-01 03:32:08 +08:00
// transition: .25s;
2020-07-03 10:03:29 +08:00
.wordInputAfter {
opacity: 1;
position: absolute;
background: var(--sub-color);
color: var(--bg-color);
/* background: red; */
padding: 0.5rem;
/* left: .5rem; */
margin-left: -0.5rem;
margin-top: -0.5rem;
border-radius: var(--roundness);
// box-shadow: 0 0 10px rgba(0,0,0,.25);
transition: 0.25s;
2020-07-03 10:03:29 +08:00
text-shadow: none;
}
}
2020-07-03 10:03:29 +08:00
#words.size125 .word {
line-height: 1.25rem;
font-size: 1.25rem;
margin: 0.31rem;
}
2020-07-03 10:03:29 +08:00
#words.size15 .word {
line-height: 1.5rem;
font-size: 1.5rem;
margin: 0.37rem;
}
2020-07-03 10:03:29 +08:00
#words.size2 .word {
line-height: 2rem;
font-size: 2rem;
margin: 0.5rem;
2020-05-09 08:29:47 +08:00
}
.word.error {
/* margin-bottom: 1px; */
border-bottom: 2px solid var(--error-color);
2020-07-03 10:03:29 +08:00
text-shadow: 1px 0px 0px var(--bg-color),
// 2px 0px 0px var(--bg-color),
-1px 0px 0px var(--bg-color),
2020-07-03 10:03:29 +08:00
// -2px 0px 0px var(--bg-color),
0px 1px 0px var(--bg-color),
1px 1px 0px var(--bg-color), -1px 1px 0px var(--bg-color);
2020-05-09 08:29:47 +08:00
}
// .word letter {
2020-07-03 10:03:29 +08:00
// transition: .1s;
// height: 1rem;
// line-height: 1rem;
/* margin: 0 1px; */
// }
2020-05-09 08:29:47 +08:00
.word letter.correct {
color: var(--text-color);
2020-05-09 08:29:47 +08:00
}
.word letter.incorrect {
color: var(--error-color);
2020-05-09 08:29:47 +08:00
}
.word letter.incorrect.extra {
color: var(--error-extra-color);
2020-05-09 08:29:47 +08:00
}
.word letter.missing {
opacity: 0.5;
}
2020-07-03 10:03:29 +08:00
.pageTest {
2020-07-29 01:44:36 +08:00
position: relative;
2020-07-03 10:03:29 +08:00
.buttons {
display: grid;
grid-auto-flow: column;
gap: 1rem;
justify-content: center;
}
2020-07-29 01:44:36 +08:00
.ssWatermark {
font-size: 1.25rem;
color: var(--sub-color);
position: absolute;
bottom: 0;
right: 0;
}
}
2020-07-03 10:03:29 +08:00
.pageLogin {
display: flex;
2020-07-03 10:03:29 +08:00
grid-auto-flow: column;
gap: 1rem;
justify-content: space-around;
align-items: center;
2020-07-03 10:03:29 +08:00
.side {
display: grid;
gap: 0.5rem;
justify-content: center;
2020-07-03 10:03:29 +08:00
&.login {
grid-template-areas:
"title forgotButton"
2020-07-03 10:03:29 +08:00
"form form";
.title {
grid-area: title;
}
2020-07-03 10:03:29 +08:00
#forgotPasswordButton {
grid-area: forgotButton;
font-size: 0.5rem;
line-height: 0.5rem;
height: fit-content;
align-self: center;
justify-self: right;
padding: 0.25rem 0;
color: var(--sub-color);
cursor: pointer;
transition: 0.25s;
2020-07-03 10:03:29 +08:00
&:hover {
color: var(--main-color);
}
}
2020-07-03 10:03:29 +08:00
form {
grid-area: form;
2020-07-03 10:03:29 +08:00
#rememberMe {
color: var(--sub-color);
-moz-user-select: none;
user-select: none;
cursor: pointer;
2020-07-03 10:03:29 +08:00
input {
margin: 0 !important;
cursor: pointer;
width: 0;
height: 0;
2020-07-08 13:30:31 +08:00
display: none;
2020-07-09 22:55:13 +08:00
&~.customCheckbox {
width: 12px;
height: 12px;
background: rgba(0, 0, 0, 0.1);
border-radius: 2px;
box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
display: inline-block;
margin: 0 0.5rem 0 0.25rem;
transition: 0.25s;
}
2020-07-03 10:03:29 +08:00
&:checked~.customCheckbox {
background: var(--main-color);
}
}
}
}
}
}
2020-07-03 10:03:29 +08:00
form {
display: grid;
gap: 0.5rem;
width: 100%;
}
2020-07-03 10:03:29 +08:00
.preloader {
position: fixed;
left: 50%;
top: 50%;
font-size: 2rem;
transform: translate(-50%, -50%);
color: var(--main-color);
transition: 0.25s;
}
}
2020-07-03 10:03:29 +08:00
.pageAbout {
display: grid;
gap: 2rem;
2020-07-03 10:03:29 +08:00
.section {
display: grid;
gap: 0.5rem;
2020-07-03 10:03:29 +08:00
h1 {
font-size: 1rem;
line-height: 1rem;
color: var(--sub-color);
margin: 0;
font-weight: 300;
}
2020-07-03 10:03:29 +08:00
p {
margin: 0;
padding: 0;
color: var(--text-color);
}
}
}
2020-07-03 10:03:29 +08:00
.pageSettings {
2020-05-15 05:22:11 +08:00
display: grid;
2020-05-28 07:35:41 +08:00
// grid-template-columns: 1fr 1fr;
2020-05-15 05:22:11 +08:00
gap: 2rem;
2020-07-03 10:03:29 +08:00
.tip {
2020-05-15 05:22:11 +08:00
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
.sectionGroupTitle {
2020-07-15 05:16:41 +08:00
font-size: 2rem;
2020-06-04 06:48:26 +08:00
color: var(--sub-color);
2020-07-15 05:16:41 +08:00
line-height: 2rem;
2020-06-04 06:48:26 +08:00
}
2020-07-03 10:03:29 +08:00
.sectionSpacer {
2020-06-04 06:48:26 +08:00
height: 1.5rem;
}
2020-07-03 10:03:29 +08:00
.section {
2020-05-15 05:22:11 +08:00
display: grid;
2020-05-28 07:35:41 +08:00
// gap: .5rem;
grid-template-areas:
"title title"
2020-07-03 10:03:29 +08:00
"text buttons";
2020-05-28 07:35:41 +08:00
grid-template-columns: 2fr 1fr;
column-gap: 2rem;
2020-05-28 07:35:41 +08:00
align-items: center;
2020-07-03 10:03:29 +08:00
2020-06-11 09:59:22 +08:00
&.customTheme {
grid-template-columns: 1fr 1fr 1fr 1fr;
justify-items: stretch;
gap: 0.5rem 2rem;
2020-07-03 10:03:29 +08:00
& p {
grid-area: unset;
2020-06-11 09:59:22 +08:00
grid-column: 1 / span 4;
}
2020-07-03 10:03:29 +08:00
2020-07-02 08:48:00 +08:00
& .spacer {
grid-column: 3 / 5;
}
2020-06-11 09:59:22 +08:00
}
2020-07-03 10:03:29 +08:00
h1 {
2020-05-15 05:22:11 +08:00
font-size: 1rem;
line-height: 1rem;
color: var(--sub-color);
margin: 0;
2020-05-28 07:35:41 +08:00
grid-area: title;
font-weight: 300;
2020-05-15 05:22:11 +08:00
}
2020-07-03 10:03:29 +08:00
p {
2020-05-28 07:35:41 +08:00
grid-area: text;
2020-07-02 08:48:00 +08:00
color: var(--sub-color);
margin: 0;
2020-05-15 05:22:11 +08:00
}
2020-07-03 10:03:29 +08:00
.text {
align-self: normal;
color: var(--text-color);
}
2020-07-03 10:03:29 +08:00
.buttons {
2020-05-15 05:22:11 +08:00
display: grid;
grid-auto-flow: column;
2020-05-29 12:32:38 +08:00
grid-auto-columns: 1fr;
gap: 0.5rem;
2020-05-28 07:35:41 +08:00
grid-area: buttons;
}
2020-07-03 10:03:29 +08:00
&.discordIntegration {
.code {
grid-area: buttons;
justify-content: center;
display: grid;
.top {
font-size: 1rem;
line-height: 1rem;
color: var(--sub-color);
}
.bottom {
font-size: 2rem;
line-height: 2rem;
}
}
.info {
grid-area: buttons;
text-align: center;
}
.howto {
margin-top: 1rem;
color: var(--text-color);
}
}
2020-07-03 10:03:29 +08:00
&.tags {
.tagsListAndButton {
grid-area: buttons;
}
2020-07-03 10:03:29 +08:00
.tagsList {
display: grid;
gap: 0.5rem;
2020-07-03 10:03:29 +08:00
.tag {
display: grid;
display: grid;
grid-template-columns: auto 1fr auto auto;
color: var(--text-color);
2020-07-03 10:03:29 +08:00
.title {
align-self: center;
}
2020-07-03 10:03:29 +08:00
.editButton,
.removeButton,
.active {
display: grid;
grid-auto-flow: column;
align-content: center;
transition: 0.25s;
padding: 0 0.5rem;
border-radius: var(--roundness);
color: var(--sub-color);
2020-07-03 10:03:29 +08:00
&:focus {
background: var(--sub-color);
color: var(--main-color);
border: none;
outline: none;
}
2020-07-03 10:03:29 +08:00
&:hover {
cursor: pointer;
color: var(--main-color);
}
}
}
}
2020-07-03 10:03:29 +08:00
.addTagButton {
margin-top: 0.5rem;
color: var(--text-color);
cursor: pointer;
transition: 0.25s;
padding: 0.2rem 0.5rem;
border-radius: var(--roundness);
background: rgba(0, 0, 0, 0.1);
text-align: center;
-webkit-user-select: none;
display: grid;
align-content: center;
height: min-content;
height: -moz-min-content;
2020-07-03 10:03:29 +08:00
&.active {
background: var(--main-color);
color: var(--bg-color);
}
2020-07-03 10:03:29 +08:00
&:hover,
&:focus {
color: var(--bg-color);
background: var(--main-color);
outline: none;
}
}
}
2020-07-03 10:03:29 +08:00
&.fontSize .buttons {
2020-05-28 07:35:41 +08:00
grid-template-columns: 1fr 1fr 1fr 1fr;
}
2020-07-03 10:03:29 +08:00
&.themes,
&.languages,
&.layouts,
&.keymapLayout {
2020-05-28 07:35:41 +08:00
grid-template-columns: 1fr;
grid-template-areas:
"title"
2020-07-03 10:03:29 +08:00
"tabs"
"buttons";
gap: 0.5rem;
2020-07-03 10:03:29 +08:00
2020-06-10 16:32:25 +08:00
.tabs {
grid-area: tabs;
display: flex;
grid-template-columns: 1fr 1fr 9fr;
2020-06-11 09:59:22 +08:00
grid-area: tabs;
2020-07-03 10:03:29 +08:00
2020-06-10 16:32:25 +08:00
.tab {
2020-06-11 09:59:22 +08:00
will-change: color;
transition: 0.2s ease-in-out color;
2020-06-10 16:32:25 +08:00
outline: 0;
cursor: pointer;
padding: 0;
font-size: 1rem;
color: var(--sub-color);
text-align: left;
border: 0;
background: 0;
2020-07-26 08:13:36 +08:00
font-family: var(--font);
2020-07-03 10:03:29 +08:00
&:first-child {
margin-right: 0.5rem;
2020-06-10 16:32:25 +08:00
}
2020-07-03 10:03:29 +08:00
&.active,
&:hover {
2020-06-10 16:32:25 +08:00
color: var(--main-color);
}
}
}
2020-07-03 10:03:29 +08:00
.buttons {
2020-05-28 07:35:41 +08:00
margin-left: 0;
grid-auto-flow: dense;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 0.5rem;
2020-05-15 05:22:11 +08:00
}
}
}
}
2020-07-03 10:03:29 +08:00
.tabContainer {
2020-06-11 12:18:05 +08:00
position: relative;
2020-07-03 10:03:29 +08:00
.tabContent {
2020-06-11 12:18:05 +08:00
overflow: hidden;
height: auto;
// max-height: 0px;
// max-height: 100vh;
2020-07-03 10:03:29 +08:00
2020-07-03 01:17:06 +08:00
// transition: max-height .5s ease-in-out;
// &.reveal {
// max-height: 100vh;
// }
2020-07-03 10:03:29 +08:00
.text {
2020-07-03 02:35:41 +08:00
align-self: center;
}
2020-06-11 12:18:05 +08:00
}
}
2020-05-15 05:22:11 +08:00
2020-07-03 10:03:29 +08:00
.buttons div.theme:hover {
transform: scale(1.1);
}
2020-07-03 10:03:29 +08:00
.signOut {
font-size: 1rem;
line-height: 1rem;
justify-self: end;
// background: var(--sub-color);
2020-07-03 10:03:29 +08:00
color: var(--sub-color);
width: fit-content;
padding: 0.5rem;
border-radius: var(--roundness);
cursor: pointer;
transition: 0.25s;
float: right;
2020-07-03 10:03:29 +08:00
&:hover {
color: var(--main-color);
}
2020-07-03 10:03:29 +08:00
.fas {
margin-right: 0.5rem;
}
}
2020-07-03 10:03:29 +08:00
.pageAccount {
2020-05-10 09:04:05 +08:00
display: grid;
gap: 1rem;
2020-07-03 10:03:29 +08:00
.content {
display: grid;
gap: 2rem;
}
2020-07-03 10:03:29 +08:00
.preloader {
font-size: 2rem;
justify-self: center;
}
2020-07-03 10:03:29 +08:00
.triplegroup {
2020-05-10 09:04:05 +08:00
display: grid;
grid-template-columns: 1fr 1fr 1fr;
2020-05-10 09:04:05 +08:00
gap: 1rem;
2020-07-03 10:03:29 +08:00
.text {
align-self: center;
color: var(--sub-color);
}
2020-05-10 09:04:05 +08:00
}
2020-07-03 10:03:29 +08:00
.group {
&.noDataError {
margin: 20rem 0;
// height: 30rem;
// line-height: 30rem;
2020-05-27 00:52:07 +08:00
text-align: center;
}
2020-07-03 10:03:29 +08:00
&.history {
.loadMoreButton {
background: rgba(0, 0, 0, 0.1);
color: var(--text-color);
text-align: center;
padding: 0.5rem;
border-radius: var(--roundness);
cursor: pointer;
-webkit-transition: 0.25s;
transition: 0.25s;
-webkit-user-select: none;
display: -ms-grid;
display: grid;
-ms-flex-line-pack: center;
align-content: center;
margin-top: 1rem;
2020-07-03 10:03:29 +08:00
&:hover,
&:focus {
color: var(--bg-color);
background: var(--main-color);
}
}
}
2020-07-03 10:03:29 +08:00
.title {
2020-05-10 09:04:05 +08:00
color: var(--sub-color);
}
2020-07-03 10:03:29 +08:00
.val {
2020-05-10 09:04:05 +08:00
font-size: 3rem;
line-height: 3rem;
}
2020-07-03 10:03:29 +08:00
&.chart {
2020-05-25 04:58:13 +08:00
position: relative;
2020-07-03 10:03:29 +08:00
.chartPreloader {
2020-05-25 04:58:13 +08:00
position: absolute;
width: 100%;
2020-07-03 10:03:29 +08:00
background: rgba(0, 0, 0, 0.5);
2020-05-25 04:58:13 +08:00
height: 100%;
display: grid;
align-items: center;
justify-content: center;
font-size: 5rem;
text-shadow: 0 0 3rem black;
}
}
2020-05-10 09:04:05 +08:00
}
2020-07-03 10:03:29 +08:00
table {
border-spacing: 0;
2020-05-10 09:04:05 +08:00
border-collapse: collapse;
color: var(--text-color);
2020-07-03 10:03:29 +08:00
td {
padding: 0.5rem 0.25rem;
2020-05-10 09:04:05 +08:00
}
2020-07-03 10:03:29 +08:00
thead {
2020-05-10 09:04:05 +08:00
color: var(--sub-color);
font-size: 0.75rem;
2020-05-10 09:04:05 +08:00
}
2020-07-03 10:03:29 +08:00
tbody tr:nth-child(odd) td {
background: rgba(0, 0, 0, 0.1);
2020-05-10 09:04:05 +08:00
}
2020-07-03 10:03:29 +08:00
td.infoIcons span {
margin: 0 0.1rem;
}
}
2020-07-03 10:03:29 +08:00
#resultEditTags {
transition: 0.25s;
}
2020-07-03 10:03:29 +08:00
#resultEditTags:hover {
cursor: pointer;
color: var(--main-color);
opacity: 1 !important;
2020-05-10 09:04:05 +08:00
}
}
2020-07-03 10:03:29 +08:00
.pageAccount {
.group.filterButtons {
gap: 1rem;
display: grid;
2020-05-25 04:58:13 +08:00
grid-template-columns: 1fr 1fr;
2020-07-03 10:03:29 +08:00
.buttonsAndTitle {
2020-05-25 04:58:13 +08:00
height: fit-content;
height: -moz-fit-content;
display: grid;
gap: 0.25rem;
color: var(--sub-color);
line-height: 1rem;
font-size: 1rem;
}
2020-07-03 10:03:29 +08:00
.buttons {
display: grid;
grid-auto-flow: column;
gap: 1rem;
2020-07-03 10:03:29 +08:00
.button {
background: rgba(0, 0, 0, 0.1);
color: var(--text-color);
text-align: center;
padding: 0.5rem;
border-radius: var(--roundness);
cursor: pointer;
transition: 0.25s;
-webkit-user-select: none;
display: grid;
align-content: center;
2020-07-03 10:03:29 +08:00
&.active {
background: var(--main-color);
color: var(--bg-color);
}
2020-07-03 10:03:29 +08:00
&:hover {
color: var(--bg-color);
background: var(--main-color);
}
}
2020-07-03 10:03:29 +08:00
&.languages,
&.layouts {
grid-template-columns: repeat(4, 1fr);
grid-auto-flow: unset;
}
}
}
}
2020-07-03 10:03:29 +08:00
.devIndicator {
position: fixed;
font-size: 3rem;
color: var(--sub-color);
opacity: 0.25;
z-index: -1;
2020-07-03 10:03:29 +08:00
&.tl {
top: 2rem;
left: 2rem;
}
2020-07-03 10:03:29 +08:00
&.tr {
top: 2rem;
right: 2rem;
}
2020-07-03 10:03:29 +08:00
&.bl {
bottom: 2rem;
left: 2rem;
}
2020-07-03 10:03:29 +08:00
&.br {
bottom: 2rem;
right: 2rem;
}
}
2020-05-10 09:04:05 +08:00
2020-05-09 08:29:47 +08:00
* {
box-sizing: border-box;
}
.hidden {
display: none !important;
}
2020-07-03 10:03:29 +08:00
.button {
color: var(--text-color);
cursor: pointer;
transition: 0.25s;
padding: 0.4rem;
border-radius: var(--roundness);
background: rgba(0, 0, 0, 0.1);
text-align: center;
-webkit-user-select: none;
// display: grid;
align-content: center;
height: min-content;
height: -moz-min-content;
2020-07-03 02:35:41 +08:00
line-height: 1rem;
2020-07-03 10:03:29 +08:00
.fas,
.far {
margin-right: 0.5rem;
}
2020-07-03 10:03:29 +08:00
&.active {
background: var(--main-color);
color: var(--bg-color);
}
2020-07-03 10:03:29 +08:00
&:hover,
&:focus {
color: var(--bg-color);
background: var(--main-color);
outline: none;
}
}
2020-07-03 10:03:29 +08:00
.text-button {
transition: 0.25s;
color: var(--sub-color);
cursor: pointer;
margin-right: 0.25rem;
cursor: pointer;
2020-07-03 10:03:29 +08:00
&:hover,
&:focus {
color: var(--main-color);
}
2020-07-03 10:03:29 +08:00
&.active {
color: var(--main-color);
}
}
2020-07-03 10:03:29 +08:00
.icon-button {
display: grid;
grid-auto-flow: column;
align-content: center;
transition: 0.25s;
padding: 0.5rem;
border-radius: var(--roundness);
2020-07-03 10:03:29 +08:00
cursor: pointer;
&:focus {
background: var(--sub-color);
color: var(--main-color);
border: none;
outline: none;
}
}
@media only screen and (max-width: 800px) {
#centerContent {
#top {
grid-template-areas:
"logo config"
"menu config";
}
#menu {
gap: 0.5rem;
font-size: 0.8rem;
line-height: 0.8rem;
.icon-button {
padding: 0.25rem;
}
}
}
#commandLine,
#commandLineInput {
width: 500px !important;
}
}
@media only screen and (max-width: 650px) {
.pageSettings .section {
grid-template-columns: 1fr;
grid-template-areas:
"title title"
"text text"
"buttons buttons";
2020-07-17 06:01:43 +08:00
.text {
margin-bottom: 1rem;
}
}
#commandLine,
#commandLineInput {
width: 400px !important;
}
}
.keymap {
display: grid;
grid-template-rows: 1fr 1fr 1fr 1fr;
justify-content: center;
white-space: nowrap;
height: 140px;
gap: .25rem;
}
.row {
height: 2rem;
gap: .25rem;
}
.keymap-key {
display: flex;
background-color: var(--bg-color);
color: var(--sub-color);
border-radius: var(--roundness);
border: 0.05rem solid;
border-color: var(--sub-color);
text-align: center;
justify-content: center;
align-items: center;
width: 2rem;
height: 2rem;
.bump {
width: .75rem;
height: .05rem;
background: var(--sub-color);
position: absolute;
border-radius: var(--roundness);
margin-top: 1.5rem;
}
&.active-key {
color: var(--bg-color);
background-color: var(--main-color);
border-color: var(--main-color);
.bump {
background: var(--bg-color);
}
}
&#KeySpace {
width: 100%;
}
&.flash {
animation-name: flashKey;
animation-duration: 1s;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
animation-fill-mode: forwards;
}
}
@keyframes flashKey {
from {
color: var(--bg-color);
background-color: var(--main-color);
border-color: var(--main-color);
}
to {
color: var(--sub-color);
background-color: var(--bg-color);
border-color: var(--sub-color);
}
}
.hidden-key {
opacity: 0;
}
.r1 {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 2fr;
opacity: 0;
}
.r2 {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1.5fr;
}
.r3 {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 2fr;
}
.r4 {
display: grid;
grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 2.5fr;
}
.r5 {
display: grid;
grid-template-columns: 4fr 7.5fr 4fr;
}