Skip to content

Instantly share code, notes, and snippets.

@Musty260
Last active July 24, 2021 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Musty260/0fe67f315e8a5cd13504bba674deec26 to your computer and use it in GitHub Desktop.
Save Musty260/0fe67f315e8a5cd13504bba674deec26 to your computer and use it in GitHub Desktop.
Scrapbook css WIP
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300&family=Work+Sans&display=swap');
:root {
--colors-background: #E0E5EC;
--colors-text: #000000;
--colors-secondary: #7BB7A8;
--colors-elevated: #E0E5EC;
--colors-sunken: #E0E5EC;
--colors-accent: #CC4C3E;
--colors-hover: #FFFFFF;
--colors-link: rgba(204, 76, 62, 0.5);
--colors-link-hover: rgba(204, 76, 62, 0.8);
--colors-sheet: #FFFFFF;
--fonts-body: 'Work Sans', sans-serif;
--fonts-bold: 'Inter', sans-serif;
}
#__next {
font-family: 'Inter';
}
.container {
max-width: 84rem;
}
.nav {
height: 64px;
}
.nav-flag {
font-family: var(--fonts-body);
background-image: url("https://assets.hackclub.com/icon-rounded.svg") !important;
animation: none !important;
-webkit-animation: none !important;
text-decoration: none;
/*font-family: var(--fonts-bold);*/
height: 64px !important;
width: 2.6rem !important;
background-position: center !important;
margin-right: 12px;
}
.nav-link:hover, .nav-link:focus {
color: var(--colors-slate);
}
.header-title-name {
font-weight: 300;
margin-bottom: 1rem;
}
.header-link {
color: var(--colors-muted);
}
.header-link:hover, .header-link:focus {
color: var(--colors-slate);
}
.posts {
grid-gap: 30px;
padding: 30px;
}
.post {
padding: 20px;
border-radius: 25px;
box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
}
.post-text {
color: var(--colors-slate);
}
.header-chart {
grid-column-start: 3;
}
.post-header {
margin-bottom: 25px;
font-family: var(--fonts-bold);
}
.post-header-date:before {
content: "";
position: absolute;
width: 12%;
height: 1px;
top: 0;
left: 0;
margin-top: 46px;
margin-left: 19px;
border-bottom: 4px solid var(--colors-muted);
transition: all 0.4s ease-in-out;
}
.post:hover .post-header-date:before {
width: 25%;
border-bottom: 4px solid var(--colors-slate);
}
.post-attachment img {
transition: all 0.2s ease-in-out;
}
.post:hover .post-attachment img {
border-radius: 16px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment