frontend-dorset/assets/css/global.css

89 lines
1.7 KiB
CSS

/* ============= WEB BROWSER RESETS ============ */
* { margin: 0; padding: 0; border: none }
*, *::before, *::after { box-sizing: border-box }
html { height: 100%; font-size: 100%; font: inherit; vertical-align: baseline;
scroll-behavior: smooth; scroll-padding-top: 20px }
body { max-width: 1600px; line-height: 1.5; margin-left: auto; margin-right: auto;
min-height: 100vh; text-rendering: optimizeSpeed }
img { width: 100%; height: auto; display: block }
h1, h2, h3, h4 { width: 100% }
input, button, textarea, select { font: inherit }
/* ================= ENDS ================ */
/* Desktops */
@media all and (min-width: 768px) {
body {
width: 60%;
margin-left: auto;
margin-right: auto;
}
}
/* Mobiles */
@media all and (min-width: 767px) {
body {
width: 80%;
margin-left: auto;
margin-right: auto;
}
}
body {
text-align: center;
font-family: sans-serif;
}
h1 {
font-size: 78px;
font-weight: normal;
letter-spacing: -2px;
margin-bottom: 12px;
line-height: 1.2;
}
h2 {
font-size: 42px;
letter-spacing: 6px;
margin-bottom: 48px;
line-height: 1.2;
}
h3 {
font-size: 24px;
margin-top: 48px;
margin-bottom: 20px;
line-height: 1.2;
text-transform: uppercase;
}
p {
font-size: 20px;
margin-bottom: 16px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change the link color to #111 (black) on hover */
li a:hover {
background-color: #111;
}