Made profile page responsive

This commit is contained in:
Eduard Urbach 2016-11-20 21:44:04 +09:00
parent 614ff87246
commit dfb6c4011e
4 changed files with 19 additions and 19 deletions

View File

@ -22,7 +22,7 @@ func main() {
app.SetStyle(components.BundledCSS) app.SetStyle(components.BundledCSS)
user, _ := arn.GetUserByNick("Akyoto") user, _ := arn.GetUserByNick("Akyoto")
user.CoverImage.URL = "http://i.imgur.com/6cJrxzx.jpg" user.CoverImage.URL = "https://i.imgur.com/6cJrxzx.jpg"
user.CoverImage.Position.X = "50%" user.CoverImage.Position.X = "50%"
user.CoverImage.Position.Y = "85%" user.CoverImage.Position.Y = "85%"
user.Save() user.Save()

View File

@ -2,9 +2,8 @@
position relative position relative
left contentPadding * -1 left contentPadding * -1
top contentPadding * -1 top contentPadding * -1
min-width 100% min-width calc(100% + 3rem)
padding contentPadding padding contentPadding * 2
box-sizing content-box
color white color white
text-shadow 0px 0px 1px rgba(0, 0, 0, 0.1) text-shadow 0px 0px 1px rgba(0, 0, 0, 0.1)
@ -39,9 +38,11 @@
.profile-image .profile-image
border-radius 3px border-radius 3px
width 320px width 100%
height 320px !important height auto
margin contentPadding max-width 320px
max-height 320px !important
// padding contentPadding
object-fit cover object-fit cover
#anime-list-container #anime-list-container
@ -50,6 +51,7 @@
.image-container .image-container
float left float left
width auto width auto
// padding contentPadding
.intro-container .intro-container
float left float left
@ -57,7 +59,9 @@
display flex display flex
flex-flow column flex-flow column
align-items center align-items center
padding 1.5em padding contentPadding
padding-top 0
padding-left contentPadding * 2
max-width 900px max-width 900px
.user-actions .user-actions
@ -129,16 +133,6 @@
.embedded-footer-separator .embedded-footer-separator
opacity 0.2 opacity 0.2
.appear
animation-name appear-animation
animation-duration 1s
@keyframes appear-animation
0%
opacity 0
100%
opacity 1
@media only screen and (max-width: 900px) @media only screen and (max-width: 900px)
.intro-container .intro-container
margin 1em 0 margin 1em 0

View File

@ -14,6 +14,7 @@ outlineShadowHeavy = 0 0 6px alpha(black, 0.6)
transitionSpeed = 290ms transitionSpeed = 290ms
fadeSpeed = 200ms fadeSpeed = 200ms
contentPadding = 1.5rem contentPadding = 1.5rem
contentPaddingMobile = 1rem
uiElement() uiElement()
border uiBorder border uiBorder

View File

@ -19,7 +19,7 @@
content '' content ''
#content #content
padding 1em padding contentPaddingMobile
#header #header
text-align center text-align center
@ -29,6 +29,11 @@
display inline-block display inline-block
width auto width auto
.profile
left contentPaddingMobile * -1 !important
top contentPaddingMobile * -1 !important
min-width calc(100% + 2rem) !important
@media only screen and (min-width: 1100px) @media only screen and (min-width: 1100px)
.anime-list-image .anime-list-image
display block display block