Using mixins now

This commit is contained in:
Eduard Urbach 2016-11-29 12:37:36 +09:00
parent acce2c5577
commit 125d200d2f
10 changed files with 32 additions and 29 deletions

View File

@ -8,6 +8,7 @@
"reset",
"font-awesome",
"config",
"mixins",
"base",
"typography",
"layout",

View File

@ -39,7 +39,7 @@ component Anime(anime *arn.Anime)
each relation in anime.Relations
a.relation.ajax(href="/anime/" + toString(relation.ID), title=relation.Anime().Title.Romaji)
img.anime-image.relation-image(src=relation.Anime().Image, alt=relation.Anime().Title.Romaji)
span= arn.Capitalize(relation.Type)
.relation-type= arn.Capitalize(relation.Type)
if len(anime.Genres) > 0
h3.anime-section-name Genres

View File

@ -1,11 +1,9 @@
.anime-header
display flex
flex-flow row
horizontal
.anime-image-container
horizontal
flex 1
display flex
flex-flow row
justify-content center
align-items flex-start
@ -22,9 +20,8 @@
box-shadow 6px 6px 12px rgba(0, 0, 0, 0.2)
.anime-info
vertical
flex 9999999
display flex
flex-flow column
margin-left content-padding
.anime-title
@ -39,17 +36,17 @@
opacity 0.5
.relations
float left
display flex
flex-flow row wrap
horizontal-wrap
.relation
display flex
flex-flow column
font-size 0.9rem
vertical
align-items center
padding 0.5rem
.relation-type
font-size 0.7rem
margin-top 0.1rem
.relation-image
width 100px
height 141px

View File

@ -1,14 +1,10 @@
.anime-container
float left
width 100%
padding 0
text-align left
border-radius 3px
box-sizing border-box
.anime-links
float left
width 100%
display flex
flex-flow row wrap

View File

@ -57,8 +57,7 @@ profile-boot-duration = 2s
// ...
.intro-container
display flex
flex-flow column
vertical
align-items flex-start
padding content-padding
padding-top 0

View File

@ -1,5 +1,4 @@
#content
display flex
flex-flow column
vertical
padding content-padding
line-height 1.7em

View File

@ -1,6 +1,5 @@
.grid
display flex
flex-flow row wrap
horizontal-wrap
justify-content center
.grid-cell
@ -57,10 +56,9 @@
border none
.grid-text
vertical
width 100%
height 100%
display flex
flex-flow column
align-items center
justify-content center
font-size 1rem

View File

@ -1,7 +1,6 @@
#container
vertical
height 100%
display flex
flex-flow column
#header
background-color header-color

15
styles/mixins.scarlet Normal file
View File

@ -0,0 +1,15 @@
mixin horizontal
display flex
flex-direction row
mixin horizontal-wrap
display flex
flex-flow row wrap
mixin vertical
display flex
flex-direction column
mixin vertical-wrap
display flex
flex-flow column wrap

View File

@ -1,6 +1,5 @@
#navigation
display flex
flex-flow row
horizontal
padding 0 content-padding
height nav-height
overflow hidden