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", "reset",
"font-awesome", "font-awesome",
"config", "config",
"mixins",
"base", "base",
"typography", "typography",
"layout", "layout",

View File

@ -39,7 +39,7 @@ component Anime(anime *arn.Anime)
each relation in anime.Relations each relation in anime.Relations
a.relation.ajax(href="/anime/" + toString(relation.ID), title=relation.Anime().Title.Romaji) 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) 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 if len(anime.Genres) > 0
h3.anime-section-name Genres h3.anime-section-name Genres

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,6 @@
#container #container
vertical
height 100% height 100%
display flex
flex-flow column
#header #header
background-color header-color 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 #navigation
display flex horizontal
flex-flow row
padding 0 content-padding padding 0 content-padding
height nav-height height nav-height
overflow hidden overflow hidden