Skip to content

Instantly share code, notes, and snippets.

@dyarfi
Created August 23, 2021 09:32
Show Gist options
  • Save dyarfi/a72ca69c4b5d3b02b5abd4c82e6a278c to your computer and use it in GitHub Desktop.
Save dyarfi/a72ca69c4b5d3b02b5abd4c82e6a278c to your computer and use it in GitHub Desktop.
custom_bs_dark_cards.scss
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700,900&display=swap');
body {
background-color: hsl(0, 0%, 30%);
}
h1, h2, h3, h4, h5 { font-weight: 700; }
a {
color: var(--light);
&:hover {
color: var(--secondary);
}
}
h5 { font-size:1.1rem; }
/** Bootstrap Cards **/
.card {
border: 0px;
border-radius: .5rem;
overflow: hidden;
transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
will-change: transform, box-shadow;
box-shadow: 23px 21px 43px -17px rgba(0,0,0,.60);
margin-bottom: 1rem;
&:hover {
transform: translateY(-10px);
box-shadow: 23px 21px 43px -17px rgba(0,0,0,.75);
}
.card-title {
margin-top: 0;
margin-bottom: 0;
}
.card-body {
overflow: hidden;
padding-top: 1rem;
padding-bottom: .15rem;
height: 100%;
}
.card-footer {
border: 0px;
background-color: white;
font-size: .85rem;
color: var(--secondary);
padding-bottom: 1.25rem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment