forked from jaspervdj/hakyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default CSS mobile-friendly (contribution by Iko)
- Loading branch information
Showing
1 changed file
with
114 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,141 @@ | ||
html { | ||
font-size: 62.5%; | ||
} | ||
|
||
body { | ||
color: black; | ||
font-size: 16px; | ||
margin: 0px auto 0px auto; | ||
width: 600px; | ||
font-size: 1.6rem; | ||
color: #000; | ||
} | ||
|
||
header { | ||
border-bottom: 2px solid black; | ||
margin-bottom: 30px; | ||
padding: 12px 0px 12px 0px; | ||
border-bottom: 0.2rem solid #000; | ||
} | ||
|
||
nav { | ||
text-align: right; | ||
text-align: right; | ||
} | ||
|
||
nav a { | ||
color: black; | ||
font-size: 18px; | ||
font-weight: bold; | ||
margin-left: 12px; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
font-size: 1.8rem; | ||
font-weight: bold; | ||
color: black; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
} | ||
|
||
footer { | ||
border-top: solid 2px black; | ||
color: #555; | ||
font-size: 12px; | ||
margin-top: 30px; | ||
padding: 12px 0px 12px 0px; | ||
text-align: right; | ||
margin-top: 3rem; | ||
padding: 1.2rem 0; | ||
border-top: 0.2rem solid #000; | ||
font-size: 1.2rem; | ||
color: #555; | ||
} | ||
|
||
h1 { | ||
font-size: 24px; | ||
font-size: 2.4rem; | ||
} | ||
|
||
h2 { | ||
font-size: 20px; | ||
font-size: 2rem; | ||
} | ||
|
||
article .header { | ||
color: #555; | ||
font-size: 14px; | ||
font-style: italic; | ||
font-size: 1.4rem; | ||
font-style: italic; | ||
color: #555; | ||
} | ||
|
||
.logo a { | ||
color: black; | ||
font-weight: bold; | ||
color: #000; | ||
text-decoration: none; | ||
} | ||
|
||
@media (max-width: 319px) { | ||
body { | ||
width: 90%; | ||
margin: 0; | ||
padding: 0 5%; | ||
} | ||
header { | ||
margin: 4.2rem 0; | ||
} | ||
nav { | ||
margin: 0 auto 3rem; | ||
text-align: center; | ||
} | ||
footer { | ||
text-align: center; | ||
} | ||
.logo { | ||
text-align: center; | ||
margin: 1rem auto 3rem; | ||
} | ||
.logo a { | ||
font-size: 2.4rem; | ||
} | ||
nav a { | ||
display: block; | ||
line-height: 1.6; | ||
} | ||
} | ||
|
||
@media (min-width: 320px) { | ||
body { | ||
width: 90%; | ||
margin: 0; | ||
padding: 0 5%; | ||
} | ||
header { | ||
margin: 4.2rem 0; | ||
} | ||
nav { | ||
margin: 0 auto 3rem; | ||
text-align: center; | ||
} | ||
footer { | ||
text-align: center; | ||
} | ||
.logo { | ||
text-align: center; | ||
margin: 1rem auto 3rem; | ||
} | ||
.logo a { | ||
font-size: 2.4rem; | ||
} | ||
nav a { | ||
display: inline; | ||
margin: 0 0.6rem; | ||
} | ||
} | ||
|
||
@media (min-width: 640px) { | ||
body { | ||
width: 60rem; | ||
margin: 0 auto; | ||
padding: 0; | ||
} | ||
header { | ||
margin: 0 0 3rem; | ||
padding: 1.2rem 0; | ||
} | ||
nav { | ||
margin: 0; | ||
text-align: right; | ||
} | ||
nav a { | ||
margin: 0 0 0 1.2rem; | ||
display: inline; | ||
} | ||
footer { | ||
text-align: right; | ||
} | ||
.logo { | ||
margin: 0; | ||
text-align: left; | ||
} | ||
.logo a { | ||
float: left; | ||
font-size: 18px; | ||
font-weight: bold; | ||
text-decoration: none; | ||
font-size: 1.8rem; | ||
} | ||
} |