Skip to content

Instantly share code, notes, and snippets.

@impactmass
Last active October 15, 2020 09:30
Show Gist options
  • Save impactmass/9b6a4ca5d15e1302cf23ba132c983899 to your computer and use it in GitHub Desktop.
Save impactmass/9b6a4ca5d15e1302cf23ba132c983899 to your computer and use it in GitHub Desktop.
/* Learning from https://rachelandrew.co.uk/ */
/* config stuff */
/* Coolors Exported Palette - coolors.co/694486-2b193d-dbdbdb-b0b5b3-040303 */
/* RGB */
footer {
padding: 10px;
background-color: #2b193d;
color: #fcf9f9;
font-size: 90%;
padding: 1rem 2rem;
}
footer p {
width: 100%;
margin: 0 auto;
}
footer a:link,
footer a:visited {
color: #fff;
}
header + .keep-in-touch {
border-top: 0;
}
header {
padding: 0.5rem 1rem;
border-bottom: 1px solid #b0b5b3;
display: flex;
justify-content: space-between;
text-transform: uppercase;
font-size: 0.8rem;
font-weight: 700;
}
header nav {
display: inline;
}
header ul {
display: inline-flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
header li {
padding: 0 0.5rem;
}
header h1 {
text-decoration: none;
line-height: 1px;
font-size: large;
}
img {
border: 1px solid #ccc;
border-radius: 3px;
}
article p {
line-height: 1.5;
margin: 0;
padding-bottom: 20px;
}
article {
font-family: ff-tisa-sans-web-pro, sans-serif;
font-style: normal;
padding: 4rem 2rem;
overflow: auto;
position: relative;
}
article h1, article h2 {
font-size: 2rem;
margin: 0;
padding: 10px;
background: yellow;
position: absolute;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
}
article img {
max-width: 100%;
width: 40%;
float: left;
margin-right: 20px;
}
article h1,
article span {
color: #694486;
}
section {
padding: 2rem;
border-top: 1px solid #e7c0c0;
}
section li {
line-height: 1.5;
margin-bottom: 5px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-size: 1.2em;
}
body {
margin: 0;
padding: 0;
background-color: #fcf9f9;
color: #040303;
font-family: ff-tisa-sans-web-pro, sans-serif;
font-weight: 400;
font-style: normal;
}
img {
max-width: 100%;
}
a:link,
a:visited {
color: #694486;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment