@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.
- package/base/utilities/_default.scss +4 -0
- package/components/_ac-card.scss +1 -1
- package/components/_ac-options.scss +7 -4
- package/components/_buttons.scss +3 -0
- package/components/bbum/_card-team.scss +1 -1
- package/components/bbum/_user-profile.scss +2 -3
- package/package.json +1 -1
- package/vue-components/v2/sidebar/SidebarItem.vue +23 -1
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;
|
package/components/_buttons.scss
CHANGED
|
@@ -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,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>
|