beyond-rails 1.0.6 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/js/components/Tabbox.js +4 -3
- data/src/sass/base/_typography.scss +1 -1
- data/src/sass/components/_form.scss +1 -1
- data/src/sass/components/_tabbox.scss +3 -3
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a4fc7989841641152627de4c651d6c726f5d6c5a2aba23b3876da97fad82aa7
|
4
|
+
data.tar.gz: dcd745ce8ffb46e489dd0c1ac2293c0e0f4719d408767096bb542ff8f01d5495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8522389bd4aa3eb9ad54b10df016214d9a9ab0f110db802830d5c70e8fd07ffc89a724e65d8ddd1b9b3b42f94350f0a5aeb257bee0b76390cbd8b8c16ec665f4
|
7
|
+
data.tar.gz: 98c27a007dbcf56ecd3b8a9c6ffd413eebffd22beeb93643cdda6868d00bbc8804df462efab5998f95c39fa38a2f14410f99b9b7662ff945062245f51d4b64a6
|
data/src/js/components/Tabbox.js
CHANGED
@@ -17,8 +17,8 @@ export default class Tabbox {
|
|
17
17
|
|
18
18
|
init() {
|
19
19
|
const { dom } = this
|
20
|
-
this.btns = Array.from(dom.querySelectorAll('
|
21
|
-
this.dropdownBtns = Array.from(dom.querySelectorAll('
|
20
|
+
this.btns = Array.from(dom.querySelectorAll('[data-tabbox-item]'))
|
21
|
+
this.dropdownBtns = Array.from(dom.querySelectorAll('[data-tabbox-dropdown]'))
|
22
22
|
this.addEvents()
|
23
23
|
this.appendSlider()
|
24
24
|
}
|
@@ -117,11 +117,12 @@ export default class Tabbox {
|
|
117
117
|
return
|
118
118
|
}
|
119
119
|
if ('tabboxDropdown' in node.dataset) {
|
120
|
+
const { optionEl } = this
|
120
121
|
return this.moveSlider({
|
121
122
|
top: node.offsetTop,
|
122
123
|
left: node.offsetLeft,
|
123
124
|
width: node.offsetWidth,
|
124
|
-
color:
|
125
|
+
color: optionEl ? optionEl.dataset.activeColor : node.dataset.activeColor
|
125
126
|
})
|
126
127
|
}
|
127
128
|
this.moveSlider({
|
@@ -39,6 +39,7 @@
|
|
39
39
|
padding: 18px 50px;
|
40
40
|
}
|
41
41
|
.tab-btn {
|
42
|
+
color: $txt;
|
42
43
|
background: $tab-btn-bg;
|
43
44
|
padding: 12px 25px;
|
44
45
|
font-size: 13px;
|
@@ -54,13 +55,12 @@
|
|
54
55
|
.icon-chevron-down {
|
55
56
|
margin-left: 7px;
|
56
57
|
font-size: 10px;
|
58
|
+
transform: translateY(1px);
|
59
|
+
display: inline-block;
|
57
60
|
}
|
58
61
|
&:hover {
|
59
62
|
color: $tab-hover-color;
|
60
63
|
font-weight: 700;
|
61
|
-
.icon-chevron-down:before {
|
62
|
-
color: #1d2638;
|
63
|
-
}
|
64
64
|
}
|
65
65
|
@include tab-focus-style;
|
66
66
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beyond-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kmsheng
|
@@ -9,28 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 2.0.0
|
21
18
|
- - "~>"
|
22
19
|
- !ruby/object:Gem::Version
|
23
20
|
version: '2.0'
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- - ">="
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: 2.0.0
|
31
28
|
- - "~>"
|
32
29
|
- !ruby/object:Gem::Version
|
33
30
|
version: '2.0'
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.0
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: autoprefixer-rails
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -293,7 +293,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
293
|
- !ruby/object:Gem::Version
|
294
294
|
version: '0'
|
295
295
|
requirements: []
|
296
|
-
|
296
|
+
rubyforge_project:
|
297
|
+
rubygems_version: 2.7.6.2
|
297
298
|
signing_key:
|
298
299
|
specification_version: 4
|
299
300
|
summary: beyond is a collection of frontend components which aims for admin website.
|