Update gallery styles

This commit is contained in:
3nprob 2021-10-07 23:46:18 +09:00
parent 857e22ed87
commit 9b96295691
2 changed files with 149 additions and 12 deletions

View File

@ -1,3 +1,9 @@
body {
font-size: 100%;
font-family: Proxima Nova Regular,Helvetica Neue,Helvetica,Arial,sans-serif;
color: #fff;
}
.UserAvatar {
display: block;
height: 32px;
@ -21,6 +27,19 @@
text-transform: lowercase;
}
.GalleryComment {
margin-bottom: 16px;
cursor: pointer;
position: relative;
}
.GalleryComment-wrapper {
width: 100%;
display: flex;
flex-direction: row;
position: relative;
}
.GalleryComment-avatar-bar .avatar span {
display: block;
background-color: grey;
@ -45,6 +64,10 @@
font-size: 12px;
line-height: 12px;
color: #b4b9c2;
justify-content: space-between;
align-items: center;
color: #b4b9c2;
margin-bottom: 4px;
}
.GalleryComment-avatar-bar {
@ -85,6 +108,13 @@
color: #eff1f4;
}
.GalleryComment-actions {
color: #b4b9c2;
font-family: Proxima Nova Bold,Helvetica Neue,Helvetica,Arial,sans-serif;
font-size: 12px;
line-height: 12px;
}
.GalleryComment-actions .points {
padding: 0 6px;
}
@ -154,3 +184,110 @@ svg:not(:root) {
flex-direction: column;
justify-content: center;
}
a.author-link .UserAvatar {
display: block;
}
.Gallery-Byline .Avatar {
background-color: #43d0bd;
border-radius: 50%;
height: 32px;
width: 32px;
overflow: hidden;
transition: transform .2s ease-in-out;
}
.Gallery-Byline .Info-Wrapper {
display: flex;
flex-direction: column;
margin: 0 32px 0 12px;
flex-grow: 1;
justify-content: space-between;
justify-content: space-around;
overflow: hidden;
}
.Gallery-Byline .Info-Wrapper .Meta {
font-family: Proxima Nova Regular,Helvetica Neue,Helvetica,Arial,sans-serif;
color: #b4b9c2;
font-size: 12px;
line-height: 12px;
}
.Gallery-Byline .Info .author-name {
min-width: 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-family: Proxima Nova Bold,Helvetica Neue,Helvetica,Arial,sans-serif;
color: #1bb76e;
cursor: pointer;
}
.Gallery-Byline .Info {
display: flex;
flex-direction: row;
justify-content: flex-start;
font-size: 14px;
font-family: Proxima Nova Bold,Helvetica Neue,Helvetica,Arial,sans-serif;
align-items: center;
}
a {
color: #01b96b;
text-decoration: none;
}
.Gallery-Byline {
display: flex;
justify-content: flex-start;
height: 32px;
margin: 16px 0 24px;
}
.Gallery-Title {
font-family: Proxima Nova Bold,Helvetica Neue,Helvetica,Arial,sans-serif;
font-size: 28px;
line-height: 130%;
color: #fff;
overflow-wrap: break-word;
}
.Gallery-Header {
position: relative;
z-index: 1;
}
.Gallery-Byline .Info-Wrapper .Meta .delimiter {
padding: 0 5px;
}
.GalleryComment-byLine .delimiter {
margin: 0 8px;
}
.Gallery-Content--tags .TagPill {
margin-top: 10px;
margin-right: 10px;
}
.CommentsList-headline {
background: repeat-x 0 100% url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Cpath fill='%23585D6A' d='M0 0h1v.5H0z'/%3E%3C/svg%3E");
display: flex;
flex-direction: row;
justify-content: space-between;
padding-bottom: 14px;
margin-bottom: 16px;
margin-top: 46px;
}
.CommentsList-headline--counter {
font-family: Proxima Nova Bold,Helvetica Neue,Helvetica,Arial,sans-serif;
font-size: 15px;
line-height: 15px;
letter-spacing: .06em;
text-transform: uppercase;
color: #dadce2;
flex-grow: 1;
}

View File

@ -51,7 +51,7 @@ html
div(class='Gallery-Byline')
if account_id > 0
a(class='author-link' title='View profile of '+account.username, href='/user/'+account.username)
span(class='UserAvatar', title=account.username, style='background-image: url("' + util.proxyURL(account.avatar_url) + '");')
span(class='UserAvatar Avatar', title=account.username, style='background-image: url("' + util.proxyURL(account.avatar_url) + '");')
div(class='Info-Wrapper')
if account_id > 0
div(class='Info')