blue-react 8.0.0-next.1 → 8.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -59
- package/dist/components/ActionMenuSwitch.js +2 -2
- package/dist/components/Caret.js +2 -2
- package/dist/components/DocumentView.js +3 -3
- package/dist/components/Grid.js +275 -275
- package/dist/components/Header.js +2 -2
- package/dist/components/HeaderTitle.js +3 -3
- package/dist/components/Intro.js +2 -2
- package/dist/components/Layout.js +35 -7
- package/dist/components/Modal.js +16 -2
- package/dist/components/Outside.js +6 -6
- package/dist/components/Page.js +2 -2
- package/dist/components/SidebarMenu.js +2 -2
- package/dist/components/Switch.js +2 -2
- package/dist/style.css +480 -199
- package/dist/style.min.css +9 -9
- package/dist/style.scss +1 -1
- package/dist/styles/_action-menu.scss +81 -81
- package/dist/styles/_bootstrap-mixins_overwritten.scss +106 -106
- package/dist/styles/_bootstrap-optimizations.scss +13 -13
- package/dist/styles/_bootstrap-variables.scss +13 -13
- package/dist/styles/_bootstrap.scss +56 -56
- package/dist/styles/_caret.scss +50 -50
- package/dist/styles/_document-view.scss +6 -6
- package/dist/styles/_hover.scss +42 -42
- package/dist/styles/_keyframes.scss +73 -73
- package/dist/styles/_mixins.scss +6 -6
- package/dist/styles/_router.scss +18 -18
- package/dist/styles/_switch.scss +21 -21
- package/dist/styles/_variables.scss +6 -0
- package/dist/styles/mixins/_action-menu.scss +68 -68
- package/dist/styles/mixins/_custom-property.scss +10 -10
- package/dist/styles/mixins/_misc.scss +33 -33
- package/dist/styles/mixins/_scroll-shadow.scss +9 -9
- package/dist/styles/mixins/_sidebar.scss +142 -142
- package/dist/styles/mixins/_switch.scss +85 -85
- package/dist/types/components/Layout.d.ts +15 -6
- package/dist/types/components/Modal.d.ts +1 -1
- package/package.json +88 -88
package/dist/styles/_hover.scss
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
.blue-btn-silent {
|
|
2
|
-
&:not(:hover):not(:focus):not(:active) {
|
|
3
|
-
border-color: transparent;
|
|
4
|
-
color: inherit;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@media (hover: hover) {
|
|
9
|
-
.blue-d-hover {
|
|
10
|
-
&:not(:hover):not(:focus):not(:active):not(.active) {
|
|
11
|
-
.blue-d-hover-content-active {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&:hover,
|
|
17
|
-
&:focus,
|
|
18
|
-
&:active,
|
|
19
|
-
&.active {
|
|
20
|
-
.blue-d-hover-content-default {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.blue-opacity-hover {
|
|
27
|
-
&:not(:hover):not(:focus):not(:active):not(.active) {
|
|
28
|
-
.blue-opacity-hover-content-active {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:hover,
|
|
34
|
-
&:focus,
|
|
35
|
-
&:active,
|
|
36
|
-
&.active {
|
|
37
|
-
.blue-opacity-hover-content-default {
|
|
38
|
-
opacity: 0;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
.blue-btn-silent {
|
|
2
|
+
&:not(:hover):not(:focus):not(:active) {
|
|
3
|
+
border-color: transparent;
|
|
4
|
+
color: inherit;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@media (hover: hover) {
|
|
9
|
+
.blue-d-hover {
|
|
10
|
+
&:not(:hover):not(:focus):not(:active):not(.active) {
|
|
11
|
+
.blue-d-hover-content-active {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:hover,
|
|
17
|
+
&:focus,
|
|
18
|
+
&:active,
|
|
19
|
+
&.active {
|
|
20
|
+
.blue-d-hover-content-default {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.blue-opacity-hover {
|
|
27
|
+
&:not(:hover):not(:focus):not(:active):not(.active) {
|
|
28
|
+
.blue-opacity-hover-content-active {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:hover,
|
|
34
|
+
&:focus,
|
|
35
|
+
&:active,
|
|
36
|
+
&.active {
|
|
37
|
+
.blue-opacity-hover-content-default {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
@keyframes fade-in {
|
|
2
|
-
from {
|
|
3
|
-
opacity: 0;
|
|
4
|
-
}
|
|
5
|
-
to {
|
|
6
|
-
opacity: 1;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@keyframes blAppearUp {
|
|
11
|
-
from {
|
|
12
|
-
margin-top: 2.5rem;
|
|
13
|
-
}
|
|
14
|
-
to {
|
|
15
|
-
margin-top: 0;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes blue-menu-item-dropdown {
|
|
20
|
-
from {
|
|
21
|
-
transform: translateY(-50%);
|
|
22
|
-
opacity: 0;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@keyframes enabledBlueAppPage {
|
|
27
|
-
from {
|
|
28
|
-
transform: scale(0.98);
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
to {
|
|
32
|
-
opacity: 1;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@keyframes fadeInDown {
|
|
37
|
-
from {
|
|
38
|
-
opacity: 0;
|
|
39
|
-
transform: translate3d(0, -100%, 0);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
to {
|
|
43
|
-
opacity: 1;
|
|
44
|
-
transform: none;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@keyframes alert-in {
|
|
49
|
-
from {
|
|
50
|
-
transform: scale(0, 0);
|
|
51
|
-
opacity: 0.2;
|
|
52
|
-
transition: 0s;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes circlebounce {
|
|
57
|
-
0%,
|
|
58
|
-
100% {
|
|
59
|
-
transform: scale(0);
|
|
60
|
-
}
|
|
61
|
-
50% {
|
|
62
|
-
transform: scale(1);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@keyframes scrolling {
|
|
67
|
-
from {
|
|
68
|
-
transform: translateX(-100%);
|
|
69
|
-
}
|
|
70
|
-
to {
|
|
71
|
-
transform: translateX(100%);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
1
|
+
@keyframes fade-in {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes blAppearUp {
|
|
11
|
+
from {
|
|
12
|
+
margin-top: 2.5rem;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
margin-top: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes blue-menu-item-dropdown {
|
|
20
|
+
from {
|
|
21
|
+
transform: translateY(-50%);
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes enabledBlueAppPage {
|
|
27
|
+
from {
|
|
28
|
+
transform: scale(0.98);
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
to {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@keyframes fadeInDown {
|
|
37
|
+
from {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transform: translate3d(0, -100%, 0);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
to {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
transform: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes alert-in {
|
|
49
|
+
from {
|
|
50
|
+
transform: scale(0, 0);
|
|
51
|
+
opacity: 0.2;
|
|
52
|
+
transition: 0s;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes circlebounce {
|
|
57
|
+
0%,
|
|
58
|
+
100% {
|
|
59
|
+
transform: scale(0);
|
|
60
|
+
}
|
|
61
|
+
50% {
|
|
62
|
+
transform: scale(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes scrolling {
|
|
67
|
+
from {
|
|
68
|
+
transform: translateX(-100%);
|
|
69
|
+
}
|
|
70
|
+
to {
|
|
71
|
+
transform: translateX(100%);
|
|
72
|
+
}
|
|
73
|
+
}
|
package/dist/styles/_mixins.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import "./mixins/_misc.scss";
|
|
2
|
-
@import "./mixins/_sidebar.scss";
|
|
3
|
-
@import "./mixins/action-menu.scss";
|
|
4
|
-
@import "./mixins/_switch.scss";
|
|
5
|
-
@import "./mixins/custom-property.scss";
|
|
6
|
-
@import "./mixins/scroll-shadow";
|
|
1
|
+
@import "./mixins/_misc.scss";
|
|
2
|
+
@import "./mixins/_sidebar.scss";
|
|
3
|
+
@import "./mixins/action-menu.scss";
|
|
4
|
+
@import "./mixins/_switch.scss";
|
|
5
|
+
@import "./mixins/custom-property.scss";
|
|
6
|
+
@import "./mixins/scroll-shadow";
|
package/dist/styles/_router.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
body {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.router-page {
|
|
6
|
-
/* This is nessesary, because scrolling on iOS devices would not be smooth without it */
|
|
7
|
-
-webkit-overflow-scrolling: touch;
|
|
8
|
-
|
|
9
|
-
overflow-y: scroll;
|
|
10
|
-
overflow-x: hidden;
|
|
11
|
-
position: absolute;
|
|
12
|
-
width: 100vw;
|
|
13
|
-
height: 100vh;
|
|
14
|
-
|
|
15
|
-
&:not(.active) {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
body {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.router-page {
|
|
6
|
+
/* This is nessesary, because scrolling on iOS devices would not be smooth without it */
|
|
7
|
+
-webkit-overflow-scrolling: touch;
|
|
8
|
+
|
|
9
|
+
overflow-y: scroll;
|
|
10
|
+
overflow-x: hidden;
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 100vw;
|
|
13
|
+
height: 100vh;
|
|
14
|
+
|
|
15
|
+
&:not(.active) {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/styles/_switch.scss
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
$width: 2.188rem;
|
|
2
|
-
$height: 1.25rem;
|
|
3
|
-
$padding: 0.188rem;
|
|
4
|
-
|
|
5
|
-
$switch-active-color: $success;
|
|
6
|
-
|
|
7
|
-
.switch {
|
|
8
|
-
@include switch();
|
|
9
|
-
|
|
10
|
-
&.lg {
|
|
11
|
-
@include switch(100px, 30px);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Rounded sliders */
|
|
16
|
-
.slider.round {
|
|
17
|
-
border-radius: $height;
|
|
18
|
-
}
|
|
19
|
-
.slider.round:before {
|
|
20
|
-
border-radius: 50%;
|
|
21
|
-
}
|
|
1
|
+
$width: 2.188rem;
|
|
2
|
+
$height: 1.25rem;
|
|
3
|
+
$padding: 0.188rem;
|
|
4
|
+
|
|
5
|
+
$switch-active-color: $success;
|
|
6
|
+
|
|
7
|
+
.switch {
|
|
8
|
+
@include switch();
|
|
9
|
+
|
|
10
|
+
&.lg {
|
|
11
|
+
@include switch(100px, 30px);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Rounded sliders */
|
|
16
|
+
.slider.round {
|
|
17
|
+
border-radius: $height;
|
|
18
|
+
}
|
|
19
|
+
.slider.round:before {
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
}
|
|
@@ -22,6 +22,12 @@ $theme-colors: map-merge(
|
|
|
22
22
|
$theme-colors
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
+
// Since Bootstrap 5.1 this needs to be set. Otherwise we couldn't use .bg-* and .text-* utils with our custom $theme
|
|
26
|
+
$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
|
|
27
|
+
$utilities-colors: map-merge($utilities-colors, $theme-colors-rgb);
|
|
28
|
+
$utilities-text-colors: map-merge($utilities-text-colors, map-loop($utilities-colors, rgba-css-var, "$key", "text"));
|
|
29
|
+
$utilities-bg-colors: map-merge($utilities-bg-colors, map-loop($utilities-colors, rgba-css-var, "$key", "bg"));
|
|
30
|
+
|
|
25
31
|
// Alpha value (RGBA) e.g. for header background.
|
|
26
32
|
$shimmering: 0.7 !default;
|
|
27
33
|
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
@mixin show-action-menu-again() {
|
|
2
|
-
max-height: initial;
|
|
3
|
-
overflow: initial;
|
|
4
|
-
|
|
5
|
-
.blue-actions-menu {
|
|
6
|
-
max-width: initial;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@mixin actions($breakpoint) {
|
|
11
|
-
@media screen and (max-width: $breakpoint + 1px) {
|
|
12
|
-
&.open {
|
|
13
|
-
--action-link-bg-color: #{darken($theme, 30%)};
|
|
14
|
-
|
|
15
|
-
display: block;
|
|
16
|
-
background-color: var(--action-link-bg-color);
|
|
17
|
-
width: 100%;
|
|
18
|
-
position: absolute;
|
|
19
|
-
z-index: 1;
|
|
20
|
-
left: 0;
|
|
21
|
-
top: 0;
|
|
22
|
-
box-shadow: 0.6rem 6rem 6rem rgba(0, 0, 0, 0.3);
|
|
23
|
-
animation: fadeInDown 0.5s;
|
|
24
|
-
|
|
25
|
-
@include show-action-menu-again();
|
|
26
|
-
|
|
27
|
-
.navbar-nav {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-wrap: wrap;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
|
|
33
|
-
> li {
|
|
34
|
-
text-align: center;
|
|
35
|
-
height: $actions-height;
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.blue-actions-menu-item:not(.blue-actions-menu-toggle) {
|
|
42
|
-
display: flex;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.blue-actions-menu {
|
|
46
|
-
.blue-menu-item-dropdown {
|
|
47
|
-
--sidebar-bg: #{darken($theme, 34%)};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.blue-actions-menu-item:not(.blue-actions-menu-toggle) {
|
|
53
|
-
display: none;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@media screen and (min-width: $breakpoint) {
|
|
58
|
-
@include show-action-menu-again();
|
|
59
|
-
|
|
60
|
-
.blue-actions-menu .blue-actions-label {
|
|
61
|
-
display: inline;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.blue-actions-menu-toggle {
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
@mixin show-action-menu-again() {
|
|
2
|
+
max-height: initial;
|
|
3
|
+
overflow: initial;
|
|
4
|
+
|
|
5
|
+
.blue-actions-menu {
|
|
6
|
+
max-width: initial;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin actions($breakpoint) {
|
|
11
|
+
@media screen and (max-width: $breakpoint + 1px) {
|
|
12
|
+
&.open {
|
|
13
|
+
--action-link-bg-color: #{darken($theme, 30%)};
|
|
14
|
+
|
|
15
|
+
display: block;
|
|
16
|
+
background-color: var(--action-link-bg-color);
|
|
17
|
+
width: 100%;
|
|
18
|
+
position: absolute;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
box-shadow: 0.6rem 6rem 6rem rgba(0, 0, 0, 0.3);
|
|
23
|
+
animation: fadeInDown 0.5s;
|
|
24
|
+
|
|
25
|
+
@include show-action-menu-again();
|
|
26
|
+
|
|
27
|
+
.navbar-nav {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-wrap: wrap;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
|
|
33
|
+
> li {
|
|
34
|
+
text-align: center;
|
|
35
|
+
height: $actions-height;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.blue-actions-menu-item:not(.blue-actions-menu-toggle) {
|
|
42
|
+
display: flex;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.blue-actions-menu {
|
|
46
|
+
.blue-menu-item-dropdown {
|
|
47
|
+
--sidebar-bg: #{darken($theme, 34%)};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.blue-actions-menu-item:not(.blue-actions-menu-toggle) {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media screen and (min-width: $breakpoint) {
|
|
58
|
+
@include show-action-menu-again();
|
|
59
|
+
|
|
60
|
+
.blue-actions-menu .blue-actions-label {
|
|
61
|
+
display: inline;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.blue-actions-menu-toggle {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@mixin customProperty($name, $value) {
|
|
2
|
-
// fallback for older browser who do not support custom properties / css variables
|
|
3
|
-
#{$name}: #{$value};
|
|
4
|
-
|
|
5
|
-
// create a css variable (this might override the variable on any of the ancestor elements)
|
|
6
|
-
--#{$name}: #{$value};
|
|
7
|
-
|
|
8
|
-
// use the css variable on the property
|
|
9
|
-
#{$name}: var(--#{$name}, #{$value});
|
|
10
|
-
}
|
|
1
|
+
@mixin customProperty($name, $value) {
|
|
2
|
+
// fallback for older browser who do not support custom properties / css variables
|
|
3
|
+
#{$name}: #{$value};
|
|
4
|
+
|
|
5
|
+
// create a css variable (this might override the variable on any of the ancestor elements)
|
|
6
|
+
--#{$name}: #{$value};
|
|
7
|
+
|
|
8
|
+
// use the css variable on the property
|
|
9
|
+
#{$name}: var(--#{$name}, #{$value});
|
|
10
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
@mixin custom-scrollbar($thumb-color, $bg-color, $track-border-radius: 0) {
|
|
2
|
-
::-webkit-scrollbar-thumb {
|
|
3
|
-
background-color: rgba($thumb-color, 0.4);
|
|
4
|
-
box-shadow: inset 1px 1px 0 rgba($thumb-color, 0.1),
|
|
5
|
-
inset 0 -1px 0 rgba($thumb-color, 0.07);
|
|
6
|
-
}
|
|
7
|
-
::-webkit-scrollbar-thumb:hover {
|
|
8
|
-
background-color: rgba($thumb-color, 0.5);
|
|
9
|
-
}
|
|
10
|
-
::-webkit-scrollbar-thumb:active {
|
|
11
|
-
background-color: rgba($thumb-color, 0.6);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
::-webkit-scrollbar-track {
|
|
15
|
-
background-color: $bg-color;
|
|
16
|
-
border-radius: $track-border-radius;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin slide-transition() {
|
|
21
|
-
$slide-transition: width 0.5s;
|
|
22
|
-
transition: $slide-transition;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin header-bg() {
|
|
26
|
-
background-color: rgba($header-bg, $shimmering);
|
|
27
|
-
background-image: linear-gradient(
|
|
28
|
-
0deg,
|
|
29
|
-
rgba($header-bg, 0.8),
|
|
30
|
-
rgba($header-bg, 0.7)
|
|
31
|
-
);
|
|
32
|
-
backdrop-filter: blur(3px) saturate(125%);
|
|
33
|
-
}
|
|
1
|
+
@mixin custom-scrollbar($thumb-color, $bg-color, $track-border-radius: 0) {
|
|
2
|
+
::-webkit-scrollbar-thumb {
|
|
3
|
+
background-color: rgba($thumb-color, 0.4);
|
|
4
|
+
box-shadow: inset 1px 1px 0 rgba($thumb-color, 0.1),
|
|
5
|
+
inset 0 -1px 0 rgba($thumb-color, 0.07);
|
|
6
|
+
}
|
|
7
|
+
::-webkit-scrollbar-thumb:hover {
|
|
8
|
+
background-color: rgba($thumb-color, 0.5);
|
|
9
|
+
}
|
|
10
|
+
::-webkit-scrollbar-thumb:active {
|
|
11
|
+
background-color: rgba($thumb-color, 0.6);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
::-webkit-scrollbar-track {
|
|
15
|
+
background-color: $bg-color;
|
|
16
|
+
border-radius: $track-border-radius;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin slide-transition() {
|
|
21
|
+
$slide-transition: width 0.5s;
|
|
22
|
+
transition: $slide-transition;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin header-bg() {
|
|
26
|
+
background-color: rgba($header-bg, $shimmering);
|
|
27
|
+
background-image: linear-gradient(
|
|
28
|
+
0deg,
|
|
29
|
+
rgba($header-bg, 0.8),
|
|
30
|
+
rgba($header-bg, 0.7)
|
|
31
|
+
);
|
|
32
|
+
backdrop-filter: blur(3px) saturate(125%);
|
|
33
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@mixin scroll-shadow($bg, $light-base: white) {
|
|
2
|
-
background: linear-gradient($bg 30%, rgba($light-base, 0)),
|
|
3
|
-
linear-gradient(rgba($light-base, 0) 10px, $bg 70%) bottom,
|
|
4
|
-
radial-gradient(at top, rgba(0, 0, 0, 0.2), transparent 70%),
|
|
5
|
-
radial-gradient(at bottom, rgba(0, 0, 0, 0.2), transparent 70%) bottom;
|
|
6
|
-
background-repeat: no-repeat;
|
|
7
|
-
background-size: 100% 20px, 100% 20px, 100% 10px, 100% 10px;
|
|
8
|
-
background-attachment: local, local, scroll, scroll;
|
|
9
|
-
}
|
|
1
|
+
@mixin scroll-shadow($bg, $light-base: white) {
|
|
2
|
+
background: linear-gradient($bg 30%, rgba($light-base, 0)),
|
|
3
|
+
linear-gradient(rgba($light-base, 0) 10px, $bg 70%) bottom,
|
|
4
|
+
radial-gradient(at top, rgba(0, 0, 0, 0.2), transparent 70%),
|
|
5
|
+
radial-gradient(at bottom, rgba(0, 0, 0, 0.2), transparent 70%) bottom;
|
|
6
|
+
background-repeat: no-repeat;
|
|
7
|
+
background-size: 100% 20px, 100% 20px, 100% 10px, 100% 10px;
|
|
8
|
+
background-attachment: local, local, scroll, scroll;
|
|
9
|
+
}
|