@appscode/design-system 1.0.43-alpha.82 → 1.0.43-alpha.86
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/_ac-card.scss
CHANGED
|
@@ -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:
|
|
51
|
-
height:
|
|
53
|
+
width: 4px;
|
|
54
|
+
height: 4px;
|
|
52
55
|
background-color: $ac-color-value;
|
|
53
56
|
border-radius: 50%;
|
|
54
|
-
margin-bottom:
|
|
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:
|
|
100
|
+
padding: 7px 15px;
|
|
98
101
|
display: block;
|
|
99
102
|
text-decoration: none !important;
|
|
100
103
|
color: $ac-color-text !important;
|
|
@@ -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:
|
|
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:
|
|
105
|
+
max-width: 15px;
|
|
107
106
|
margin-right: 10px;
|
|
108
107
|
}
|
|
109
108
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appscode/design-system",
|
|
3
|
-
"version": "1.0.43-alpha.
|
|
3
|
+
"version": "1.0.43-alpha.86",
|
|
4
4
|
"description": "A design system for Appscode websites and dashboards made using Bulma",
|
|
5
5
|
"main": "main.scss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@appscode/design-system-images": "0.0.13"
|
|
10
|
+
"@appscode/design-system-images": "0.0.13",
|
|
11
|
+
"bulma-checkradio": "^1.1.1",
|
|
12
|
+
"bulma-switch": "^2.0.0",
|
|
13
|
+
"bulma-tooltip": "^3.0.2",
|
|
14
|
+
"v-calendar": "^1.0.6",
|
|
15
|
+
"vue-multiselect": "^2.1.6"
|
|
11
16
|
},
|
|
12
17
|
"repository": {
|
|
13
18
|
"type": "git",
|
|
@@ -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>
|