Minify CSS file
Manual minified the CSS file, moving bits around for correct cascading, and removing un-needed spacing, trailing ;, etc. whilst still keeping the stylesheet readable, and workable.master
parent
c0b2baea41
commit
c2fb8a10f4
@ -1,134 +1,73 @@
|
|||||||
html, body {height: 100%;}
|
html,body { height:100% }
|
||||||
html{font-size: 14px;}
|
html { font-size:14px }
|
||||||
body{
|
body {
|
||||||
margin:0.2rem auto;
|
margin:.2rem;
|
||||||
max-width:48rem;
|
max-width:48rem;
|
||||||
padding:0 .62rem;
|
padding:0 .62rem;
|
||||||
font:1.2rem/1.62 sans-serif;
|
font:1.2rem/1.62 sans-serif
|
||||||
}
|
|
||||||
h1,h2,h3,h4,h5,h6 {
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
header h1{
|
|
||||||
margin-top: 1.4rem;
|
|
||||||
margin-bottom: 1.2rem;
|
|
||||||
}
|
|
||||||
a{
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
a:link, a:visited {color:#087ca7;}
|
|
||||||
a:hover, a:visited:hover {color:#09b2dc;}
|
|
||||||
ul{
|
|
||||||
padding-left: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
list-style-position: inside;
|
|
||||||
}
|
|
||||||
li > ul{
|
|
||||||
margin-left: 1em;
|
|
||||||
}
|
|
||||||
footer p{
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
pre{
|
nav>a {
|
||||||
background-color: #191919;
|
padding:.2rem 0;
|
||||||
color: white;
|
display:block;
|
||||||
white-space: pre-wrap;
|
border-top:1px dotted #000
|
||||||
overflow-x: auto;
|
|
||||||
padding: 12px;
|
|
||||||
}
|
}
|
||||||
|
nav>a:first-child {border:none}
|
||||||
|
|
||||||
/* Table Design */
|
h1,h2,h3,h4,h5,h6 { line-height:1 }
|
||||||
table{
|
header h1 { margin: 1.4rem auto 1.2rem }
|
||||||
text-align: left;
|
|
||||||
width: 100%;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
td, th{
|
|
||||||
border: 1px solid #222;
|
|
||||||
padding: 9px 6px;
|
|
||||||
}
|
|
||||||
th{
|
|
||||||
padding: 12px;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
thead th{ background-color: #191919; }
|
|
||||||
tbody th{ background-color: #292929; }
|
|
||||||
|
|
||||||
tr:nth-child(even){ background-color: #FEFEFE; }
|
a { text-decoration:none }
|
||||||
tr:hover{ background-color: #DEDEDE; }
|
a:link,a:visited { color:#087CA7 }
|
||||||
|
a:hover,a:visited:hover { color:#09B2DC }
|
||||||
|
|
||||||
/* Special Design */
|
ul {
|
||||||
.tag{
|
padding-left:0; margin-left:0;
|
||||||
font-size: 0.8rem;
|
list-style-position:inside
|
||||||
padding: 0.2rem;
|
|
||||||
border-radius: 0.33rem;
|
|
||||||
background-color: #191919;
|
|
||||||
color: white;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
|
ul li{ margin: 0.35rem }
|
||||||
|
li>ul { margin-left:1em }
|
||||||
|
|
||||||
/*
|
.tag {
|
||||||
* Flex is only there to put the footer at the bottom.
|
font-size:.8rem;
|
||||||
* Not actually needed. BLOAT!!
|
padding:.2rem;border-radius:.33rem;
|
||||||
*/
|
background-color:#191919;color:#FFF;
|
||||||
body {
|
vertical-align:middle
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
main{
|
|
||||||
flex: 1 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark){
|
pre{
|
||||||
body {color:#fff;background:#191919;}
|
background-color: #191919;color: #FFF;
|
||||||
a:link, a:visited {color:#9cf;}
|
white-space: pre-wrap;overflow-x: auto;
|
||||||
a:hover, a:visited:hover {color:#DA4167;}
|
padding: 12px;
|
||||||
.tag{background-color:white; color:black;}
|
|
||||||
pre{ background-color:#D9D9E2; color: #191919;}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print{
|
table{text-align: left;width: 100%;border-collapse: collapse}
|
||||||
body{
|
td, th{border: 1px solid #222;padding: 9px 6px}
|
||||||
max-width:none;
|
th{padding: 12px;color: white}
|
||||||
}
|
thead th{ background-color: #191919 }
|
||||||
}
|
tbody th{ background-color: #292929 }
|
||||||
|
tr:nth-child(even){ background-color: #FEFEFE }
|
||||||
|
tr:hover{ background-color: #DEDEDE }
|
||||||
|
|
||||||
/* For Media over the mobile view */
|
footer p { margin:0 }
|
||||||
@media screen and (min-width: 601px){
|
body {
|
||||||
nav>a{
|
display:-webkit-flex;display:-ms-flexbox;display:flex;
|
||||||
margin-left: 2rem;
|
flex-direction:column
|
||||||
}
|
|
||||||
nav>a:first-child{
|
|
||||||
padding: 1rem 0;
|
|
||||||
padding-left: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
main { flex:1 0 auto }
|
||||||
|
|
||||||
/* For Media under the mobile view */
|
@media print {body {max-width:none}}
|
||||||
@media screen and (max-width: 600px){
|
|
||||||
body{
|
|
||||||
margin: 0.2rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
nav>a{
|
|
||||||
padding: 0.2rem 0;
|
|
||||||
display: block;
|
|
||||||
border-top: 1px dotted black;
|
|
||||||
}
|
|
||||||
nav>a:first-child{
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
ul li{
|
|
||||||
margin: 0.35rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 600px) and (prefers-color-scheme: dark){
|
@media (min-width: 600px) {
|
||||||
nav>a{
|
body { margin:.2rem auto; }
|
||||||
border-color: white;
|
nav>a { margin-left:2rem; padding: auto; display: inline; border: none }
|
||||||
}
|
nav>a:first-child { padding:1rem 0; padding-left:0; margin-left:0 }
|
||||||
|
ul li{ margin: auto }
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body { color:#FFF; background:#191919 }
|
||||||
|
a:link,a:visited {color:#9CF}
|
||||||
|
a:hover,a:visited:hover {color:#DA4167}
|
||||||
|
nav>a { border-color:#FFF }
|
||||||
|
.tag {background-color:#FFF;color:#000}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue