@nine-lab/nine-ux 0.1.182 → 0.1.184
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/css/nineTab.css
CHANGED
|
@@ -1,3 +1,194 @@
|
|
|
1
1
|
:host(nine-tab) {
|
|
2
|
+
position: relative;
|
|
2
3
|
|
|
4
|
+
.tabs {
|
|
5
|
+
display: flex;
|
|
6
|
+
button {
|
|
7
|
+
display: none;
|
|
8
|
+
position: absolute;
|
|
9
|
+
--top: 2px;
|
|
10
|
+
right: 2px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
width: 16px;
|
|
13
|
+
height: 16px;
|
|
14
|
+
border: none;
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
background-position: center;
|
|
18
|
+
background-size: auto;
|
|
19
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="darkgray" class="bi bi-box-arrow-in-up-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M6.364 13.5a.5.5 0 0 0 .5.5H13.5a1.5 1.5 0 0 0 1.5-1.5v-10A1.5 1.5 0 0 0 13.5 1h-10A1.5 1.5 0 0 0 2 2.5v6.636a.5.5 0 1 0 1 0V2.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v10a.5.5 0 0 1-.5.5H6.864a.5.5 0 0 0-.5.5"/><path fill-rule="evenodd" d="M11 5.5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793l-8.147 8.146a.5.5 0 0 0 .708.708L10 6.707V10.5a.5.5 0 0 0 1 0z"/></svg>');
|
|
20
|
+
animation: rotate-out 0.3s ease-in-out forwards;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.tab-button {
|
|
24
|
+
padding: 8px;
|
|
25
|
+
border: 1px solid #ccc;
|
|
26
|
+
text-align: center;
|
|
27
|
+
outline: 0;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transition: all 0.3s ease;
|
|
30
|
+
}
|
|
31
|
+
.tab-button:hover {
|
|
32
|
+
filter: brightness(80%);
|
|
33
|
+
--background-color: #777; /* 진한 배경으로 강조 */
|
|
34
|
+
--box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* 입체감 glow */
|
|
35
|
+
transform: scale(1.05); /* 약간 확대 */
|
|
36
|
+
}
|
|
37
|
+
.tab-pages {
|
|
38
|
+
position: relative;
|
|
39
|
+
width: 100%;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
transition: height 0.5s ease-in-out;
|
|
42
|
+
transform: translateY(-1px);
|
|
43
|
+
}
|
|
44
|
+
.tab-page {
|
|
45
|
+
position: absolute;
|
|
46
|
+
width: 100%;
|
|
47
|
+
top: 0;
|
|
48
|
+
transition: left 0.5s ease-in-out;
|
|
49
|
+
padding: 16px;
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
text-align: left;
|
|
55
|
+
}
|
|
56
|
+
.tab-page.active {
|
|
57
|
+
left: 0;
|
|
58
|
+
}
|
|
59
|
+
.tab-page.exit-left {
|
|
60
|
+
left: -100%;
|
|
61
|
+
}
|
|
62
|
+
.tab-page.exit-right {
|
|
63
|
+
left: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
:host(nine-tab.theme-1) {
|
|
69
|
+
.tabs {
|
|
70
|
+
--border-bottom: 1px solid #eee;
|
|
71
|
+
gap: 3px;
|
|
72
|
+
}
|
|
73
|
+
.tab-button {
|
|
74
|
+
color: #666;
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
transform: translateY(1px);
|
|
77
|
+
z-index: 1;
|
|
78
|
+
--border-bottom: 1px solid #ccc;
|
|
79
|
+
}
|
|
80
|
+
.tab-button.active {
|
|
81
|
+
color: #666;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
border-bottom: 1px solid white;
|
|
84
|
+
}
|
|
85
|
+
.tab-pages {
|
|
86
|
+
border: 1px solid #ccc;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host(nine-tab.theme-2) {
|
|
91
|
+
.tabs {
|
|
92
|
+
border-bottom: 1px solid #eee;
|
|
93
|
+
gap: 40px;
|
|
94
|
+
}
|
|
95
|
+
.tab-button {
|
|
96
|
+
color: #666;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
border: none;
|
|
99
|
+
}
|
|
100
|
+
.tab-button.active {
|
|
101
|
+
color: green;
|
|
102
|
+
font-weight: 700;
|
|
103
|
+
border-bottom: 3px solid green;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host(nine-tab.theme-3) {
|
|
108
|
+
.tabs {
|
|
109
|
+
border-bottom: 1px solid #eee;
|
|
110
|
+
gap: 16px;
|
|
111
|
+
button {
|
|
112
|
+
display: block;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.tab-button {
|
|
116
|
+
color: #666;
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
border: none;
|
|
119
|
+
padding: 4px;
|
|
120
|
+
font-size: 12px;
|
|
121
|
+
}
|
|
122
|
+
.tab-button.active {
|
|
123
|
+
color: green;
|
|
124
|
+
font-weight: 700;
|
|
125
|
+
border-bottom: 3px solid green;
|
|
126
|
+
}
|
|
127
|
+
.tab-pages {
|
|
128
|
+
border-bottom: 1px solid #f0f0f0;
|
|
129
|
+
height: 100%;
|
|
130
|
+
}
|
|
131
|
+
.tab-page {
|
|
132
|
+
padding: 4px 16px;
|
|
133
|
+
font-size: 12px;
|
|
134
|
+
display: flex;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
align-items: stretch;
|
|
137
|
+
button.search {
|
|
138
|
+
margin-top: -4px;
|
|
139
|
+
margin-bottom: -4px;
|
|
140
|
+
margin-right: -16px;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
3
144
|
}
|
|
145
|
+
|
|
146
|
+
:host(nine-tab.theme-4) {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
width: 100%;
|
|
150
|
+
height: 100%;
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
.tabs {
|
|
154
|
+
border-bottom: 1px solid #eee;
|
|
155
|
+
gap: 16px;
|
|
156
|
+
button {
|
|
157
|
+
display: block;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
.tab-button {
|
|
161
|
+
color: #666;
|
|
162
|
+
font-weight: 500;
|
|
163
|
+
border: none;
|
|
164
|
+
padding: 4px;
|
|
165
|
+
font-size: 12px;
|
|
166
|
+
}
|
|
167
|
+
.tab-button.active {
|
|
168
|
+
color: green;
|
|
169
|
+
font-weight: 700;
|
|
170
|
+
border-bottom: 3px solid green;
|
|
171
|
+
}
|
|
172
|
+
.tab-pages {
|
|
173
|
+
border-bottom: 1px solid #f0f0f0;
|
|
174
|
+
height: 100% !important;
|
|
175
|
+
div {
|
|
176
|
+
height: 100%;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.tab-page {
|
|
180
|
+
padding: 4px 0 0;
|
|
181
|
+
font-size: 12px;
|
|
182
|
+
display: flex;
|
|
183
|
+
justify-content: center;
|
|
184
|
+
align-items: stretch;
|
|
185
|
+
button.search {
|
|
186
|
+
margin-top: -4px;
|
|
187
|
+
margin-bottom: -4px;
|
|
188
|
+
margin-right: -16px;
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|