Use variables for image sizes

This commit is contained in:
Eduard Urbach 2018-03-20 04:05:54 +01:00
parent 436e51c53c
commit 5d40a46720
2 changed files with 10 additions and 6 deletions

View File

@ -119,8 +119,8 @@
margin-top 0.5rem
.anime-cover-image
width 250px
height auto
width anime-image-large-width
height anime-image-large-height
border-radius 3px
default-transition

View File

@ -95,10 +95,14 @@ outline-shadow-medium = 0 0 6px rgba(0, 0, 0, 0.13)
outline-shadow-heavy = 0 0 6px rgba(0, 0, 0, 0.6)
// Distances
content-padding = 1.6rem
content-padding-top = 1.6rem
content-line-height = 1.7em
typography-margin = 0.4rem
const content-padding = 1.6rem
const content-padding-top = 1.6rem
const content-line-height = 1.7em
const typography-margin = 0.4rem
// Sizes
const anime-image-large-width = 250px
const anime-image-large-height = auto
// Timings
fade-speed = 150ms