mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 00:13:42 +01:00
4e66e0ac04
Port various commits to glitch-soc, mainly commits0dcc1950d1
and5b8603879f
.
242 lines
4 KiB
SCSS
242 lines
4 KiB
SCSS
.hero-widget {
|
|
margin-bottom: 10px;
|
|
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
|
|
|
|
&__img {
|
|
width: 100%;
|
|
height: 167px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 4px 4px 0 0;
|
|
background: $base-shadow-color;
|
|
|
|
img {
|
|
object-fit: cover;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
border-radius: 4px 4px 0 0;
|
|
}
|
|
}
|
|
|
|
&__text {
|
|
background: $ui-base-color;
|
|
padding: 20px;
|
|
border-radius: 0 0 4px 4px;
|
|
font-size: 15px;
|
|
color: $darker-text-color;
|
|
line-height: 20px;
|
|
word-wrap: break-word;
|
|
font-weight: 400;
|
|
|
|
.emojione {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin: -3px 0 0;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 20px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
em {
|
|
display: inline;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-weight: 700;
|
|
background: transparent;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
color: lighten($darker-text-color, 10%);
|
|
}
|
|
|
|
a {
|
|
color: $secondary-text-color;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: $no-gap-breakpoint) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.endorsements-widget {
|
|
margin-bottom: 10px;
|
|
padding-bottom: 10px;
|
|
|
|
h4 {
|
|
padding: 10px;
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
color: $darker-text-color;
|
|
}
|
|
|
|
.account {
|
|
padding: 10px 0;
|
|
|
|
&:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.account__display-name {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.account__avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
background-size: 44px 44px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.box-widget {
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
background: $ui-base-color;
|
|
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
|
|
}
|
|
|
|
.contact-widget,
|
|
.landing-page__information.contact-widget {
|
|
box-sizing: border-box;
|
|
padding: 20px;
|
|
min-height: 100%;
|
|
border-radius: 4px;
|
|
background: $ui-base-color;
|
|
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
|
|
}
|
|
|
|
.contact-widget {
|
|
font-size: 15px;
|
|
color: $darker-text-color;
|
|
line-height: 20px;
|
|
word-wrap: break-word;
|
|
font-weight: 400;
|
|
|
|
strong {
|
|
font-weight: 500;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 10px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&__mail {
|
|
margin-top: 10px;
|
|
|
|
a {
|
|
color: $primary-text-color;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.moved-account-widget {
|
|
padding: 15px;
|
|
padding-bottom: 20px;
|
|
border-radius: 4px;
|
|
background: $ui-base-color;
|
|
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
|
|
color: $secondary-text-color;
|
|
font-weight: 400;
|
|
margin-bottom: 10px;
|
|
|
|
strong,
|
|
a {
|
|
font-weight: 500;
|
|
|
|
@each $lang in $cjk-langs {
|
|
&:lang(#{$lang}) {
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
|
|
&.mention {
|
|
text-decoration: none;
|
|
|
|
span {
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:focus,
|
|
&:hover,
|
|
&:active {
|
|
text-decoration: none;
|
|
|
|
span {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&__message {
|
|
margin-bottom: 15px;
|
|
|
|
.fa {
|
|
margin-right: 5px;
|
|
color: $darker-text-color;
|
|
}
|
|
}
|
|
|
|
&__card {
|
|
.detailed-status__display-avatar {
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.detailed-status__display-name {
|
|
margin-bottom: 0;
|
|
text-decoration: none;
|
|
|
|
span {
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.memoriam-widget {
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
background: $base-shadow-color;
|
|
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
|
|
font-size: 14px;
|
|
color: $darker-text-color;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.moved-account-widget,
|
|
.memoriam-widget,
|
|
.box-widget,
|
|
.contact-widget,
|
|
.landing-page__information.contact-widget {
|
|
@media screen and (max-width: $no-gap-breakpoint) {
|
|
margin-bottom: 0;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
}
|
|
}
|