@luizleon/sf.prefeiturasp.vuecomponents 0.0.21 → 0.0.23
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/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/package.json +6 -15
- package/src/common/appResult.ts +22 -0
- package/src/components/button/Button.d.ts +42 -0
- package/src/components/button/Button.vue +61 -0
- package/src/components/content/Content.d.ts +35 -0
- package/src/components/content/Content.vue +41 -0
- package/src/components/icon/Icon.d.ts +38 -0
- package/src/components/icon/Icon.vue +43 -0
- package/src/components/internal/HeaderAvatar.vue +49 -0
- package/src/components/internal/LoadingCircle.vue +16 -0
- package/src/components/internal/MenuIcon.vue +13 -0
- package/src/components/internal/ScrollToTop.vue +26 -0
- package/src/components/internal/ThemeToggle.ts +41 -0
- package/src/components/internal/ThemeToggle.vue +23 -0
- package/src/components/internal/cssClassBuilder.ts +44 -0
- package/src/components/layout/Layout.d.ts +44 -0
- package/src/components/layout/Layout.vue +51 -0
- package/src/components/navmenulink/NavMenuLink.d.ts +35 -0
- package/src/components/navmenulink/NavMenuLink.vue +41 -0
- package/src/components/tabnavigation/TabNavigation.d.ts +42 -0
- package/src/components/tabnavigation/TabNavigation.vue +117 -0
- package/src/enum/cor.ts +9 -0
- package/src/enum/index.ts +2 -0
- package/src/enum/tamanho.ts +5 -0
- package/src/index.ts +62 -0
- package/src/keycloak.d.ts +671 -0
- package/src/keycloak.js +1731 -0
- package/src/services/authService.ts +68 -0
- package/src/services/dialogService.ts +63 -0
- package/src/services/navMenuService.ts +21 -0
- package/src/style/componentes.scss +15 -0
- package/src/style/src/_animation.scss +441 -0
- package/src/style/src/_display.scss +10 -0
- package/src/style/src/_flexbox.scss +85 -0
- package/src/style/src/_functions.scss +171 -0
- package/src/style/src/_gap.scss +8 -0
- package/src/style/src/_grid.scss +100 -0
- package/src/style/src/_mixins.scss +633 -0
- package/src/style/src/_normalize.scss +351 -0
- package/src/style/src/_ripple.scss +30 -0
- package/src/style/src/_size.scss +98 -0
- package/src/style/src/_spacing.scss +42 -0
- package/src/style/src/_typography.scss +43 -0
- package/src/style/src/_variables.scss +87 -0
- package/src/style/src/components/_button.scss +107 -0
- package/src/style/src/components/_content.scss +57 -0
- package/src/style/src/components/_drawer.scss +99 -0
- package/src/style/src/components/_headerAvatar.scss +22 -0
- package/src/style/src/components/_icon.scss +120 -0
- package/src/style/src/components/_internal-icon-button.scss +5 -0
- package/src/style/src/components/_layout.scss +183 -0
- package/src/style/src/components/_loading-circle.scss +24 -0
- package/src/style/src/components/_navmenulink.scss +31 -0
- package/src/style/src/components/_scrollToTop.scss +28 -0
- package/src/style/src/components/_svg_icon.scss +5 -0
- package/src/style/src/components/_tab-navigation.scss +93 -0
- package/src/style/src/components/_themetoggle.scss +25 -0
- package/src/style/src/components/_tooltip.scss +55 -0
- package/src/style/src/sweetalert/_sweetalert.scss +9 -0
- package/src/style/src/sweetalert/scss/_animations.scss +197 -0
- package/src/style/src/sweetalert/scss/_body.scss +45 -0
- package/src/style/src/sweetalert/scss/_core.scss +863 -0
- package/src/style/src/sweetalert/scss/_mixins.scss +16 -0
- package/src/style/src/sweetalert/scss/_theming.scss +8 -0
- package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -0
- package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -0
- package/src/style/src/sweetalert/scss/_toasts.scss +203 -0
- package/src/style/src/sweetalert/scss/_variables.scss +265 -0
- package/src/style/tema.scss +169 -0
- package/src/ts-helpers.d.ts +57 -0
- package/tsconfig.json +20 -0
- package/vite.config.js +28 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@use "../mixins";
|
|
2
|
+
|
|
3
|
+
.sf-button {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
border: 1px solid transparent;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
transition: opacity 0.2s ease-in-out;
|
|
11
|
+
&:hover {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sf-button-label {
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sf-icon {
|
|
20
|
+
position: absolute;
|
|
21
|
+
> button {
|
|
22
|
+
color: currentColor !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.sf-component-loading {
|
|
27
|
+
color: var(--disabled-color) !important;
|
|
28
|
+
border-color: var(--disabled-color) !important;
|
|
29
|
+
.sf-button-label {
|
|
30
|
+
color: transparent !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.sf-button-filled:disabled {
|
|
35
|
+
background-color: hsla(
|
|
36
|
+
var(--disabled-color-h),
|
|
37
|
+
var(--disabled-color-s),
|
|
38
|
+
var(--disabled-color-l),
|
|
39
|
+
0.5
|
|
40
|
+
) !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.sf-button-small {
|
|
44
|
+
height: 32px;
|
|
45
|
+
font-size: 0.875rem;
|
|
46
|
+
padding: 0 12px;
|
|
47
|
+
&.sf-button-with-icon {
|
|
48
|
+
padding-left: 28px;
|
|
49
|
+
}
|
|
50
|
+
.sf-icon {
|
|
51
|
+
inset: 0 0 0 6px;
|
|
52
|
+
&.sf-component-loading {
|
|
53
|
+
inset: 0 0 0 50%;
|
|
54
|
+
margin-left: -8px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.sf-button-label {
|
|
58
|
+
line-height: 32px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.sf-button-medium {
|
|
63
|
+
height: 36px;
|
|
64
|
+
font-size: 1rem;
|
|
65
|
+
padding: 0 12px;
|
|
66
|
+
&.sf-button-with-icon {
|
|
67
|
+
padding-left: 38px;
|
|
68
|
+
}
|
|
69
|
+
.sf-icon {
|
|
70
|
+
inset: 0 0 0 8px;
|
|
71
|
+
&.sf-component-loading {
|
|
72
|
+
inset: 0 0 0 50%;
|
|
73
|
+
margin-left: -12px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.sf-button-label {
|
|
77
|
+
line-height: 36px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.sf-button-large {
|
|
82
|
+
height: 48px;
|
|
83
|
+
font-size: 1.25rem;
|
|
84
|
+
padding: 0 16px;
|
|
85
|
+
&.sf-button-with-icon {
|
|
86
|
+
padding-left: 54px;
|
|
87
|
+
}
|
|
88
|
+
.sf-icon {
|
|
89
|
+
inset: 0 0 0 10px;
|
|
90
|
+
&.sf-component-loading {
|
|
91
|
+
inset: 0 0 0 50%;
|
|
92
|
+
margin-left: -18px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.sf-button-label {
|
|
96
|
+
line-height: 48px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@include button-colors;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
html.dark {
|
|
104
|
+
.sf-button {
|
|
105
|
+
@include button-colors(true);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@import "../mixins";
|
|
2
|
+
|
|
3
|
+
.sf-content {
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
position: relative;
|
|
7
|
+
> .sf-content-body {
|
|
8
|
+
height: calc(100% - 25%);
|
|
9
|
+
overflow: auto;
|
|
10
|
+
scroll-behavior: smooth;
|
|
11
|
+
padding: 1rem;
|
|
12
|
+
&.sf-content-no-padding {
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
> .sf-content-header {
|
|
17
|
+
top: 0;
|
|
18
|
+
border-bottom: 1px solid var(--surface-900-color);
|
|
19
|
+
}
|
|
20
|
+
> .sf-content-footer {
|
|
21
|
+
bottom: 0;
|
|
22
|
+
border-top: 1px solid var(--surface-900-color);
|
|
23
|
+
}
|
|
24
|
+
> .sf-content-header,
|
|
25
|
+
> .sf-content-footer {
|
|
26
|
+
width: 100%;
|
|
27
|
+
padding: 0 1rem;
|
|
28
|
+
height: 60px;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 0.5rem;
|
|
32
|
+
&:empty {
|
|
33
|
+
display: none;
|
|
34
|
+
height: 0;
|
|
35
|
+
}
|
|
36
|
+
&.sf-content-no-padding {
|
|
37
|
+
padding: 0;
|
|
38
|
+
gap: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
> .sf-content-header {
|
|
42
|
+
background-color: var(--bg-color);
|
|
43
|
+
}
|
|
44
|
+
> .sf-content-footer {
|
|
45
|
+
background-color: var(--surface-300-color);
|
|
46
|
+
}
|
|
47
|
+
&:has(.sf-content-header:empty) > .sf-content-body {
|
|
48
|
+
height: calc(100% - 60px);
|
|
49
|
+
}
|
|
50
|
+
&:has(.sf-content-footer:empty) > .sf-content-body {
|
|
51
|
+
height: calc(100% - 60px);
|
|
52
|
+
}
|
|
53
|
+
&:has(.sf-content-header:empty):has(.sf-content-footer:empty)
|
|
54
|
+
> .sf-content-body {
|
|
55
|
+
height: 100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
.sf-drawer {
|
|
2
|
+
pointer-events: auto;
|
|
3
|
+
height: var(--window-height);
|
|
4
|
+
background: var(--bg-color);
|
|
5
|
+
border-right: 1px solid var(--surface-border-color);
|
|
6
|
+
width: 360px;
|
|
7
|
+
transform: translate3d(0px, 0px, 0px);
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transition: all 0.2s linear;
|
|
10
|
+
@media screen and (min-width: #{$xl}) {
|
|
11
|
+
width: 480px;
|
|
12
|
+
}
|
|
13
|
+
@media screen and (max-width: #{$sm}) {
|
|
14
|
+
width: 100%;
|
|
15
|
+
border: none;
|
|
16
|
+
}
|
|
17
|
+
.sf-drawer-header,
|
|
18
|
+
.sf-drawer-footer {
|
|
19
|
+
border-color: var(--surface-border-color);
|
|
20
|
+
height: 60px;
|
|
21
|
+
}
|
|
22
|
+
.sf-drawer-header {
|
|
23
|
+
padding: 0 1.25rem;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
border-bottom: 1px solid var(--surface-border-color);
|
|
28
|
+
.sf-drawer-title {
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.sf-drawer-content {
|
|
35
|
+
overflow: auto;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
.sf-drawer-footer {
|
|
39
|
+
border-top: 1px solid var(--surface-border-color);
|
|
40
|
+
}
|
|
41
|
+
&.sf-drawer-with-title .sf-drawer-content {
|
|
42
|
+
height: calc(100% - 60px);
|
|
43
|
+
}
|
|
44
|
+
&.sf-drawer-with-footer .sf-drawer-content {
|
|
45
|
+
height: calc(100% - 60px);
|
|
46
|
+
}
|
|
47
|
+
&.sf-drawer-with-title.sf-drawer-with-footer .sf-drawer-content {
|
|
48
|
+
height: calc(100% - 120px);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.sf-drawer-enter-active {
|
|
52
|
+
transition: all 0.2 linear;
|
|
53
|
+
}
|
|
54
|
+
.sf-drawer-leave-active {
|
|
55
|
+
transition: all 0.2 linear;
|
|
56
|
+
}
|
|
57
|
+
.sf-drawer-enter-from,
|
|
58
|
+
.sf-drawer-leave-to {
|
|
59
|
+
transform: translate3d(-100%, 0px, 0px);
|
|
60
|
+
}
|
|
61
|
+
.sf-mask.right {
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
.sf-drawer {
|
|
64
|
+
border-left: 1px solid var(--surface-border-color);
|
|
65
|
+
border-right: unset;
|
|
66
|
+
}
|
|
67
|
+
.sf-drawer-enter-from,
|
|
68
|
+
.sf-drawer-leave-to {
|
|
69
|
+
transform: translate3d(100%, 0px, 0px);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.sf-mask.bottom,
|
|
73
|
+
.sf-mask.full {
|
|
74
|
+
justify-content: flex-end;
|
|
75
|
+
.sf-drawer {
|
|
76
|
+
border-left: unset;
|
|
77
|
+
border-top: 1px solid var(--surface-border-color);
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 420px;
|
|
80
|
+
align-self: end;
|
|
81
|
+
}
|
|
82
|
+
.sf-drawer-enter-from,
|
|
83
|
+
.sf-drawer-leave-to {
|
|
84
|
+
transform: translate3d(0px, var(--window-height), 0px);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.sf-mask.bottom .sf-drawer {
|
|
89
|
+
@media screen and (max-height: 360px) {
|
|
90
|
+
height: var(--window-height);
|
|
91
|
+
}
|
|
92
|
+
@media (pointer: coarse) {
|
|
93
|
+
height: var(--window-height);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.sf-mask.full .sf-drawer {
|
|
98
|
+
height: var(--window-height);
|
|
99
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
html {
|
|
2
|
+
#sf-header-avatar {
|
|
3
|
+
text-transform: uppercase;
|
|
4
|
+
line-height: 1;
|
|
5
|
+
word-break: keep-all;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
background-position: center;
|
|
10
|
+
background-size: contain;
|
|
11
|
+
font-size: 1rem;
|
|
12
|
+
min-width: 36px;
|
|
13
|
+
min-height: 36px;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
margin-left: 0.5rem;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
@include avatar-colors();
|
|
18
|
+
&.dark {
|
|
19
|
+
@include avatar-colors(true);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@import "../variables";
|
|
2
|
+
@import "../mixins";
|
|
3
|
+
|
|
4
|
+
div.sf-icon {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
> button {
|
|
10
|
+
color: var(--text-color);
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
background: none;
|
|
13
|
+
border: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
+ span {
|
|
16
|
+
position: absolute;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
width: 6px;
|
|
19
|
+
height: 6px;
|
|
20
|
+
top: 4px;
|
|
21
|
+
right: 4px;
|
|
22
|
+
@include dot-colors;
|
|
23
|
+
}
|
|
24
|
+
&:focus-visible {
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:has(button:focus-visible) {
|
|
30
|
+
outline: 2px solid var(--surface-1300-color);
|
|
31
|
+
outline-offset: 0px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sf-loading-circle {
|
|
35
|
+
svg {
|
|
36
|
+
stroke: currentColor;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.sf-icon-filled {
|
|
41
|
+
button {
|
|
42
|
+
font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0,
|
|
43
|
+
"opsz" 48;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.sf-icon-small {
|
|
48
|
+
min-width: 28px;
|
|
49
|
+
> button {
|
|
50
|
+
font-size: 20px;
|
|
51
|
+
}
|
|
52
|
+
.sf-loading-circle {
|
|
53
|
+
width: 20px;
|
|
54
|
+
height: 20px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.sf-icon-medium {
|
|
59
|
+
min-width: 37px;
|
|
60
|
+
> button {
|
|
61
|
+
font-size: 24px;
|
|
62
|
+
+ span {
|
|
63
|
+
width: 8px;
|
|
64
|
+
height: 8px;
|
|
65
|
+
top: 6px;
|
|
66
|
+
right: 6px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.sf-loading-circle {
|
|
70
|
+
width: 24px;
|
|
71
|
+
height: 24px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.sf-icon-large {
|
|
76
|
+
min-width: 48px;
|
|
77
|
+
> button {
|
|
78
|
+
font-size: 36px;
|
|
79
|
+
+ span {
|
|
80
|
+
width: 12px;
|
|
81
|
+
height: 12px;
|
|
82
|
+
top: 6px;
|
|
83
|
+
right: 6px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.sf-loading-circle {
|
|
87
|
+
width: 28px;
|
|
88
|
+
height: 28px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.sf-icon-button {
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1)
|
|
95
|
+
0ms;
|
|
96
|
+
&.sf-icon-small {
|
|
97
|
+
padding: 4px;
|
|
98
|
+
}
|
|
99
|
+
&.sf-icon-medium {
|
|
100
|
+
padding: 6px;
|
|
101
|
+
}
|
|
102
|
+
&.sf-icon-large {
|
|
103
|
+
padding: 8px;
|
|
104
|
+
}
|
|
105
|
+
@media (pointer: fine) {
|
|
106
|
+
&:hover,
|
|
107
|
+
&:focus-visible {
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
background-color: $icon-hover-color;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.sf-component-loading,
|
|
115
|
+
&.sf-component-disabled {
|
|
116
|
+
> button + span {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
@import "../variables";
|
|
2
|
+
@import "../functions";
|
|
3
|
+
@import "../mixins";
|
|
4
|
+
|
|
5
|
+
#sf-layout {
|
|
6
|
+
height: var(--window-height);
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
header {
|
|
11
|
+
background-color: #001e49;
|
|
12
|
+
color: #fff !important;
|
|
13
|
+
height: var(--header-height);
|
|
14
|
+
border-bottom: 1px solid var(--surface-border-color);
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
padding: 0 16px;
|
|
18
|
+
transition: padding 0.3s linear;
|
|
19
|
+
|
|
20
|
+
.sf-icon {
|
|
21
|
+
color: #fff !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#sf-theme-toggle svg,
|
|
25
|
+
.sf-internal-icon-button svg,
|
|
26
|
+
.sf-svg-icon {
|
|
27
|
+
fill: #fff !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sf-layout-menu-toggler {
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
|
|
35
|
+
svg {
|
|
36
|
+
transition: transform 0.2s linear;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.invert {
|
|
40
|
+
svg {
|
|
41
|
+
transform: rotate(180deg);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sf-layout-menu-toggler-logo {
|
|
46
|
+
height: 40px;
|
|
47
|
+
width: 36px;
|
|
48
|
+
background-image: url("https://sfpocstorageacc.z13.web.core.windows.net/logo-header.png");
|
|
49
|
+
background-position: center;
|
|
50
|
+
background-size: contain;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media screen and (max-width: 579px) {
|
|
56
|
+
padding: 0 8px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
> .title {
|
|
60
|
+
padding: 0 16px;
|
|
61
|
+
font-size: 1.25rem;
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
> .name {
|
|
68
|
+
display: none;
|
|
69
|
+
@media screen and (min-width: $sm) {
|
|
70
|
+
display: unset;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
> .shortname {
|
|
74
|
+
display: none;
|
|
75
|
+
@media screen and (max-width: $sm) {
|
|
76
|
+
display: unset;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
main,
|
|
83
|
+
nav {
|
|
84
|
+
transition-duration: 0.2s;
|
|
85
|
+
transition-timing-function: ease;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
main {
|
|
89
|
+
position: relative;
|
|
90
|
+
height: var(--main-height);
|
|
91
|
+
width: 100vw;
|
|
92
|
+
padding-left: 0;
|
|
93
|
+
transition-property: padding;
|
|
94
|
+
|
|
95
|
+
> section#sf-layout-page-title {
|
|
96
|
+
background-color: var(--surface-300-color);
|
|
97
|
+
border-bottom: 1px solid var(--surface-border-color);
|
|
98
|
+
color: var(--secondary-color);
|
|
99
|
+
font-size: 0.875rem;
|
|
100
|
+
text-align: center;
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
height: 28px;
|
|
105
|
+
> span {
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
text-overflow: ellipsis;
|
|
109
|
+
padding: 0 0.75rem;
|
|
110
|
+
}
|
|
111
|
+
+ #sf-layout-content {
|
|
112
|
+
height: calc(100% - 28px);
|
|
113
|
+
}
|
|
114
|
+
&:empty {
|
|
115
|
+
height: 0;
|
|
116
|
+
display: none;
|
|
117
|
+
+ #sf-layout-content {
|
|
118
|
+
height: 100%;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
> section#sf-layout-content {
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
height: 100%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.menu-visible {
|
|
129
|
+
padding-left: 290px;
|
|
130
|
+
|
|
131
|
+
@media screen and (max-width: $sm) {
|
|
132
|
+
padding-left: 0;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
nav {
|
|
138
|
+
z-index: 5;
|
|
139
|
+
position: absolute;
|
|
140
|
+
top: 0;
|
|
141
|
+
height: var(--window-height);
|
|
142
|
+
background-color: var(--surface-100-color);
|
|
143
|
+
width: 100vw;
|
|
144
|
+
border-right: 1px solid var(--surface-border-color);
|
|
145
|
+
transform: translateX(-100vw);
|
|
146
|
+
transition-property: transform;
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
|
|
150
|
+
&.visible {
|
|
151
|
+
transition-duration: 0.2s;
|
|
152
|
+
transform: translateX(0);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
> .sf-layout-nav-header {
|
|
156
|
+
height: var(--header-height);
|
|
157
|
+
border-bottom: 1px solid var(--surface-border-color);
|
|
158
|
+
background-color: var(--surface-100-color);
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
padding: 0 16px;
|
|
162
|
+
> span {
|
|
163
|
+
flex-grow: 1;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
> .sf-layout-nav-content {
|
|
168
|
+
height: 100%;
|
|
169
|
+
overflow: auto;
|
|
170
|
+
border-bottom: 1px solid var(--surface-border-color);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media screen and (min-width: #{$sm + 1}) {
|
|
174
|
+
top: unset;
|
|
175
|
+
height: calc(100vh - var(--header-height));
|
|
176
|
+
width: 290px;
|
|
177
|
+
transform: translateX(-290px);
|
|
178
|
+
> .sf-layout-nav-header {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import "../mixins";
|
|
2
|
+
|
|
3
|
+
div.sf-loading-circle {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
> div {
|
|
8
|
+
position: relative;
|
|
9
|
+
> svg {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
stroke: var(--text-color);
|
|
14
|
+
animation: spin 2s linear infinite;
|
|
15
|
+
> circle {
|
|
16
|
+
stroke-dasharray: 1, 200;
|
|
17
|
+
stroke-dashoffset: 0;
|
|
18
|
+
animation: sf-loading-circle-circle-dash 1.5s ease-in-out
|
|
19
|
+
infinite;
|
|
20
|
+
stroke-linecap: square;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.sf-navmenulink {
|
|
2
|
+
height: 40px;
|
|
3
|
+
text-decoration: none !important;
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: 0 0.75rem;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
margin: 0.5rem;
|
|
10
|
+
color: var(--text-color);
|
|
11
|
+
> span.sf-navmenulink-text {
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
line-height: 1.5;
|
|
16
|
+
}
|
|
17
|
+
&[data-active="true"] {
|
|
18
|
+
background-color: var(--surface-400-color);
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
color: var(--primary-color);
|
|
21
|
+
> .sf-icon > button:first-child {
|
|
22
|
+
color: var(--primary-color);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&:hover {
|
|
26
|
+
background-color: var(--surface-300-color);
|
|
27
|
+
}
|
|
28
|
+
&:active {
|
|
29
|
+
background-color: var(--surface-400-color);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
button.sf-scrollToTop {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 100;
|
|
4
|
+
bottom: 10px;
|
|
5
|
+
right: 26px;
|
|
6
|
+
opacity: 0;
|
|
7
|
+
transform: translateY(100px);
|
|
8
|
+
transition: all 0.5s ease;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
width: 48px;
|
|
11
|
+
height: 48px;
|
|
12
|
+
background-color: var(--text-color);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
outline: none;
|
|
15
|
+
border: none;
|
|
16
|
+
&.sf-scrollToTop-visible {
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transform: translateY(0);
|
|
19
|
+
}
|
|
20
|
+
&::before {
|
|
21
|
+
content: "";
|
|
22
|
+
position: absolute;
|
|
23
|
+
inset: 30%;
|
|
24
|
+
transform: translateY(20%) rotate(-45deg);
|
|
25
|
+
border-top: 5px solid var(--bg-color);
|
|
26
|
+
border-right: 5px solid var(--bg-color);
|
|
27
|
+
}
|
|
28
|
+
}
|