mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
95 lines
2.8 KiB
CSS
95 lines
2.8 KiB
CSS
/*================ GLOBAL COLORS ================*/
|
|
:root {
|
|
--accent-color: 38, 38, 38;
|
|
/* #262626 */
|
|
--secondary-accent-color: 140, 140, 140;
|
|
/* #8c8c8c */
|
|
--third-accent-color: 190, 190, 190;
|
|
/* #bebebe */
|
|
--light-color: 255, 255, 255;
|
|
/* #ffffff */
|
|
--dark-color: 15, 15, 15;
|
|
/* #0f0f0f */
|
|
--caption-min-color: 82, 82, 82;
|
|
/* #525252 */
|
|
--caption-max-color: 100, 100, 100;
|
|
/* #646464 */
|
|
--caption-close-color: 126, 126, 126;
|
|
/* #7e7e7e */
|
|
}
|
|
|
|
|
|
/*================ DARK MODE ================*/
|
|
:root:-moz-lwtheme-brighttext,
|
|
.sidebar-panel[lwt-sidebar-brighttext],
|
|
body[lwt-sidebar-brighttext] {
|
|
--main-bgcolor: var(--dark-color);
|
|
--transparent-bgcolor: var(--accent-color);
|
|
}
|
|
|
|
|
|
/*================== NEW TAB BG COLOR ==================*/
|
|
@media (prefers-color-scheme: dark) {
|
|
@-moz-document url("about:newtab"), url("about:home"), url("about:blank") {
|
|
body.activity-stream {
|
|
background-color: rgba(var(--dark-color), 1) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
@-moz-document url("about:newtab"), url("about:home"), url("about:blank") {
|
|
body.activity-stream {
|
|
background-color: rgba(var(--light-color), 1) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
/*================== SEARCH BAR ==================*/
|
|
#root .search-wrapper input {
|
|
transition: all 0.3s ease !important;
|
|
background: rgba(var(--accent-color), 0.2) var(--newtab-search-icon) 12px center no-repeat !important;
|
|
background-size: 20px !important;
|
|
border: 2px solid !important;
|
|
border-color: rgba(var(--accent-color), 0.3) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
#root .search-wrapper .search-inner-wrapper:hover input,
|
|
#root .search-wrapper .search-inner-wrapper:active input,
|
|
#root .search-wrapper input:focus {
|
|
border-color: rgba(var(--accent-color), 0.6) !important;
|
|
}
|
|
|
|
#root .search-wrapper .search-button,
|
|
#root .search-wrapper .search-button {
|
|
transition: all 0.3s ease !important;
|
|
}
|
|
|
|
#root .search-wrapper .search-button:focus,
|
|
#root .search-wrapper .search-button:hover {
|
|
background-color: rgba(var(--accent-color), 1) !important;
|
|
}
|
|
|
|
/*================== SEARCH BAR RESULTS ==================*/
|
|
.contentSearchSuggestionTable .contentSearchSuggestionsContainer,
|
|
.contentSearchSuggestionTable .contentSearchHeader {
|
|
background-color: rgba(var(--accent-color), 1) !important;
|
|
}
|
|
|
|
.contentSearchSuggestionTable .contentSearchSuggestionRow.selected,
|
|
.contentSearchSuggestionTable .contentSearchOneOffItem.selected {
|
|
background-color: rgba(var(--secondary-accent-color), 0.2) !important;
|
|
}
|
|
|
|
.contentSearchSuggestionTable .contentSearchHeader,
|
|
.contentSearchSuggestionTable .contentSearchSettingsButton,
|
|
.contentSearchSuggestionTable .contentSearchOneOffsTable {
|
|
border-color: rgba(var(--secondary-accent-color), 0.2) !important;
|
|
}
|
|
|
|
.contentSearchSuggestionTable {
|
|
box-shadow: none !important;
|
|
border: 2px solid rgba(var(--secondary-accent-color), 0.2) !important;
|
|
border-radius: 3px !important;
|
|
} |