Dark mode updates

This commit is contained in:
Drew DeVault 2020-12-15 14:12:17 -05:00
parent b1229a1160
commit 8ace8342d7
1 changed files with 132 additions and 2 deletions

View File

@ -3,7 +3,6 @@
.header-extension {
margin-top: -1rem;
margin-bottom: 1rem;
background: #ddd;
}
.file-list {
@ -20,11 +19,15 @@
.lines {
grid-column-start: 1;
grid-row-start: 1;
border-right: 1px solid #444;
text-align: right;
padding-left: 0.5rem;
padding-right: 0.5rem;
background: #eee;
border-right: 1px solid #444;
@media(prefers-color-scheme: dark) {
background: lighten($gray-900, 5);
}
a:target::before, a.selected::before {
display: block;
@ -128,3 +131,130 @@
padding: .2rem .5rem;
}
}
@media(prefers-color-scheme: dark) {
.ace_editor.form-control:active {
background: #343a40;
}
.ace_editor .ace_gutter {
background: $gray-900;
color: #8F908A
}
.ace_editor .ace_print-margin {
width: 1px;
background: #555651
}
.ace_editor {
color: #F8F8F2
}
.ace_editor .ace_cursor {
color: #F8F8F0
}
.ace_editor .ace_marker-layer .ace_selection {
background: #49483E
}
.ace_editor.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0px $gray-900;
}
.ace_editor .ace_marker-layer .ace_step {
background: rgb(102, 82, 0)
}
.ace_editor .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid #49483E
}
.ace_editor .ace_marker-layer .ace_active-line {
background: #202020
}
.ace_editor .ace_gutter-active-line {
background-color: #272727
}
.ace_editor .ace_marker-layer .ace_selected-word {
border: 1px solid #49483E
}
.ace_editor .ace_invisible {
color: #52524d
}
.ace_editor .ace_entity.ace_name.ace_tag,
.ace_editor .ace_keyword,
.ace_editor .ace_meta.ace_tag,
.ace_editor .ace_storage {
color: #F92672
}
.ace_editor .ace_punctuation,
.ace_editor .ace_punctuation.ace_tag {
color: #fff
}
.ace_editor .ace_constant.ace_character,
.ace_editor .ace_constant.ace_language,
.ace_editor .ace_constant.ace_numeric,
.ace_editor .ace_constant.ace_other {
color: #AE81FF
}
.ace_editor .ace_invalid {
color: #F8F8F0;
background-color: #F92672
}
.ace_editor .ace_invalid.ace_deprecated {
color: #F8F8F0;
background-color: #AE81FF
}
.ace_editor .ace_support.ace_constant,
.ace_editor .ace_support.ace_function {
color: #66D9EF
}
.ace_editor .ace_fold {
background-color: #A6E22E;
border-color: #F8F8F2
}
.ace_editor .ace_storage.ace_type,
.ace_editor .ace_support.ace_class,
.ace_editor .ace_support.ace_type {
font-style: italic;
color: #66D9EF
}
.ace_editor .ace_entity.ace_name.ace_function,
.ace_editor .ace_entity.ace_other,
.ace_editor .ace_entity.ace_other.ace_attribute-name,
.ace_editor .ace_variable {
color: #A6E22E
}
.ace_editor .ace_variable.ace_parameter {
font-style: italic;
color: #FD971F
}
.ace_editor .ace_string {
color: #E6DB74
}
.ace_editor .ace_comment {
color: #75715E
}
.ace_editor .ace_indent-guide {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y
}
}