CSS: Split into modules
Don't place pure styling on top-level files (those that don't begin with underscore). Instead, import them as individual files.
This commit is contained in:
23
src/styles/components/_card.sass
Normal file
23
src/styles/components/_card.sass
Normal file
@@ -0,0 +1,23 @@
|
||||
.card-deck
|
||||
// Custom, as of bootstrap 4.1.3 there is no way to do this.
|
||||
&.card-3-columns
|
||||
.card
|
||||
min-width: 30%
|
||||
max-width: 30%
|
||||
|
||||
|
||||
.card-padless
|
||||
.card
|
||||
border: none
|
||||
|
||||
.card-body
|
||||
padding: 20px 0
|
||||
|
||||
.card-fade
|
||||
img
|
||||
opacity: .8
|
||||
transition: opacity ease-in-out 150ms
|
||||
|
||||
&:hover
|
||||
img
|
||||
opacity: 1
|
Reference in New Issue
Block a user