gab-social/app/javascript/styles/gabsocial/components.scss

171 lines
2.4 KiB
SCSS
Raw Normal View History

2019-07-02 08:10:25 +01:00
.app-body {
2019-09-17 00:31:30 +01:00
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.invisible {
font-size: 0 !important;
line-height: 0 !important;
display: inline-block;
position: absolute;
2019-07-02 08:10:25 +01:00
2019-09-17 00:31:30 +01:00
@include size(0);
2019-07-02 08:10:25 +01:00
2019-09-17 00:31:30 +01:00
img,
svg {
margin: 0 !important;
border: 0 !important;
padding: 0 !important;
2019-09-17 00:31:30 +01:00
@include size(0 !important);
}
}
2019-09-17 00:31:30 +01:00
.ellipsis::after {
content: "";
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.focusable {
&:focus {
outline: 0;
background: lighten($ui-base-color, 4%);
.status.status-direct {
background: lighten($ui-base-color, 12%);
&.muted {
background: transparent;
}
}
.detailed-status,
.detailed-status-action-bar {
background: lighten($ui-base-color, 8%);
}
}
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.status__display-name,
.status__relative-time {
text-decoration: none;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.muted {
.emojione {
opacity: 0.5;
}
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.status__display-name {
&:hover strong {
text-decoration: underline;
}
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.muted {
.status__content p,
.status__content a {
color: $dark-text-color;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.status__display-name strong {
color: $dark-text-color;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.status__avatar {
opacity: 0.5;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
a.status__content__spoiler-link {
background: $ui-base-lighter-color;
color: $inverted-text-color;
2019-07-02 08:10:25 +01:00
2019-09-17 00:31:30 +01:00
&:hover {
background: lighten($ui-base-lighter-color, 7%);
text-decoration: none;
}
2019-07-02 08:10:25 +01:00
}
}
2019-09-17 00:31:30 +01:00
.status__relative-time {
&:hover {
text-decoration: underline;
}
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.emoji-mart-emoji {
span {
background-repeat: no-repeat;
}
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.dropdown--active .emoji-button img {
opacity: 1;
filter: none;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.loading-bar {
background-color: $highlight-text-color;
height: 3px;
position: absolute;
top: 0;
left: 0;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
.detailed,
.fullscreen {
2019-07-02 08:10:25 +01:00
2019-09-17 00:31:30 +01:00
.video-player__volume__current,
.video-player__volume::before {
bottom: 27px;
}
2019-07-02 08:10:25 +01:00
2019-09-17 00:31:30 +01:00
.video-player__volume__handle {
bottom: 23px;
}
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
::-webkit-scrollbar-thumb {
border-radius: 0;
2019-07-02 08:10:25 +01:00
}
2019-09-17 00:31:30 +01:00
noscript {
text-align: center;
2019-09-17 00:31:30 +01:00
img {
width: 200px;
opacity: 0.5;
animation: flicker 4s infinite;
}
2019-09-17 00:31:30 +01:00
div {
font-size: 14px;
margin: 30px auto;
color: $secondary-text-color;
max-width: 400px;
2019-09-17 00:31:30 +01:00
a {
color: $highlight-text-color;
text-decoration: underline;
2019-09-17 00:31:30 +01:00
&:hover {
text-decoration: none;
}
}
}
}
2019-09-17 00:31:30 +01:00
@keyframes flicker {
0% {
opacity: 1;
}
2019-09-17 00:31:30 +01:00
30% {
opacity: 0.75;
}
2019-09-17 00:31:30 +01:00
100% {
opacity: 1;
}
2020-02-04 16:30:26 +00:00
}