mirror of
https://github.com/papercss/papercss
synced 2026-03-14 14:35:51 +01:00
Set html background-color to match dark and light theme
This commit is contained in:
parent
9be4d55547
commit
55451ef253
5 changed files with 12 additions and 7 deletions
7
dist/paper.css
vendored
7
dist/paper.css
vendored
|
|
@ -453,6 +453,11 @@ html {
|
|||
}
|
||||
|
||||
/* stylelint-enable */
|
||||
html {
|
||||
background-color: #41403e;
|
||||
background-color: var(--main-background);
|
||||
}
|
||||
|
||||
/* Layout styling */
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
|
|
@ -2029,6 +2034,8 @@ textarea:focus {
|
|||
border-width: 2px;
|
||||
}
|
||||
select {
|
||||
background-color: #41403e;
|
||||
background-color: var(--main-background);
|
||||
height: 2.35rem;
|
||||
}
|
||||
|
||||
|
|
|
|||
2
dist/paper.min.css
vendored
2
dist/paper.min.css
vendored
File diff suppressed because one or more lines are too long
6
docs/static/assets/demo.css
vendored
6
docs/static/assets/demo.css
vendored
|
|
@ -1,9 +1,3 @@
|
|||
body {
|
||||
background-image: url("/img/geometry2.png")
|
||||
}
|
||||
html.dark body {
|
||||
background: #41403e;
|
||||
}
|
||||
#top {
|
||||
max-width: 1440px;
|
||||
}
|
||||
|
|
|
|||
3
src/_default_background_color.scss
Normal file
3
src/_default_background_color.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
html {
|
||||
@include color('background-color', 'main-background');
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
@import 'core/config';
|
||||
@import 'core/mixins';
|
||||
@import 'core/reset';
|
||||
@import 'default_background_color';
|
||||
|
||||
/* Layout styling */
|
||||
@import 'layout/container';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue