@appscode/design-system 1.0.43-alpha.165 → 1.0.43-alpha.166

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.
@@ -578,16 +578,20 @@
578
578
  }
579
579
  .theme-choicee {
580
580
  border: 1px solid $ac-white-light;
581
- li{
581
+ li {
582
+ border-right: 1px solid $ac-white-light;
582
583
  cursor: pointer;
583
584
  transition: 0.3s ease-in-out;
585
+ &:last-child {
586
+ border-right: none;
587
+ }
584
588
  &:hover {
585
589
  color: $ac-black;
586
590
  }
587
591
  &.is-active {
588
592
  background-color: $ac-white-light;
589
593
  }
590
- }
594
+ }
591
595
  }
592
596
  // start dark theme
593
597
  .is-dark-theme {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.0.43-alpha.165",
3
+ "version": "1.0.43-alpha.166",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -1,21 +1,14 @@
1
1
  <template>
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">
2
+ <li class="mt-10 b-t-1 pt-10">
3
+ <ul class="ac-vscrollbar">
11
4
  <li>
12
5
  <div class="ac-menu-contentt theme-choicee">
13
- <ul class="is-flex is-flex-direction-row is-justify-content-space-between">
6
+ <ul class="is-flex is-flex-direction-row is-justify-content-center">
14
7
  <li
15
8
  v-for="theme of Object.keys(themeModes)"
16
9
  :title="themeModes[theme].displayName"
17
10
  @click="themeMode = theme"
18
- class="p-10 pl-30 pr-30"
11
+ class="p-10 pl-30 pr-30 is-flex-grow-1 has-text-centered"
19
12
  :class="{ 'is-active': themeMode === theme }"
20
13
  :key="theme"
21
14
  >
@@ -24,8 +17,8 @@
24
17
  </ul>
25
18
  </div>
26
19
  </li>
27
- </ul>
28
- </li>
20
+ </ul>
21
+ </li>
29
22
  </template>
30
23
  <script>
31
24
  import { defineComponent } from "vue";
@@ -33,13 +26,8 @@ import { defineComponent } from "vue";
33
26
  export default defineComponent({
34
27
  data() {
35
28
  return {
36
- showTheme: false,
37
29
  themeMode: "",
38
30
  themeModes: {
39
- system: {
40
- displayName: "System Theme",
41
- iconClass: "fa-desktop",
42
- },
43
31
  light: {
44
32
  displayName: "Light Theme",
45
33
  iconClass: "fa-sun-o",
@@ -48,6 +36,10 @@ export default defineComponent({
48
36
  displayName: "Dark Theme",
49
37
  iconClass: "fa-moon-o",
50
38
  },
39
+ system: {
40
+ displayName: "System Theme",
41
+ iconClass: "fa-desktop",
42
+ },
51
43
  },
52
44
  };
53
45
  },