mastodon/app/javascript/flavours/glitch/styles/components/index.scss

1938 lines
33 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;
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;
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
}
&.button-alternative {
font-size: 16px;
line-height: 36px;
height: auto;
color: $ui-base-color;
background: $ui-primary-color;
text-transform: none;
padding: 4px 16px;
&:active,
&:focus,
&:hover {
background-color: lighten($ui-primary-color, 4%);
}
}
&.button-secondary {
font-size: 16px;
line-height: 36px;
height: auto;
color: $ui-primary-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($ui-primary-color, 4%);
}
}
&.button--block {
display: block;
width: 100%;
}
}
.column__wrapper {
display: flex;
flex: 1 1 auto;
position: relative;
2016-08-31 20:58:10 +00:00
}
.column-icon {
background: lighten($ui-base-color, 4%);
color: $ui-primary-color;
cursor: pointer;
font-size: 16px;
padding: 15px;
position: absolute;
right: 0;
top: -48px;
z-index: 3;
&:hover {
color: lighten($ui-primary-color, 7%);
}
}
2016-08-31 20:58:10 +00:00
.icon-button {
2017-03-24 23:01:43 +00:00
display: inline-block;
padding: 0;
color: $ui-base-lighter-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($ui-base-color, 33%);
transition: color 200ms ease-out;
2016-08-31 20:58:10 +00:00
}
&.disabled {
color: lighten($ui-base-color, 13%);
2016-08-31 20:58:10 +00:00
cursor: default;
}
&.active {
color: $ui-highlight-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: lighten($ui-base-color, 33%);
2017-03-24 23:01:43 +00:00
&:hover,
&:active,
&:focus {
color: $ui-base-lighter-color;
2017-03-24 23:01:43 +00:00
}
&.disabled {
color: $ui-primary-color;
}
2017-03-24 23:01:43 +00:00
&.active {
color: $ui-highlight-color;
2017-03-24 23:01:43 +00:00
&.disabled {
color: lighten($ui-highlight-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: lighten($ui-base-color, 33%);
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: $ui-base-lighter-color;
transition: color 200ms ease-out;
2017-03-24 23:01:43 +00:00
}
&.disabled {
color: lighten($ui-base-color, 13%);
2017-03-24 23:01:43 +00:00
cursor: default;
}
&.active {
color: $ui-highlight-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;
}
2017-03-01 23:57:55 +00:00
.dropdown--active .icon-button {
color: $ui-highlight-color;
2017-03-01 23:57:55 +00:00
}
.dropdown--active::after {
@media screen and (min-width: 631px) {
content: "";
display: block;
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 0 4.5px 7.8px;
border-color: transparent transparent $ui-secondary-color;
bottom: 8px;
right: 104px;
}
}
.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: "";
}
}
.lightbox .icon-button {
color: $ui-base-color;
}
2016-11-08 20:45:51 +00:00
.emojione {
display: inline-block;
font-size: inherit;
vertical-align: middle;
object-fit: contain;
2016-11-08 20:45:51 +00:00
margin: -.2ex .15em .2ex;
2016-11-15 17:38:57 +00:00
width: 16px;
height: 16px;
2016-11-08 20:45:51 +00:00
img {
width: auto;
}
}
2018-01-13 22:48:18 +00:00
.notification__favourite-icon-wrapper {
left: -26px;
position: absolute;
.star-icon {
color: $gold-star;
}
}
2018-01-13 22:48:18 +00:00
.star-icon.active {
color: $gold-star;
}
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;
2018-01-13 23:47:59 +00:00
padding: 6px 0;
2018-01-13 18:41:20 +00:00
max-width: 100%;
2018-01-13 23:47:59 +00:00
height: 36px;
2018-01-13 18:41:20 +00:00
overflow: hidden;
2018-01-13 22:48:18 +00:00
text-overflow: ellipsis;
white-space: nowrap;
2018-01-13 23:47:59 +00:00
strong {
display: block;
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;
}
&:hover {
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;
2016-09-10 08:14:36 +00:00
2018-01-13 22:48:18 +00:00
&.image-loader--loading {
.image-loader__preview-canvas {
filter: blur(2px);
2016-09-10 08:14:36 +00:00
}
}
2018-01-13 22:48:18 +00:00
.image-loader__img {
position: absolute;
top: 0;
left: 0;
right: 0;
max-width: 100%;
max-height: 100%;
background-image: none;
2016-08-24 19:08:00 +00:00
}
2018-01-13 22:48:18 +00:00
&.image-loader--amorphous {
position: static;
2018-01-13 18:41:20 +00:00
2018-01-13 22:48:18 +00:00
.image-loader__preview-canvas {
display: none;
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.image-loader__img {
position: static;
width: auto;
height: auto;
}
}
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;
margin-left: -13px;
border-width: 5px 7px 0;
border-top-color: $ui-secondary-color;
}
2018-01-13 22:48:18 +00:00
&.bottom {
top: -5px;
margin-left: -13px;
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: $ui-base-color;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2018-01-13 22:48:18 +00:00
&:focus,
&:hover,
&:active {
background: $ui-highlight-color;
color: $ui-secondary-color;
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: $ui-base-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: $ui-secondary-color;
}
}
}
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: $ui-base-lighter-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;
}
}
2018-01-13 22:48:18 +00:00
.columns-area {
display: flex;
flex: 1 1 auto;
2018-01-13 22:48:18 +00:00
flex-direction: row;
justify-content: flex-start;
overflow-x: auto;
position: relative;
}
2018-01-13 22:48:18 +00:00
@include limited-single-column('screen and (max-width: 360px)', $parent: null) {
.columns-area {
padding: 10px;
}
2018-01-13 22:48:18 +00:00
.react-swipeable-view-container .columns-area {
height: calc(100% - 20px) !important;
}
}
2018-01-13 22:48:18 +00:00
.react-swipeable-view-container {
&,
.columns-area,
.drawer,
.column {
height: 100%;
}
}
2018-01-13 22:48:18 +00:00
.react-swipeable-view-container > * {
display: flex;
2018-01-13 22:48:18 +00:00
align-items: center;
justify-content: center;
height: 100%;
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.column {
width: 330px;
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
2018-01-13 22:48:18 +00:00
> .scrollable {
background: $ui-base-color;
}
}
2018-01-13 22:48:18 +00:00
.ui {
flex: 0 0 auto;
display: flex;
2018-01-13 22:48:18 +00:00
flex-direction: column;
width: 100%;
height: 100%;
background: darken($ui-base-color, 7%);
}
2018-01-13 22:48:18 +00:00
.column {
overflow: hidden;
}
2018-01-13 22:48:18 +00:00
@include limited-single-column('screen and (max-width: 360px)', $parent: null) {
.tabs-bar {
margin: 0;
}
}
2018-01-13 22:48:18 +00:00
:root { // Overrides .wide stylings for mobile view
@include single-column('screen and (max-width: 630px)', $parent: null) {
.column {
flex: auto;
width: 100%;
min-width: 0;
max-width: none;
padding: 0;
}
2018-01-13 22:48:18 +00:00
.columns-area {
flex-direction: column;
}
2018-01-13 22:48:18 +00:00
.search__input,
.autosuggest-textarea__textarea {
font-size: 16px;
}
}
}
2018-01-13 22:48:18 +00:00
@include multi-columns('screen and (min-width: 631px)', $parent: null) {
.columns-area {
padding: 0;
}
2018-01-13 22:48:18 +00:00
.column {
flex: 0 0 auto;
padding: 10px;
padding-left: 5px;
padding-right: 5px;
2018-01-13 22:48:18 +00:00
&:first-child {
padding-left: 10px;
}
2017-06-27 12:48:26 +00:00
2018-01-13 18:41:20 +00:00
&:last-child {
2018-01-13 22:48:18 +00:00
padding-right: 10px;
2017-06-21 02:44:43 +00:00
}
2017-06-27 12:48:26 +00:00
}
2017-06-21 02:44:43 +00:00
2018-01-13 22:48:18 +00:00
.columns-area > div {
.column {
padding-left: 5px;
padding-right: 5px;
2017-06-27 12:48:26 +00:00
}
}
2018-01-13 18:41:20 +00:00
}
2017-06-27 12:48:26 +00:00
2018-01-13 22:48:18 +00:00
.drawer__pager {
box-sizing: border-box;
padding: 0;
flex-grow: 1;
position: relative;
overflow: hidden;
display: flex;
}
2018-01-13 22:48:18 +00:00
.drawer__inner {
position: absolute;
top: 0;
left: 0;
background: lighten($ui-base-color, 13%) url('~images/wave-drawer.png') no-repeat bottom / 100% auto;
box-sizing: border-box;
padding: 0;
display: flex;
flex-direction: column;
overflow: hidden;
overflow-y: auto;
width: 100%;
height: 100%;
2018-01-13 22:48:18 +00:00
&.darker {
background: $ui-base-color;
}
2018-01-13 22:48:18 +00:00
> .mastodon {
background: url('~images/mastodon-ui.png') no-repeat left bottom / contain;
flex: 1;
}
}
2018-01-13 22:48:18 +00:00
.pseudo-drawer {
background: lighten($ui-base-color, 13%);
font-size: 13px;
text-align: left;
}
.tabs-bar {
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;
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%);
transition: all 200ms linear;
2018-01-13 22:48:18 +00:00
.fa {
font-weight: 400;
font-size: 16px;
}
2018-01-13 22:48:18 +00:00
&.active {
border-bottom: 2px solid $ui-highlight-color;
color: $ui-highlight-color;
}
2018-01-13 18:41:20 +00:00
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%);
transition: all 100ms linear;
2018-01-13 18:41:20 +00:00
}
}
2018-01-13 22:48:18 +00:00
span {
margin-left: 5px;
display: none;
}
}
2018-01-13 22:48:18 +00:00
@include limited-single-column('screen and (max-width: 600px)', $parent: null) {
.tabs-bar__link {
span {
display: inline;
}
}
}
2018-01-13 22:48:18 +00:00
@include multi-columns('screen and (min-width: 631px)', $parent: null) {
.tabs-bar {
display: none;
}
}
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;
}
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
.column-back-button {
background: lighten($ui-base-color, 4%);
color: $ui-highlight-color;
cursor: pointer;
flex: 0 0 auto;
font-size: 16px;
border: 0;
text-align: unset;
padding: 15px;
margin: 0;
z-index: 3;
2018-01-13 22:48:18 +00:00
&:hover {
text-decoration: underline;
}
}
2018-01-13 22:48:18 +00:00
.column-header__back-button {
background: lighten($ui-base-color, 4%);
border: 0;
font-family: inherit;
color: $ui-highlight-color;
cursor: pointer;
flex: 0 0 auto;
font-size: 16px;
padding: 0 5px 0 0;
z-index: 3;
2018-01-13 22:48:18 +00:00
&:hover {
text-decoration: underline;
}
2018-01-13 22:48:18 +00:00
&:last-child {
padding: 0 15px 0 0;
}
}
2018-01-13 22:48:18 +00:00
.column-back-button__icon {
display: inline-block;
margin-right: 5px;
}
2018-01-13 22:48:18 +00:00
.column-back-button--slim {
position: relative;
}
.column-back-button--slim-button {
cursor: pointer;
flex: 0 0 auto;
font-size: 16px;
padding: 15px;
2018-01-13 18:41:20 +00:00
position: absolute;
2018-01-13 22:48:18 +00:00
right: 0;
top: -48px;
}
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: all 0.2s ease;
}
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 {
transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
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;
}
2018-01-13 22:48:18 +00:00
.react-toggle--checked .react-toggle-thumb {
left: 27px;
border-color: $ui-highlight-color;
}
.column-link {
background: lighten($ui-base-color, 8%);
color: $primary-text-color;
display: block;
font-size: 16px;
padding: 15px;
2016-11-20 18:39:18 +00:00
text-decoration: none;
&:hover {
2018-01-13 22:48:18 +00:00
background: lighten($ui-base-color, 11%);
2016-11-20 18:39:18 +00:00
}
}
2018-01-13 22:48:18 +00:00
.column-link__icon {
display: inline-block;
margin-right: 5px;
2018-01-13 18:41:20 +00:00
}
2018-01-13 22:48:18 +00:00
.column-subheading {
background: $ui-base-color;
color: $ui-base-lighter-color;
padding: 8px 20px;
font-size: 12px;
2018-01-13 18:41:20 +00:00
font-weight: 500;
2018-01-13 22:48:18 +00:00
text-transform: uppercase;
cursor: default;
2018-01-13 18:41:20 +00:00
}
2018-01-06 04:04:13 +00:00
2018-01-13 22:48:18 +00:00
.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: $ui-secondary-color;
}
2018-01-13 22:48:18 +00:00
a {
color: $ui-base-lighter-color;
}
2018-01-13 22:48:18 +00:00
}
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 {
2018-01-13 18:41:20 +00:00
color: $ui-primary-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: $ui-base-color;
border-bottom: 2px solid lighten($ui-base-color, 27%);
&:focus,
&:active {
color: $ui-base-color;
border-bottom-color: $ui-highlight-color;
}
2018-01-13 18:41:20 +00:00
}
}
2018-01-13 22:48:18 +00:00
@import 'boost';
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: $ui-base-lighter-color;
transition: color 100ms ease-in;
}
2018-01-13 22:48:18 +00:00
.reduce-motion button.icon-button.active i.fa-retweet {
color: $ui-highlight-color;
2017-02-28 23:53:11 +00:00
}
2018-01-13 22:48:18 +00:00
.load-more {
2016-09-29 22:00:45 +00:00
display: block;
color: $ui-base-lighter-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;
width: 100%;
clear: both;
2018-01-13 22:48:18 +00:00
&:hover {
background: lighten($ui-base-color, 2%);
}
}
2018-01-13 22:48:18 +00:00
.missing-indicator {
text-align: center;
font-size: 16px;
font-weight: 500;
color: lighten($ui-base-color, 16%);
background: $ui-base-color;
cursor: default;
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: center;
2018-01-13 22:48:18 +00:00
& > div {
background: url('~images/mastodon-not-found.png') no-repeat center -50px;
padding-top: 210px;
width: 100%;
}
}
2018-01-13 22:48:18 +00:00
.column-header__wrapper {
position: relative;
flex: 0 0 auto;
2018-01-13 18:41:20 +00:00
&.active {
2018-01-13 22:48:18 +00:00
&::before {
display: block;
content: "";
position: absolute;
top: 35px;
left: 0;
right: 0;
margin: 0 auto;
width: 60%;
pointer-events: none;
height: 28px;
z-index: 1;
background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
}
}
2017-04-01 20:11:28 +00:00
}
2018-01-13 22:48:18 +00:00
.column-header {
2017-04-01 20:11:28 +00:00
display: flex;
2018-01-13 22:48:18 +00:00
padding: 15px;
font-size: 16px;
background: lighten($ui-base-color, 4%);
flex: 0 0 auto;
cursor: pointer;
2017-04-01 20:11:28 +00:00
position: relative;
2018-01-13 22:48:18 +00:00
z-index: 2;
outline: 0;
2017-04-01 20:11:28 +00:00
2018-01-13 22:48:18 +00:00
&.active {
box-shadow: 0 1px 0 rgba($ui-highlight-color, 0.3);
2018-01-13 22:48:18 +00:00
.column-header__icon {
color: $ui-highlight-color;
text-shadow: 0 0 10px rgba($ui-highlight-color, 0.4);
}
}
2018-01-13 22:48:18 +00:00
&:focus,
&:active {
outline: 0;
}
2017-04-01 20:11:28 +00:00
}
2017-04-11 02:28:52 +00:00
2018-01-13 23:47:59 +00:00
.column {
width: 330px;
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
overflow: hidden;
.wide & {
flex: auto;
min-width: 330px;
max-width: 400px;
}
> .scrollable {
background: $ui-base-color;
}
}
2018-01-13 22:48:18 +00:00
.column-header__buttons {
height: 48px;
display: flex;
margin: -15px;
margin-left: 0;
}
2018-01-13 22:48:18 +00:00
.column-header__links .text-btn {
margin-right: 10px;
}
2018-01-13 22:48:18 +00:00
.column-header__button {
background: lighten($ui-base-color, 4%);
border: 0;
2018-01-13 22:48:18 +00:00
color: $ui-primary-color;
cursor: pointer;
font-size: 16px;
padding: 0 15px;
2018-01-13 22:48:18 +00:00
&:hover {
color: lighten($ui-primary-color, 7%);
}
2018-01-13 22:48:18 +00:00
&.active {
color: $primary-text-color;
background: lighten($ui-base-color, 8%);
2018-01-13 22:48:18 +00:00
&:hover {
color: $primary-text-color;
background: lighten($ui-base-color, 8%);
}
}
2018-01-13 23:47:59 +00:00
// glitch - added focus ring for keyboard navigation
&:focus {
text-shadow: 0 0 4px darken($ui-highlight-color, 5%);
}
}
.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: $ui-primary-color;
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;
}
}
}
.column-header__notif-cleaning-buttons {
display: flex;
align-items: stretch;
justify-content: space-around;
button {
@extend .column-header__button;
background: transparent;
text-align: center;
padding: 10px 0;
white-space: pre-wrap;
}
b {
font-weight: bold;
}
}
// The notifs drawer with no padding to have more space for the buttons
.column-header__collapsible-inner.nopad-drawer {
padding: 0;
}
2018-01-13 22:48:18 +00:00
.column-header__collapsible {
max-height: 70vh;
overflow: hidden;
overflow-y: auto;
color: $ui-primary-color;
transition: max-height 150ms ease-in-out, opacity 300ms linear;
opacity: 1;
2018-01-13 22:48:18 +00:00
&.collapsed {
max-height: 0;
opacity: 0.5;
}
2018-01-13 22:48:18 +00:00
&.animating {
overflow-y: hidden;
}
2018-01-13 22:48:18 +00:00
hr {
height: 0;
background: transparent;
border: 0;
border-top: 1px solid lighten($ui-base-color, 12%);
margin: 10px 0;
}
2018-01-13 23:47:59 +00:00
// notif cleaning drawer
&.ncd {
transition: none;
&.collapsed {
max-height: 0;
opacity: 0.7;
}
}
}
2018-01-13 22:48:18 +00:00
.column-header__collapsible-inner {
background: lighten($ui-base-color, 8%);
padding: 15px;
}
2018-01-13 22:48:18 +00:00
.column-header__setting-btn {
&:hover {
color: lighten($ui-primary-color, 4%);
text-decoration: underline;
}
2018-01-13 22:48:18 +00:00
}
2018-01-13 22:48:18 +00:00
.column-header__setting-arrows {
float: right;
2018-01-13 22:48:18 +00:00
.column-header__setting-btn {
padding: 0 10px;
2018-01-13 22:48:18 +00:00
&:last-child {
padding-right: 0;
}
}
}
2018-01-13 22:48:18 +00:00
.column-header__title {
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
flex: 1;
}
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
.column-header__icon {
display: inline-block;
margin-right: 5px;
}
2018-01-13 22:48:18 +00:00
.loading-indicator {
color: lighten($ui-base-color, 26%);
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;
animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
}
2018-01-13 22:48:18 +00:00
.loading-indicator__figure {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 0;
height: 0;
box-sizing: border-box;
border: 0 solid lighten($ui-base-color, 26%);
border-radius: 50%;
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 {
display: none;
left: 4px;
position: absolute;
text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
top: 4px;
z-index: 100;
&.spoiler-button--visible {
display: block;
}
}
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-meta__label {
color: $ui-primary-color;
display: inline-block;
margin-bottom: 14px;
margin-left: 8px;
vertical-align: middle;
}
2018-01-13 22:48:18 +00:00
.setting-meta__label {
color: $ui-primary-color;
float: right;
}
2018-01-13 22:48:18 +00:00
.empty-column-indicator,
.error-column {
color: lighten($ui-base-color, 20%);
background: $ui-base-color;
text-align: center;
padding: 20px;
font-size: 15px;
font-weight: 400;
cursor: default;
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: center;
@supports(display: grid) { // hack to fix Chrome <57
contain: strict;
}
2018-01-13 22:48:18 +00:00
a {
color: $ui-highlight-color;
text-decoration: none;
2018-01-13 22:48:18 +00:00
&:hover {
text-decoration: underline;
}
}
}
2018-01-13 22:48:18 +00:00
.error-column {
flex-direction: column;
}
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
.emoji-picker-dropdown__menu {
background: $simple-background-color;
position: absolute;
box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
border-radius: 4px;
margin-top: 5px;
2018-01-13 22:48:18 +00:00
.emoji-mart-scroll {
transition: opacity 200ms ease;
}
2018-01-13 22:48:18 +00:00
&.selecting .emoji-mart-scroll {
opacity: 0.5;
}
}
2018-01-13 22:48:18 +00:00
.emoji-picker-dropdown__modifiers {
position: absolute;
top: 60px;
right: 11px;
cursor: pointer;
}
2018-01-13 22:48:18 +00:00
.emoji-picker-dropdown__modifiers__menu {
position: absolute;
z-index: 4;
top: -4px;
left: -8px;
background: $simple-background-color;
border-radius: 4px;
box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
2017-04-11 19:24:17 +00:00
overflow: hidden;
2018-01-13 22:48:18 +00:00
button {
2018-01-13 18:41:20 +00:00
display: block;
2018-01-13 22:48:18 +00:00
cursor: pointer;
border: 0;
padding: 4px 8px;
background: transparent;
2017-04-11 02:28:52 +00:00
2018-01-13 22:48:18 +00:00
&:hover,
&:focus,
&:active {
background: rgba($ui-secondary-color, 0.4);
}
2017-07-28 13:30:53 +00:00
}
2018-01-13 22:48:18 +00:00
.emoji-mart-emoji {
height: 22px;
}
2017-07-28 13:30:53 +00:00
}
2018-01-13 22:48:18 +00:00
.emoji-mart-emoji {
span {
background-repeat: no-repeat;
2017-04-11 02:28:52 +00:00
}
2017-04-11 19:24:17 +00:00
}
2017-04-11 02:28:52 +00:00
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: $ui-secondary-color;
font-size: 18px;
font-weight: 500;
border: 2px dashed $ui-base-lighter-color;
border-radius: 4px;
}
2018-01-13 22:48:18 +00:00
.emoji-button {
display: block;
font-size: 24px;
Optional notification muting (#5087) * Add a hide_notifications column to mutes * Add muting_notifications? and a notifications argument to mute! * block notifications in notify_service from hard muted accounts * Add specs for how mute! interacts with muting_notifications? * specs testing that hide_notifications in mutes actually hides notifications * Add support for muting notifications in MuteService * API support for muting notifications (and specs) * Less gross passing of notifications flag * Break out a separate mute modal with a hide-notifications checkbox. * Convert profile header mute to use mute modal * Satisfy eslint. * specs for MuteService notifications params * add trailing newlines to files for Pork :) * Put the label for the hide notifications checkbox in a label element. * Add a /api/v1/mutes/details route that just returns the array of mutes. * Define a serializer for /api/v1/mutes/details * Add more specs for the /api/v1/mutes/details endpoint * Expose whether a mute hides notifications in the api/v1/relationships endpoint * Show whether muted users' notifications are muted in account lists * Allow modifying the hide_notifications of a mute with the /api/v1/accounts/:id/mute endpoint * make the hide/unhide notifications buttons work * satisfy eslint * In probably dead code, replace a dispatch of muteAccount that was skipping the modal with launching the mute modal. * fix a missing import * add an explanatory comment to AccountInteractions * Refactor handling of default params for muting to make code cleaner * minor code style fixes oops * Fixed a typo that was breaking the account mute API endpoint * Apply white-space: nowrap to account relationships icons * Fix code style issues * Remove superfluous blank line * Rename /api/v1/mutes/details -> /api/v2/mutes * Don't serialize "account" in MuteSerializer Doing so is somewhat unnecessary since it's always the current user's account. * Fix wrong variable name in api/v2/mutes * Use Toggle in place of checkbox in the mute modal. * Make the Toggle in the mute modal look better * Code style changes in specs and removed an extra space * Code review suggestions from akihikodaki Also fixed a syntax error in tests for AccountInteractions. * Make AddHideNotificationsToMute Concurrent It's not clear how much this will benefit instances in practice, as the number of mutes tends to be pretty small, but this should prevent any blocking migrations nonetheless. * Fix up migration things * Remove /api/v2/mutes
2017-11-15 02:56:41 +00:00
line-height: 24px;
2018-01-13 22:48:18 +00:00
margin-left: 2px;
width: 24px;
outline: 0;
cursor: pointer;
2018-01-13 18:41:20 +00:00
2018-01-13 22:48:18 +00:00
&:active,
&:focus {
outline: 0 !important;
}
2018-01-13 22:48:18 +00:00
img {
filter: grayscale(100%);
opacity: 0.8;
display: block;
margin: 0;
width: 22px;
height: 22px;
margin-top: 2px;
}
2018-01-13 22:48:18 +00:00
&:hover,
&:active,
&:focus {
img {
opacity: 1;
filter: none;
}
}
}
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
.search {
position: relative;
}
2017-04-17 23:57:50 +00:00
2018-01-13 22:48:18 +00:00
.search__input {
outline: 0;
box-sizing: border-box;
display: block;
width: 100%;
border: none;
padding: 10px;
padding-right: 30px;
font-family: inherit;
background: $ui-base-color;
color: $ui-primary-color;
font-size: 14px;
2018-01-13 22:48:18 +00:00
margin: 0;
2018-01-13 22:48:18 +00:00
&::-moz-focus-inner {
border: 0;
}
2018-01-13 22:48:18 +00:00
&::-moz-focus-inner,
&:focus,
&:active {
outline: 0 !important;
}
2018-01-13 22:48:18 +00:00
&:focus {
background: lighten($ui-base-color, 4%);
}
2018-01-13 22:48:18 +00:00
@media screen and (max-width: 600px) {
font-size: 16px;
}
2018-01-13 22:48:18 +00:00
}
2018-01-13 22:48:18 +00:00
.search__icon {
.fa {
position: absolute;
top: 10px;
right: 10px;
z-index: 2;
display: inline-block;
opacity: 0;
transition: all 100ms linear;
font-size: 18px;
width: 18px;
height: 18px;
color: $ui-secondary-color;
cursor: default;
pointer-events: none;
2018-01-13 22:48:18 +00:00
&.active {
pointer-events: auto;
opacity: 0.3;
}
}
2018-01-13 22:48:18 +00:00
.fa-search {
transform: rotate(90deg);
2018-01-13 22:48:18 +00:00
&.active {
pointer-events: none;
transform: rotate(0deg);
}
}
2018-01-13 22:48:18 +00:00
.fa-times-circle {
top: 11px;
transform: rotate(0deg);
cursor: pointer;
2017-09-23 22:33:26 +00:00
2018-01-13 22:48:18 +00:00
&.active {
transform: rotate(90deg);
}
&:hover {
color: $primary-text-color;
2017-09-23 22:33:26 +00:00
}
}
}
2018-01-13 22:48:18 +00:00
.search-results__header {
color: $ui-base-lighter-color;
background: lighten($ui-base-color, 2%);
2018-01-13 22:48:18 +00:00
border-bottom: 1px solid darken($ui-base-color, 4%);
padding: 15px 10px;
font-size: 14px;
font-weight: 500;
2018-01-13 22:48:18 +00:00
}
2018-01-13 22:48:18 +00:00
.search-results__hashtag {
display: block;
padding: 10px;
color: $ui-secondary-color;
text-decoration: none;
2018-01-13 22:48:18 +00:00
&:hover,
&:active,
&:focus {
color: lighten($ui-secondary-color, 4%);
text-decoration: underline;
}
}
2018-01-13 22:48:18 +00:00
.loading-bar {
background-color: $ui-highlight-color;
height: 3px;
position: absolute;
top: 0;
left: 0;
}
::-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: $ui-secondary-color;
max-width: 400px;
a {
color: $ui-highlight-color;
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
}
@keyframes flicker {
0% { opacity: 1; }
30% { opacity: 0.75; }
100% { opacity: 1; }
}
// more fixes for the navbar-under mode
@mixin fix-margins-for-navbar-under {
.tabs-bar {
margin-top: 0 !important;
margin-bottom: -6px !important;
}
}
.single-column.navbar-under {
@include fix-margins-for-navbar-under;
}
.auto-columns.navbar-under {
@media screen and (max-width: 360px) {
@include fix-margins-for-navbar-under;
}
}
.auto-columns.navbar-under .react-swipeable-view-container .columns-area,
.single-column.navbar-under .react-swipeable-view-container .columns-area {
@media screen and (max-width: 360px) {
height: 100% !important;
}
}
.column-inline-form {
padding: 7px 15px;
padding-right: 5px;
display: flex;
justify-content: flex-start;
align-items: center;
background: lighten($ui-base-color, 4%);
label {
flex: 1 1 auto;
input {
width: 100%;
margin-bottom: 6px;
&:focus {
outline: 0;
}
}
}
.icon-button {
flex: 0 0 auto;
margin-left: 5px;
}
}
.drawer__backdrop {
cursor: pointer;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba($base-overlay-background, 0.5);
}
2018-01-13 22:48:18 +00:00
@import 'account';
@import 'status';
@import 'modal';
2018-01-13 18:41:20 +00:00
@import 'metadata';
2017-12-29 22:55:06 +00:00
@import 'composer';
@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-13 22:48:18 +00:00
@import 'list';
@import 'emoji_picker';
@import 'local_settings';