gotosocial/web/source/css/profile.css
tobi 16ddad36b2
[frontend] Redesign / color scheme (#688)
* fix css indentation

* profile styling update

* update status styling to match profile

* empty header fix

* generate random avatars for thread views

* appease the linter gods

* upgrade deps

* turn profile accent into border + $bg background

* upgrade deps

* small accessibility tweaks

* general redesign, clearer css variables

* configure instance.Version for testrig

* footer styling

* add sublte borders to box-shadow for separation

* accessible blues, other tweaks

* background bg_accent

* fix viewport

* change client entry buttons to links

* cw button styling

* status display+username spacing

* small thread view tweaks

* color tweaks for accessible contrasts

* use Noto Sans

* biiit less dark bg

* .info contrast, border

Co-authored-by: f0x <f0x@cthu.lu>
2022-07-04 16:23:59 +02:00

170 lines
3.0 KiB
CSS

/*
GoToSocial
Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
header {
a img {
height: 5rem;
}
}
main {
background: transparent;
padding-top: 0;
}
.profile {
position: relative;
background: $bg_accent;
display: grid;
grid-template-rows: minmax(6rem, 20%) auto auto;
grid-template-columns: 1fr;
flex-wrap: wrap;
justify-content: space-around;
gap: 0.5rem;
margin-bottom: 0.2rem;
border-radius: $br;
box-shadow: $boxshadow;
border: $boxshadow_border;
.headerimage {
height: 100%;
aspect-ratio: 3 / 1;
overflow: hidden;
box-shadow: $boxshadow;
img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: $br $br 0 0;
}
}
.basic {
max-height: 10rem;
margin-top: -7rem;
display: grid;
grid-template-columns: 1rem auto 1fr;
grid-template-rows: 1fr auto auto;
grid-template-areas:
". avatar ."
"filler2 avatar displayname"
". avatar username";
#profile-basic-filler2 {
grid-area: filler2;
background: $bg_trans;
margin-top: 0.3rem;
}
.avatar {
box-sizing: border-box;
height: 8.5rem;
width: 8.5rem;
grid-area: avatar;
background: $bg;
border: $profile_avatar_border;
padding: 0;
border-radius: $br;
position: relative;
box-shadow: $boxshadow;
img {
object-fit: cover;
border-radius: $br;
width: 100%;
height: 100%;
}
}
a, div {
color: inherit;
text-decoration: none;
padding: 0.5rem;
}
.displayname {
grid-area: displayname;
padding-right: 1rem;
align-self: end;
font-weight: bold;
font-size: 2rem;
margin-top: 0.3rem;
line-height: 2.2rem;
background: $bg_trans;
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
max-height: 6rem;
}
.username {
grid-area: username;
padding-top: 0;
margin-top: 0.25rem;
padding-bottom: 0.25rem;
color: $fg_accent;
font-weight: bold;
}
}
.detailed {
padding: 0 1rem;
display: flex;
flex-direction: column;
flex: 1 1 25em;
h2 {
margin-top: 0;
}
.bio {
margin: 0.5rem 0;
a {
color: $acc1;
text-decoration: underline;
}
}
}
}
.accountstats {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
border-radius: 0 0 $br $br;
border-top: 0.1rem solid $bg;
.entry {
padding: 1rem 1.2rem;
text-align: center;
}
}
.toot, .toot:last-child {
box-shadow: $boxshadow;
}
#recent {
margin-left: 1rem;
}