Fixed the CSS to make it much more readable and predictable.
parent
d238c7e827
commit
f42bbc9ad5
|
@ -17,7 +17,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<span id="navbrand">Lijero</span>
|
<div id="navbrand">Lijero</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
<li>Music</li>
|
<li>Music</li>
|
||||||
|
|
264
res/common.css
264
res/common.css
|
@ -1,15 +1,51 @@
|
||||||
.metadata {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.metadata img {
|
|
||||||
width: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
display: block;
|
display: block;
|
||||||
|
margin: 0;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
margin: 0;
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 25px;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
color: #404040;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navbrand {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 50px;
|
||||||
|
color: black;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
article {
|
||||||
|
margin: auto;
|
||||||
|
line-height: 1.5em;
|
||||||
|
letter-spacing: .05em;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #303030;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
text-align: justify;
|
||||||
|
text-justify: distribute;
|
||||||
|
text-indent: 4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article h1 {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
article h2 {
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
article h3 {
|
||||||
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -21,19 +57,28 @@ a:hover {
|
||||||
color: #8080A0;
|
color: #8080A0;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav a {
|
||||||
max-width: 15%;
|
color: inherit;
|
||||||
font-weight: 400;
|
}
|
||||||
font-size: 25px;
|
|
||||||
letter-spacing: 2px;
|
.quote-content::before {
|
||||||
color: #404040;
|
content: url("/res/icon/double-quote-serif-left.svg");
|
||||||
float: left;
|
}
|
||||||
padding: 40px;
|
|
||||||
padding-right: 45px;
|
.quote-content {
|
||||||
padding-top: 20px;
|
font-style: italic;
|
||||||
margin-top: 10px;
|
}
|
||||||
border-style: solid;
|
|
||||||
border-width: 0 3px 0 0;
|
.quote-content::after {
|
||||||
|
content: url("/res/icon/double-quote-serif-right.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadata {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadata img {
|
||||||
|
width: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
@ -49,132 +94,75 @@ footer {
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a {
|
@media screen and (max-width: 600px) {
|
||||||
color: inherit;
|
article {
|
||||||
}
|
padding: 5px;
|
||||||
|
margin: 0;
|
||||||
nav span {
|
}
|
||||||
font-weight: bold;
|
|
||||||
padding-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul {
|
|
||||||
list-style-type: none;
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul li {
|
|
||||||
border-bottom: 1px solid #ccc;
|
|
||||||
padding: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul li:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
article{
|
|
||||||
min-width: 0em !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1200px) {
|
@media screen and (max-width: 1200px) {
|
||||||
nav {
|
nav {
|
||||||
text-align: center;
|
margin: auto;
|
||||||
margin: auto;
|
padding: 0;
|
||||||
float: none;
|
text-align: center;
|
||||||
padding: 0;
|
}
|
||||||
border: none;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
nav ul, nav li {
|
|
||||||
padding: 0;
|
|
||||||
list-style: none !important;
|
|
||||||
border: none !important;
|
|
||||||
}
|
|
||||||
nav li {
|
|
||||||
margin: 0;
|
|
||||||
float: center;;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
nav ul {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
article {
|
nav li {
|
||||||
padding: 5px !important;
|
margin: 0;
|
||||||
margin: 0 !important;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#navbrand {
|
|
||||||
font-size: 50px;
|
|
||||||
color: black;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
article {
|
|
||||||
color: #303030;
|
|
||||||
line-height: 1.5em;
|
|
||||||
letter-spacing: .05em;
|
|
||||||
font-family: sans-serif;
|
|
||||||
font-size: 18px;
|
|
||||||
margin: auto;
|
|
||||||
padding: 30px 80px;
|
|
||||||
min-width: 25em;
|
|
||||||
max-width: 30em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content {
|
|
||||||
min-width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (min-width: 1200px) {
|
|
||||||
.aside {
|
|
||||||
max-width: 50%;
|
|
||||||
position: relative;
|
|
||||||
left: 60%;
|
|
||||||
float: right;
|
|
||||||
display: inline;
|
|
||||||
margin-left: -50%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.quote-content {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.quote-content::before {
|
|
||||||
content: url("/res/icon/double-quote-serif-left.svg");
|
|
||||||
}
|
|
||||||
|
|
||||||
.quote-content::after {
|
|
||||||
content: url("/res/icon/double-quote-serif-right.svg");
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
text-align: justify;
|
|
||||||
text-justify: distribute;
|
|
||||||
text-indent: 4em;
|
|
||||||
}
|
|
||||||
|
|
||||||
article h1 {
|
|
||||||
font-size: 30px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 700px) {
|
@media screen and (min-width: 700px) {
|
||||||
article h1 {
|
article {
|
||||||
margin-left: -20px;
|
padding: 30px 80px;
|
||||||
}
|
min-width: 25em;
|
||||||
|
max-width: 30em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article h1 {
|
||||||
|
margin-left: -20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
article h2 {
|
@media screen and (min-width: 1200px) {
|
||||||
font-size: 25px;
|
nav {
|
||||||
|
max-width: 15%;
|
||||||
|
float: left;
|
||||||
|
padding: 20px 45px 40px 40px;
|
||||||
|
margin-top: 10px;
|
||||||
|
border-left: 3px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav span {
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav li {
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul li:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aside {
|
||||||
|
position: relative;
|
||||||
|
left: 60%;
|
||||||
|
float: right;
|
||||||
|
margin-left: 50%;
|
||||||
|
max-width: 50%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
article h3 {
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
article h1, h2, h3, h4, h5 {
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue