Use content-padding-half constant
This commit is contained in:
parent
7650137b4d
commit
45661b786c
@ -40,12 +40,12 @@ component Sidebar(user *arn.User)
|
|||||||
SidebarButton("Companies", "/companies", "building")
|
SidebarButton("Companies", "/companies", "building")
|
||||||
SidebarButton("Users", "/users", "globe")
|
SidebarButton("Users", "/users", "globe")
|
||||||
|
|
||||||
if user != nil
|
|
||||||
SidebarButton("Support", "/support", "heart")
|
|
||||||
|
|
||||||
if arn.IsDevelopment()
|
if arn.IsDevelopment()
|
||||||
SidebarButton("Groups", "/groups", "users")
|
SidebarButton("Groups", "/groups", "users")
|
||||||
|
|
||||||
|
if user != nil
|
||||||
|
SidebarButton("Support", "/support", "heart")
|
||||||
|
|
||||||
//- Disabled:
|
//- Disabled:
|
||||||
//- SidebarButton("Dash", "/dashboard", "tachometer")
|
//- SidebarButton("Dash", "/dashboard", "tachometer")
|
||||||
//- SidebarButton("Artworks", "/artworks", "paint-brush")
|
//- SidebarButton("Artworks", "/artworks", "paint-brush")
|
||||||
|
@ -5,4 +5,4 @@
|
|||||||
.anime-amvs
|
.anime-amvs
|
||||||
.amv
|
.amv
|
||||||
max-width 200px
|
max-width 200px
|
||||||
margin calc(content-padding / 2)
|
margin content-padding-half
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
.soundtrack
|
.soundtrack
|
||||||
max-width 200px
|
max-width 200px
|
||||||
margin calc(content-padding / 2)
|
margin content-padding-half
|
||||||
|
|
||||||
.soundtrack-content
|
.soundtrack-content
|
||||||
min-height 112px
|
min-height 112px
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.anime-list-user-avatar
|
.anime-list-user-avatar
|
||||||
position absolute
|
position absolute
|
||||||
top calc(content-padding / 2)
|
top content-padding-half
|
||||||
left calc(content-padding / 2)
|
left content-padding-half
|
||||||
|
|
||||||
.anime-list-container
|
.anime-list-container
|
||||||
width 100%
|
width 100%
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
width 100%
|
width 100%
|
||||||
max-width 530px
|
max-width 530px
|
||||||
margin 0 auto
|
margin 0 auto
|
||||||
margin-top calc(content-padding / 2)
|
margin-top content-padding-half
|
||||||
|
|
||||||
.anime-list-item-others
|
.anime-list-item-others
|
||||||
display grid
|
display grid
|
||||||
|
@ -8,7 +8,7 @@ const popular-company-height = 246px
|
|||||||
vertical
|
vertical
|
||||||
width 100%
|
width 100%
|
||||||
margin 0
|
margin 0
|
||||||
margin-bottom calc(content-padding / 2)
|
margin-bottom content-padding-half
|
||||||
padding 0.5rem 0.75rem
|
padding 0.5rem 0.75rem
|
||||||
overflow hidden
|
overflow hidden
|
||||||
ui-element
|
ui-element
|
||||||
@ -40,7 +40,7 @@ const popular-company-height = 246px
|
|||||||
height popular-company-height
|
height popular-company-height
|
||||||
max-height popular-company-height
|
max-height popular-company-height
|
||||||
padding 0.75rem 1rem
|
padding 0.75rem 1rem
|
||||||
margin calc(content-padding / 2)
|
margin content-padding-half
|
||||||
|
|
||||||
.popular-company-body
|
.popular-company-body
|
||||||
display block
|
display block
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
.explore-filters
|
.explore-filters
|
||||||
horizontal
|
horizontal
|
||||||
justify-content center
|
justify-content center
|
||||||
margin-bottom calc(content-padding / 2)
|
margin-bottom content-padding-half
|
||||||
|
|
||||||
.explore-anime
|
.explore-anime
|
||||||
margin-top calc(content-padding / 2)
|
margin-top content-padding-half
|
||||||
|
|
||||||
.option-any
|
.option-any
|
||||||
color reverse-light-hover-color
|
color reverse-light-hover-color
|
||||||
|
@ -3,7 +3,7 @@ const group-padding-x = 0.75rem
|
|||||||
|
|
||||||
.groups
|
.groups
|
||||||
display grid
|
display grid
|
||||||
grid-gap calc(content-padding / 2)
|
grid-gap content-padding-half
|
||||||
// grid-template-columns repeat(auto-fill, min(100%, 520px))
|
// grid-template-columns repeat(auto-fill, min(100%, 520px))
|
||||||
// justify-content center
|
// justify-content center
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ const profile-image-size = 280px
|
|||||||
.profile-column
|
.profile-column
|
||||||
// border 1px solid red
|
// border 1px solid red
|
||||||
// height 100px
|
// height 100px
|
||||||
padding calc(content-padding / 2)
|
padding content-padding-half
|
||||||
|
|
||||||
.profile-column-header
|
.profile-column-header
|
||||||
font-style bold
|
font-style bold
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
flex 1
|
flex 1
|
||||||
min-width 300px
|
min-width 300px
|
||||||
max-width 500px
|
max-width 500px
|
||||||
padding calc(content-padding / 2)
|
padding content-padding-half
|
||||||
|
|
||||||
.lyrics-paragraph
|
.lyrics-paragraph
|
||||||
margin 1rem 0
|
margin 1rem 0
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
flex-basis 170px
|
flex-basis 170px
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
height 230px
|
height 230px
|
||||||
margin calc(content-padding / 2)
|
margin content-padding-half
|
||||||
position relative
|
position relative
|
||||||
border ui-border
|
border ui-border
|
||||||
box-shadow shadow-light
|
box-shadow shadow-light
|
||||||
|
@ -122,6 +122,7 @@ outline-shadow-heavy = 0 0 6px rgba(0, 0, 0, 0.6)
|
|||||||
// Distances
|
// Distances
|
||||||
const content-padding = 1.6rem
|
const content-padding = 1.6rem
|
||||||
const content-padding-top = 1.6rem
|
const content-padding-top = 1.6rem
|
||||||
|
const content-padding-half = calc(content-padding / 2)
|
||||||
const content-line-height = 1.7em
|
const content-line-height = 1.7em
|
||||||
const typography-margin = 0.4rem
|
const typography-margin = 0.4rem
|
||||||
const media-bottom-margin = 2rem
|
const media-bottom-margin = 2rem
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
bottom 0
|
bottom 0
|
||||||
left 0
|
left 0
|
||||||
width 100%
|
width 100%
|
||||||
padding calc(content-padding / 2) content-padding
|
padding content-padding-half content-padding
|
||||||
pointer-events none
|
pointer-events none
|
||||||
z-index 1000
|
z-index 1000
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.widget
|
.widget
|
||||||
vertical
|
vertical
|
||||||
flex 1
|
flex 1
|
||||||
margin calc(content-padding / 2)
|
margin content-padding-half
|
||||||
|
|
||||||
.widget-section
|
.widget-section
|
||||||
vertical
|
vertical
|
||||||
|
Loading…
Reference in New Issue
Block a user