mastodon/app/javascript/styles/accounts.scss

442 lines
7.3 KiB
SCSS
Raw Normal View History

.card {
display: flex;
background: $ui-base-color;
background-size: cover;
background-position: center;
border-radius: 4px 4px 0 0;
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
overflow: hidden;
@media screen and (max-width: 740px) {
border-radius: 0;
box-shadow: none;
}
.details {
position: relative;
padding: 60px 0 0;
text-align: center;
flex: auto;
&::after {
background: linear-gradient(rgba($base-shadow-color, 0.5), rgba($base-shadow-color, 0.8));
display: block;
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1;
}
}
&.compact {
padding: 30px 0;
border-radius: 4px;
.avatar {
margin-bottom: 0;
img {
object-fit: cover;
}
}
}
.name {
display: block;
position: relative;
font-size: 20px;
line-height: 18px * 1.5;
color: $primary-text-color;
font-weight: 500;
text-align: center;
text-shadow: 0 0 2px $base-shadow-color;
z-index: 2;
small {
display: block;
font-size: 14px;
color: $ui-highlight-color;
font-weight: 400;
}
}
.avatar {
position: relative;
@include avatar-size(120px);
margin: 0 auto;
margin-bottom: 15px;
z-index: 2;
img {
@include avatar-radius();
@include avatar-size(120px);
display: block;
}
}
.controls {
position: absolute;
top: 10px;
right: 10px;
z-index: 2;
}
2016-10-03 16:10:17 +02:00
.details-counters {
display: inline-flex;
position: relative;
2016-10-03 16:10:17 +02:00
flex-direction: row;
margin: 15px 0;
z-index: 2;
}
.counter {
width: 80px;
color: $ui-primary-color;
padding: 5px 10px 0;
cursor: default;
position: relative;
& + .counter {
border-left: 1px solid $ui-primary-color;
}
& > * {
opacity: .7;
transition: opacity .3s ease;
}
&.active > *, &:hover > * {
opacity: 1;
}
a {
display: block;
}
a {
text-decoration: none;
color: inherit;
}
.counter-label {
font-size: 12px;
text-transform: uppercase;
display: block;
margin-bottom: 5px;
text-shadow: 0 0 2px $base-shadow-color;
}
.counter-number {
font-weight: 500;
font-size: 18px;
color: $primary-text-color;
}
}
.bio {
position: relative;
font-size: 14px;
line-height: 18px;
margin: 15px 0;
padding: 5px 10px;
color: $ui-secondary-color;
z-index: 2;
2016-10-03 16:10:17 +02:00
}
.metadata {
position: relative;
min-width: 180px;
max-width: 40%;
background: rgba($base-shadow-color, 0.8);
color: $primary-text-color;
text-align: left;
overflow-y: auto;
white-space: pre-wrap;
z-index: 3;
2016-10-03 16:10:17 +02:00
.metadata-item {
border-bottom: 1px $ui-primary-color solid;
padding: 15px 10px;
font-size: 18px;
line-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
2016-10-03 16:10:17 +02:00
a {
color: $ui-highlight-color;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
2016-10-03 16:10:17 +02:00
b {
display: block;
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
color: $ui-primary-color;
a {
color: $ui-primary-color;
}
}
2016-10-03 16:10:17 +02:00
}
}
}
@media screen and (max-width: 500px) {
.card {
display: block;
.metadata {
max-width: none;
background: $base-shadow-color;
border-top: 1px $ui-primary-color solid;
.metadata-item {
padding: 15px 20px;
}
}
}
}
.pagination {
padding: 30px 0;
text-align: center;
overflow: hidden;
a,
.current,
.next,
.prev,
.page,
.gap {
font-size: 14px;
color: $primary-text-color;
font-weight: 500;
display: inline-block;
padding: 6px 10px;
text-decoration: none;
}
.current {
background: $simple-background-color;
border-radius: 100px;
color: $ui-base-color;
cursor: default;
margin: 0 10px;
}
.gap {
cursor: default;
}
.prev,
.next {
text-transform: uppercase;
color: $ui-secondary-color;
}
.prev {
float: left;
padding-left: 0;
.fa {
display: inline-block;
margin-right: 5px;
}
}
.next {
float: right;
padding-right: 0;
.fa {
display: inline-block;
margin-left: 5px;
}
}
.disabled {
cursor: default;
color: lighten($ui-base-color, 10%);
}
2016-10-03 16:10:17 +02:00
@media screen and (max-width: 360px) {
padding: 30px 20px;
a,
.current,
.next,
.prev,
.gap {
2016-10-03 16:10:17 +02:00
display: none;
}
.next,
.prev {
2016-10-03 16:10:17 +02:00
display: inline-block;
}
}
}
.accounts-grid {
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
background: $simple-background-color;
border-radius: 0 0 4px 4px;
padding: 20px 10px;
padding-bottom: 10px;
overflow: hidden;
display: flex;
flex-wrap: wrap;
@media screen and (max-width: 740px) {
border-radius: 0;
box-shadow: none;
}
.account-grid-card {
box-sizing: border-box;
width: 335px;
border: 1px solid $ui-secondary-color;
border-radius: 4px;
color: $ui-base-color;
margin-bottom: 10px;
&:nth-child(odd) {
margin-right: 10px;
}
.account-grid-card__header {
overflow: hidden;
padding: 10px;
border-bottom: 1px solid $ui-secondary-color;
}
.avatar {
@include avatar-size(60px);
float: left;
margin-right: 15px;
img {
@include avatar-radius();
@include avatar-size(60px);
display: block;
}
}
.name {
padding-top: 10px;
a {
display: block;
color: $ui-base-color;
text-decoration: none;
text-overflow: ellipsis;
overflow: hidden;
&:hover {
.display_name {
text-decoration: underline;
}
}
}
}
.display_name {
font-size: 14px;
display: block;
}
.username {
color: $ui-highlight-color;
}
.note {
padding: 10px;
padding-top: 15px;
color: $ui-primary-color;
word-wrap: break-word;
}
}
}
.nothing-here {
color: $ui-primary-color;
font-size: 14px;
font-weight: 500;
text-align: center;
padding: 15px 0;
padding-bottom: 25px;
cursor: default;
}
.account-card {
padding: 14px 10px;
background: $simple-background-color;
border-radius: 4px;
text-align: left;
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
.detailed-status__display-name {
display: block;
overflow: hidden;
margin-bottom: 15px;
&:last-child {
margin-bottom: 0;
}
& > div {
@include avatar-size(48px);
float: left;
margin-right: 10px;
}
.avatar {
@include avatar-radius();
display: block;
}
.display-name {
display: block;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: default;
strong {
font-weight: 500;
color: $ui-base-color;
}
span {
font-size: 14px;
color: $ui-primary-color;
}
}
&:hover {
.display-name {
strong {
text-decoration: none;
}
}
}
}
.account__header__content {
font-size: 14px;
color: $ui-base-color;
}
}