Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
FIX: Dark mode and updated SCSS compiler compatibility (discourse#7)
  • Loading branch information
pmusaraj authored Feb 2, 2021
commit 363401c77c330602f13c741c1357f1e7df00b402
25 changes: 12 additions & 13 deletions common/common.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
@import "theme_variables";

.b-header {

.contents {
margin: 8px 0;
}
Expand All @@ -25,15 +22,16 @@
.nav-pills {
margin-bottom: 0;
> li > a {
color: $secondary;
color: var(--secondary);
line-height: 22px;
&:hover {
color: $quaternary;
background-color: dark-light-diff($quaternary, $tertiary, -70%, 70%);
color: var(--quaternary);
background-color: var(quaternary-low);
}
&.active > a, > a.active {
color: $secondary;
background-color: $quaternary;
&.active > a,
> a.active {
color: var(--secondary);
background-color: var(--quaternary);
}
}
}
Expand All @@ -53,7 +51,7 @@
float: left;
list-style: none;
}
a, [class^="fa fa-"] {
a {
width: 28px;
height: 28px;
font-size: 16px;
Expand All @@ -62,7 +60,7 @@
margin: 2px;
}
.rtl & {
margin: 0 5px 0 0;
margin: 0 5px 0 0;
> li {
float: right;
}
Expand All @@ -71,8 +69,9 @@

.panel > ul.icons {
float: right;
a, [class^="fa fa-"] {
color: $secondary;
a,
.d-icon {
color: var(--secondary);
}
.rtl & {
float: left;
Expand Down
8 changes: 3 additions & 5 deletions desktop/desktop.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
@import "theme_variables";

.b-header {
width: 100%;
background-color: $tertiary;
background-color: var(--tertiary);
height: 48px;
margin-bottom: 0;

.title {
float: left;
margin-right: 24px;
a {
color: $secondary;
color: var(--secondary);
}
&:visited {
color: $secondary;
color: var(--secondary);
}
.rtl & {
float: right;
Expand Down
9 changes: 5 additions & 4 deletions mobile/mobile.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
.b-header {

.title {
padding: 0.5em;
a {
color: $tertiary;
color: var(--tertiary);
}
&:visited {
color: $tertiary;
color: var(--tertiary);
}
}

Expand All @@ -28,4 +27,6 @@
}
}

.profiler-results { display: none ; }
.profiler-results {
display: none;
}