-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dark theme to the add-on settings
- Loading branch information
1 parent
f1be2ed
commit 8a6c001
Showing
6 changed files
with
196 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,183 @@ | ||
:root { | ||
--primary-color: #3273dc; | ||
--font-color: #4a4a4a; | ||
--font-color-focus: #363636; | ||
--bg-color: #fff; | ||
--bg-color-alternate: #f5f5f5; | ||
--bg-color-notification: var(--bg-color-alternate); | ||
--bg-color-notification-global: var(--bg-color-alternate); | ||
--bg-color-box: var(--bg-color); | ||
--theme-switch-color: #ffa7c4; | ||
} | ||
|
||
[data-theme="dark"] { | ||
--primary-color: #209cee; | ||
--font-color: #fff; | ||
--font-color-focus: #f3f3f3; | ||
--bg-color: #2d2d2d; | ||
--bg-color-alternate: #4a4a4a; | ||
--bg-color-notification: var(--bg-color-alternate); | ||
--bg-color-notification-global: var(--bg-color-alternate); | ||
--bg-color-box: var(--bg-alternate); | ||
--theme-switch-color: #ffa7c4; | ||
} | ||
|
||
html { | ||
background-color: var(--bg-color); | ||
} | ||
|
||
body { | ||
padding: 2rem; | ||
font-family: "Open Sans", sans-serif; | ||
padding: 2rem; | ||
font-family: "Open Sans", sans-serif; | ||
color: var(--font-color); | ||
} | ||
|
||
strong { | ||
color: var(--font-color); | ||
} | ||
|
||
a:hover { | ||
color: var(--font-color-focus); | ||
} | ||
|
||
.title { | ||
color: var(--font-color-focus); | ||
} | ||
|
||
.subtitle { | ||
color: var(--font-color); | ||
} | ||
|
||
.notification { | ||
background-color: var(--bg-color-notification); | ||
} | ||
|
||
.notification.notification-global { | ||
background-color: var(--bg-color-notification-global); | ||
} | ||
|
||
#tab_container .container_item { | ||
display: none; | ||
display: none; | ||
} | ||
|
||
#tab_container .container_item.is-active { | ||
display: block; | ||
display: block; | ||
} | ||
|
||
.box { | ||
background-color: var(--bg-color-box); | ||
color: var(--font-color); | ||
} | ||
|
||
.field, article { | ||
margin-top: 1.5em; | ||
margin-top: 1.5em; | ||
} | ||
|
||
.modal-card-body p { | ||
margin-top: 2em; | ||
margin-top: 2em; | ||
} | ||
|
||
.divider { | ||
margin-top: 2em; | ||
margin-bottom: 2em; | ||
margin-top: 2em; | ||
margin-bottom: 2em; | ||
} | ||
|
||
.label { | ||
color: var(--font-color-focus); | ||
} | ||
|
||
.select-label { | ||
display: block; | ||
margin-bottom: 0.5em; | ||
display: block; | ||
margin-bottom: 0.5em; | ||
} | ||
|
||
.disabled-item { | ||
opacity: 0.65; | ||
opacity: 0.65; | ||
} | ||
|
||
.tabs.is-small-medium{ | ||
font-size: 1rem | ||
font-size: 1rem | ||
} | ||
|
||
.tabs a { | ||
color: var(--font-color); | ||
} | ||
|
||
.tabs.is-boxed li.is-active a { | ||
background-color: var(--bg-color); | ||
color: var(--primary-color); | ||
} | ||
|
||
.tabs.is-boxed a { | ||
color: var(--font-color); | ||
} | ||
|
||
.tabs.is-boxed a:hover { | ||
background-color: var(--bg-color-alternate); | ||
color: var(--font-color); | ||
} | ||
|
||
.tab-icon { | ||
font-size: 1.4rem; | ||
margin-right: 0.2em !important; | ||
font-size: 1.4rem; | ||
margin-right: 0.2em !important; | ||
} | ||
|
||
.release-info { | ||
margin-right: 0.8rem; | ||
margin-right: 0.8rem; | ||
} | ||
|
||
.release-info:after { | ||
content: "\00A0\2197"; | ||
content: "\00A0\2197"; | ||
} | ||
|
||
.select select { | ||
background-color: var(--bg-color); | ||
color: var(--font-color); | ||
} | ||
|
||
.select select[disabled] { | ||
background-color: var(--bg-color-alternate); | ||
} | ||
|
||
.button.is-link.is-outlined:focus, .button.is-link.is-outlined:hover { | ||
background-color: var(--primary-color); | ||
border-color: var(--primary-color); | ||
color: white; | ||
} | ||
|
||
.button.is-link.is-outlined { | ||
background-color: transparent; | ||
border-color: var(--primary-color); | ||
color: var(--primary-color); | ||
} | ||
|
||
.select:not(.is-multiple):not(.is-loading)::after { | ||
border-color: var(--primary-color); | ||
} | ||
|
||
.select:not(.is-multiple):not(.is-loading):hover::after { | ||
border-color: var(--font-color); | ||
} | ||
|
||
/* ======================== */ | ||
/* ===== Theme switch ===== */ | ||
/* ======================== */ | ||
|
||
#theme-switch { | ||
padding-left: 3.5rem; | ||
} | ||
|
||
.theme-switch-icon { | ||
font-size: 1.6rem; | ||
} | ||
.theme-switch-icon.theme-switch-icon-left { | ||
padding-right: 0.3rem; | ||
} | ||
|
||
.theme-switch-wrapper { | ||
float:right; clear:right; | ||
} | ||
|
||
.switch[type="checkbox"] + label { | ||
padding-top: 0.45rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters