soapbox/app/styles/ui.scss

187 wiersze
3.0 KiB
SCSS
Czysty Zwykły widok Historia

2020-06-03 02:11:01 +00:00
.icon-button {
@apply text-black dark:text-white;
display: inline-flex;
align-items: center;
2020-06-03 02:11:01 +00:00
padding: 0;
color: var(--primary-text-color);
2020-06-03 02:11:01 +00:00
border: 0;
background: transparent;
cursor: pointer;
transition: 100ms ease-in;
opacity: 0.4;
2020-06-03 02:11:01 +00:00
i.fa {
margin: 0;
}
&__text {
padding-left: 2px;
}
2020-06-03 02:11:01 +00:00
&:hover,
&:active,
&:focus {
opacity: 0.6;
2020-06-03 02:11:01 +00:00
transition: color 200ms ease-out;
}
&.disabled {
opacity: 0.2;
2020-06-03 02:11:01 +00:00
cursor: default;
}
&.active {
color: var(--highlight-text-color);
opacity: 1;
2020-06-03 02:11:01 +00:00
}
&::-moz-focus-inner {
border: 0;
}
&::-moz-focus-inner,
&:focus,
&:active {
outline: 0 !important;
}
}
.invisible {
font-size: 0 !important;
line-height: 0 !important;
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;
}
}
2021-06-18 16:04:31 +00:00
.react-datepicker-popper {
z-index: 9999 !important;
}
.ellipsis::after { content: ""; }
2020-06-03 02:11:01 +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('../assets/images/void.png') repeat;
2020-06-03 02:11:01 +00:00
object-fit: contain;
}
&.image-loader--amorphous .image-loader__preview-canvas {
display: none;
}
}
.zoomable-image {
2022-03-21 18:09:01 +00:00
@apply relative w-full h-full flex items-center justify-center;
2020-06-03 02:11:01 +00:00
img {
2022-03-21 18:09:01 +00:00
@apply w-auto h-auto object-contain shadow-2xl;
2020-06-03 02:11:01 +00:00
max-width: $media-modal-media-max-width;
max-height: $media-modal-media-max-height;
}
}
.react-swipeable-view-container {
&,
.column {
height: 100%;
}
}
.react-swipeable-view-container > * {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.ui {
display: block;
width: 100%;
padding: 0 0 calc(var(--thumb-navigation-height) + 86px);
2020-06-03 02:11:01 +00:00
.page {
display: flex;
flex-direction: column;
2020-06-03 02:11:01 +00:00
width: 100%;
}
}
.slist__append {
flex: 1 1 auto;
position: relative;
padding: 30px 15px;
2020-06-03 02:11:01 +00:00
}
.setting-text {
2020-06-07 03:55:00 +00:00
color: var(--primary-text-color--faint);
2020-06-03 02:11:01 +00:00
background: transparent;
border: 0;
border-bottom: 2px solid var(--brand-color);
box-sizing: border-box;
display: block;
font-family: inherit;
margin-bottom: 10px;
padding: 7px 0;
width: 100%;
&:focus,
&:active {
color: var(--primary-text-color);
border-bottom-color: var(--highlight-text-color);
}
@media screen and (max-width: 600px) {
font-size: 16px;
}
}
.text-btn {
display: inline-block;
padding: 0;
font-family: inherit;
font-size: inherit;
color: inherit;
border: 0;
background: transparent;
cursor: pointer;
}
::-webkit-scrollbar-thumb {
border-radius: 0;
}
@keyframes flicker {
0% { opacity: 1; }
30% { opacity: 0.75; }
100% { opacity: 1; }
}
2022-03-21 18:09:01 +00:00
.text-muted {
color: var(--gray-500);
}
.mb-10 {
margin-bottom: 10px;
}