monkeytype/public/css/style.scss

3075 lines
55 KiB
SCSS
Raw Normal View History

2020-10-22 11:52:48 +08:00
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&family=IBM+Plex+Sans:wght@600&family=Inconsolata&family=Roboto+Mono&family=Source+Code+Pro&display=swap");
2020-08-02 10:54:43 +08:00
@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oxygen&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");
2020-09-27 07:01:03 +08:00
@import url('https://fonts.googleapis.com/css2?family=Itim&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-08-12 05:17:53 +08:00
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
}
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 {
2020-08-15 23:33:56 +08:00
padding: 0.5rem;
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 {
2020-08-15 23:33:56 +08:00
padding: 0.5rem;
position: -webkit-sticky;
position: sticky;
bottom: 0;
background: var(--bg-color);
2020-08-15 23:33:56 +08:00
color: var(--sub-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;
2020-10-06 01:01:45 +08:00
justify-items: left;
}
.check {
span {
display: block;
font-size: 0.76rem;
color: var(--sub-color);
margin-left: 1.5rem;
}
input {
margin: 0 !important;
cursor: pointer;
width: 0;
height: 0;
display: none;
& ~ .customTextRandomCheckbox {
width: 12px;
height: 12px;
2020-08-02 10:54:43 +08:00
background: rgba(0, 0, 0, 0.1);
border-radius: 2px;
2020-08-02 10:54:43 +08:00
box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
display: inline-block;
2020-08-02 10:54:43 +08:00
margin: 0 0.5rem 0 0.25rem;
transition: 0.25s;
}
&:checked ~ .customTextRandomCheckbox {
background: var(--main-color);
}
}
}
.typographyCheck {
2020-10-06 01:01:45 +08:00
grid-row: 2;
grid-column: 1/3;
span {
display: block;
font-size: 0.76rem;
color: var(--sub-color);
margin-left: 1.5rem;
}
input {
margin: 0 !important;
cursor: pointer;
width: 0;
height: 0;
display: none;
& ~ .customTextTypographyCheckbox {
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;
}
&:checked ~ .customTextTypographyCheckbox {
background: var(--main-color);
}
}
}
}
}
2020-07-31 03:16:07 +08:00
#customMode2PopupWrapper {
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;
#customMode2Popup {
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
display: grid;
gap: 1rem;
2020-10-20 01:30:50 +08:00
width: 400px;
2020-07-31 03:16:07 +08:00
.title {
font-size: 1.5rem;
color: var(--sub-color);
}
2020-10-20 01:30:50 +08:00
.tip{
font-size: .75rem;
color: var(--sub-color);
}
2020-07-31 03:16:07 +08:00
}
}
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
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);
width: 100%;
border-radius: var(--roundness);
}
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-09-05 04:11:24 +08:00
width: 0;
height: 0;
margin: 0 auto;
display: grid;
justify-content: center;
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;
&.lower {
top: 15rem;
}
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;
2020-10-19 01:13:44 +08:00
// 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;
&.wide125{
max-width: 1250px;
}
&.wide150{
max-width: 1500px;
}
&.wide200{
max-width: 2000px;
}
&.widemax{
max-width: unset;
}
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;
}
#paceCaret{
height: 1.5rem;
// background: var(--sub-color);
background: var(--sub-color);
opacity: 0.5;
position: absolute;
border-radius: var(--roundness);
// transition: 0.25s;
transform-origin: top left;
width: 2px;
}
2020-07-03 10:03:29 +08:00
#caret, #paceCaret{
2020-09-25 04:42:17 +08:00
&.off {
width: 0;
}
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 {
2020-08-28 03:56:11 +08:00
margin-bottom: 0.6rem;
white-space: nowrap;
2020-08-28 03:56:44 +08:00
user-select: none;
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;
}
.numbersMode {
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);
2020-09-27 01:19:33 +08:00
transition: 0.25s;
padding: 0 5px;
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
2020-09-27 01:19:33 +08:00
.leftright{
display: grid;
grid-template-columns: auto 1fr;
gap: 1rem;
.left{
text-align: left;
}
.right{
text-align: right;
// display: flex;
// gap: 1rem;
// align-items: center;
// justify-content: flex-end;
2020-10-06 01:47:25 +08:00
.current-theme{
transition: .25s;
text-decoration: none;
&:hover{
color: var(--main-color);
cursor: pointer;
}
}
2020-09-27 01:19:33 +08:00
.discordLink{
transition: .25s;
text-decoration: none;
&:hover{
color: var(--main-color);
cursor: pointer;
}
}
}
}
2020-07-03 10:03:29 +08:00
.version {
opacity: 0;
2020-09-27 01:19:33 +08:00
transition: .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;
2020-07-31 00:36:09 +08:00
gap: 1rem;
// grid-template-columns: auto 1fr;
// justify-content: center;
2020-05-09 08:29:47 +08:00
align-items: center;
grid-template-columns: auto 1fr;
2020-08-02 10:54:43 +08:00
grid-template-areas:
"stats chart"
"morestats morestats";
// "wordsHistory wordsHistory"
// "buttons buttons"
// "login login"
// "ssw ssw";
.buttons {
display: grid;
grid-auto-flow: column;
gap: 1rem;
justify-content: center;
// grid-area: buttons;
grid-column: 1/3;
}
.ssWatermark{
// grid-area: ssw;
grid-column: 1/3;
}
#resultWordsHistory{
// grid-area: wordsHistory;
color: var(--sub-color);
grid-column: 1/3;
.words{
display: flex;
flex-wrap: wrap;
width: 100%;
align-content: flex-start;
user-select: none;
}
}
2020-07-03 10:03:29 +08:00
.chart {
grid-area: chart;
width: 100%;
2020-07-03 10:03:29 +08:00
canvas {
width: 100% !important;
2020-05-15 10:04:10 +08:00
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);
// grid-area: login;
grid-column: 1/3;
}
2020-07-03 10:03:29 +08:00
.stats {
grid-area: stats;
display: grid;
// column-gap: 0.5rem;
2020-08-02 10:54:43 +08:00
gap: 0.5rem;
justify-content: center;
align-items: center;
// grid-template-areas:
// "wpm acc"
// "wpm key"
// "raw time"
// "consistency consistency"
// "source source"
// "leaderboards leaderboards"
// "testType infoAndTags";
// grid-template-areas:
// "wpm acc key consistency testType leaderboards source"
// "wpm raw time nothing infoAndTags leaderboards source";
2020-08-02 10:54:43 +08:00
grid-template-areas:
"wpm"
"acc";
&.morestats {
display: grid;
grid-auto-flow: column;
grid-template-areas: none;
align-items: flex-start;
2020-07-31 00:36:09 +08:00
justify-content: space-between;
column-gap: 2rem;
grid-area: morestats;
// grid-template-areas: "raw consistency testType infoAndTags leaderboards source"
// "key time testType infoAndTags leaderboards source";
.subgroup {
display: grid;
2020-08-02 10:54:43 +08:00
gap: 0.5rem;
}
}
2020-07-03 10:03:29 +08:00
.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;
}
&.time{
.afk{
color: var(--sub-color);
font-size: .75rem;
line-height: .75rem;
margin-left: 0.2rem;
}
}
}
2020-07-03 10:03:29 +08:00
2020-07-31 00:36:09 +08:00
// .infoAndTags {
// display: grid;
// gap: 0.5rem;
// align-self: baseline;
// // grid-area: infoAndTags;
// color: var(--sub-color);
// .top {
// font-size: 1rem;
// line-height: 1rem;
// }
2020-07-03 10:03:29 +08:00
2020-07-31 00:36:09 +08:00
// .bottom {
// font-size: 1rem;
// line-height: 1rem;
// }
// }
.info,
.tags,
.source {
2020-07-03 10:03:29 +08:00
.top {
font-size: 1rem;
2020-07-31 00:36:09 +08:00
line-height: 1rem;
}
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: 2rem;
2020-09-15 04:45:15 +08:00
line-height: 1.5rem;
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;
// margin-top: -0.5rem;
2020-07-03 10:03:29 +08:00
2020-09-17 00:29:21 +08:00
.crown {
height: 1.7rem;
width: 1.7rem;
margin-left: 0.5rem;
margin-top: -0.2rem;
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-09-17 00:29:21 +08:00
.testType,
.leaderboards {
.bottom {
font-size: 1rem;
line-height: 1rem;
2020-09-17 06:15:55 +08:00
.lbChange .fas{
margin-right: 0.15rem;
}
}
}
2020-07-03 10:03:29 +08:00
.acc {
grid-area: acc;
2020-07-03 10:03:29 +08:00
.top {
font-size: 2rem;
2020-09-15 04:45:15 +08:00
line-height: 1.5rem;
}
2020-07-03 10:03:29 +08:00
.bottom {
font-size: 4rem;
line-height: 4rem;
}
}
2020-07-03 10:03:29 +08:00
// .key {
// grid-area: key;
// }
// .time {
// grid-area: time;
// }
// .raw {
// 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%;
// top: 66vh;
2020-07-23 20:42:16 +08:00
transform: translateX(-50%) translateY(-50%);
padding: 1rem;
border-radius: var(--roundness);
/* margin-top: 1rem; */
2020-08-02 10:54:43 +08:00
transition: 0.25s;
2020-07-23 20:42:16 +08:00
z-index: 999;
pointer-events: none;
i {
2020-08-02 10:54:43 +08:00
margin-right: 0.5rem;
2020-07-23 20:42:16 +08:00
}
}
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;
padding-bottom: 1em;
2020-07-03 10:03:29 +08:00
2020-09-10 20:36:40 +08:00
/* a little hack for right-to-left languages */
&.rightToLeftTest {
flex-direction: row-reverse;
.word {
flex-direction: row-reverse;
}
}
2020-09-17 00:29:21 +08:00
&.blurred {
2020-09-11 07:44:38 +08:00
opacity: 0.25;
2020-09-11 06:05:57 +08:00
filter: blur(4px);
-webkit-filter: blur(4px);
}
2020-09-10 20:36:40 +08:00
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);
}
& letter.corrected {
color: var(--sub-color);
2020-09-11 06:20:46 +08:00
border-bottom: 2px dotted var(--main-color);
}
& letter.extraCorrected {
2020-09-11 06:20:46 +08:00
border-right: 2px dotted var(--main-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.corrected {
color: var(--main-color);
2020-09-11 06:20:46 +08:00
border-bottom: 2px dotted var(--text-color);
}
& letter.extraCorrected {
2020-09-11 06:20:46 +08:00
border-right: 2px dotted var(--text-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.corrected {
color: var(--sub-color);
2020-09-11 06:20:46 +08:00
border-bottom: 2px dotted var(--main-color);
}
& letter.extraCorrected {
2020-09-11 06:20:46 +08:00
border-right: 2px dotted 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);
}
}
}
}
#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,
#nextTestButton,
#practiseMissedWordsButton {
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;
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
}
}
#restartTestButton{
margin: 0 auto;
margin-top: 1rem;
}
2020-07-03 10:03:29 +08:00
#middle {
.pageTest {
2020-09-17 00:29:21 +08:00
.outOfFocusWarning {
2020-09-11 06:05:57 +08:00
text-align: center;
height: 0;
line-height: 150px;
z-index: 999;
position: relative;
user-select: none;
pointer-events: none;
}
2020-07-03 10:03:29 +08:00
#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-08-27 05:18:09 +08:00
#miniTimerAndLiveWpm {
height: 0;
margin-left: 0.37rem;
display: flex;
font-size: 1rem;
line-height: 1rem;
margin-top: -1.5rem;
position: absolute;
color: black;
.time {
margin-right: 2rem;
}
.wpm {
transition: 0.125s;
}
.time,
.wpm {
opacity: 0;
}
&.timerMain {
color: var(--main-color);
}
&.timerSub {
color: var(--sub-color);
}
&.timerText {
color: var(--text-color);
}
&.size125 {
margin-top: -1.75rem;
font-size: 1.25rem;
line-height: 1.25rem;
}
&.size15 {
margin-top: -2rem;
font-size: 1.5rem;
line-height: 1.5rem;
}
&.size2 {
margin-top: -2.5rem;
font-size: 2rem;
line-height: 2rem;
}
}
}
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;
letter{
display: inline;
}
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.corrected {
color: var(--text-color);
2020-09-11 06:20:46 +08:00
border-bottom: 2px dotted var(--main-color);
}
2020-05-09 08:29:47 +08:00
.word letter.incorrect {
color: var(--error-color);
position:relative;
}
.word letter.incorrect hint {
position: absolute;
bottom: -1.2em;
color: var(--text-color);
line-height: 1em;
font-size: .75em;
text-shadow: none;
padding: 1px;
left: 0;
opacity: .5;
text-align: center;
width: 100%;
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;
.ssWatermark {
font-size: 1.25rem;
color: var(--sub-color);
line-height: 1rem;
text-align: right;
2020-07-29 01:44:36 +08:00
}
}
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
2020-08-24 06:27:21 +08:00
.supporters {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
justify-items: center;
gap: 0.25rem;
color: var(--text-color);
}
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;
cursor: pointer;
transition: 0.25s;
&:hover {
2020-09-16 04:52:43 +08:00
color: var(--main-color);
}
.fas {
margin-left: 0.5rem;
&.rotate {
transform: rotate(-90deg);
}
}
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
.settingsGroup {
display: grid;
gap: 2rem;
}
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-09-10 16:52:38 +08:00
.button.danger {
background: var(--error-color);
2020-09-10 16:52:38 +08:00
color: #eee;
&:hover {
background: var(--main-color);
color: var(--bg-color);
}
}
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
&.paceCaret{
.customPaceCaretSpeed{
width: 4rem;
padding: 0 .5rem;
}
}
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 {
2020-09-29 07:10:33 +08:00
#unlinkDiscordButton{
margin-top: 0.5rem;
font-size: 0.75rem;
}
.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 {
.tabContainer {
position: relative;
grid-area: buttons;
.tabContent {
overflow: revert;
height: auto;
.text {
align-self: center;
}
}
}
.theme.button {
display: grid;
grid-template-columns: auto 1fr auto;
.text {
color: inherit;
}
.activeIndicator {
overflow: hidden;
width: 1.25rem;
transition: 0.25s;
opacity: 0;
color: inherit;
.far {
margin: 0;
}
&.active {
width: 1.25rem;
opacity: 1;
}
}
.favButton {
overflow: hidden;
width: 1.25rem;
transition: 0.25s;
opacity: 0;
.far,
.fas {
margin: 0;
pointer-events: none;
}
&:hover {
cursor: pointer;
}
&.active {
width: 1.25rem;
opacity: 1;
}
}
&:hover {
.favButton {
width: 1.25rem;
opacity: 1;
}
}
}
}
2020-07-03 10:03:29 +08:00
&.themes,
2020-08-04 07:46:04 +08:00
&.language,
&.layout,
2020-07-31 08:33:17 +08:00
&.keymapLayout,
2020-08-01 09:53:04 +08:00
&.fontFamily,
&.funbox,
&.keymapStyle {
grid-template-columns: 2fr 1fr;
grid-template-areas:
"title tabs"
"buttons buttons";
column-gap: 2rem;
row-gap: 0.5rem;
2020-07-03 10:03:29 +08:00
2020-06-10 16:32:25 +08:00
.tabs {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
gap: 0.5rem;
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
.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
2020-09-17 00:29:21 +08:00
.topFilters .buttons {
display: flex;
justify-content: space-evenly;
gap: 1rem;
2020-09-17 00:29:21 +08:00
.button {
width: 100%;
}
}
// .hoverChartWrapper {
// z-index: 999;
// display: none;
// width: 100%;
// height: 100%;
// background: rgba(0, 0, 0, 0.25);
// position: fixed;
// left: 0;
// top: 0;
// }
.hoverChartWrapper {
// pointer-events: none;
z-index: 999;
display: none;
height: 15rem;
background: var(--bg-color);
width: 45rem;
position: absolute;
border-radius: var(--roundness);
padding: 1rem;
// box-shadow: 0 0 1rem rgba(0, 0, 0, 0.25);
}
.hoverChartBg {
display: none;
z-index: 998;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.25);
position: fixed;
left: 0;
top: 0;
}
2020-07-03 10:03:29 +08:00
.preloader {
font-size: 2rem;
justify-self: center;
}
2020-07-03 10:03:29 +08:00
2020-09-17 00:29:21 +08:00
.doublegroup {
display: grid;
grid-auto-flow: column;
gap: 1rem;
2020-09-17 00:29:21 +08:00
.titleAndTable {
.title {
color: var(--sub-color);
}
}
}
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
2020-08-10 02:52:00 +08:00
.above {
display: flex;
justify-content: center;
margin-bottom: 1rem;
color: var(--sub-color);
flex-wrap: wrap;
.group {
display: flex;
align-items: center;
}
.fas,
.punc {
margin-right: 0.25rem;
2020-08-10 02:52:00 +08:00
}
.spacer {
width: 1rem;
}
}
.below {
text-align: center;
color: var(--sub-color);
2020-10-20 23:31:43 +08:00
margin-top: 1rem;
display: grid;
grid-template-columns: auto 300px;
align-items: center;
.text{
height: min-content;
}
.buttons{
display: grid;
gap: .5rem;
}
}
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.5rem;
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;
}
.hoverChartButton {
opacity: 0.25;
transition: 0.25s;
cursor: pointer;
&:hover {
opacity: 1;
}
}
}
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-08-10 02:52:00 +08:00
&.testDate .buttons,
&.languages .buttons,
&.layouts .buttons,
&.funbox .buttons,
&.tags .buttons {
grid-template-columns: repeat(4, 1fr);
grid-auto-flow: unset;
}
}
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
.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-10-16 11:37:34 +08:00
&.disabled {
&:hover {
color: var(--sub-color);
background: var(--bg-color);
cursor: default;
}
color: var(--sub-color);
background: var(--bg-color);
cursor: default;
}
}
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;
outline: none;
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;
&:hover {
color: var(--main-color);
}
2020-07-03 10:03:29 +08:00
&:focus {
background: var(--sub-color);
color: var(--main-color);
border: none;
outline: none;
}
}
2020-08-30 10:55:23 +08:00
.scrollToTopButton {
bottom: 2rem;
right: 2rem;
position: fixed;
font-size: 2rem;
width: 4rem;
height: 4rem;
text-align: center;
line-height: 4rem;
background: var(--bg-color);
border-radius: 99rem;
z-index: 99;
cursor: pointer;
color: var(--sub-color);
transition: 0.25s;
&:hover {
color: var(--main-color);
}
}
@media only screen and (max-width: 1050px) {
#centerContent {
.pageSettings .section.themes .buttons,
.pageSettings .section.language .buttons,
.pageSettings .section.layout .buttons,
.pageSettings .section.keymapLayout .buttons,
.pageSettings .section.fontFamily .buttons,
.pageSettings .section.funbox .buttons,
.pageSettings .section.keymapStyle .buttons {
grid-template-columns: 1fr 1fr 1fr;
}
#result .morestats {
gap: 1rem;
grid-template-rows: 1fr 1fr;
}
}
}
@media only screen and (max-width: 800px) {
#centerContent {
#top {
grid-template-areas:
"logo config"
"menu config";
2020-08-28 03:56:11 +08:00
.logo {
margin-bottom: 0;
}
}
#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";
& > .text {
2020-07-17 06:01:43 +08:00
margin-bottom: 1rem;
}
}
#commandLine,
#commandLineInput {
width: 400px !important;
}
#centerContent {
.pageSettings .section.themes .buttons,
.pageSettings .section.language .buttons,
.pageSettings .section.layout .buttons,
.pageSettings .section.keymapLayout .buttons,
.pageSettings .section.fontFamily .buttons,
.pageSettings .section.funbox .buttons,
.pageSettings .section.keymapStyle .buttons {
grid-template-columns: 1fr 1fr;
}
}
}
2020-10-19 01:26:27 +08:00
@media only screen and (max-width: 600px) {
#middle{
#result{
grid-template-areas:
"stats stats"
"chart chart"
"morestats morestats";
.stats{
grid-template-areas: "wpm acc";
gap: 4rem;
}
.stats.morestats{
grid-template-rows: 1fr 1fr 1fr;
gap: 1rem;
}
}
}
}
2020-10-19 01:13:44 +08:00
@media only screen and (max-width: 500px) {
#top{
.logo{
.bottom{
font-size: 1.75rem;
line-height: 1.75rem;
margin-top: .5rem;
}
.top{
display: none;
}
}
#menu{
.icon-button{
padding: 0;
}
}
}
#centerContent{
padding: 1rem;
}
}
.keymap {
display: grid;
grid-template-rows: 1fr 1fr 1fr;
justify-content: center;
white-space: nowrap;
// height: 140px;
2020-08-02 10:54:43 +08:00
gap: 0.25rem;
margin-top: 1rem;
}
.row {
height: 2rem;
2020-08-02 10:54:43 +08:00
gap: 0.25rem;
}
.keymap-key {
display: flex;
2020-10-22 03:15:45 +08:00
background-color: transparent;
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;
position: relative;
.bump {
2020-08-02 10:54:43 +08:00
width: 0.75rem;
height: 0.05rem;
background: var(--sub-color);
position: absolute;
border-radius: var(--roundness);
// margin-top: 1.5rem;
2020-08-02 10:54:43 +08:00
bottom: 0.15rem;
}
&.active-key {
color: var(--bg-color);
background-color: var(--main-color);
border-color: var(--main-color);
.bump {
background: var(--bg-color);
}
}
&#KeySpace,
&#KeySpace2 {
width: 100%;
}
&#KeySpace2 {
opacity: 0;
}
&.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,
.hide-key {
opacity: 0;
}
.keymap {
.keymap-split-spacer,
.keymap-stagger-split-spacer,
.keymap-matrix-split-spacer {
display: none;
}
}
.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 5.5fr 4fr;
// &.matrixSpace {
// // grid-template-columns: 6.75fr 1.9fr 6.75fr;
// grid-template-columns: 6.9fr 4.6fr 6.9fr; // wider spacebar
// }
// &.splitSpace {
// // grid-template-columns: 6.75fr 1.9fr 6.75fr;
// grid-template-columns: 4fr 7.5fr 4fr;
// }
}
// .matrix {
// display: flex;
// justify-content: left;
// margin-left: 4.51rem;
// }
.keymap {
&.matrix {
.r1,
.r2,
.r3,
.r4 {
display: flex;
justify-content: left;
margin-left: 4.51rem;
}
.r5 {
grid-template-columns: 6.9fr 4.6fr 6.9fr;
}
#KeyLeftBracket {
opacity: 0;
}
#KeyRightBracket {
opacity: 0;
}
#KeyQuote {
opacity: 0;
}
}
&.split {
.keymap-split-spacer {
display: block;
}
.keymap-stagger-split-spacer {
display: block;
}
.r1 {
display: grid;
grid-template-columns: 1fr 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 1fr 1.5fr;
}
.r3 {
display: grid;
grid-template-columns: 2fr 1fr 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 1fr 2.5fr;
}
.r5 {
grid-template-columns: 5fr 3.5fr 1fr 3.5fr 5fr;
}
#KeySpace2 {
opacity: 1;
}
}
&.split_matrix {
.keymap-split-spacer {
display: block;
width: 2rem;
height: 2rem;
}
.keymap-stagger-split-spacer {
display: none;
}
.keymap-matrix-split-spacer {
display: block;
width: 2rem;
height: 2rem;
}
.r1,
.r2,
.r3,
.r4 {
display: flex;
justify-content: left;
margin-left: 4.51rem;
}
.r5 {
grid-template-columns: 6fr 2fr 1fr 2fr 6fr;
}
#KeyLeftBracket {
opacity: 0;
}
#KeyRightBracket {
opacity: 0;
}
#KeyQuote {
opacity: 0;
}
#KeySpace2 {
opacity: 1;
}
}
}