pedf
/
jakjsmenatom
Archived
1
0
Fork 0

Separace stylů od HTML

master
Emil Miler 4 years ago
parent a71fc1155e
commit 24fd4eded9

@ -4,121 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jak jsme na tom, PedF</title>
<style>
:root {
--wrap: 60rem;
--red: #b52637;
}
@font-face {
font-family: moderat;
src: url(moderat.otf);
}
html { scroll-behavior: smooth }
body {
margin: 0;
font-family: moderat, sans-serif;
font-size: 15pt;
}
a {
color: var(--red);
text-decoration: none;
}
a:hover { text-decoration: underline }
ul {
padding: 0;
list-style-type: none;
}
header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
padding: 0 1em;
}
header .title {
display: flex;
align-items: flex-end;
margin-bottom: 5rem;
border-bottom: 3px solid var(--red);
}
header .title img {
max-height: 20rem;
margin: 2rem;
}
header h1 {
font-size: 4em;
}
header p { font-size: 1.5em }
nav {
margin: 4rem auto;
font-size: 1.2rem;
}
nav ul {
display: flex;
flex-wrap: wrap;
}
nav ul li a {
display: block;
margin: .25em;
padding: .5em .8em;
background-color: #fff;
border: 1px solid #000;
border-radius: .5em;
text-decoration: none;
color: inherit;
}
nav ul li a:hover {
background-color: var(--red);
border-color: var(--red);
color: #fff;
text-decoration: none;
}
main {
max-width: var(--wrap);
margin: 0 auto;
margin-bottom: 10rem;
padding: 0 1em;
line-height: 1.5;
}
main h2, main h3 { color: var(--red) }
main h2 {
margin-top: 5rem;
padding-top: 5rem;
font-size: 2em;
}
main h2:first-child { margin-top: 0 }
main h3 { margin-top: 2em }
main ul li {
display: flex;
align-items: center;
}
@media only screen and (max-width: 1000px) {
header .title {
flex-direction: column-reverse;
align-items: center;
}
header h1 { font-size: 2em }
nav {
max-width: 20em;
width: 90%;
}
nav ul {
flex-direction: column;
align-items: stretch;
}
}
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>

@ -0,0 +1,113 @@
:root {
--wrap: 60rem;
--red: #b52637;
}
@font-face {
font-family: moderat;
src: url(moderat.otf);
}
html { scroll-behavior: smooth }
body {
margin: 0;
font-family: moderat, sans-serif;
font-size: 15pt;
}
a {
color: var(--red);
text-decoration: none;
}
a:hover { text-decoration: underline }
ul {
padding: 0;
list-style-type: none;
}
header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
padding: 0 1em;
}
header .title {
display: flex;
align-items: flex-end;
margin-bottom: 5rem;
border-bottom: 3px solid var(--red);
}
header .title img {
max-height: 20rem;
margin: 2rem;
}
header h1 {
font-size: 4em;
}
header p { font-size: 1.5em }
nav {
margin: 4rem auto;
font-size: 1.2rem;
}
nav ul {
display: flex;
flex-wrap: wrap;
}
nav ul li a {
display: block;
margin: .25em;
padding: .5em .8em;
background-color: #fff;
border: 1px solid #000;
border-radius: .5em;
text-decoration: none;
color: inherit;
}
nav ul li a:hover {
background-color: var(--red);
border-color: var(--red);
color: #fff;
text-decoration: none;
}
main {
max-width: var(--wrap);
margin: 0 auto;
margin-bottom: 10rem;
padding: 0 1em;
line-height: 1.5;
}
main h2, main h3 { color: var(--red) }
main h2 {
margin-top: 5rem;
padding-top: 5rem;
font-size: 2em;
}
main h2:first-child { margin-top: 0 }
main h3 { margin-top: 2em }
main ul li {
display: flex;
align-items: center;
}
@media only screen and (max-width: 1000px) {
header .title {
flex-direction: column-reverse;
align-items: center;
}
header h1 { font-size: 2em }
nav {
max-width: 20em;
width: 90%;
}
nav ul {
flex-direction: column;
align-items: stretch;
}
}