Skip to content

Instantly share code, notes, and snippets.

@Terieyenike
Created April 25, 2022 08:27
Show Gist options
  • Save Terieyenike/e5106719f894c85da535192865316455 to your computer and use it in GitHub Desktop.
Save Terieyenike/e5106719f894c85da535192865316455 to your computer and use it in GitHub Desktop.
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville|Mulish:700&display=swap');
*,
*::before,
*::after {
box-sizing: border-box;
}
:root {
--bg-colour: #f0f7f4;
}
/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
font-weight: 400;
}
body {
line-height: 1.5;
/*min-height: 100vh;*/
font-family: 'Mulish', sans-serif;
}
/* make images easier to work with */
img,
picutre {
max-width: 100%;
display: block;
}
.container {
max-width: 75rem;
width: 85%;
margin-inline: auto;
}
main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
gap: 2rem;
cursor: pointer;
padding: 1.5em 0;
}
.card {
background: var(--bg-colour);
box-shadow: 0px 4px 3px rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
.card img {
object-fit: cover;
}
.card__info {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 1em 1em 2em;
}
.card__info-title {
font-weight: 700;
font-size: 1.5rem;
font-family: 'Libre Baskerville', serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment