mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
Removed unused colors
This commit is contained in:
parent
ba1823ee8a
commit
f6b76055d3
106 changed files with 563 additions and 546 deletions
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
|
|
|
@ -8,7 +8,7 @@ interface IProps {}
|
||||||
|
|
||||||
const LoginSocialRegisterButtons: FC<IProps> = () => (
|
const LoginSocialRegisterButtons: FC<IProps> = () => (
|
||||||
<div className={styles.wrap}>
|
<div className={styles.wrap}>
|
||||||
<Button color="secondary">Впустите меня!</Button>
|
<Button>Впустите меня!</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.error_shade {
|
.error_shade {
|
||||||
@include outer_shadow();
|
@include outer_shadow();
|
||||||
|
@ -19,17 +19,17 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: $wisegreen;
|
color: $color_primary;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $wisegreen;
|
fill: $color_primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.error_shade {
|
.error_shade {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,9 +18,7 @@ const RestoreSent: VFC<RestoreSentProps> = ({ onClose }) => (
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
|
|
||||||
<Button color="secondary" onClick={onClose}>
|
<Button onClick={onClose}>Отлично!</Button>
|
||||||
Отлично!
|
|
||||||
</Button>
|
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.shade {
|
.shade {
|
||||||
@include outer_shadow();
|
@include outer_shadow();
|
||||||
|
@ -19,9 +19,9 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: $wisegreen;
|
color: $color_primary;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $wisegreen;
|
fill: $color_primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,9 +20,7 @@ const RestoreSuccess: VFC<RestoreSuccessProps> = ({ username, onClick }) => (
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
|
|
||||||
<Button color="secondary" onClick={onClick}>
|
<Button onClick={onClick}>Ура!</Button>
|
||||||
Ура!
|
|
||||||
</Button>
|
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.shade {
|
.shade {
|
||||||
@include outer_shadow();
|
@include outer_shadow();
|
||||||
|
@ -19,9 +19,9 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: $wisegreen;
|
color: $color_primary;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $wisegreen;
|
fill: $color_primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
border-radius: $radius $radius 0 0;
|
border-radius: $radius $radius 0 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: lighten($content_bg, 6%);
|
background: $content_bg_lightest;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
svg {
|
svg {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
fill: darken(white, 50%);
|
fill: $gray_50;
|
||||||
stroke: none;
|
stroke: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
font: $font_14_semibold;
|
font: $font_14_semibold;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
background: darken(white, 50%);
|
background: $gray_50;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 6px;
|
height: 6px;
|
||||||
background: darken(white, 50%);
|
background: $gray_50;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
background: $red_gradient;
|
background: $danger_gradient;
|
||||||
width: $bar_height;
|
width: $bar_height;
|
||||||
height: $bar_height;
|
height: $bar_height;
|
||||||
border-radius: $bar_height * 0.5;
|
border-radius: $bar_height * 0.5;
|
||||||
|
@ -34,12 +34,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.lab & {
|
.lab & {
|
||||||
background: $blue_gradient;
|
background: $info_gradient;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
background: lighten($content_bg, 4%);
|
background: $content_bg_lighter;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
min-height: 42px;
|
min-height: 42px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
padding: $gap * 0.5 0;
|
padding: $gap * 0.5 0;
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
.time {
|
.time {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
line-height: 17px;
|
line-height: 17px;
|
||||||
color: transparentize(white, 0.7)
|
color: $gray_75;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subject {
|
.subject {
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
&.open {
|
&.open {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.closed {
|
&.closed {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
@ -16,5 +16,5 @@
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
color: transparentize(white, 0.5);
|
color: $gray_50;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@ const BorisUIDemo: FC<IProps> = () => {
|
||||||
<div className={markdown.wrapper}>
|
<div className={markdown.wrapper}>
|
||||||
<h1>UI</h1>
|
<h1>UI</h1>
|
||||||
<p>
|
<p>
|
||||||
Простая демонстрация элементов интерфейса. Используется, в основном, как подсказка при
|
Простая демонстрация элементов интерфейса. Используется, в основном,
|
||||||
разработке
|
как подсказка при разработке
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>Инпуты</h2>
|
<h2>Инпуты</h2>
|
||||||
|
@ -27,8 +27,18 @@ const BorisUIDemo: FC<IProps> = () => {
|
||||||
<form autoComplete="off">
|
<form autoComplete="off">
|
||||||
<Group>
|
<Group>
|
||||||
<InputText title="Обычный инпут" handler={setText} value={text} />
|
<InputText title="Обычный инпут" handler={setText} value={text} />
|
||||||
<InputText title="Инпут с ошибкой" error="Ошибка" handler={setText} value={text} />
|
<InputText
|
||||||
<InputText title="Пароль" type="password" handler={setText} value={text} />
|
title="Инпут с ошибкой"
|
||||||
|
error="Ошибка"
|
||||||
|
handler={setText}
|
||||||
|
value={text}
|
||||||
|
/>
|
||||||
|
<InputText
|
||||||
|
title="Пароль"
|
||||||
|
type="password"
|
||||||
|
handler={setText}
|
||||||
|
value={text}
|
||||||
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -38,7 +48,6 @@ const BorisUIDemo: FC<IProps> = () => {
|
||||||
|
|
||||||
<Group horizontal className={styles.sample}>
|
<Group horizontal className={styles.sample}>
|
||||||
<Button>Primary</Button>
|
<Button>Primary</Button>
|
||||||
<Button color="secondary">Secondary</Button>
|
|
||||||
<Button color="outline">Outline</Button>
|
<Button color="outline">Outline</Button>
|
||||||
<Button color="gray">Gray</Button>
|
<Button color="gray">Gray</Button>
|
||||||
<Button color="link">Link</Button>
|
<Button color="link">Link</Button>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
flex: 3;
|
flex: 3;
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding: 20px 30px;
|
padding: 20px 30px;
|
||||||
background-color: lighten($content_bg, 4%);
|
background-color: $content_bg_lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sample {
|
.sample {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
color: transparentize(white, 0.5);
|
color: $gray_50;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.val {
|
span.val {
|
||||||
|
|
|
@ -1,16 +1,20 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
0% { opacity: 0 }
|
0% {
|
||||||
100% { opacity: 1 }
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.popper {
|
.popper {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
|
|
||||||
background-color: darken($content_bg, 4%);
|
background-color: $content_bg_darker;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
box-sizing:border-box;
|
box-sizing: border-box;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
@import "~flexbin/flexbin";
|
@import '~flexbin/flexbin';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@include row_shadow;
|
@include row_shadow;
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
transition: opacity 0.25s, transform 0.25s;
|
transition: opacity 0.25s, transform 0.25s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: $red;
|
background: $color_danger;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
border-radius: 0 0 0 $radius;
|
border-radius: 0 0 0 $radius;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translate(0, 0);
|
transform: translate(0, 0);
|
||||||
background: transparentize($red, $amount: 0.5);
|
background: transparentize($color_danger, $amount: 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
.date {
|
.date {
|
||||||
background: transparentize($color: $content_bg, $amount: 0.2);
|
background: transparentize($color: $content_bg, $amount: 0.2);
|
||||||
border-radius: $radius 0 $radius 0;
|
border-radius: $radius 0 $radius 0;
|
||||||
color: transparentize(white, 0.2);
|
color: $gray_25;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
color: transparentize($color: white, $amount: 0.8);
|
color: transparentize($color: white, $amount: 0.8);
|
||||||
padding: 0 6px 2px;
|
padding: 0 6px 2px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
background: $comment_bg;
|
background: $content_bg_light;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.bar {
|
.bar {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
color: darken(white, 60%);
|
color: $gray_50;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
background: $red;
|
background: $color_danger;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -9,12 +9,6 @@
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
.dot {
|
|
||||||
background: $secondary;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
|
@ -57,6 +51,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $primary;
|
background: $color_primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
padding: 0 $gap;
|
padding: 0 $gap;
|
||||||
|
@ -26,12 +26,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.green) {
|
:global(.green) {
|
||||||
color: $wisegreen;
|
color: $color_primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > :last-child::after {
|
& > :last-child::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: " ";
|
content: ' ';
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
flex: 0 0 120px;
|
flex: 0 0 120px;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -9,12 +9,6 @@
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
.dot {
|
|
||||||
background: $secondary;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
|
@ -57,6 +51,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $primary;
|
background: $color_primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
@keyframes spin {
|
@keyframes spin {
|
||||||
0% {
|
0% {
|
||||||
|
@ -34,5 +34,5 @@
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
padding: 2px 10px;
|
padding: 2px 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: $cyan_gradient;
|
background: $magic_gradient;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.helper {
|
.helper {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background: radial-gradient($red, transparent) 50% 24px no-repeat;
|
background: radial-gradient($color_danger, transparent) 50% 24px no-repeat;
|
||||||
background-size: 100% 48px;
|
background-size: 100% 48px;
|
||||||
display: none;
|
display: none;
|
||||||
width: calc(100% - 20px);
|
width: calc(100% - 20px);
|
||||||
|
|
|
@ -1,17 +1,27 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
@keyframes highlight {
|
@keyframes highlight {
|
||||||
0% { opacity: 0.75; }
|
0% {
|
||||||
25% { opacity: 0.5; }
|
opacity: 0.75;
|
||||||
50% { opacity: 0.75; }
|
}
|
||||||
75% { opacity: 0; }
|
25% {
|
||||||
100% { opacity: 0; }
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
75% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
|
|
||||||
background: $comment_bg;
|
background: $content_bg_light;
|
||||||
min-height: $comment_height;
|
min-height: $comment_height;
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -35,7 +45,7 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
animation: highlight 1s 0.5s forwards;
|
animation: highlight 1s 0.5s forwards;
|
||||||
background: transparentize($wisegreen, 0.7);
|
background: transparentize($color_primary, 0.7);
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
|
@ -73,14 +83,15 @@
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex: 0 0 40px;
|
flex: 0 0 40px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
box-shadow: inset rgba(255, 255, 255, 0.05) 1px 1px, inset rgba(0, 0, 0, 0.1) -1px -1px;
|
box-shadow: inset rgba(255, 255, 255, 0.05) 1px 1px,
|
||||||
|
inset rgba(0, 0, 0, 0.1) -1px -1px;
|
||||||
border-radius: $panel_radius $panel_radius 0 0;
|
border-radius: $panel_radius $panel_radius 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.thumb_image {
|
div.thumb_image {
|
||||||
height: $comment_height;
|
height: $comment_height;
|
||||||
background: transparentize(white, 0.97) no-repeat 50% 50%;
|
background: $gray_90 no-repeat 50% 50%;
|
||||||
border-radius: $panel_radius 0 0 $panel_radius;
|
border-radius: $panel_radius 0 0 $panel_radius;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
flex: 0 0 $comment_height;
|
flex: 0 0 $comment_height;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
$pad_danger: mix($red, $content_bg, 70%);
|
$pad_usual: $content_bg_lightest;
|
||||||
$pad_usual: mix(white, $content_bg, 10%);
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -19,7 +18,7 @@ $pad_usual: mix(white, $content_bg, 10%);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
.danger & {
|
.danger & {
|
||||||
background: $pad_danger;
|
background: $color_danger_slate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +30,7 @@ $pad_usual: mix(white, $content_bg, 10%);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.danger {
|
&.danger {
|
||||||
box-shadow: inset $pad_danger 0 0 0 2px;
|
box-shadow: inset $color_danger_slate 0 0 0 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.with_title {
|
&.with_title {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background: transparentize(darken($content_bg, 4%), 0.5);
|
background: transparentize($content_bg_darker, 0.5);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
.footer {
|
.footer {
|
||||||
@include outer_shadow();
|
@include outer_shadow();
|
||||||
|
|
||||||
background: darken($content_bg, 2%);
|
background: $content_bg_dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body {
|
.body {
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
.close {
|
.close {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
|
|
||||||
background: lighten($content_bg, 4%);
|
background: $content_bg_lighter;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $red;
|
background-color: $color_danger;
|
||||||
transform: translate(50%, 0) scale(1.25);
|
transform: translate(50%, 0) scale(1.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,11 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
background: linear-gradient(0deg, $red 50%, transparentize($red, 1));
|
background: linear-gradient(
|
||||||
|
0deg,
|
||||||
|
$color_danger 50%,
|
||||||
|
transparentize($color_danger, 1)
|
||||||
|
);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: lighten($content_bg, 4%);
|
background: $content_bg_lighter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ const EditorButtons: FC = () => {
|
||||||
<Button
|
<Button
|
||||||
title={isTablet ? undefined : 'Сохранить'}
|
title={isTablet ? undefined : 'Сохранить'}
|
||||||
iconRight="check"
|
iconRight="check"
|
||||||
color={values.is_promoted ? 'primary' : 'lab'}
|
color={values.is_promoted ? 'danger' : 'info'}
|
||||||
disabled={isSubmitting}
|
disabled={isSubmitting}
|
||||||
type="submit"
|
type="submit"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
0% {
|
0% {
|
||||||
|
@ -37,6 +37,6 @@
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font: $font_12_medium;
|
font: $font_12_medium;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,14 @@ interface IProps extends IEditorComponentProps {}
|
||||||
const EditorPublicSwitch: FC<IProps> = () => {
|
const EditorPublicSwitch: FC<IProps> = () => {
|
||||||
const { values, setFieldValue } = useNodeFormContext();
|
const { values, setFieldValue } = useNodeFormContext();
|
||||||
|
|
||||||
const onChange = useCallback(() => setFieldValue('is_promoted', !values.is_promoted), [
|
const onChange = useCallback(
|
||||||
values.is_promoted,
|
() => setFieldValue('is_promoted', !values.is_promoted),
|
||||||
setFieldValue,
|
[values.is_promoted, setFieldValue],
|
||||||
]);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
color={values.is_promoted ? 'primary' : 'lab'}
|
color={values.is_promoted ? 'danger' : 'info'}
|
||||||
type="button"
|
type="button"
|
||||||
size="giant"
|
size="giant"
|
||||||
label={
|
label={
|
||||||
|
|
|
@ -31,18 +31,25 @@ const EditorUploadButton: FC<IProps> = ({
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
const files = Array.from(event.target.files || []).filter(
|
const files = Array.from(event.target.files || []).filter(
|
||||||
file => !type || getFileType(file) === type
|
(file) => !type || getFileType(file) === type,
|
||||||
);
|
);
|
||||||
|
|
||||||
uploadFiles(files);
|
uploadFiles(files);
|
||||||
},
|
},
|
||||||
[type, uploadFiles]
|
[type, uploadFiles],
|
||||||
);
|
);
|
||||||
|
|
||||||
const color = values.is_promoted ? 'primary' : 'lab';
|
const color = values.is_promoted ? 'danger' : 'info';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button type="button" round size="giant" className={styles.wrap} label={label} color={color}>
|
<Button
|
||||||
|
type="button"
|
||||||
|
round
|
||||||
|
size="giant"
|
||||||
|
className={styles.wrap}
|
||||||
|
label={label}
|
||||||
|
color={color}
|
||||||
|
>
|
||||||
<Icon icon={icon} size={24} />
|
<Icon icon={icon} size={24} />
|
||||||
<input type="file" onChange={onInputChange} accept={accept} multiple />
|
<input type="file" onChange={onInputChange} accept={accept} multiple />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@include outer_shadow();
|
@include outer_shadow();
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: opacity 0.5s;
|
transition: opacity 0.5s;
|
||||||
background: lighten($content_bg, 4%);
|
background: $content_bg_lighter;
|
||||||
flex: 0 1 $upload_button_height * 4;
|
flex: 0 1 $upload_button_height * 4;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -68,11 +68,11 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
box-shadow: inset rgba(255, 255, 255, 0.05) 1px 1px, rgba(0, 0, 0, 0.3) -1px 0;
|
box-shadow: inset rgba(255, 255, 255, 0.05) 1px 1px, rgba(0, 0, 0, 0.3) -1px 0;
|
||||||
border-radius: $upload_button_height;
|
border-radius: $upload_button_height;
|
||||||
background: transparentize($color: lighten($content_bg, 4%), $amount: 0);
|
background: transparentize($color: $content_bg_lighter, $amount: 0);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
svg {
|
svg {
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
padding-top: 56.25%;
|
padding-top: 56.25%;
|
||||||
|
@ -6,7 +6,6 @@
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
background: 50% 50% no-repeat;
|
background: 50% 50% no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
// background: darken($color: $content_bg, $amount: 2%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input_wrap {
|
.input_wrap {
|
||||||
|
@ -34,6 +33,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.active) {
|
&:global(.active) {
|
||||||
background: $red;
|
background: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.dropdown {
|
.dropdown {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
@include blur($red, 15px, 0.3);
|
@include blur($color_danger, 15px, 0.3);
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
background: $red;
|
background: $color_danger;
|
||||||
box-shadow: $content_bg 0 0 0 5px;
|
box-shadow: $content_bg 0 0 0 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -2px;
|
right: -2px;
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
.comment {
|
.comment {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
fill: transparentize(white, 0.7);
|
fill: $gray_75;
|
||||||
stroke: none;
|
stroke: none;
|
||||||
min-height: 250px;
|
min-height: 250px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,5 +163,5 @@ img.preview {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: transparentize(white, 0.95);
|
color: $gray_90;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
height: 280px;
|
height: 280px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: transparentize(white, 0.9)
|
background: $gray_90
|
||||||
url('http://37.192.131.144/hero/photos/photo-20140527-1639766.jpg') no-repeat 50% 30%;
|
url('http://37.192.131.144/hero/photos/photo-20140527-1639766.jpg')
|
||||||
|
no-repeat 50% 30%;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
stroke: none;
|
stroke: none;
|
||||||
|
|
||||||
//path {
|
//path {
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
import React, { ButtonHTMLAttributes, DetailedHTMLProps, FC, memo, useMemo } from 'react';
|
import React, {
|
||||||
|
ButtonHTMLAttributes,
|
||||||
|
DetailedHTMLProps,
|
||||||
|
FC,
|
||||||
|
memo,
|
||||||
|
useMemo,
|
||||||
|
} from 'react';
|
||||||
|
|
||||||
import Tippy from '@tippyjs/react';
|
import Tippy from '@tippyjs/react';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
|
@ -14,7 +20,16 @@ type IButtonProps = DetailedHTMLProps<
|
||||||
HTMLButtonElement
|
HTMLButtonElement
|
||||||
> & {
|
> & {
|
||||||
size?: 'mini' | 'normal' | 'big' | 'giant' | 'micro' | 'small';
|
size?: 'mini' | 'normal' | 'big' | 'giant' | 'micro' | 'small';
|
||||||
color?: 'primary' | 'secondary' | 'outline' | 'link' | 'gray' | 'lab' | 'outline-white' | 'flat';
|
color?:
|
||||||
|
| 'primary'
|
||||||
|
| 'danger'
|
||||||
|
| 'info'
|
||||||
|
| 'outline'
|
||||||
|
| 'link'
|
||||||
|
| 'gray'
|
||||||
|
| 'lab'
|
||||||
|
| 'outline-white'
|
||||||
|
| 'flat';
|
||||||
iconLeft?: IIcon;
|
iconLeft?: IIcon;
|
||||||
iconRight?: IIcon;
|
iconRight?: IIcon;
|
||||||
title?: string;
|
title?: string;
|
||||||
|
@ -65,7 +80,7 @@ const Button: FC<IButtonProps> = memo(
|
||||||
children,
|
children,
|
||||||
iconOnly,
|
iconOnly,
|
||||||
round,
|
round,
|
||||||
]
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
const loaderSize = useMemo(() => {
|
const loaderSize = useMemo(() => {
|
||||||
|
@ -79,9 +94,23 @@ const Button: FC<IButtonProps> = memo(
|
||||||
return (
|
return (
|
||||||
<Tippy content={label || ''} disabled={!label}>
|
<Tippy content={label || ''} disabled={!label}>
|
||||||
<button className={computedClassName} {...props}>
|
<button className={computedClassName} {...props}>
|
||||||
{iconLeft && <Icon icon={iconLeft} size={20} key={0} className={styles.icon_left} />}
|
{iconLeft && (
|
||||||
|
<Icon
|
||||||
|
icon={iconLeft}
|
||||||
|
size={20}
|
||||||
|
key={0}
|
||||||
|
className={styles.icon_left}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{!!title ? <span>{title}</span> : children}
|
{!!title ? <span>{title}</span> : children}
|
||||||
{iconRight && <Icon icon={iconRight} size={20} key={2} className={styles.icon_right} />}
|
{iconRight && (
|
||||||
|
<Icon
|
||||||
|
icon={iconRight}
|
||||||
|
size={20}
|
||||||
|
key={2}
|
||||||
|
className={styles.icon_right}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{loading && (
|
{loading && (
|
||||||
<div className={styles.loading}>
|
<div className={styles.loading}>
|
||||||
<LoaderCircle size={loaderSize} />
|
<LoaderCircle size={loaderSize} />
|
||||||
|
@ -90,7 +119,7 @@ const Button: FC<IButtonProps> = memo(
|
||||||
</button>
|
</button>
|
||||||
</Tippy>
|
</Tippy>
|
||||||
);
|
);
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
export { Button };
|
export { Button };
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
background: $primary;
|
background: $color_primary;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
|
||||||
fill: white;
|
fill: white;
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
|
|
||||||
&:global(.disabled),
|
&:global(.disabled),
|
||||||
&:global(.grey) {
|
&:global(.grey) {
|
||||||
background: transparentize(white, 0.9);
|
background: $gray_90;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,26 +118,26 @@
|
||||||
|
|
||||||
&.outline {
|
&.outline {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: inset transparentize(white, 0.8) 0 0 0 2px;
|
box-shadow: inset $gray_75 0 0 0 2px;
|
||||||
color: transparentize(white, 0.8);
|
color: $gray_75;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: transparentize(white, 0.8);
|
fill: $gray_75;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.outline-white {
|
&.outline-white {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: inset transparentize(white, 0) 0 0 0 2px;
|
box-shadow: inset $white 0 0 0 2px;
|
||||||
color: transparentize(white, 0);
|
color: $white;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: transparentize(white, 0);
|
fill: $white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.gray {
|
&.gray {
|
||||||
background: lighten($content_bg, 8%);
|
background: $content_bg_lightest;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.link {
|
&.link {
|
||||||
|
@ -234,12 +234,17 @@
|
||||||
|
|
||||||
.primary {
|
.primary {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
background: $red_gradient_alt;
|
background: $color_primary_gradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
.secondary {
|
.danger {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
background: $red;
|
background: $danger_gradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
@include outer_shadow;
|
||||||
|
background: $info_gradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lab {
|
.lab {
|
||||||
|
@ -248,8 +253,8 @@
|
||||||
|
|
||||||
.flat {
|
.flat {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
background: $comment_bg;
|
background: $content_bg_light;
|
||||||
color: darken(white, 20%);
|
color: $gray_25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading {
|
.loading {
|
||||||
|
|
|
@ -9,20 +9,20 @@
|
||||||
font: $font_14_regular;
|
font: $font_14_regular;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
background: transparentize(white, 0.9);
|
background: $gray_90;
|
||||||
|
|
||||||
&:global(.danger) {
|
&:global(.danger) {
|
||||||
color: white;
|
color: white;
|
||||||
background: transparentize($red, 0.5);
|
background: transparentize($color_danger, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.warning) {
|
&:global(.warning) {
|
||||||
color: white;
|
color: white;
|
||||||
background: transparentize($red, 0.5);
|
background: transparentize($color_danger, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.primary) {
|
&:global(.primary) {
|
||||||
color: white;
|
color: white;
|
||||||
background: transparentize($red, 0.5);
|
background: transparentize($color_danger, 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
||||||
&.has_error {
|
&.has_error {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.has_prefix {
|
&.has_prefix {
|
||||||
|
@ -29,7 +29,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.suffix, .prefix{
|
.suffix,
|
||||||
|
.prefix {
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
stroke: currentColor;
|
stroke: currentColor;
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.has_error {
|
&.has_error {
|
||||||
box-shadow: inset $red 0 0 0 1px;
|
box-shadow: inset $color_danger 0 0 0 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.error, .title {
|
.error,
|
||||||
|
.title {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -37,7 +38,7 @@
|
||||||
padding: 0 $gap * 0.5;
|
padding: 0 $gap * 0.5;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: white;
|
color: white;
|
||||||
background-color: $red;
|
background-color: $color_danger;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: $gap * 0.5;
|
right: $gap * 0.5;
|
||||||
transform: translate(0, 50%);
|
transform: translate(0, 50%);
|
||||||
|
@ -57,12 +58,14 @@
|
||||||
color: $input_grey_color;
|
color: $input_grey_color;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
.focused &, .not_empty & {
|
.focused &,
|
||||||
|
.not_empty & {
|
||||||
transform: translate(0, -100%) scale(0.75);
|
transform: translate(0, -100%) scale(0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
.focused.has_error &, .not_empty.has_error & {
|
.focused.has_error &,
|
||||||
|
.not_empty.has_error & {
|
||||||
color: white;
|
color: white;
|
||||||
background-color: $red;
|
background-color: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.toggle {
|
.toggle {
|
||||||
height: 24px;
|
height: 24px;
|
||||||
width: 48px;
|
width: 48px;
|
||||||
flex: 0 0 48px;
|
flex: 0 0 48px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background-color: transparentize(white, 0.9);
|
background-color: $gray_90;
|
||||||
display: flex;
|
display: flex;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
height: 18px;
|
height: 18px;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
border-radius: 11px;
|
border-radius: 11px;
|
||||||
background-color: darken(white, 50%);
|
background-color: $gray_50;
|
||||||
transform: translate(0, 0);
|
transform: translate(0, 0);
|
||||||
transition: transform 0.25s, color 0.25s, background-color;
|
transition: transform 0.25s, color 0.25s, background-color;
|
||||||
}
|
}
|
||||||
|
@ -45,11 +45,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.primary {
|
&.primary {
|
||||||
background-color: $wisegreen;
|
background-color: $color_primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.secondary {
|
&.secondary {
|
||||||
background-color: transparentize(white, 0.85);
|
background-color: $gray_90;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.lab {
|
&.lab {
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.danger {
|
&.danger {
|
||||||
background-color: $red;
|
background-color: $color_danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.monochrome {
|
&.monochrome {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
padding: $gap $lab_gap $lab_gap;
|
padding: $gap $lab_gap $lab_gap;
|
||||||
|
@ -10,13 +10,14 @@
|
||||||
|
|
||||||
.timestamp {
|
.timestamp {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
color: darken(white, 40%);
|
color: $gray_50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comments, .like {
|
.comments,
|
||||||
|
.like {
|
||||||
flex: 0;
|
flex: 0;
|
||||||
font: $font_16_semibold;
|
font: $font_16_semibold;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
stroke: none;
|
stroke: none;
|
||||||
column-gap: $gap !important;
|
column-gap: $gap !important;
|
||||||
|
@ -25,6 +26,6 @@
|
||||||
padding-left: $gap;
|
padding-left: $gap;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.star {
|
.star {
|
||||||
fill: darken(white, 76%);
|
fill: $gray_75;
|
||||||
flex: 0 0 32px;
|
flex: 0 0 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,14 +16,14 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
color: darken(white, 40%);
|
color: $gray_50;
|
||||||
|
|
||||||
@include clamp(2, 22px)
|
@include clamp(2, 22px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font: $font_10_regular;
|
font: $font_10_regular;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -21,7 +21,6 @@
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide {
|
.slide {
|
||||||
|
@ -56,9 +55,7 @@
|
||||||
|
|
||||||
:global(.swiper-slide-active) & {
|
:global(.swiper-slide-active) & {
|
||||||
box-shadow: transparentize(black, 0.9) 0 10px 5px 4px,
|
box-shadow: transparentize(black, 0.9) 0 10px 5px 4px,
|
||||||
transparentize(black, 0.7) 0 5px 5px,
|
transparentize(black, 0.7) 0 5px 5px, $gray_90 0 -1px 2px, $gray_90 0 -1px;
|
||||||
transparentize(white, 0.95) 0 -1px 2px,
|
|
||||||
transparentize(white, 0.95) 0 -1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
padding: $lab_gap - $gap $lab_gap 0;
|
padding: $lab_gap - $gap $lab_gap 0;
|
||||||
|
@ -30,6 +30,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.star {
|
.star {
|
||||||
fill: darken(white, 50%);
|
fill: $gray_50;
|
||||||
flex: 0 0 24px;
|
flex: 0 0 24px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
border-radius: 0 0 $radius $radius;
|
border-radius: 0 0 $radius $radius;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: darken(white, 80%);
|
color: $gray_75;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
background: white;
|
background: white;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
margin-left: ($gap + 2px) !important;
|
margin-left: ($gap + 2px) !important;
|
||||||
background: 50% 50% no-repeat $wisegreen;
|
background: 50% 50% no-repeat $color_primary;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding-right: 140px;
|
padding-right: 140px;
|
||||||
color: transparentize(white, 0.7);
|
color: $gray_75;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: transparentize(white, 0.95);
|
background: $gray_90;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar {
|
.bar {
|
||||||
background: $green_gradient;
|
background: $color_primary_gradient;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
@include inner_shadow;
|
@include inner_shadow;
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
padding: $gap * 0.5 $gap $gap * 0.5 $gap;
|
padding: $gap * 0.5 $gap $gap * 0.5 $gap;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
transition: color 0.25s;
|
transition: color 0.25s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
@ -46,15 +46,15 @@
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
&.green {
|
&.green {
|
||||||
background: $green_gradient;
|
background: $color_primary_gradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.orange {
|
&.orange {
|
||||||
background: $red_gradient;
|
background: $danger_gradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.yellow {
|
&.yellow {
|
||||||
background: $yellow_gradient;
|
background: $warning_gradient;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@import "src/styles/mixins";
|
@import 'src/styles/mixins';
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
flex: 0;
|
flex: 0;
|
||||||
|
@ -27,14 +27,14 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 3px;
|
width: 3px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
background: darken($content_bg, 1%);
|
background: $content_bg_darker;
|
||||||
display: flex;
|
display: flex;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
right: -$gap * 2 - 2px;
|
right: -$gap * 2 - 2px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
right : -$gap - 1px;
|
right: -$gap - 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
@import "src/styles/mixins";
|
@import 'src/styles/mixins';
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
@ -30,11 +30,11 @@ a.item {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
font: $font_16_semibold;
|
font: $font_16_semibold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: transparentize($secondary, 1);
|
background-color: transparentize($color_primary, 1);
|
||||||
transition: background-color 0.25s;
|
transition: background-color 0.25s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: transparentize($secondary, 0.5);
|
background-color: transparentize($color_primary, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -15,9 +15,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
color: $red !important;
|
color: $color_danger !important;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $red !important;
|
fill: $color_danger !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
fill: white;
|
fill: white;
|
||||||
|
@ -24,6 +24,6 @@
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
color: transparentize(white, 0.6);
|
color: $gray_75;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
div.block {
|
div.block {
|
||||||
@include inner_shadow_active;
|
@include inner_shadow_active;
|
||||||
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: $inset_bg;
|
background: linear-gradient(135deg, $content_bg_dark, $content_bg);
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.badge {
|
.badge {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
padding: $gap * 4 $gap;
|
padding: $gap * 4 $gap;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.placeholder {
|
.placeholder {
|
||||||
height: 320px;
|
height: 320px;
|
||||||
|
@ -11,6 +11,6 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: transparentize(white, 0.95);
|
fill: $gray_90;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
left: 50%;
|
left: 50%;
|
||||||
bottom: $gap * 2;
|
bottom: $gap * 2;
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
background: darken($content_bg, 4%);
|
background: $content_bg_darker;
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
@ -82,7 +82,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide.slide {
|
.slide.slide {
|
||||||
|
@ -127,9 +126,7 @@
|
||||||
|
|
||||||
:global(.swiper-slide-active) & {
|
:global(.swiper-slide-active) & {
|
||||||
box-shadow: transparentize(black, 0.9) 0 10px 5px 4px,
|
box-shadow: transparentize(black, 0.9) 0 10px 5px 4px,
|
||||||
transparentize(black, 0.7) 0 5px 5px,
|
transparentize(black, 0.7) 0 5px 5px, $gray_90 0 -1px 2px, $gray_90 0 -1px;
|
||||||
transparentize(white, 0.95) 0 -1px 2px,
|
|
||||||
transparentize(white, 0.95) 0 -1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: darken(white, 75%);
|
color: $gray_75;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
background: lighten($content_bg, 2%) 50% 50% no-repeat;
|
background: $content_bg_light 50% 50% no-repeat;
|
||||||
padding-bottom: 100%;
|
padding-bottom: 100%;
|
||||||
border-radius: $cell_radius;
|
border-radius: $cell_radius;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -29,7 +29,8 @@ div.thumb {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.letters, .title {
|
.letters,
|
||||||
|
.title {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -41,7 +42,7 @@ div.thumb {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font: $font_24_semibold;
|
font: $font_24_semibold;
|
||||||
color: transparentize(white, 0.5);
|
color: $gray_50;
|
||||||
border-radius: $cell_radius;
|
border-radius: $cell_radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +54,7 @@ div.thumb {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: transparentize(white, 0.3);
|
color: $gray_25;
|
||||||
|
|
||||||
.large & {
|
.large & {
|
||||||
font: $font_14_semibold;
|
font: $font_14_semibold;
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: darken(white, 50%);
|
fill: $gray_50;
|
||||||
transition: fill 0.25s;
|
transition: fill 0.25s;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
svg {
|
svg {
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
color: transparentize(white, 0.5);
|
color: $gray_50;
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
fill: transparentize(white, 0.5);
|
fill: $gray_50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
|
@ -134,16 +134,16 @@
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
.like_count {
|
.like_count {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
animation: pulse 0.75s infinite;
|
animation: pulse 0.75s infinite;
|
||||||
|
|
||||||
.like_count {
|
.like_count {
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transition: opacity 0.25s, color 0.25s;
|
transition: opacity 0.25s, color 0.25s;
|
||||||
background: $node_bg;
|
background: $content_bg_dark;
|
||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
$notification_color: darken($content_bg, 2%);
|
$notification_color: $content_bg_dark;
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
0% {
|
0% {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
$incoming_color: transparentize($wisegreen, 0.7);
|
$incoming_color: transparentize($color_primary, 0.7);
|
||||||
$outgoing_color: $comment_bg;
|
$outgoing_color: $content_bg_light;
|
||||||
|
|
||||||
.message {
|
.message {
|
||||||
align-items: flex-end !important;
|
align-items: flex-end !important;
|
||||||
|
@ -18,7 +18,7 @@ $outgoing_color: $comment_bg;
|
||||||
height: 0;
|
height: 0;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 20px 0 0 20px;
|
border-width: 20px 0 0 20px;
|
||||||
border-color: transparent transparent transparent $comment_bg;
|
border-color: transparent transparent transparent $content_bg_light;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
}
|
}
|
||||||
|
@ -88,12 +88,12 @@ $outgoing_color: $comment_bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.restore {
|
.restore {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deleted {
|
.deleted {
|
||||||
background: mix($red, $content_bg, 50%);
|
background: mix($color_danger, $content_bg, 50%);
|
||||||
border-radius: $radius $radius $radius 0;
|
border-radius: $radius $radius $radius 0;
|
||||||
padding: $gap * 0.5;
|
padding: $gap * 0.5;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
|
||||||
@include blur($red);
|
@include blur($color_danger);
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
|
@ -14,7 +14,12 @@ export interface ProfileAvatarProps {
|
||||||
onChangePhoto: (file: File) => void;
|
onChangePhoto: (file: File) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ProfileAvatar: FC<ProfileAvatarProps> = ({ photo, onChangePhoto, canEdit, size }) => {
|
const ProfileAvatar: FC<ProfileAvatarProps> = ({
|
||||||
|
photo,
|
||||||
|
onChangePhoto,
|
||||||
|
canEdit,
|
||||||
|
size,
|
||||||
|
}) => {
|
||||||
const onInputChange = useCallback(
|
const onInputChange = useCallback(
|
||||||
async (event: ChangeEvent<HTMLInputElement>) => {
|
async (event: ChangeEvent<HTMLInputElement>) => {
|
||||||
if (!event.target.files?.length) {
|
if (!event.target.files?.length) {
|
||||||
|
@ -23,10 +28,12 @@ const ProfileAvatar: FC<ProfileAvatarProps> = ({ photo, onChangePhoto, canEdit,
|
||||||
|
|
||||||
onChangePhoto(event.target.files[0]);
|
onChangePhoto(event.target.files[0]);
|
||||||
},
|
},
|
||||||
[onChangePhoto]
|
[onChangePhoto],
|
||||||
);
|
);
|
||||||
|
|
||||||
const backgroundImage = photo ? `url("${getURL(photo, ImagePresets.avatar)}")` : undefined;
|
const backgroundImage = photo
|
||||||
|
? `url("${getURL(photo, ImagePresets.avatar)}")`
|
||||||
|
: undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
@ -38,7 +45,15 @@ const ProfileAvatar: FC<ProfileAvatarProps> = ({ photo, onChangePhoto, canEdit,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{canEdit && <input type="file" onInput={onInputChange} />}
|
{canEdit && <input type="file" onInput={onInputChange} />}
|
||||||
{canEdit && <Button iconLeft="photo_add" round iconOnly className={styles.can_edit} />}
|
{canEdit && (
|
||||||
|
<Button
|
||||||
|
color="info"
|
||||||
|
iconLeft="photo_add"
|
||||||
|
round
|
||||||
|
iconOnly
|
||||||
|
className={styles.button}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
@include outer_shadow();
|
@include outer_shadow();
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.can_edit {
|
.button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -4px;
|
right: -4px;
|
||||||
bottom: -4px;
|
bottom: -4px;
|
||||||
|
|
|
@ -47,9 +47,7 @@ const ProfileSidebarSettings: FC<IProps> = () => {
|
||||||
Отмена
|
Отмена
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button color="secondary" type="submit">
|
<Button type="submit">Сохранить</Button>
|
||||||
Сохранить
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</SettingsProvider>
|
</SettingsProvider>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.stack {
|
.stack {
|
||||||
background: transparentize($content_bg, 0.2);
|
background: transparentize($content_bg, 0.2);
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
box-shadow: transparentize(white, 0.9) -1px 0, transparentize(black, 0.7) -5px 0 15px;
|
box-shadow: $gray_90 -1px 0, transparentize(black, 0.7) -5px 0 15px;
|
||||||
border-radius: $radius 0 0 $radius;
|
border-radius: $radius 0 0 $radius;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
0% { opacity: 0 }
|
0% {
|
||||||
100% { opacity: 100 }
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 100;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$row_height: 24px;
|
$row_height: 24px;
|
||||||
|
@ -16,7 +20,7 @@ $row_height: 24px;
|
||||||
right: -2px;
|
right: -2px;
|
||||||
width: calc(100vw - 15px);
|
width: calc(100vw - 15px);
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
background: darken($content_bg, 2%);
|
background: $content_bg_dark;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
animation: appear 0.25s forwards;
|
animation: appear 0.25s forwards;
|
||||||
|
@ -39,4 +43,4 @@ $row_height: 24px;
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
@include popper_arrow;
|
@include popper_arrow;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
$row_height: 26px;
|
$row_height: 26px;
|
||||||
|
|
||||||
|
@ -16,13 +16,14 @@ $row_height: 26px;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
&:hover, &.selected {
|
&:hover,
|
||||||
|
&.selected {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background: transparentize($wisegreen, 0.6);
|
background: transparentize($color_primary, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.right {
|
&.right {
|
||||||
color: lighten($wisegreen, 4%);
|
color: lighten($color_primary, 4%);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ $big: 1.2;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
height: $tag_height;
|
height: $tag_height;
|
||||||
background: $tag_bg;
|
background: $content_bg_light;
|
||||||
border-radius: ($tag_height * 0.5) 3px 3px ($tag_height * 0.5);
|
border-radius: ($tag_height * 0.5) 3px 3px ($tag_height * 0.5);
|
||||||
font: $font_14_semibold;
|
font: $font_14_semibold;
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
|
@ -42,29 +42,29 @@ $big: 1.2;
|
||||||
|
|
||||||
&:global(.is_editing) {
|
&:global(.is_editing) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: lighten($tag_bg, 10%);
|
background-color: lighten($content_bg_light, 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.red) {
|
&:global(.red) {
|
||||||
background: $red_gradient;
|
background: $danger_gradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.blue) {
|
&:global(.blue) {
|
||||||
background: $blue_gradient;
|
background: $info_gradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.green) {
|
&:global(.green) {
|
||||||
background: $green_gradient;
|
background: $color_primary_gradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.black) {
|
&:global(.black) {
|
||||||
background: transparentize(black, 0.7);
|
background: transparentize(black, 0.7);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
color: transparentize(white, 0.6);
|
color: $gray_75;
|
||||||
font: $font_14_medium;
|
font: $font_14_medium;
|
||||||
|
|
||||||
.hole::after {
|
.hole::after {
|
||||||
background: transparentize(white, 0.98);
|
background: $gray_90;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,8 +124,7 @@ $big: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.delete {
|
button.delete {
|
||||||
box-shadow: inset transparentize(white, 0.9) 1px 0,
|
box-shadow: inset $gray_90 1px 0, transparentize(black, 0.7) -1px 0;
|
||||||
transparentize(black, 0.7) -1px 0;
|
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: $tag_height;
|
height: $tag_height;
|
||||||
background: transparentize($content_bg, 0.75);
|
background: transparentize($content_bg, 0.75);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
background: lighten($content_bg, 4%);
|
background: $content_bg_lighter;
|
||||||
// padding-bottom: 100%;
|
// padding-bottom: 100%;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -72,6 +72,6 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background-color: $red;
|
background-color: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
background: lighten($content_bg, 4%);
|
background: $content_bg_lighter;
|
||||||
padding-bottom: 100%;
|
padding-bottom: 100%;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
&:global(.is_uploading) {
|
&:global(.is_uploading) {
|
||||||
.thumb {
|
.thumb {
|
||||||
filter: blur(10px);
|
filter: blur(10px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,6 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background-color: $red;
|
background-color: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,17 +12,18 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background: transparentize($wisegreen, 0.7);
|
background: transparentize($color_primary, 0.7);
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
box-shadow: inset $wisegreen 0 0 0 2px;
|
box-shadow: inset $color_primary 0 0 0 2px;
|
||||||
display: none;
|
display: none;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
|
|
||||||
&.active, :global(.dragging) & {
|
&.active,
|
||||||
|
:global(.dragging) & {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,5 +31,5 @@
|
||||||
svg.icon {
|
svg.icon {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 72px;
|
height: 72px;
|
||||||
fill: $wisegreen;
|
fill: $color_primary;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,9 +4,10 @@ import { BorisContacts } from '~/components/boris/BorisContacts';
|
||||||
import { BorisStats } from '~/components/boris/BorisStats';
|
import { BorisStats } from '~/components/boris/BorisStats';
|
||||||
import { Group } from '~/components/containers/Group';
|
import { Group } from '~/components/containers/Group';
|
||||||
import { SuperPowersToggle } from '~/containers/auth/SuperPowersToggle';
|
import { SuperPowersToggle } from '~/containers/auth/SuperPowersToggle';
|
||||||
import styles from '~/layouts/BorisLayout/styles.module.scss';
|
|
||||||
import { BorisUsageStats } from '~/types/boris';
|
import { BorisUsageStats } from '~/types/boris';
|
||||||
|
|
||||||
|
import styles from './styles.module.scss';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
isUser: boolean;
|
isUser: boolean;
|
||||||
stats: BorisUsageStats;
|
stats: BorisUsageStats;
|
||||||
|
@ -14,14 +15,14 @@ interface Props {
|
||||||
}
|
}
|
||||||
|
|
||||||
const BorisSidebar: FC<Props> = ({ isUser, stats, isLoading }) => (
|
const BorisSidebar: FC<Props> = ({ isUser, stats, isLoading }) => (
|
||||||
<Group className={styles.stats__container}>
|
<Group className={styles.container}>
|
||||||
<div className={styles.super_powers}>
|
<div className={styles.super_powers}>
|
||||||
<SuperPowersToggle />
|
<SuperPowersToggle />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<BorisContacts />
|
<BorisContacts />
|
||||||
|
|
||||||
<div className={styles.stats__wrap}>
|
<div className={styles.wrap}>
|
||||||
<BorisStats stats={stats} isLoading={isLoading} />
|
<BorisStats stats={stats} isLoading={isLoading} />
|
||||||
</div>
|
</div>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
23
src/containers/boris/BorisSidebar/styles.module.scss
Normal file
23
src/containers/boris/BorisSidebar/styles.module.scss
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
|
.wrap {
|
||||||
|
@include tablet {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background: $content_bg_dark;
|
||||||
|
border-radius: 0 $radius $radius 0;
|
||||||
|
padding: $gap;
|
||||||
|
box-sizing: border-box;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
|
||||||
|
@include tablet {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.super_powers {
|
||||||
|
padding: $gap * 2 0;
|
||||||
|
}
|
|
@ -1,10 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
$secondary_color: darken(desaturate($blue, 100%), 30%);
|
|
||||||
$vk_color: $secondary_color;
|
|
||||||
|
|
||||||
.dialog {
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -17,32 +11,6 @@ $vk_color: $secondary_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.secondary_button {
|
|
||||||
background: $content_bg;
|
|
||||||
box-shadow: inset $vk_color 0 0 0 2px;
|
|
||||||
color: $vk_color;
|
|
||||||
|
|
||||||
svg {
|
|
||||||
fill: $vk_color;
|
|
||||||
margin-right: $gap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.forgot_button {
|
.forgot_button {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons {
|
|
||||||
margin: $gap * 2 0 0 0 !important;
|
|
||||||
padding: $gap * 2 0 0 0;
|
|
||||||
border-top: 1px solid black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.links {
|
|
||||||
font: $font_14_regular;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: lighten($content_bg, 40%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
padding: $login_dialog_padding;
|
padding: $login_dialog_padding;
|
||||||
|
@ -13,6 +13,6 @@
|
||||||
|
|
||||||
span {
|
span {
|
||||||
padding-left: $gap;
|
padding-left: $gap;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
padding: $gap $gap $gap * 4;
|
padding: $gap $gap $gap * 4;
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
.text {
|
.text {
|
||||||
font: $font_14_regular;
|
font: $font_14_regular;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shade,
|
.shade,
|
||||||
|
@ -34,18 +34,18 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: $wisegreen;
|
color: $color_primary;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $wisegreen;
|
fill: $color_primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.error_shade {
|
.error_shade {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,24 +15,24 @@ import styles from './styles.module.scss';
|
||||||
|
|
||||||
interface RestoreRequestDialogProps extends DialogComponentProps {}
|
interface RestoreRequestDialogProps extends DialogComponentProps {}
|
||||||
|
|
||||||
const RestoreRequestDialog: VFC<RestoreRequestDialogProps> = ({ onRequestClose }) => {
|
const RestoreRequestDialog: VFC<RestoreRequestDialogProps> = ({
|
||||||
|
onRequestClose,
|
||||||
|
}) => {
|
||||||
useCloseOnEscape(onRequestClose);
|
useCloseOnEscape(onRequestClose);
|
||||||
|
|
||||||
const [isSent, setIsSent] = useState(false);
|
const [isSent, setIsSent] = useState(false);
|
||||||
const onSent = useCallback(() => setIsSent(true), [setIsSent]);
|
const onSent = useCallback(() => setIsSent(true), [setIsSent]);
|
||||||
|
|
||||||
const { isSubmitting, handleSubmit, handleChange, errors, values } = useRestoreRequestForm(
|
const { isSubmitting, handleSubmit, handleChange, errors, values } =
|
||||||
apiRequestRestoreCode,
|
useRestoreRequestForm(apiRequestRestoreCode, onSent);
|
||||||
onSent
|
|
||||||
);
|
|
||||||
|
|
||||||
const buttons = useMemo(
|
const buttons = useMemo(
|
||||||
() => (
|
() => (
|
||||||
<Group className={styles.buttons}>
|
<Group className={styles.buttons}>
|
||||||
<Button color="secondary">Восстановить</Button>
|
<Button>Восстановить</Button>
|
||||||
</Group>
|
</Group>
|
||||||
),
|
),
|
||||||
[]
|
[],
|
||||||
);
|
);
|
||||||
|
|
||||||
const header = useMemo(() => <div className={styles.illustration} />, []);
|
const header = useMemo(() => <div className={styles.illustration} />, []);
|
||||||
|
@ -58,7 +58,8 @@ const RestoreRequestDialog: VFC<RestoreRequestDialogProps> = ({ onRequestClose }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className={styles.text}>
|
<div className={styles.text}>
|
||||||
Введите имя пользователя или адрес почты. Мы пришлем ссылку для сброса пароля.
|
Введите имя пользователя или адрес почты. Мы пришлем ссылку для
|
||||||
|
сброса пароля.
|
||||||
</div>
|
</div>
|
||||||
</Group>
|
</Group>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
padding: $gap $gap $gap * 4;
|
padding: $gap $gap $gap * 4;
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
.text {
|
.text {
|
||||||
font: $font_14_regular;
|
font: $font_14_regular;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.illustration {
|
.illustration {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../../../styles/variables";
|
@import '../../../styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -25,7 +25,10 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: linear-gradient(transparentize($content_bg, 1), $content_bg 90%);
|
background: linear-gradient(
|
||||||
|
transparentize($content_bg, 1),
|
||||||
|
$content_bg 90%
|
||||||
|
);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
|
|
||||||
|
@ -73,7 +76,7 @@
|
||||||
.search {
|
.search {
|
||||||
@include outer_shadow();
|
@include outer_shadow();
|
||||||
|
|
||||||
background: lighten($content_bg, 3%);
|
background: $content_bg_lighter;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +94,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggles {
|
.toggles {
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
font: $font_14_semibold;
|
font: $font_14_semibold;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables.scss";
|
@import 'src/styles/variables.scss';
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
padding-bottom: $gap;
|
padding-bottom: $gap;
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
|
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
background: $comment_bg;
|
background: $content_bg_light;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,9 +52,10 @@ const Header: FC<HeaderProps> = observer(() => {
|
||||||
[borisCommentedAt, isUser, user.last_seen_boris],
|
[borisCommentedAt, isUser, user.last_seen_boris],
|
||||||
);
|
);
|
||||||
|
|
||||||
const hasLabUpdates = useMemo(() => labStats.updates.length > 0, [
|
const hasLabUpdates = useMemo(
|
||||||
labStats.updates,
|
() => labStats.updates.length > 0,
|
||||||
]);
|
[labStats.updates],
|
||||||
|
);
|
||||||
const hasFlowUpdates = useMemo(() => flowUpdates.length > 0, [flowUpdates]);
|
const hasFlowUpdates = useMemo(() => flowUpdates.length > 0, [flowUpdates]);
|
||||||
|
|
||||||
// Needed for SSR
|
// Needed for SSR
|
||||||
|
@ -113,12 +114,7 @@ const Header: FC<HeaderProps> = observer(() => {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!isUser && (
|
{!isUser && (
|
||||||
<Button
|
<Button className={styles.user_button} onClick={onLogin} round>
|
||||||
className={styles.user_button}
|
|
||||||
onClick={onLogin}
|
|
||||||
round
|
|
||||||
color="secondary"
|
|
||||||
>
|
|
||||||
ВДОХ
|
ВДОХ
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../../../styles/variables";
|
@import '../../../styles/variables';
|
||||||
|
|
||||||
@keyframes appear {
|
@keyframes appear {
|
||||||
from {
|
from {
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $red;
|
color: $color_danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
width: 6px;
|
width: 6px;
|
||||||
height: 6px;
|
height: 6px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: lighten($red, 10%);
|
background: lighten($color_danger, 10%);
|
||||||
right: 12px;
|
right: 12px;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
transition: opacity 0.5s;
|
transition: opacity 0.5s;
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.boris::after {
|
&.boris::after {
|
||||||
background: lighten($wisegreen, 10%);
|
background: lighten($color_primary, 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
@import "../../../styles/variables";
|
@import '../../../styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
background: transparentize(white, 0.95);
|
background: $gray_90;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
grid-template-columns: 20px auto 20px;
|
grid-template-columns: 20px auto 20px;
|
||||||
grid-column-gap: $gap * 1.5;
|
grid-column-gap: $gap * 1.5;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-bottom: 1px solid transparentize(white, 0.9);
|
border-bottom: 1px solid $gray_90;
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: opacity 0.25s;
|
transition: opacity 0.25s;
|
||||||
fill: $red;
|
fill: $color_danger;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.messages {
|
.messages {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
background: $node_bg;
|
background: $content_bg_dark;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
div.warning.warning {
|
div.warning.warning {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
box-shadow: $red 0 0 0 2px;
|
box-shadow: $color_danger 0 0 0 2px;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
font: $font_14_semibold;
|
font: $font_14_semibold;
|
||||||
margin-bottom: $gap * 2;
|
margin-bottom: $gap * 2;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: $comment_bg;
|
background: $content_bg_light;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
font: $font_14_regular;
|
font: $font_14_regular;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: transparentize(white, 0.5);
|
color: $gray_50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
|
@ -35,10 +35,10 @@ div.top.top {
|
||||||
.status {
|
.status {
|
||||||
font: $font_12_regular;
|
font: $font_12_regular;
|
||||||
margin-top: $gap;
|
margin-top: $gap;
|
||||||
color: darken(white, 50%);
|
color: $gray_50;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: $olive;
|
color: $color_online;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
|
|
@ -25,7 +25,7 @@ const List = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{notes.map(note => (
|
{notes.map((note) => (
|
||||||
<NoteCard
|
<NoteCard
|
||||||
remove={() => onRemove(note.id)}
|
remove={() => onRemove(note.id)}
|
||||||
update={(text, callback) => update(note.id, text, callback)}
|
update={(text, callback) => update(note.id, text, callback)}
|
||||||
|
@ -59,7 +59,6 @@ const SettingsNotes: VFC<SettingsNotesProps> = () => {
|
||||||
onClick={() => setFormIsShown(true)}
|
onClick={() => setFormIsShown(true)}
|
||||||
size="mini"
|
size="mini"
|
||||||
iconRight="plus"
|
iconRight="plus"
|
||||||
color="secondary"
|
|
||||||
>
|
>
|
||||||
Добавить
|
Добавить
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
$pad_danger: mix($red, $content_bg, 70%);
|
|
||||||
$pad_usual: mix(white, $content_bg, 10%);
|
|
||||||
|
|
||||||
.about {
|
.about {
|
||||||
flex: 4;
|
flex: 4;
|
||||||
|
@ -17,9 +14,6 @@ $pad_usual: mix(white, $content_bg, 10%);
|
||||||
padding: 0 $gap 0;
|
padding: 0 $gap 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
|
||||||
}
|
|
||||||
|
|
||||||
div.base_info.base_info {
|
div.base_info.base_info {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@include sidebar_content(400px);
|
@include sidebar_content(400px);
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
padding-left: $gap * 2;
|
padding-left: $gap * 2;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: transparentize(white, 0.5);
|
fill: $gray_50;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,28 +65,20 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: darken($content_bg, 2%);
|
background: $content_bg_dark;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
height: 100%;
|
|
||||||
background: lighten($content_bg, 20%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.none {
|
.none {
|
||||||
padding: 40px $gap;
|
padding: 40px $gap;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: transparentize(white, 0.9);
|
color: $gray_90;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
font: $font_18_semibold;
|
font: $font_18_semibold;
|
||||||
stroke: none;
|
stroke: none;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -7,7 +7,6 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
}
|
}
|
||||||
|
@ -117,40 +116,6 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
margin-bottom: $gap * 2;
|
margin-bottom: $gap * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__container {
|
|
||||||
background: darken($content_bg, 4%);
|
|
||||||
border-radius: 0 $radius $radius 0;
|
|
||||||
box-shadow: inset transparentize(mix($wisegreen, white, 60%), 0.6) 0 1px;
|
|
||||||
padding: $gap;
|
|
||||||
box-sizing: border-box;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
|
|
||||||
@include tablet {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__title {
|
|
||||||
font: $font_12_semibold;
|
|
||||||
text-transform: uppercase;
|
|
||||||
opacity: 0.3;
|
|
||||||
margin-top: 16px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__about {
|
|
||||||
line-height: 1.4em;
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin-bottom: $gap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__wrap {
|
|
||||||
@include tablet {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
@ -162,7 +127,3 @@
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.super_powers {
|
|
||||||
padding: $gap * 2 0;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@use "sass:math";
|
@use 'sass:math';
|
||||||
|
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
max-width: 2000px;
|
max-width: 2000px;
|
||||||
|
@ -36,7 +36,7 @@ $cols: math.div($content_width, $cell);
|
||||||
grid-row-end: 2;
|
grid-row-end: 2;
|
||||||
grid-column-start: 1;
|
grid-column-start: 1;
|
||||||
grid-column-end: -1;
|
grid-column-end: -1;
|
||||||
background: darken($content_bg, 2%);
|
background: $content_bg_dark;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -53,7 +53,7 @@ $cols: math.div($content_width, $cell);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@media(max-width: $flow_hide_recents) {
|
@media (max-width: $flow_hide_recents) {
|
||||||
grid-column-start: 1;
|
grid-column-start: 1;
|
||||||
grid-row-end: span 1;
|
grid-row-end: span 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "src/styles/variables";
|
@import 'src/styles/variables';
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin-top: $page_top_offset;
|
margin-top: $page_top_offset;
|
||||||
background: darken($content_bg, 2%);
|
background: $content_bg_dark;
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
|
@ -1,39 +1,47 @@
|
||||||
// palette
|
// palette (use inside)
|
||||||
$red: #ff3344;
|
|
||||||
$yellow: #ffd60f;
|
$yellow: #ffd60f;
|
||||||
$dark_blue: #592071;
|
$dark_blue: #592071;
|
||||||
$blue: #582cd0;
|
$blue: #582cd0;
|
||||||
$green: #00d2b9;
|
$green: #00d2b9;
|
||||||
$olive: #8bc12a;
|
|
||||||
$orange: #ff7549;
|
|
||||||
$wisegreen: #007962;
|
$wisegreen: #007962;
|
||||||
$lightgreen: lighten(adjust_hue($wisegreen, -30deg), 10%);
|
$olive: #8bc12a;
|
||||||
|
$red: #ff3344;
|
||||||
|
$orange: #ff7549;
|
||||||
|
$color_primary: #007962;
|
||||||
|
$lightgreen: lighten(adjust_hue(#007962, -30deg), 10%);
|
||||||
$soft_blue: #3c75ff;
|
$soft_blue: #3c75ff;
|
||||||
|
$color_danger_slate: mix(#ff3344, #23201f, 60%);
|
||||||
|
|
||||||
// main definitions
|
// main definitions (move to --vars)
|
||||||
$primary: $red;
|
$color_primary: $wisegreen;
|
||||||
$secondary: $wisegreen;
|
$color_danger: $red;
|
||||||
|
$color_online: $olive;
|
||||||
|
$color_link: $red;
|
||||||
|
$color_flow: $red;
|
||||||
|
$color_lab: $blue;
|
||||||
|
|
||||||
// gradients
|
// gradients (move to --vars)
|
||||||
$red_gradient: linear-gradient(165deg, $orange -50%, $red 150%);
|
$danger_gradient: linear-gradient(165deg, $orange -50%, $color_danger 150%);
|
||||||
$yellow_gradient: linear-gradient(165deg, $yellow -50%, $red 150%);
|
$info_gradient: linear-gradient(170deg, $blue, $dark_blue);
|
||||||
$blue_gradient: linear-gradient(170deg, $blue, $dark_blue);
|
$warning_gradient: linear-gradient(165deg, $yellow -50%, $color_danger 150%);
|
||||||
$green_gradient: linear-gradient(170deg, $lightgreen -50%, $wisegreen 150%);
|
$color_primary_gradient: linear-gradient(
|
||||||
$cyan_gradient: linear-gradient(260deg, $soft_blue -50%, #7b2653 150%);
|
170deg,
|
||||||
$red_gradient_alt: linear-gradient(170deg, #ff4545, #d2004c);
|
$lightgreen -50%,
|
||||||
|
$color_primary 150%
|
||||||
|
);
|
||||||
|
$magic_gradient: linear-gradient(260deg, $soft_blue -50%, #7b2653 150%);
|
||||||
|
|
||||||
$text_color: white;
|
// backgrounds (move to --vars)
|
||||||
$scroll_color: $red_gradient;
|
|
||||||
$scroll_inactive_opacity: 0.5;
|
|
||||||
|
|
||||||
// --color-base
|
|
||||||
$content_bg: #23201f;
|
$content_bg: #23201f;
|
||||||
|
$content_bg_dark: darken($content_bg, 2%);
|
||||||
|
$content_bg_darker: darken($content_bg, 4%);
|
||||||
|
$content_bg_light: lighten($content_bg, 2%);
|
||||||
|
$content_bg_lighter: lighten($content_bg, 4%);
|
||||||
|
$content_bg_lightest: lighten($content_bg, 6%);
|
||||||
|
|
||||||
// --color-base-light
|
// white shades (move to --vars)
|
||||||
$comment_bg: lighten($content_bg, 2%);
|
$white: white;
|
||||||
$tag_bg: lighten($content_bg, 2%);
|
$gray_25: mix($content_bg, white, 25%);
|
||||||
$menu_bg: lighten($content_bg, 2%);
|
$gray_50: mix($content_bg, white, 50%);
|
||||||
|
$gray_75: mix($content_bg, white, 75%);
|
||||||
// --color-base-dark
|
$gray_90: mix($content_bg, white, 92%);
|
||||||
$node_bg: darken($content_bg, 2%);
|
|
||||||
$inset_bg: linear-gradient(135deg, darken($content_bg, 2%), $content_bg);
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue