beyond-rails 0.0.197 → 0.0.202
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/Dropdown.js +9 -0
- data/src/sass/_main.scss +3 -3
- data/src/sass/components/_btn.scss +5 -1
- data/src/sass/components/_form.scss +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c816a4705572ba5547e235aa306aa86bdb1a378f2e726305bfd72cab13817de1
|
4
|
+
data.tar.gz: 6e3ce062286f84b8b390a7a905168a362f6aa2a41ae60aeff0d96d422c104b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1f3a3c4252e1a060e277a1adee4b7936f9d0ff4897f5f7cde4839e868b7a08b36a871965ab0fa6bd3b3fde096e562f60440f5b543c0fea7d3b04e59f983af71
|
7
|
+
data.tar.gz: fc0200739a4d9eee637fbc3960e0be00a1ecca07d711a83ad54a516c7a19648e4a8feba55a217646b53dd733f5dd03e85b9ced0985aaf43ebca2f664e1fbb21d
|
@@ -34,8 +34,17 @@ export default class Dropdown {
|
|
34
34
|
}
|
35
35
|
|
36
36
|
init() {
|
37
|
+
|
38
|
+
if (! this.dom) {
|
39
|
+
throw new Error('dom is missing in Dropdown class')
|
40
|
+
}
|
41
|
+
|
37
42
|
this.id = this.dom.dataset.target
|
38
43
|
this.menu = document.querySelector(`[data-dropdown-menu="${this.id}"]`)
|
44
|
+
|
45
|
+
if (! this.menu) {
|
46
|
+
throw new Error(`menu ${this.id} is missing in Dropdown class`)
|
47
|
+
}
|
39
48
|
this.place = this.menu.dataset.place || 'bottom'
|
40
49
|
this.align = this.menu.dataset.align
|
41
50
|
this.menu.remove()
|
data/src/sass/_main.scss
CHANGED
@@ -122,13 +122,13 @@ $color-active: #5469d4;
|
|
122
122
|
}
|
123
123
|
|
124
124
|
.align-left {
|
125
|
-
text-align: left;
|
125
|
+
text-align: left !important;
|
126
126
|
}
|
127
127
|
.align-right {
|
128
|
-
text-align: right;
|
128
|
+
text-align: right !important;
|
129
129
|
}
|
130
130
|
.align-center {
|
131
|
-
text-align: center;
|
131
|
+
text-align: center !important;
|
132
132
|
}
|
133
133
|
|
134
134
|
.sr-only {
|
@@ -2,6 +2,7 @@
|
|
2
2
|
outline: 0;
|
3
3
|
background-color: #fff;
|
4
4
|
display: inline-flex;
|
5
|
+
justify-content: center;
|
5
6
|
align-items: center;
|
6
7
|
border: 0;
|
7
8
|
padding: 6px 12px 7px;
|
@@ -66,7 +67,7 @@
|
|
66
67
|
cursor: not-allowed;
|
67
68
|
}
|
68
69
|
.icon {
|
69
|
-
margin-right: .
|
70
|
+
margin-right: .4em;
|
70
71
|
}
|
71
72
|
}
|
72
73
|
.btn-loader {
|
@@ -112,6 +113,9 @@
|
|
112
113
|
&:focus {
|
113
114
|
@include focus-outline;
|
114
115
|
}
|
116
|
+
&.active {
|
117
|
+
background-color: #f3f3f7;
|
118
|
+
}
|
115
119
|
}
|
116
120
|
|
117
121
|
.btn .badge {
|
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: 0.0.
|
4
|
+
version: 0.0.202
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kmsheng
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-09-
|
12
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|