matcha-theme 20.162.0 → 20.165.0
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.
|
@@ -1,3 +1,63 @@
|
|
|
1
|
+
// Estrutura Overlay Local
|
|
2
|
+
.matcha-panel-overlay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
z-index: 10001;
|
|
8
|
+
pointer-events: none; // Permite clicar "através" do overlay (interação com inputs, scroll da página)
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.matcha-panel-pane {
|
|
13
|
+
position: absolute;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
max-height: 100%;
|
|
18
|
+
pointer-events: auto; // Reativa cliques para o painel em si
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.matcha-panel {
|
|
23
|
+
border-radius: 8px;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
max-height: 280px;
|
|
28
|
+
min-width: 160px;
|
|
29
|
+
|
|
30
|
+
// Animações
|
|
31
|
+
opacity: 0;
|
|
32
|
+
transform: scale(0.95) translateY(-8px);
|
|
33
|
+
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
|
|
35
|
+
// Position relative (agora contido no pane)
|
|
36
|
+
position: relative;
|
|
37
|
+
z-index: auto;
|
|
38
|
+
|
|
39
|
+
// Estados de abertura
|
|
40
|
+
&.matcha-panel-open {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
transform: scale(1) translateY(0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Posicionamento vertical
|
|
46
|
+
&.matcha-panel-top {
|
|
47
|
+
transform-origin: bottom center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.matcha-panel-bottom {
|
|
51
|
+
transform-origin: top center;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Conteúdo do painel
|
|
56
|
+
.matcha-panel-content {
|
|
57
|
+
overflow-y: auto;
|
|
58
|
+
flex: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
1
61
|
@mixin matcha-panel-theme($theme) {
|
|
2
62
|
$accent: map-get($theme, accent);
|
|
3
63
|
$warn: map-get($theme, warn);
|
|
@@ -5,79 +65,23 @@
|
|
|
5
65
|
$background: map-get($theme, background);
|
|
6
66
|
$foreground: map-get($theme, foreground);
|
|
7
67
|
|
|
8
|
-
//
|
|
68
|
+
// Estilos que dependem do tema
|
|
9
69
|
.matcha-panel {
|
|
10
70
|
background: getSurface($theme);
|
|
11
|
-
border-radius: 8px;
|
|
12
71
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
max-height: 280px;
|
|
17
|
-
min-width: 160px;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// Animações
|
|
21
|
-
opacity: 0;
|
|
22
|
-
transform: scale(0.95) translateY(-8px);
|
|
23
|
-
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
24
|
-
|
|
25
|
-
// Position sempre absolute agora
|
|
26
|
-
position: absolute;
|
|
27
|
-
z-index: 1003; // Z-index maior que o overlay (1002)
|
|
28
|
-
|
|
29
|
-
// Estados de abertura
|
|
30
|
-
&.matcha-panel-open {
|
|
31
|
-
opacity: 1;
|
|
32
|
-
transform: scale(1) translateY(0);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Quando o painel está visível (open = true)
|
|
36
|
-
&:not([aria-hidden="true"]) {
|
|
37
|
-
opacity: 1;
|
|
38
|
-
transform: scale(1) translateY(0);
|
|
39
|
-
}
|
|
40
72
|
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
|
|
73
|
+
// Estados de foco e hover
|
|
74
|
+
&:focus-within {
|
|
75
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
|
44
76
|
}
|
|
45
77
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Conteúdo do painel
|
|
52
|
-
.matcha-panel-content {
|
|
53
|
-
overflow-y: auto;
|
|
54
|
-
flex: 1;
|
|
55
|
-
|
|
56
|
-
// Scrollbar customizada
|
|
57
|
-
&::-webkit-scrollbar {
|
|
58
|
-
width: 6px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&::-webkit-scrollbar-track {
|
|
62
|
-
background: transparent;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&::-webkit-scrollbar-thumb {
|
|
66
|
-
background: rgba(0, 0, 0, 0.2);
|
|
67
|
-
border-radius: 3px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
71
|
-
background: rgba(0, 0, 0, 0.3);
|
|
78
|
+
@media (prefers-color-scheme: dark) {
|
|
79
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
80
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
|
75
|
-
//
|
|
76
|
-
.matcha-panel:focus-within {
|
|
77
|
-
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Responsividade
|
|
84
|
+
// Responsividade (mantida aqui ou movida para global dependendo da necessidade de tokens)
|
|
81
85
|
@media (max-width: 768px) {
|
|
82
86
|
.matcha-panel {
|
|
83
87
|
max-height: 200px;
|
|
@@ -85,13 +89,4 @@
|
|
|
85
89
|
border-radius: 6px;
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
|
-
|
|
89
|
-
// Tema escuro
|
|
90
|
-
@media (prefers-color-scheme: dark) {
|
|
91
|
-
.matcha-panel {
|
|
92
|
-
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
93
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
92
|
+
}
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
// box-shadow: 0 0 0 2px rgba(map-get($primary, 500), 0.2);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
&.matcha-select-open {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
44
|
+
// &.matcha-select-open {
|
|
45
|
+
// // border-color: map-get($primary, 500);
|
|
46
|
+
// // box-shadow: 0 0 0 2px rgba(map-get($primary, 500), 0.2);
|
|
47
|
+
// }
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
}
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
color: map-get($foreground, text);
|
|
59
59
|
|
|
60
60
|
&.matcha-select-placeholder {
|
|
61
|
-
color:
|
|
61
|
+
color: getGrey($theme);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.matcha-select-arrow {
|
|
66
66
|
margin-left: 8px;
|
|
67
67
|
transition: transform 0.2s ease;
|
|
68
|
-
color:
|
|
68
|
+
color: getBlueGrey($theme);
|
|
69
69
|
font-size: 12px;
|
|
70
70
|
|
|
71
71
|
&.matcha-select-arrow-open {
|
|
72
72
|
transform: rotate(180deg);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|