@appscode/design-system 1.0.43-alpha.162 → 1.0.43-alpha.165
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/components/_navbar.scss
CHANGED
|
@@ -576,7 +576,19 @@
|
|
|
576
576
|
transition: width 0.9s ease-in-out;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
.theme-choicee {
|
|
580
|
+
border: 1px solid $ac-white-light;
|
|
581
|
+
li{
|
|
582
|
+
cursor: pointer;
|
|
583
|
+
transition: 0.3s ease-in-out;
|
|
584
|
+
&:hover {
|
|
585
|
+
color: $ac-black;
|
|
586
|
+
}
|
|
587
|
+
&.is-active {
|
|
588
|
+
background-color: $ac-white-light;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
580
592
|
// start dark theme
|
|
581
593
|
.is-dark-theme {
|
|
582
594
|
body {
|
|
@@ -112,6 +112,12 @@
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
.is-visibility-hidden {
|
|
116
|
+
visibility: hidden !important;
|
|
117
|
+
height: 0 !important;
|
|
118
|
+
opacity: 0 !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
115
121
|
// nested elements end
|
|
116
122
|
|
|
117
123
|
.table-wrapper {
|
|
@@ -179,6 +185,23 @@
|
|
|
179
185
|
}
|
|
180
186
|
}
|
|
181
187
|
}
|
|
188
|
+
|
|
189
|
+
//For resource input from
|
|
190
|
+
.resource-input {
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-template-columns: 60px 1fr 1fr;
|
|
193
|
+
grid-gap: 15px;
|
|
194
|
+
align-items: center;
|
|
195
|
+
margin-bottom: 15px;
|
|
196
|
+
.label-text {
|
|
197
|
+
font-weight: 300;
|
|
198
|
+
}
|
|
199
|
+
.ac-single-input {
|
|
200
|
+
margin: 0;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
182
205
|
// dark theme end
|
|
183
206
|
/****************************************
|
|
184
207
|
Responsive Classes
|
package/package.json
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
<li class="">
|
|
3
|
+
<a @click="showTheme = !showTheme" class="ac-dropdown-button is-fullwidth is-flex is-justify-content-space-between is-align-items-center">
|
|
4
|
+
<span>Theme Change</span>
|
|
5
|
+
<span>
|
|
6
|
+
<i v-if="showTheme" class="fa fa-angle-up"></i>
|
|
7
|
+
<i v-else class="fa fa-angle-down"></i>
|
|
8
|
+
</span>
|
|
9
|
+
</a>
|
|
10
|
+
<ul v-if="showTheme" class="ac-vscrollbar">
|
|
11
|
+
<li>
|
|
12
|
+
<div class="ac-menu-contentt theme-choicee">
|
|
13
|
+
<ul class="is-flex is-flex-direction-row is-justify-content-space-between">
|
|
14
|
+
<li
|
|
15
|
+
v-for="theme of Object.keys(themeModes)"
|
|
16
|
+
:title="themeModes[theme].displayName"
|
|
17
|
+
@click="themeMode = theme"
|
|
18
|
+
class="p-10 pl-30 pr-30"
|
|
19
|
+
:class="{ 'is-active': themeMode === theme }"
|
|
20
|
+
:key="theme"
|
|
21
|
+
>
|
|
22
|
+
<i :class="['fa', themeModes[theme].iconClass]" />
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
</div>
|
|
26
|
+
</li>
|
|
27
|
+
</ul>
|
|
28
|
+
</li>
|
|
25
29
|
</template>
|
|
26
30
|
<script>
|
|
27
31
|
import { defineComponent } from "vue";
|
|
@@ -29,6 +33,7 @@ import { defineComponent } from "vue";
|
|
|
29
33
|
export default defineComponent({
|
|
30
34
|
data() {
|
|
31
35
|
return {
|
|
36
|
+
showTheme: false,
|
|
32
37
|
themeMode: "",
|
|
33
38
|
themeModes: {
|
|
34
39
|
system: {
|
|
@@ -111,6 +111,9 @@
|
|
|
111
111
|
<li key="signout">
|
|
112
112
|
<a :href="`${accountsDomain}/user/logout`"> Sign out </a>
|
|
113
113
|
</li>
|
|
114
|
+
<li key="theme" v-if="showThemeMode">
|
|
115
|
+
<theme-mode @set:theme="setTheme" />
|
|
116
|
+
</li>
|
|
114
117
|
</transition-group>
|
|
115
118
|
</div>
|
|
116
119
|
</navbar-item-content>
|
|
@@ -144,7 +147,12 @@ export default defineComponent({
|
|
|
144
147
|
type: Array,
|
|
145
148
|
default: () => [],
|
|
146
149
|
},
|
|
150
|
+
showThemeMode: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: false
|
|
153
|
+
}
|
|
147
154
|
},
|
|
155
|
+
emits: ["set:theme"],
|
|
148
156
|
|
|
149
157
|
components: {
|
|
150
158
|
NavbarItem: defineAsyncComponent(() =>
|
|
@@ -153,6 +161,9 @@ export default defineComponent({
|
|
|
153
161
|
NavbarItemContent: defineAsyncComponent(() =>
|
|
154
162
|
import("../../v2/navbar/NavbarItemContent.vue").then((module) => module.default)
|
|
155
163
|
),
|
|
164
|
+
ThemeMode: defineAsyncComponent(() =>
|
|
165
|
+
import("../../v3/navbar/ThemeMode.vue").then((module) => module.default)
|
|
166
|
+
),
|
|
156
167
|
},
|
|
157
168
|
|
|
158
169
|
computed: {
|
|
@@ -193,6 +204,9 @@ export default defineComponent({
|
|
|
193
204
|
},
|
|
194
205
|
onMouseLeave() {
|
|
195
206
|
this.dropDownStatus = "close";
|
|
207
|
+
},
|
|
208
|
+
setTheme(val){
|
|
209
|
+
this.$emit("set:theme", val);
|
|
196
210
|
}
|
|
197
211
|
},
|
|
198
212
|
|