@appscode/design-system 1.0.43-alpha.83 → 1.0.43-alpha.87

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.
@@ -23,6 +23,10 @@
23
23
  }
24
24
  }
25
25
 
26
+ &.in-ui-builder {
27
+ grid-template-columns: calc(100% - 270px) 270px;
28
+ }
29
+
26
30
  &.has-ui-builder {
27
31
  grid-template-columns: 70px calc(100% - 70px);
28
32
  grid-gap: 0;
@@ -144,7 +144,7 @@
144
144
  &:after {
145
145
  position: absolute;
146
146
  content: "";
147
- left: 10px;
147
+ left: 0;
148
148
  bottom: 0;
149
149
  width: 100%;
150
150
  height: 5px;
@@ -26,6 +26,8 @@
26
26
  &.is-right {
27
27
  .option-dots {
28
28
  align-items: flex-end;
29
+ padding: 0 10px;
30
+ margin-right: -10px;
29
31
  }
30
32
 
31
33
  .options-items {
@@ -41,17 +43,18 @@
41
43
  border: none;
42
44
  background-color: transparent;
43
45
  transition: 0.3 ease-in-out;
46
+
44
47
 
45
48
  &:hover {
46
49
  color: $ac-primary;
47
50
  }
48
51
 
49
52
  span {
50
- width: 5px;
51
- height: 5px;
53
+ width: 4px;
54
+ height: 4px;
52
55
  background-color: $ac-color-value;
53
56
  border-radius: 50%;
54
- margin-bottom: 2px;
57
+ margin-bottom: 1px;
55
58
  }
56
59
  }
57
60
 
@@ -94,7 +97,7 @@
94
97
 
95
98
  a {
96
99
  font-size: $font-size-small;
97
- padding: 10px 15px;
100
+ padding: 7px 15px;
98
101
  display: block;
99
102
  text-decoration: none !important;
100
103
  color: $ac-color-text !important;
@@ -624,6 +624,9 @@
624
624
  --ac-white: #2e323c;
625
625
  }
626
626
  }
627
+ .button.ac-button.is-text{
628
+ background-color: transparent;
629
+ }
627
630
  }
628
631
  // dark theme end
629
632
  /****************************************
@@ -7,7 +7,7 @@
7
7
  0.03
8
8
  );
9
9
  border-radius: 4px;
10
- overflow: hidden;
10
+ // overflow: hidden;
11
11
  transition: 0.3s ease-in-out;
12
12
 
13
13
  &:hover {
@@ -10,7 +10,6 @@
10
10
  background-color: $ac-white;
11
11
  border-radius: 4px;
12
12
  overflow: hidden;
13
- padding: 10px;
14
13
  position: relative;
15
14
  z-index: 1;
16
15
  margin-bottom: 10px;
@@ -69,7 +68,7 @@
69
68
  font-size: 14px;
70
69
  color: $ac-color-text;
71
70
  line-height: 160%;
72
- margin-bottom: 20px;
71
+ margin-bottom: 10px;
73
72
  }
74
73
 
75
74
  .social-links {
@@ -103,7 +102,7 @@
103
102
  }
104
103
 
105
104
  img {
106
- max-width: 18px;
105
+ max-width: 15px;
107
106
  margin-right: 10px;
108
107
  }
109
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.0.43-alpha.83",
3
+ "version": "1.0.43-alpha.87",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <li>
2
+ <li ref="sidebarItem">
3
3
  <router-link
4
4
  :id="id"
5
5
  :title="title"
@@ -38,5 +38,27 @@ export default {
38
38
  default: "@/assets/images/icons/basic.svg",
39
39
  },
40
40
  },
41
+ watch: {
42
+ isActive: {
43
+ immediate: true,
44
+ handler(n) {
45
+ if (n) {
46
+ this.$nextTick(() => {
47
+ setTimeout(() => {
48
+ const top = (this.$refs.sidebarItem && this.$refs.sidebarItem.getBoundingClientRect().top) || 0;
49
+ // preventing scroll to options that are already visible
50
+ if (top > window.innerHeight - 200) {
51
+ // scroll to selected option item
52
+ this.$refs.sidebarItem.scrollIntoView({
53
+ behavior: 'smooth',
54
+ block: "center"
55
+ });
56
+ }
57
+ }, 500);
58
+ });
59
+ }
60
+ }
61
+ }
62
+ }
41
63
  };
42
64
  </script>