css: improve code readibility

This commit is contained in:
Kazhnuz 2018-10-03 14:49:15 +02:00
parent 9e5b87d79c
commit 8a05c4364a

View file

@ -1,3 +1,5 @@
/* ------------------ FONT LOADING ------------------- */
@font-face { @font-face {
font-family: 'ClearSans'; font-family: 'ClearSans';
src: url('../fonts/ClearSans-Light.eot'); src: url('../fonts/ClearSans-Light.eot');
@ -43,12 +45,14 @@
font-style: italic; font-style: italic;
} }
/* ------------------ GLOBAL STYLE ------------------- */
body { body {
font-family: ClearSans, sans-serif; font-family: ClearSans, sans-serif;
text-align:left; text-align: left;
font-size: 4mm; font-size: 4mm;
line-height: 1.5em; line-height: 1.5em;
color: #444; color: #444;
font-weight: 400; font-weight: 400;
} }
@ -61,107 +65,90 @@ em {
} }
a { a {
color:#2484c1; color:#2484c1;
text-decoration:none; text-decoration:none;
} }
h1, h2, h3, h4, h5, h6, h7 { ::selection { background: #2484c1; color: #fff; }
::-moz-selection { background: #2484c1; color: #fff; }
text-align:left; /* ------------------ TITLES ------------------- */
h1, h2, h3, h4, h5, h6, h7 {
text-align: left;
font-size: 1em; font-size: 1em;
line-height: 1.5em; line-height: 1.5em;
padding:0px; padding:0px;
margin:0px; margin:0px;
font-weight:400; font-weight:400;
} }
h1 { h1 {
text-align: left; text-align: left;
font-size: 2em; font-size: 2em;
line-height: 1.5em; line-height: 1.5em;
padding:0.2em; padding:0.2em;
margin-bottom:1em; margin-bottom:1em;
font-weight:600; font-weight:600;
} }
h2 { h2 {
text-align: left; text-align: left;
font-size: 1.8em; font-size: 1.8em;
line-height: 1.5em; line-height: 1.5em;
padding:0.1em; padding:0.1em;
/*margin-bottom:0.5em;*/
font-weight:600; font-weight:600;
} }
h3 { h3 {
text-align: left;
text-align:left;
font-size: 1.6em; font-size: 1.6em;
line-height: 1.5em; line-height: 1.5em;
padding:0.1em; padding:0.1em;
/*margin-bottom:0.5em;*/
font-weight:600; font-weight:600;
} }
h4 { h4 {
text-align: left;
text-align:left;
font-size: 1.4em; font-size: 1.4em;
line-height: 1.5em; line-height: 1.5em;
padding:0.1em; padding:0.1em;
/*margin-bottom:0.5em;*/
font-weight:600; font-weight:600;
} }
h5 { h5 {
text-align: left;
text-align:left;
font-size: 1.4em; font-size: 1.4em;
line-height: 1.5em; line-height: 1.5em;
padding:0.1em; padding:0.1em;
/*margin-bottom:0.5em;*/
font-weight:400; font-weight:400;
} }
h6 { h6 {
text-align: left;
text-align:left;
font-size: 1.2em; font-size: 1.2em;
line-height: 1.5em; line-height: 1.5em;
padding:0.1em; padding:0.1em;
/*margin-bottom:0.5em;*/
font-weight:400; font-weight:400;
} }
/* ------------------ HR ------------------- */
hr { hr {
border-top: 0px;
border-top:0px; border-left: 0px;
border-left:0px; border-right: 0px;
border-right:0px; border-bottom: 1px;
border-bottom:1px; border-color: rgba(1,1,1,0.15);
border-color:rgba(1,1,1,0.15); border-style: solid;
border-style:solid; margin: 1.6em;
margin:1.6em;
} }
/* ------------------ SPECIAL STYLING ------------------- */
.time { .time {
font-style: italic;
font-style:italic; text-align: right;
text-align:right; width: 100%;
width:100%; display: block;
display:block;
} }
::selection { background: #2484c1; color: #fff; }
::-moz-selection { background: #2484c1; color: #fff; }