simpletheme/static/css/style.css
J S 317f064ac2
feat[css,js]: implemented auto select
I implemented dark-light auto select in the js button.
I also corrected the baseof layout to put the selector in the right place.
2023-11-13 21:01:38 -05:00

131 lines
1.7 KiB
CSS

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.5em;
font-size: 1.1em;
color: #222;
max-width: 70%;
padding: 2rem;
margin: auto;
background: #fafafa;
overscroll-behavior-y: none;
}
body.dark{
color: #DDD;
background: #151515;
}
body.dark > *{
color: #DDD;
}
img {
max-width: 100%; }
a {
color: #0074D9;
}
body.dark a {
color: #ff8b26;
}
h1 {
font-size: 1.6em; }
h2 {
font-size: 1.2em; }
h3 {
font-size: 1.1em; }
.muted {
color: #555;
text-decoration: none;
}
body.dark .muted {
color: #aaa;
text-decoration: none;
}
.small {
font-size: .8em; }
hr {
border: 0px;
border: 1px solid #eee;
}
highlight {
}
pre code span span{
word-break: break-all;
white-space: pre-wrap;
}
.taglist {
}
code.has-jax {
-webkit-font-smoothing: antialiased;
background: inherit !important;
border: none !important;
font-size: 100%;
}
alert {
position: relative;
padding: 0rem 1rem;
margin-bottom: 1rem;
border: 1px solid transparent;
}
.alert-warning {
border-style: solid;
border-color: #ed6a5a;
border-width: 0 0 0 4px;
padding-left: 1rem
}
.alert-heading {
font-family: sans-serif;
font-size: 1.5rem;
color: #ed6a5a;
weight: bold;
}
#mode-selector {
position: relative;
display: flex;
border: 3px solid transparent;
}
#mode-selector button {
-moz-appearance: none;
appearance: none;
border: none;
background-color: transparent;
padding: 0.5em;
margin: 0;
line-height: 1;
font-family: Lucida Sans Unicode, Source Sans Pro, Helvetica, Trebuchet MS, sans-serif;
font-size: 0.99rem;
text-align: center;
color: #000;
position: relative;
}
#mode-selector button:hover,
#mode-selector button.selected {
border-bottom: solid;
}
#mode-selector.dark button {
color: #FFF
}