Improved search styles

This commit is contained in:
2017-12-03 17:02:11 +01:00
parent bbb7e1b621
commit cd9dfd85e1
5 changed files with 38 additions and 22 deletions

View File

@ -1,4 +1,7 @@
component Character(character *arn.Character)
a.character.ajax(href="/character/" + character.ID)
img.character-image.lazy(data-src=character.Image, alt=character.Name, title=character.Name)
//- span.character-name= character.Name
component CharacterSmall(character *arn.Character)
a.character.ajax(href="/character/" + character.ID)
img.character-image.character-image-small.lazy(data-src=character.Image, alt=character.Name, title=character.Name)

View File

@ -15,9 +15,11 @@
// opacity 1
.character-image
border-radius 3px
border-radius 5%
box-shadow shadow-medium
object-fit cover
width 112px
height 112px
// .character-name
// font-size 0.75rem
@ -25,7 +27,6 @@
// opacity 0.5
// transition opacity transition-speed ease
.character-image
width 112px
height 112px
border-radius 10%
.character-image-small
width 56px
height 56px