her.esy.fun/src/css/min.css

70 lines
1.3 KiB
CSS
Raw Normal View History

2019-11-22 17:02:42 +00:00
/* Fonts */
2019-11-28 16:56:57 +00:00
html,body {
2019-11-22 17:02:42 +00:00
font: 16px/1.4 sans-serif;
line-height: 1.5em;
2019-11-28 16:56:57 +00:00
margin:0;
padding:0;
2019-11-22 17:02:42 +00:00
}
pre, pre code {
line-height: 1em;
2019-11-28 16:56:57 +00:00
font-size: .8em;
2019-11-22 17:02:42 +00:00
}
2019-11-28 16:56:57 +00:00
img { width: 100%; }
label {color:#b56;}
label:hover { cursor:pointer; }
2019-11-27 23:28:10 +00:00
#content,.content {
max-width: 48em;
padding: 0 1em;
margin: 0 auto;
2019-11-22 17:02:42 +00:00
}
2019-11-27 23:28:10 +00:00
pre {
2019-11-28 16:56:57 +00:00
border: dashed 1px;
padding: 1ex;
2019-11-27 23:28:10 +00:00
max-width: 100%;
overflow-x: scroll;
overflow-y: hidden;
2019-11-22 17:02:42 +00:00
}
2019-11-28 16:56:57 +00:00
body > input {
display:none;
2019-11-22 17:02:42 +00:00
}
2019-11-28 16:56:57 +00:00
.main {
padding-top: 1em;
min-height:calc(100vh - 2.5em);
2019-11-22 17:02:42 +00:00
}
:root {
2019-11-28 16:56:57 +00:00
--b2: #fff;
--b3: #fffa;
--y: #ca2;
--o: #a65;
--r: #b56;}
/* --------------------------------------------------------------------------- */
/* Default color theme */
/* colors theme */
2019-11-22 17:02:42 +00:00
/* Dark themes soften and darken images */
@media (prefers-color-scheme: dark) {
2019-11-28 16:56:57 +00:00
body {
background: #000;
color: #bbb;
2019-11-27 23:28:10 +00:00
}
2019-11-28 16:56:57 +00:00
a { color: #8cf }
a:visited { color: #fcf }
2019-11-22 17:02:42 +00:00
img {
2019-11-28 16:56:57 +00:00
filter: brightness(0.8);
2019-11-22 17:02:42 +00:00
}
}
2019-11-28 16:56:57 +00:00
/* Manually checked colortheme */
#d:checked ~ * {
background: #000;
color: #bbb;
2019-11-22 17:02:42 +00:00
}
2019-11-28 16:56:57 +00:00
#d:checked ~ * a { color: #8cf; }
#d:checked ~ * a:visited { color: #fcf; }
2019-11-22 17:02:42 +00:00
/* --------------------------------------------------------------------------- */
/* Light theme selected */
2019-11-28 16:56:57 +00:00
#l:checked ~ * {
background: #FFF;
color: #333;
2019-11-22 17:02:42 +00:00
}