Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/css/ColorPicker.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.colorPickerButton {
border: 2px solid white;
border: 2px solid var(--color-button-border-color);
border-radius: 2px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
cursor: pointer;
Expand All @@ -19,21 +19,21 @@
}

.glassPanel {
background-color: rgba(28, 28, 28, 0.8);
background-color: var(--overlay-background-color);
backdrop-filter: blur(5px);
z-index: 1;
position: absolute;
margin-top: 5px;
margin-left: -113.5px;
border: 1px solid rgba(255, 255, 255, 0.25);
border: 1px solid var(--overlay-border-color);
box-shadow: 0 5px 10px 0px rgba(28, 28, 28, 0.8);
}

.hr {
margin: 0;
height: 1px;
border-width: 0px;
background: rgba(255, 255, 255, 0.25);
background: var(--overlay-border-color);
}

.gradientSelector {
Expand Down Expand Up @@ -143,13 +143,13 @@
/* Hack for LSO to prevent global style */
all: revert;
appearance: none;
accent-color: white;
accent-color: var(--overlay-input-text-color);
width: calc(100% - 2px);
}
}

.colorPreview {
border: 1px solid rgba(255, 255, 255, 0.25);
border: 1px solid var(--overlay-border-color);
border-radius: 50%;
background: white;
position: relative;
Expand All @@ -169,7 +169,7 @@
flex-direction: column;
gap: 5px;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
color: var(--overlay-muted-text-color);
align-items: center;
flex: 1;
width: 0;
Expand All @@ -182,10 +182,10 @@
font-family: inherit;
font-size: 14px;
text-align: center;
color: white;
color: var(--overlay-input-text-color);
font-variant-numeric: tabular-nums;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.25);
border: 1px solid var(--overlay-input-border-color);
border-radius: 5px;
padding: 0;
}
Expand Down Expand Up @@ -220,7 +220,7 @@
&:hover {
/* Hack for LSO to prevent global button style */
background: revert;
border: 3px solid white;
border: 3px solid var(--overlay-input-text-color);
}

&:active {
Expand Down
11 changes: 6 additions & 5 deletions src/css/ContextMenu.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@

.panel {
z-index: 3;
background-color: rgba(28, 28, 28, 0.8);
background-color: var(--overlay-background-color);
backdrop-filter: blur(5px);
min-width: 100px;
padding: 4px 0;
border: 1px solid rgba(255, 255, 255, 0.25);
border: 1px solid var(--overlay-border-color);
border-radius: 9px;
box-shadow: 0 5px 10px 0px rgba(28, 28, 28, 0.8);
box-shadow: 0 5px 10px 0px var(--overlay-shadow-color);
display: flex;
flex-direction: column;
user-select: none;
text-align: left;
font-weight: initial;
color: var(--overlay-text-color);
}

.overlay {
Expand All @@ -33,13 +34,13 @@
margin: 0 4px;

&:hover {
background-color: rgba(255, 255, 255, 0.25);
background-color: var(--overlay-hover-color);
}
}

.hr {
height: 1px;
border-width: 0px;
background: rgba(255, 255, 255, 0.25);
background: var(--overlay-border-color);
margin: 4px 0;
}
10 changes: 5 additions & 5 deletions src/css/Dialog.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ dialog {
}

.dialog {
color: #eee;
background-color: rgba(28, 28, 28, 0.8);
color: var(--overlay-text-color);
background-color: var(--overlay-background-color);
backdrop-filter: blur(5px);
border: 2px solid rgba(255, 255, 255, 0.25);
border: 2px solid var(--overlay-border-color);
border-radius: 10px;
min-width: 225px;
display: flex;
Expand Down Expand Up @@ -54,9 +54,9 @@ dialog {

input {
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
border-bottom: 1px solid var(--overlay-input-border-color);
background: transparent;
color: white;
color: var(--overlay-input-text-color);
text-overflow: ellipsis;
font-family: "fira", sans-serif;
font-size: 16px;
Expand Down
2 changes: 1 addition & 1 deletion src/css/RunEditor.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,5 @@

.bestSegmentTime {
/* FIXME: important */
color: hsla(50, 100%, 50%, 1) !important;
color: var(--best-segment-color) !important;
}
4 changes: 3 additions & 1 deletion src/css/SplitsSelection.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@

&.selected {
background: var(--selected-row-color);
color: var(--selected-row-text-color);
}

&.selected .splitsRowButtons button {
opacity: 70%;
color: var(--selected-row-text-color);
}

:global(.is-mobile) & {
Expand All @@ -81,7 +83,7 @@
opacity: 50%;
margin: 0;
transition: 0.3s;
color: white;
color: var(--main-text-color);
padding: 0;

&:hover {
Expand Down
10 changes: 5 additions & 5 deletions src/css/Switch.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

span {
position: absolute;
background-color: #ffffff20;
background-color: var(--switch-track-color);
border-radius: 20px;
top: 0;
left: 0;
Expand All @@ -23,7 +23,7 @@
}

span::before {
background-color: white;
background-color: var(--switch-thumb-color);
border-radius: 50%;
content: "";
position: absolute;
Expand All @@ -35,15 +35,15 @@
}

&:hover input + span {
background-color: #ffffff40;
background-color: var(--switch-track-hover-color);
}

&:hover input:checked + span {
background-color: #ffffff80;
background-color: var(--switch-track-checked-hover-color);
}

input:checked + span {
background-color: #ffffff60;
background-color: var(--switch-track-checked-color);
}

input:checked + span::before {
Expand Down
30 changes: 26 additions & 4 deletions src/css/Table.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
input.textBox {
font-family: inherit;
background: transparent;
color: white;
color: var(--input-text-color);
text-overflow: ellipsis;
font-size: 15px;
border: none;
border-bottom: 1px solid hsla(0, 0%, 100%, 0.25);
border-bottom: 1px solid var(--input-border-color);
}

input[Type="text"] {
Expand All @@ -64,17 +64,27 @@

select {
background: var(--dark-row-color)
url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,4 2,4 5,7 8,4 10,4 5,9' fill='%23fff'/%3E%3C/svg%3E")
url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,4 2,4 5,7 8,4 10,4 5,9' fill='%23eeeeee'/%3E%3C/svg%3E")
no-repeat right 4px center;
font-size: 15px;
border: 1px solid var(--border-color);
color: white;
color: var(--input-text-color);
text-overflow: ellipsis;
font-family: inherit;
padding-left: 4px;
padding-right: 20px;
border-radius: 0;
appearance: none;

:root[data-theme="light"] & {
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,4 2,4 5,7 8,4 10,4 5,9' fill='%232b3442'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: light) {
:root:not([data-theme]) & {
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,4 2,4 5,7 8,4 10,4 5,9' fill='%232b3442'/%3E%3C/svg%3E");
}
}
}
}

Expand All @@ -86,6 +96,18 @@

.selected {
background: var(--selected-row-color) !important;
color: var(--selected-row-text-color);
--best-segment-color: var(--best-segment-selected-color);

input.textBox,
select,
a {
color: var(--selected-row-text-color);
}

input.textBox {
border-bottom-color: rgba(255, 255, 255, 0.5);
}
}

.settingsTable {
Expand Down
16 changes: 8 additions & 8 deletions src/css/TextBox.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

> input {
font-size: 18px;
padding: calc(14px + var(--ui-margin)) 0
calc(var(--ui-margin) / 2) calc(var(--ui-margin) / 2);
padding: calc(14px + var(--ui-margin)) 0 calc(var(--ui-margin) / 2)
calc(var(--ui-margin) / 2);
display: block;
width: 100%;
border: none;
background: transparent;
color: white;
color: var(--input-text-color);
font-family: inherit;
}

Expand All @@ -19,7 +19,7 @@
}

> label {
color: hsla(50, 0%, 75%, 1);
color: var(--field-label-color);
font-size: 14px;
font-weight: normal;
position: absolute;
Expand All @@ -30,11 +30,11 @@
}

> input:focus ~ label {
color: hsla(50, 100%, 50%, 1);
color: var(--field-label-focus-color);
}

&.invalid > input:focus ~ label {
color: hsla(0, 100%, 50%, 1);
color: var(--field-label-invalid-color);
}

> .bar {
Expand All @@ -50,7 +50,7 @@
width: 0;
bottom: 0;
position: absolute;
background: hsla(50, 100%, 50%, 1);
background: var(--field-highlight-color);
transition: 0.2s ease all;
}

Expand All @@ -64,7 +64,7 @@

&.invalid > .bar:before,
&.invalid > .bar:after {
background: hsla(0, 100%, 50%, 1);
background: var(--field-highlight-invalid-color);
}

> input:focus ~ .bar:before,
Expand Down
2 changes: 1 addition & 1 deletion src/css/TimerView.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
background: var(--button-middle-color);
border: 1px solid var(--border-color);
border-radius: 5px;
color: white;
color: var(--button-text-color);
cursor: pointer;
font-family: "fira", sans-serif;
font-size: 20px;
Expand Down
6 changes: 4 additions & 2 deletions src/css/Toast.module.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
:global(.Toastify) {
.toastClass {
font-family: "fira", sans-serif;
background: rgba(28, 28, 28, 0.8) !important;
background: var(--overlay-background-color) !important;
backdrop-filter: blur(5px);
border: 2px solid rgba(255, 255, 255, 0.25) !important;
border: 2px solid var(--overlay-border-color) !important;
color: var(--overlay-text-color);
border-radius: 10px !important;
min-height: 48px !important;
padding-right: 28px;
Expand All @@ -24,5 +25,6 @@

.toastBody {
margin: 5px 5px 5px 5px !important;
color: var(--overlay-text-color);
}
}
6 changes: 3 additions & 3 deletions src/css/Tooltip.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
.tooltipText {
visibility: hidden;
width: 300px;
background-color: rgba(28, 28, 28, 0.8);
background-color: var(--overlay-background-color);
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.25);
color: #fff;
border: 1px solid var(--overlay-border-color);
color: var(--overlay-text-color);
text-align: center;
border-radius: 6px;
padding: var(--ui-margin);
Expand Down
Loading