masto-fe/app/javascript/flavours/glitch/styles/components/index.scss

1436 lines
24 KiB
SCSS
Raw Normal View History

.app-body {
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
2016-08-31 20:58:10 +00:00
.button {
background-color: darken($ui-highlight-color, 3%);
2016-09-27 21:12:33 +00:00
border: 10px none;
border-radius: 4px;
box-sizing: border-box;
color: $primary-text-color;
cursor: pointer;
display: inline-block;
font-family: inherit;
2016-09-27 21:12:33 +00:00
font-size: 14px;
font-weight: 500;
height: 36px;
letter-spacing: 0;
2016-09-27 21:12:33 +00:00
line-height: 36px;
overflow: hidden;
padding: 0 16px;
position: relative;
text-align: center;
text-transform: uppercase;
2016-09-27 21:12:33 +00:00
text-decoration: none;
text-overflow: ellipsis;
2017-03-24 23:01:43 +00:00
transition: all 100ms ease-in;
transition-property: background-color;
white-space: nowrap;
width: auto;
2016-08-31 20:58:10 +00:00
&:active,
&:focus,
&:hover {
background-color: lighten($ui-highlight-color, 7%);
2017-03-24 23:01:43 +00:00
transition: all 200ms ease-out;
transition-property: background-color;
2016-08-31 20:58:10 +00:00
}
&--destructive {
transition: none;
&:active,
&:focus,
&:hover {
background-color: $error-red;
transition: none;
}
}
2016-08-31 20:58:10 +00:00
&:disabled {
background-color: $ui-primary-color;
2016-10-02 13:28:47 +00:00
cursor: default;
2016-08-31 20:58:10 +00:00
}
2018-02-23 16:25:49 +00:00
&.button-primary,
&.button-alternative,
&.button-secondary,
&.button-alternative-2 {
font-size: 16px;
line-height: 36px;
height: auto;
text-transform: none;
padding: 4px 16px;
2018-02-23 16:25:49 +00:00
}
&.button-alternative {
color: $inverted-text-color;
2018-02-23 16:25:49 +00:00
background: $ui-primary-color;
&:active,
&:focus,
&:hover {
background-color: lighten($ui-primary-color, 4%);
}
}
2018-02-23 16:25:49 +00:00
&.button-alternative-2 {
background: $ui-base-lighter-color;
&:active,
&:focus,
&:hover {
background-color: lighten($ui-base-lighter-color, 4%);
}
}
&.button-secondary {
font-size: 16px;
line-height: 36px;
height: auto;
color: $darker-text-color;
text-transform: none;
background: transparent;
padding: 3px 15px;
2017-10-07 18:00:35 +00:00
border-radius: 4px;
border: 1px solid $ui-primary-color;
&:active,
&:focus,
&:hover {
border-color: lighten($ui-primary-color, 4%);
color: lighten($darker-text-color, 4%);
}
&:disabled {
opacity: 0.5;
}
}
&.button--block {
display: block;
width: 100%;
}
}
2016-08-31 20:58:10 +00:00
.icon-button {
2017-03-24 23:01:43 +00:00
display: inline-block;
padding: 0;
color: $action-button-color;
border: none;
background: transparent;
cursor: pointer;
transition: color 100ms ease-in;
2016-08-31 20:58:10 +00:00
&:hover,
&:active,
&:focus {
color: lighten($action-button-color, 7%);
transition: color 200ms ease-out;
2016-08-31 20:58:10 +00:00
}
&.disabled {
color: darken($action-button-color, 13%);
2016-08-31 20:58:10 +00:00
cursor: default;
}
&.active {
color: $highlight-text-color;
}
2017-02-28 23:53:11 +00:00
2017-03-24 23:01:43 +00:00
&::-moz-focus-inner {
border: 0;
}
&::-moz-focus-inner,
&:focus,
&:active {
2017-03-24 23:01:43 +00:00
outline: 0 !important;
}
&.inverted {
color: $lighter-text-color;
2017-03-24 23:01:43 +00:00
&:hover,
&:active,
&:focus {
color: darken($lighter-text-color, 7%);
2017-03-24 23:01:43 +00:00
}
&.disabled {
color: lighten($lighter-text-color, 7%);
}
2017-03-24 23:01:43 +00:00
&.active {
color: $highlight-text-color;
2017-03-24 23:01:43 +00:00
&.disabled {
color: lighten($highlight-text-color, 13%);
}
2017-03-24 23:01:43 +00:00
}
}
&.overlayed {
box-sizing: content-box;
background: rgba($base-overlay-background, 0.6);
color: rgba($primary-text-color, 0.7);
border-radius: 4px;
padding: 2px;
&:hover {
background: rgba($base-overlay-background, 0.9);
}
}
2017-03-24 23:01:43 +00:00
}
.text-icon-button {
color: $lighter-text-color;
2017-03-24 23:01:43 +00:00
border: none;
background: transparent;
cursor: pointer;
font-weight: 600;
2017-03-26 11:08:15 +00:00
font-size: 11px;
2017-03-24 23:01:43 +00:00
padding: 0 3px;
line-height: 27px;
outline: 0;
transition: color 100ms ease-in;
2017-03-24 23:01:43 +00:00
&:hover,
&:active,
&:focus {
color: darken($lighter-text-color, 7%);
transition: color 200ms ease-out;
2017-03-24 23:01:43 +00:00
}
&.disabled {
color: lighten($lighter-text-color, 20%);
2017-03-24 23:01:43 +00:00
cursor: default;
}
&.active {
color: $highlight-text-color;
2017-03-24 23:01:43 +00:00
}
&::-moz-focus-inner {
border: 0;
}
&::-moz-focus-inner,
&:focus,
&:active {
2017-03-24 23:01:43 +00:00
outline: 0 !important;
2017-02-28 23:53:11 +00:00
}
2016-08-31 20:58:10 +00:00
}
.dropdown-menu {
position: absolute;
transform-origin: 50% 0;
}
.invisible {
font-size: 0;
line-height: 0;
2017-01-24 19:07:46 +00:00
display: inline-block;
width: 0;
height: 0;
position: absolute;
img,
svg {
margin: 0 !important;
border: 0 !important;
padding: 0 !important;
width: 0 !important;
height: 0 !important;
}
}
.ellipsis {
&::after {
content: "";
}
}
2018-01-13 22:48:18 +00:00
.notification__favourite-icon-wrapper {
2018-01-14 23:48:54 +00:00
left: 0;
2018-01-13 22:48:18 +00:00
position: absolute;
2018-01-15 00:05:44 +00:00
.fa.star-icon {
2018-01-13 22:48:18 +00:00
color: $gold-star;
}
}
2018-01-13 22:48:18 +00:00
.star-icon.active {
color: $gold-star;
}
2018-05-21 16:57:51 +00:00
.bookmark-icon.active {
color: $red-bookmark;
}
2018-01-13 22:48:18 +00:00
.notification__display-name {
color: inherit;
font-weight: 500;
text-decoration: none;
&:hover {
color: $primary-text-color;
text-decoration: underline;
}
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.display-name {
2018-01-13 18:41:20 +00:00
display: block;
max-width: 100%;
overflow: hidden;
2018-01-13 22:48:18 +00:00
text-overflow: ellipsis;
white-space: nowrap;
2018-01-13 23:47:59 +00:00
a {
color: inherit;
text-decoration: inherit;
}
2018-01-13 23:47:59 +00:00
strong {
height: 18px;
font-size: 16px;
font-weight: 500;
line-height: 18px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
span {
display: block;
height: 18px;
font-size: 15px;
line-height: 18px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
> a:hover {
2018-01-13 23:47:59 +00:00
strong {
text-decoration: underline;
}
}
&.inline {
padding: 0;
height: 18px;
font-size: 15px;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
strong {
display: inline;
height: auto;
font-size: inherit;
line-height: inherit;
}
span {
display: inline;
height: auto;
font-size: inherit;
line-height: inherit;
}
}
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.display-name__html {
font-weight: 500;
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.display-name__account {
font-size: 14px;
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.image-loader {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
.image-loader__preview-canvas {
max-width: $media-modal-media-max-width;
max-height: $media-modal-media-max-height;
background: url('~images/void.png') repeat;
object-fit: contain;
}
2016-09-10 08:14:36 +00:00
.loading-bar {
position: relative;
2016-09-10 08:14:36 +00:00
}
&.image-loader--amorphous .image-loader__preview-canvas {
display: none;
2016-08-24 19:08:00 +00:00
}
}
.zoomable-image {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
img {
max-width: $media-modal-media-max-width;
max-height: $media-modal-media-max-height;
width: auto;
height: auto;
object-fit: contain;
}
2016-08-24 19:08:00 +00:00
}
2016-08-31 20:58:10 +00:00
2018-01-13 22:48:18 +00:00
.dropdown {
display: inline-block;
}
2018-01-13 22:48:18 +00:00
.dropdown__content {
display: none;
2018-01-13 18:41:20 +00:00
position: absolute;
}
2018-01-13 22:48:18 +00:00
.dropdown-menu__separator {
border-bottom: 1px solid darken($ui-secondary-color, 8%);
margin: 5px 7px 6px;
height: 0;
}
2018-01-13 22:48:18 +00:00
.dropdown-menu {
background: $ui-secondary-color;
padding: 4px 0;
border-radius: 4px;
box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
2018-01-13 22:48:18 +00:00
ul {
list-style: none;
}
2018-01-13 22:48:18 +00:00
}
2018-01-13 22:48:18 +00:00
.dropdown-menu__arrow {
position: absolute;
width: 0;
height: 0;
border: 0 solid transparent;
2018-01-13 22:48:18 +00:00
&.left {
right: -5px;
margin-top: -5px;
border-width: 5px 0 5px 5px;
border-left-color: $ui-secondary-color;
}
2018-01-13 22:48:18 +00:00
&.top {
bottom: -5px;
2018-09-06 20:00:25 +00:00
margin-left: -7px;
2018-01-13 22:48:18 +00:00
border-width: 5px 7px 0;
border-top-color: $ui-secondary-color;
}
2018-01-13 22:48:18 +00:00
&.bottom {
top: -5px;
2018-09-06 20:00:25 +00:00
margin-left: -7px;
2018-01-13 22:48:18 +00:00
border-width: 0 7px 5px;
border-bottom-color: $ui-secondary-color;
}
2017-04-11 19:24:17 +00:00
2018-01-13 22:48:18 +00:00
&.right {
left: -5px;
margin-top: -5px;
border-width: 5px 5px 5px 0;
border-right-color: $ui-secondary-color;
2017-04-11 19:24:17 +00:00
}
}
2018-01-13 22:48:18 +00:00
.dropdown-menu__item {
a {
font-size: 13px;
line-height: 18px;
display: block;
padding: 4px 14px;
box-sizing: border-box;
text-decoration: none;
background: $ui-secondary-color;
color: $inverted-text-color;
2018-01-13 22:48:18 +00:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2018-01-13 22:48:18 +00:00
&:focus,
&:hover,
&:active {
background: $ui-highlight-color;
color: $secondary-text-color;
2018-01-13 22:48:18 +00:00
outline: 0;
}
}
}
2018-01-13 22:48:18 +00:00
.dropdown--active .dropdown__content {
2018-01-13 18:41:20 +00:00
display: block;
2018-01-13 22:48:18 +00:00
line-height: 18px;
max-width: 311px;
right: 0;
text-align: left;
z-index: 9999;
2017-06-22 02:05:24 +00:00
2018-01-13 22:48:18 +00:00
& > ul {
list-style: none;
background: $ui-secondary-color;
padding: 4px 0;
border-radius: 4px;
box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
min-width: 140px;
position: relative;
}
2018-01-13 22:48:18 +00:00
&.dropdown__right {
right: 0;
}
2018-01-13 22:48:18 +00:00
&.dropdown__left {
& > ul {
left: -98px;
}
}
& > ul > li > a {
font-size: 13px;
line-height: 18px;
display: block;
padding: 4px 14px;
box-sizing: border-box;
text-decoration: none;
background: $ui-secondary-color;
color: $inverted-text-color;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2018-01-13 22:48:18 +00:00
&:focus {
outline: 0;
}
&:hover {
background: $ui-highlight-color;
color: $secondary-text-color;
2018-01-13 22:48:18 +00:00
}
}
}
2018-01-13 22:48:18 +00:00
.dropdown__icon {
vertical-align: middle;
}
2018-01-13 22:48:18 +00:00
.static-content {
padding: 10px;
padding-top: 20px;
color: $dark-text-color;
2018-01-13 22:48:18 +00:00
h1 {
font-size: 16px;
font-weight: 500;
margin-bottom: 40px;
text-align: center;
}
2018-01-13 22:48:18 +00:00
p {
font-size: 13px;
margin-bottom: 20px;
}
}
2019-06-12 18:49:56 +00:00
.column,
.drawer {
flex: 1 1 100%;
overflow: hidden;
}
@media screen and (min-width: 631px) {
.columns-area {
padding: 0;
}
.column,
.drawer {
flex: 0 0 auto;
padding: 10px;
padding-left: 5px;
padding-right: 5px;
&:first-child {
padding-left: 10px;
}
&:last-child {
padding-right: 10px;
}
}
.columns-area > div {
.column,
.drawer {
padding-left: 5px;
padding-right: 5px;
}
}
}
2018-01-13 22:48:18 +00:00
.tabs-bar {
box-sizing: border-box;
display: flex;
2018-01-13 22:48:18 +00:00
background: lighten($ui-base-color, 8%);
flex: 0 0 auto;
overflow-y: auto;
}
2018-01-13 22:48:18 +00:00
.tabs-bar__link {
display: block;
flex: 1 1 auto;
padding: 15px 10px;
padding-bottom: 13px;
2018-01-13 22:48:18 +00:00
color: $primary-text-color;
text-decoration: none;
2018-01-13 22:48:18 +00:00
text-align: center;
font-size: 14px;
font-weight: 500;
border-bottom: 2px solid lighten($ui-base-color, 8%);
2019-05-07 22:04:48 +00:00
transition: all 50ms linear;
transition-property: border-bottom, background, color;
2018-01-13 22:48:18 +00:00
.fa {
font-weight: 400;
font-size: 16px;
}
2018-01-13 22:48:18 +00:00
&:hover,
&:focus,
&:active {
@include multi-columns('screen and (min-width: 631px)') {
background: lighten($ui-base-color, 14%);
border-bottom-color: lighten($ui-base-color, 14%);
2018-01-13 18:41:20 +00:00
}
}
&.active {
border-bottom: 2px solid $ui-highlight-color;
color: $highlight-text-color;
}
span {
2018-01-13 22:48:18 +00:00
margin-left: 5px;
display: none;
}
2019-06-12 14:03:10 +00:00
span.icon {
margin-left: 0;
display: inline;
}
}
.icon-with-badge {
position: relative;
&__badge {
position: absolute;
left: 9px;
top: -13px;
background: $ui-highlight-color;
border: 2px solid lighten($ui-base-color, 8%);
padding: 1px 6px;
border-radius: 6px;
font-size: 10px;
font-weight: 500;
line-height: 14px;
color: $primary-text-color;
2018-01-13 22:48:18 +00:00
}
}
.column-link--transparent .icon-with-badge__badge {
border-color: darken($ui-base-color, 8%);
}
2018-01-13 22:48:18 +00:00
.scrollable {
overflow-y: scroll;
overflow-x: hidden;
flex: 1 1 auto;
-webkit-overflow-scrolling: touch;
will-change: transform; // improves perf in mobile Chrome
2016-08-31 20:58:10 +00:00
2018-01-13 22:48:18 +00:00
&.optionally-scrollable {
overflow-y: auto;
2016-09-01 12:12:11 +00:00
}
2018-01-13 22:48:18 +00:00
@supports(display: grid) { // hack to fix Chrome <57
contain: strict;
}
&--flex {
display: flex;
flex-direction: column;
}
&__append {
flex: 1 1 auto;
position: relative;
min-height: 120px;
}
2016-09-01 12:12:11 +00:00
}
2018-01-13 22:48:18 +00:00
.scrollable.fullscreen {
@supports(display: grid) { // hack to fix Chrome <57
contain: none;
2018-01-13 18:41:20 +00:00
}
}
2018-01-13 22:48:18 +00:00
.react-toggle {
display: inline-block;
position: relative;
cursor: pointer;
background-color: transparent;
border: 0;
padding: 0;
user-select: none;
-webkit-tap-highlight-color: rgba($base-overlay-background, 0);
-webkit-tap-highlight-color: transparent;
}
2016-11-20 18:39:18 +00:00
2018-01-13 22:48:18 +00:00
.react-toggle-screenreader-only {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
2016-11-20 18:39:18 +00:00
2018-01-13 22:48:18 +00:00
.react-toggle--disabled {
cursor: not-allowed;
opacity: 0.5;
transition: opacity 0.25s;
}
2018-01-13 22:48:18 +00:00
.react-toggle-track {
width: 50px;
height: 24px;
padding: 0;
border-radius: 30px;
background-color: $ui-base-color;
transition: background-color 0.2s ease;
2018-01-13 22:48:18 +00:00
}
2018-01-13 22:48:18 +00:00
.react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
background-color: darken($ui-base-color, 10%);
2016-11-20 18:39:18 +00:00
}
2018-01-13 22:48:18 +00:00
.react-toggle--checked .react-toggle-track {
background-color: $ui-highlight-color;
}
2018-01-13 22:48:18 +00:00
.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
background-color: lighten($ui-highlight-color, 10%);
}
2018-01-13 22:48:18 +00:00
.react-toggle-track-check {
position: absolute;
width: 14px;
height: 10px;
top: 0;
bottom: 0;
margin-top: auto;
margin-bottom: auto;
line-height: 0;
left: 8px;
opacity: 0;
transition: opacity 0.25s ease;
}
2018-01-13 22:48:18 +00:00
.react-toggle--checked .react-toggle-track-check {
opacity: 1;
transition: opacity 0.25s ease;
}
.react-toggle-track-x {
2018-01-13 18:41:20 +00:00
position: absolute;
2018-01-13 22:48:18 +00:00
width: 10px;
height: 10px;
top: 0;
bottom: 0;
margin-top: auto;
margin-bottom: auto;
line-height: 0;
right: 10px;
opacity: 1;
transition: opacity 0.25s ease;
}
2018-01-13 22:48:18 +00:00
.react-toggle--checked .react-toggle-track-x {
opacity: 0;
}
2018-01-13 22:48:18 +00:00
.react-toggle-thumb {
position: absolute;
top: 1px;
left: 1px;
width: 22px;
height: 22px;
border: 1px solid $ui-base-color;
border-radius: 50%;
background-color: darken($simple-background-color, 2%);
box-sizing: border-box;
transition: all 0.25s ease;
transition-property: border-color, left;
}
2018-01-13 22:48:18 +00:00
.react-toggle--checked .react-toggle-thumb {
left: 27px;
border-color: $ui-highlight-color;
}
.getting-started__wrapper,
.getting_started {
background: $ui-base-color;
}
2018-01-13 22:48:18 +00:00
.getting-started__wrapper {
position: relative;
overflow-y: auto;
2016-08-31 20:58:10 +00:00
}
2018-01-13 22:48:18 +00:00
.getting-started {
background: $ui-base-color;
flex: 1 0 auto;
2016-09-29 22:00:45 +00:00
2018-01-13 22:48:18 +00:00
p {
color: $secondary-text-color;
}
2018-01-13 22:48:18 +00:00
a {
color: $dark-text-color;
}
&__footer {
flex: 0 0 auto;
padding: 10px;
padding-top: 20px;
ul {
margin-bottom: 10px;
}
ul li {
display: inline;
}
p {
color: $dark-text-color;
font-size: 13px;
margin-bottom: 20px;
a {
color: $dark-text-color;
text-decoration: underline;
}
}
a {
text-decoration: none;
color: $darker-text-color;
&:hover,
&:focus,
&:active {
text-decoration: underline;
}
}
}
2018-01-13 22:48:18 +00:00
}
2018-01-23 01:05:13 +00:00
.column-link__badge {
display: inline-block;
border-radius: 4px;
font-size: 12px;
line-height: 19px;
font-weight: 500;
background: $ui-base-color;
padding: 4px 8px;
margin: -6px 10px;
}
2018-01-13 22:48:18 +00:00
.keyboard-shortcuts {
padding: 8px 0 0;
overflow: hidden;
2018-01-13 22:48:18 +00:00
thead {
position: absolute;
left: -9999px;
}
2018-01-13 22:48:18 +00:00
td {
padding: 0 10px 8px;
}
kbd {
display: inline-block;
padding: 3px 5px;
background-color: lighten($ui-base-color, 8%);
border: 1px solid darken($ui-base-color, 4%);
}
2017-01-28 03:04:09 +00:00
}
2018-01-13 22:48:18 +00:00
.setting-text {
color: $darker-text-color;
2018-01-13 22:48:18 +00:00
background: transparent;
border: none;
border-bottom: 2px solid $ui-primary-color;
box-sizing: border-box;
display: block;
font-family: inherit;
margin-bottom: 10px;
padding: 7px 0;
width: 100%;
2018-01-13 18:41:20 +00:00
2018-01-13 22:48:18 +00:00
&:focus,
&:active {
2018-01-13 18:41:20 +00:00
color: $primary-text-color;
2018-01-13 22:48:18 +00:00
border-bottom-color: $ui-highlight-color;
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
@include limited-single-column('screen and (max-width: 600px)') {
font-size: 16px;
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
&.light {
color: $inverted-text-color;
2018-01-13 22:48:18 +00:00
border-bottom: 2px solid lighten($ui-base-color, 27%);
&:focus,
&:active {
color: $inverted-text-color;
2018-01-13 22:48:18 +00:00
border-bottom-color: $ui-highlight-color;
}
2018-01-13 18:41:20 +00:00
}
}
2018-01-13 22:48:18 +00:00
.no-reduce-motion button.icon-button i.fa-retweet {
background-position: 0 0;
height: 19px;
transition: background-position 0.9s steps(10);
transition-duration: 0s;
vertical-align: middle;
width: 22px;
2018-01-13 18:41:20 +00:00
2018-01-13 22:48:18 +00:00
&::before {
display: none !important;
}
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.no-reduce-motion button.icon-button.active i.fa-retweet {
transition-duration: 0.9s;
background-position: 0 100%;
}
2018-01-13 22:48:18 +00:00
.reduce-motion button.icon-button i.fa-retweet {
color: $action-button-color;
2018-01-13 22:48:18 +00:00
transition: color 100ms ease-in;
}
2018-01-13 22:48:18 +00:00
.reduce-motion button.icon-button.active i.fa-retweet {
color: $highlight-text-color;
2017-02-28 23:53:11 +00:00
}
.reduce-motion button.icon-button.disabled i.fa-retweet {
color: darken($action-button-color, 13%);
}
2018-01-13 22:48:18 +00:00
.load-more {
2016-09-29 22:00:45 +00:00
display: block;
color: $dark-text-color;
2018-01-13 22:48:18 +00:00
background-color: transparent;
border: 0;
font-size: inherit;
text-align: center;
line-height: inherit;
margin: 0;
padding: 15px;
box-sizing: border-box;
2018-01-13 22:48:18 +00:00
width: 100%;
clear: both;
text-decoration: none;
2018-01-13 22:48:18 +00:00
&:hover {
background: lighten($ui-base-color, 2%);
}
}
.load-gap {
border-bottom: 1px solid lighten($ui-base-color, 8%);
}
2018-01-13 22:48:18 +00:00
.missing-indicator {
padding-top: 20px + 48px;
.regeneration-indicator__figure {
background-image: url('~flavours/glitch/images/elephant_ui_disappointed.svg');
}
}
2018-01-13 23:47:59 +00:00
.scrollable > div > :first-child .notification__dismiss-overlay > .wrappy {
border-top: 1px solid $ui-base-color;
}
.notification__dismiss-overlay {
overflow: hidden;
position: absolute;
top: 0;
right: 0;
bottom: -1px;
padding-left: 15px; // space for the box shadow to be visible
z-index: 999;
align-items: center;
justify-content: flex-end;
cursor: pointer;
display: flex;
.wrappy {
width: $dismiss-overlay-width;
align-self: stretch;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: lighten($ui-base-color, 8%);
border-left: 1px solid lighten($ui-base-color, 20%);
box-shadow: 0 0 5px black;
border-bottom: 1px solid $ui-base-color;
}
.ckbox {
border: 2px solid $ui-primary-color;
border-radius: 2px;
width: 30px;
height: 30px;
font-size: 20px;
color: $darker-text-color;
2018-01-13 23:47:59 +00:00
text-shadow: 0 0 5px black;
display: flex;
justify-content: center;
align-items: center;
}
&:focus {
outline: 0 !important;
.ckbox {
box-shadow: 0 0 1px 1px $ui-highlight-color;
}
}
}
2018-01-13 22:48:18 +00:00
.text-btn {
display: inline-block;
padding: 0;
font-family: inherit;
font-size: inherit;
color: inherit;
border: 0;
background: transparent;
cursor: pointer;
2018-01-13 22:48:18 +00:00
}
2018-01-13 22:48:18 +00:00
.loading-indicator {
color: $dark-text-color;
2018-01-13 22:48:18 +00:00
font-size: 12px;
font-weight: 400;
text-transform: uppercase;
overflow: visible;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2018-01-13 22:48:18 +00:00
span {
display: block;
float: left;
margin-left: 50%;
transform: translateX(-50%);
margin: 82px 0 0 50%;
white-space: nowrap;
}
}
2018-01-13 22:48:18 +00:00
.loading-indicator__figure {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 42px;
height: 42px;
2018-01-13 22:48:18 +00:00
box-sizing: border-box;
background-color: transparent;
2018-01-13 22:48:18 +00:00
border: 0 solid lighten($ui-base-color, 26%);
border-width: 6px;
2018-01-13 22:48:18 +00:00
border-radius: 50%;
}
.no-reduce-motion .loading-indicator span {
animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
.no-reduce-motion .loading-indicator__figure {
2018-01-13 22:48:18 +00:00
animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
2018-01-13 22:48:18 +00:00
@keyframes loader-figure {
0% {
width: 0;
height: 0;
background-color: lighten($ui-base-color, 26%);
}
2018-01-13 22:48:18 +00:00
29% {
background-color: lighten($ui-base-color, 26%);
}
2018-01-13 22:48:18 +00:00
30% {
width: 42px;
height: 42px;
background-color: transparent;
border-width: 21px;
opacity: 1;
}
2018-01-13 22:48:18 +00:00
100% {
width: 42px;
height: 42px;
border-width: 0;
opacity: 0;
background-color: transparent;
}
}
2018-01-13 22:48:18 +00:00
@keyframes loader-label {
0% { opacity: 0.25; }
30% { opacity: 1; }
100% { opacity: 0.25; }
}
2018-01-13 22:48:18 +00:00
.spoiler-button {
top: 0;
left: 0;
width: 100%;
height: 100%;
2018-01-13 22:48:18 +00:00
position: absolute;
z-index: 100;
&--minified {
2019-05-04 16:18:15 +00:00
display: flex;
left: 4px;
top: 4px;
width: auto;
height: auto;
2019-05-04 16:18:15 +00:00
align-items: center;
}
&--hidden {
display: none;
}
&__overlay {
2018-01-13 22:48:18 +00:00
display: block;
background: transparent;
width: 100%;
height: 100%;
border: 0;
&__label {
display: inline-block;
background: rgba($base-overlay-background, 0.5);
border-radius: 8px;
padding: 8px 12px;
color: $primary-text-color;
font-weight: 500;
font-size: 14px;
}
&:hover,
&:focus,
&:active {
.spoiler-button__overlay__label {
background: rgba($base-overlay-background, 0.8);
}
}
}
}
2018-01-13 22:48:18 +00:00
.setting-toggle {
display: block;
line-height: 24px;
}
2018-01-13 22:48:18 +00:00
.setting-toggle__label,
.setting-radio__label,
2018-01-13 22:48:18 +00:00
.setting-meta__label {
color: $darker-text-color;
2018-01-13 22:48:18 +00:00
display: inline-block;
margin-bottom: 14px;
margin-left: 8px;
vertical-align: middle;
}
.setting-radio {
display: block;
line-height: 18px;
}
.setting-radio__label {
margin-bottom: 0;
}
.column-settings__row legend {
color: $darker-text-color;
cursor: default;
display: block;
font-weight: 500;
margin-top: 10px;
}
.setting-radio__input {
vertical-align: middle;
}
2018-01-13 22:48:18 +00:00
.setting-meta__label {
float: right;
}
2018-01-13 22:48:18 +00:00
@keyframes heartbeat {
from {
transform: scale(1);
transform-origin: center center;
animation-timing-function: ease-out;
}
2018-01-13 22:48:18 +00:00
10% {
transform: scale(0.91);
animation-timing-function: ease-in;
}
2018-01-13 22:48:18 +00:00
17% {
transform: scale(0.98);
animation-timing-function: ease-out;
}
2018-01-13 22:48:18 +00:00
33% {
transform: scale(0.87);
animation-timing-function: ease-in;
}
2018-01-13 22:48:18 +00:00
45% {
transform: scale(1);
animation-timing-function: ease-out;
}
}
2018-01-13 22:48:18 +00:00
.pulse-loading {
animation: heartbeat 1.5s ease-in-out infinite both;
}
2018-01-13 22:48:18 +00:00
.upload-area {
align-items: center;
background: rgba($base-overlay-background, 0.8);
2017-04-11 19:24:17 +00:00
display: flex;
2018-01-13 22:48:18 +00:00
height: 100%;
justify-content: center;
left: 0;
opacity: 0;
position: absolute;
top: 0;
visibility: hidden;
width: 100%;
z-index: 2000;
2017-04-11 19:24:17 +00:00
2018-01-13 22:48:18 +00:00
* {
pointer-events: none;
2017-04-11 02:28:52 +00:00
}
}
2018-01-13 22:48:18 +00:00
.upload-area__drop {
width: 320px;
height: 160px;
display: flex;
box-sizing: border-box;
position: relative;
padding: 8px;
}
2018-01-13 22:48:18 +00:00
.upload-area__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
border-radius: 4px;
background: $ui-base-color;
box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
}
2018-01-13 22:48:18 +00:00
.upload-area__content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
color: $secondary-text-color;
2018-01-13 22:48:18 +00:00
font-size: 18px;
font-weight: 500;
border: 2px dashed $ui-base-lighter-color;
border-radius: 4px;
}
2018-01-13 22:48:18 +00:00
.dropdown--active .emoji-button img {
opacity: 1;
filter: none;
}
2018-01-13 22:48:18 +00:00
.loading-bar {
background-color: $ui-highlight-color;
height: 3px;
position: absolute;
top: 0;
left: 0;
}
.icon-badge-wrapper {
position: relative;
}
.icon-badge {
position: absolute;
display: block;
right: -.25em;
top: -.25em;
background-color: $ui-highlight-color;
border-radius: 50%;
font-size: 75%;
width: 1em;
height: 1em;
}
.layout-toggle {
display: flex;
padding: 5px;
button {
box-sizing: border-box;
flex: 0 0 50%;
background: transparent;
padding: 5px;
border: 0;
position: relative;
&:hover,
&:focus,
&:active {
svg path:first-child {
fill: lighten($ui-base-color, 16%);
}
}
}
svg {
width: 100%;
height: auto;
path:first-child {
fill: lighten($ui-base-color, 12%);
}
path:last-child {
fill: darken($ui-base-color, 14%);
}
}
&__active {
color: $ui-highlight-color;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: lighten($ui-base-color, 12%);
border-radius: 50%;
padding: 0.35rem;
}
}
::-webkit-scrollbar-thumb {
border-radius: 0;
}
noscript {
text-align: center;
img {
width: 200px;
opacity: 0.5;
animation: flicker 4s infinite;
}
div {
font-size: 14px;
margin: 30px auto;
color: $secondary-text-color;
max-width: 400px;
a {
color: $highlight-text-color;
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
}
@keyframes flicker {
0% { opacity: 1; }
30% { opacity: 0.75; }
100% { opacity: 1; }
}
2018-01-14 00:12:10 +00:00
@import 'boost';
@import 'accounts';
2018-03-04 20:46:27 +00:00
@import 'domains';
2018-01-13 22:48:18 +00:00
@import 'status';
@import 'modal';
2017-12-29 22:55:06 +00:00
@import 'composer';
2018-01-14 00:12:10 +00:00
@import 'columns';
@import 'regeneration_indicator';
2018-01-14 00:12:10 +00:00
@import 'search';
@import 'emoji';
@import 'doodle';
2017-12-29 22:55:06 +00:00
@import 'drawer';
2018-01-13 22:18:50 +00:00
@import 'media';
@import 'sensitive';
2018-01-14 00:12:10 +00:00
@import 'lists';
@import 'emoji_picker';
@import 'local_settings';
@import 'error_boundary';
2019-06-12 14:03:10 +00:00
@import 'single_column';