-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor all Sass color vars as CSS vars, Add *-dark.scss file counterparts, Add Bootstrap-Dark v4.6.1 and customize it,
- Loading branch information
1 parent
cde0dd1
commit 3144b2b
Showing
14 changed files
with
2,802 additions
and
134 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,2 +1,3 @@ | ||
frontend/vendor/ | ||
public/app/assets/stylesheets/foundation | ||
public/vendor/ |
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
117 changes: 117 additions & 0 deletions
117
public/app/assets/stylesheets/archivesspace/aspace-dark.scss
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 |
---|---|---|
@@ -0,0 +1,117 @@ | ||
/* | ||
* This file overrides some color rules from aspace.scss for | ||
* users who prefer dark mode. | ||
* | ||
* Color changes in aspace.scss should be considered here as well. | ||
*/ | ||
@media (prefers-color-scheme: dark) { | ||
body { | ||
color: var(--primary-text-color); | ||
background-color: var(--primary-bg-color); | ||
} | ||
|
||
a { | ||
color: var(--link-color); | ||
} | ||
a:hover, | ||
a:focus { | ||
color: var(--link-hover-color); | ||
} | ||
|
||
.tabbing.navbar-default { | ||
background-color: var(--primary-bg-color); | ||
border-color: transparent; | ||
} | ||
|
||
.more-facets { | ||
.btn { | ||
color: var(--secondary-text-color); | ||
} | ||
} | ||
|
||
.tabbing.nav-pills > li > a { | ||
background-color: var(--btn-primary-bg-color); | ||
} | ||
|
||
.tabbing.nav-pills > li > a.disabled-nav-pill:hover { | ||
color: var(--disabled-text-color); | ||
} | ||
|
||
#sidebar { | ||
border: 1px solid var(--secondary-border-color); | ||
} | ||
|
||
.recordrow { | ||
h3 { | ||
color: var(--primary-color); | ||
} | ||
} | ||
|
||
h3, | ||
.h3 { | ||
color: var(--primary-color); | ||
} | ||
|
||
.searchterm { | ||
color: var(--primary-bg-color); | ||
} | ||
|
||
button.accession { | ||
color: var(--accession-color); | ||
} | ||
button.digital_object { | ||
color: var(--collection-color); | ||
} | ||
button.object { | ||
color: var(--collection-color); | ||
} | ||
button.collection, | ||
button.resource { | ||
color: var(--collection-color); | ||
} | ||
button.subject { | ||
/* class subject also turns up in finding aid transforms */ | ||
color: var(--subject-color); | ||
} | ||
button.agent { | ||
color: var(--agent-color); | ||
} | ||
|
||
button.person { | ||
color: var(--agent-color); | ||
} | ||
button.record { | ||
color: var(--record-color); | ||
} | ||
button.classification { | ||
color: var(--repository-color); | ||
} | ||
|
||
span.required { | ||
color: var(--highlight); | ||
} | ||
|
||
.breadcrumb > li + li::before { | ||
color: var(--secondary-color); | ||
} | ||
|
||
.sorter select[name='sort'] { | ||
background: var(--secondary-bg-color); | ||
color: var(--secondary-text-color); | ||
border: 1px solid var(--secondary-border-color); | ||
border-radius: 4px; | ||
} | ||
.sorter select[name='sort']:focus { | ||
color: var(--primary-text-color); | ||
border-color: var(--primary-color); | ||
} | ||
|
||
@media (min-width: 992px) { | ||
#sidebar.resizable-sidebar { | ||
.resizable-sidebar-handle { | ||
background-color: var(--resizable-sidebar-handle-bg-color); | ||
border-right: 1px solid var(--secondary-border-color); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.