tao_popover 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.blade.yml +30 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/dist/tao.css +475 -0
- data/dist/tao.js +31116 -0
- data/dist/tao_popover.css +86 -0
- data/dist/tao_popover.js +413 -0
- data/index.html +82 -0
- data/lib/assets/javascripts/tao_popover/component.coffee +97 -0
- data/lib/assets/javascripts/tao_popover/direction.coffee +76 -0
- data/lib/assets/javascripts/tao_popover/position.coffee +86 -0
- data/lib/assets/javascripts/tao_popover/trigger.coffee +49 -0
- data/lib/assets/javascripts/tao_popover.coffee +4 -0
- data/lib/assets/stylesheets/tao_popover.scss +176 -0
- data/lib/tao_popover/rails/engine.rb +11 -0
- data/lib/tao_popover/rails/version.rb +3 -0
- data/lib/tao_popover/rails.rb +2 -0
- data/lib/tao_popover.rb +7 -0
- data/tao_popover.gemspec +30 -0
- metadata +140 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 513cd22e4dfdd600d2d7b1a4cdee2bd4ce03c48e
|
4
|
+
data.tar.gz: 5a8347aa71aa4482739a96a2fead7c16327c1831
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3487b4c73d392d506c30b334bb46cc8570013c574838aec8c3df0234fe9d44f6974ddc2c8972d254da45b6dca7babbe55e80835602c7cce2af56c733cfb11070
|
7
|
+
data.tar.gz: 4810ef0067dca4fcf8e61088e88160d187b805a4638aab0349274cb84e3729afdba01a6fc854ced28ca18e33f9583ec949e21a0027daeddcf593e5f5428d30f8
|
data/.blade.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
load_paths:
|
2
|
+
- lib/assets/javascripts
|
3
|
+
- lib/assets/stylesheets
|
4
|
+
- test/javascripts/
|
5
|
+
- turbolinks-source: lib/assets/javascripts
|
6
|
+
- jquery-rails: vendor/assets/javascripts
|
7
|
+
- lodash-rails: vendor/assets/javascripts
|
8
|
+
- normalize-rails:
|
9
|
+
- vendor/assets/javascripts
|
10
|
+
- vendor/assets/stylesheets
|
11
|
+
- tao_on_rails:
|
12
|
+
- lib/assets/javascripts
|
13
|
+
- lib/assets/stylesheets
|
14
|
+
- vendor/assets/javascripts
|
15
|
+
- vendor/assets/stylesheets
|
16
|
+
|
17
|
+
logical_paths:
|
18
|
+
- tao.js
|
19
|
+
- tao.css
|
20
|
+
- tao_popover.css
|
21
|
+
- tao_popover.js
|
22
|
+
- tao_popover_test.js
|
23
|
+
|
24
|
+
build:
|
25
|
+
logical_paths:
|
26
|
+
- tao.js
|
27
|
+
- tao.css
|
28
|
+
- tao_popover.css
|
29
|
+
- tao_popover.js
|
30
|
+
path: dist
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at farthinker@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 彩程设计
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 farthinker
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# TaoPopover
|
2
|
+
|
3
|
+
A popover component based on [Tao on Rails](https://github.com/mycolorway/tao_on_rails).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'tao_popover'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install tao_popover
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tao_popover. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
34
|
+
|
35
|
+
|
36
|
+
## License
|
37
|
+
|
38
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "tao_popover"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/dist/tao.css
ADDED
@@ -0,0 +1,475 @@
|
|
1
|
+
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* Document
|
4
|
+
========================================================================== */
|
5
|
+
|
6
|
+
/**
|
7
|
+
* 1. Change the default font family in all browsers (opinionated).
|
8
|
+
* 2. Correct the line height in all browsers.
|
9
|
+
* 3. Prevent adjustments of font size after orientation changes in
|
10
|
+
* IE on Windows Phone and in iOS.
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
html {
|
15
|
+
font-family: sans-serif; /* 1 */
|
16
|
+
line-height: 1.15; /* 2 */
|
17
|
+
-ms-text-size-adjust: 100%; /* 3 */
|
18
|
+
-webkit-text-size-adjust: 100%; /* 3 */
|
19
|
+
}
|
20
|
+
|
21
|
+
/* Sections
|
22
|
+
========================================================================== */
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Remove the margin in all browsers (opinionated).
|
26
|
+
*/
|
27
|
+
|
28
|
+
body {
|
29
|
+
margin: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Add the correct display in IE 9-.
|
34
|
+
*/
|
35
|
+
|
36
|
+
article,
|
37
|
+
aside,
|
38
|
+
footer,
|
39
|
+
header,
|
40
|
+
nav,
|
41
|
+
section {
|
42
|
+
display: block;
|
43
|
+
}
|
44
|
+
|
45
|
+
/**
|
46
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
47
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
48
|
+
*/
|
49
|
+
|
50
|
+
h1 {
|
51
|
+
font-size: 2em;
|
52
|
+
margin: 0.67em 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
/* Grouping content
|
56
|
+
========================================================================== */
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Add the correct display in IE 9-.
|
60
|
+
* 1. Add the correct display in IE.
|
61
|
+
*/
|
62
|
+
|
63
|
+
figcaption,
|
64
|
+
figure,
|
65
|
+
main { /* 1 */
|
66
|
+
display: block;
|
67
|
+
}
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Add the correct margin in IE 8.
|
71
|
+
*/
|
72
|
+
|
73
|
+
figure {
|
74
|
+
margin: 1em 40px;
|
75
|
+
}
|
76
|
+
|
77
|
+
/**
|
78
|
+
* 1. Add the correct box sizing in Firefox.
|
79
|
+
* 2. Show the overflow in Edge and IE.
|
80
|
+
*/
|
81
|
+
|
82
|
+
hr {
|
83
|
+
box-sizing: content-box; /* 1 */
|
84
|
+
height: 0; /* 1 */
|
85
|
+
overflow: visible; /* 2 */
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
90
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
91
|
+
*/
|
92
|
+
|
93
|
+
pre {
|
94
|
+
font-family: monospace, monospace; /* 1 */
|
95
|
+
font-size: 1em; /* 2 */
|
96
|
+
}
|
97
|
+
|
98
|
+
/* Text-level semantics
|
99
|
+
========================================================================== */
|
100
|
+
|
101
|
+
/**
|
102
|
+
* 1. Remove the gray background on active links in IE 10.
|
103
|
+
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
104
|
+
*/
|
105
|
+
|
106
|
+
a {
|
107
|
+
background-color: transparent; /* 1 */
|
108
|
+
-webkit-text-decoration-skip: objects; /* 2 */
|
109
|
+
}
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Remove the outline on focused links when they are also active or hovered
|
113
|
+
* in all browsers (opinionated).
|
114
|
+
*/
|
115
|
+
|
116
|
+
a:active,
|
117
|
+
a:hover {
|
118
|
+
outline-width: 0;
|
119
|
+
}
|
120
|
+
|
121
|
+
/**
|
122
|
+
* 1. Remove the bottom border in Firefox 39-.
|
123
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
124
|
+
*/
|
125
|
+
|
126
|
+
abbr[title] {
|
127
|
+
border-bottom: none; /* 1 */
|
128
|
+
text-decoration: underline; /* 2 */
|
129
|
+
text-decoration: underline dotted; /* 2 */
|
130
|
+
}
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
134
|
+
*/
|
135
|
+
|
136
|
+
b,
|
137
|
+
strong {
|
138
|
+
font-weight: inherit;
|
139
|
+
}
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
143
|
+
*/
|
144
|
+
|
145
|
+
b,
|
146
|
+
strong {
|
147
|
+
font-weight: bolder;
|
148
|
+
}
|
149
|
+
|
150
|
+
/**
|
151
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
152
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
153
|
+
*/
|
154
|
+
|
155
|
+
code,
|
156
|
+
kbd,
|
157
|
+
samp {
|
158
|
+
font-family: monospace, monospace; /* 1 */
|
159
|
+
font-size: 1em; /* 2 */
|
160
|
+
}
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Add the correct font style in Android 4.3-.
|
164
|
+
*/
|
165
|
+
|
166
|
+
dfn {
|
167
|
+
font-style: italic;
|
168
|
+
}
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Add the correct background and color in IE 9-.
|
172
|
+
*/
|
173
|
+
|
174
|
+
mark {
|
175
|
+
background-color: #ff0;
|
176
|
+
color: #000;
|
177
|
+
}
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Add the correct font size in all browsers.
|
181
|
+
*/
|
182
|
+
|
183
|
+
small {
|
184
|
+
font-size: 80%;
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
189
|
+
* all browsers.
|
190
|
+
*/
|
191
|
+
|
192
|
+
sub,
|
193
|
+
sup {
|
194
|
+
font-size: 75%;
|
195
|
+
line-height: 0;
|
196
|
+
position: relative;
|
197
|
+
vertical-align: baseline;
|
198
|
+
}
|
199
|
+
|
200
|
+
sub {
|
201
|
+
bottom: -0.25em;
|
202
|
+
}
|
203
|
+
|
204
|
+
sup {
|
205
|
+
top: -0.5em;
|
206
|
+
}
|
207
|
+
|
208
|
+
/* Embedded content
|
209
|
+
========================================================================== */
|
210
|
+
|
211
|
+
/**
|
212
|
+
* Add the correct display in IE 9-.
|
213
|
+
*/
|
214
|
+
|
215
|
+
audio,
|
216
|
+
video {
|
217
|
+
display: inline-block;
|
218
|
+
}
|
219
|
+
|
220
|
+
/**
|
221
|
+
* Add the correct display in iOS 4-7.
|
222
|
+
*/
|
223
|
+
|
224
|
+
audio:not([controls]) {
|
225
|
+
display: none;
|
226
|
+
height: 0;
|
227
|
+
}
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Remove the border on images inside links in IE 10-.
|
231
|
+
*/
|
232
|
+
|
233
|
+
img {
|
234
|
+
border-style: none;
|
235
|
+
}
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Hide the overflow in IE.
|
239
|
+
*/
|
240
|
+
|
241
|
+
svg:not(:root) {
|
242
|
+
overflow: hidden;
|
243
|
+
}
|
244
|
+
|
245
|
+
/* Forms
|
246
|
+
========================================================================== */
|
247
|
+
|
248
|
+
/**
|
249
|
+
* 1. Change the font styles in all browsers (opinionated).
|
250
|
+
* 2. Remove the margin in Firefox and Safari.
|
251
|
+
*/
|
252
|
+
|
253
|
+
button,
|
254
|
+
input,
|
255
|
+
optgroup,
|
256
|
+
select,
|
257
|
+
textarea {
|
258
|
+
font-family: sans-serif; /* 1 */
|
259
|
+
font-size: 100%; /* 1 */
|
260
|
+
line-height: 1.15; /* 1 */
|
261
|
+
margin: 0; /* 2 */
|
262
|
+
}
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Show the overflow in IE.
|
266
|
+
* 1. Show the overflow in Edge.
|
267
|
+
*/
|
268
|
+
|
269
|
+
button,
|
270
|
+
input { /* 1 */
|
271
|
+
overflow: visible;
|
272
|
+
}
|
273
|
+
|
274
|
+
/**
|
275
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
276
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
277
|
+
*/
|
278
|
+
|
279
|
+
button,
|
280
|
+
select { /* 1 */
|
281
|
+
text-transform: none;
|
282
|
+
}
|
283
|
+
|
284
|
+
/**
|
285
|
+
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
286
|
+
* controls in Android 4.
|
287
|
+
* 2. Correct the inability to style clickable types in iOS and Safari.
|
288
|
+
*/
|
289
|
+
|
290
|
+
button,
|
291
|
+
html [type="button"], /* 1 */
|
292
|
+
[type="reset"],
|
293
|
+
[type="submit"] {
|
294
|
+
-webkit-appearance: button; /* 2 */
|
295
|
+
}
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Remove the inner border and padding in Firefox.
|
299
|
+
*/
|
300
|
+
|
301
|
+
button::-moz-focus-inner,
|
302
|
+
[type="button"]::-moz-focus-inner,
|
303
|
+
[type="reset"]::-moz-focus-inner,
|
304
|
+
[type="submit"]::-moz-focus-inner {
|
305
|
+
border-style: none;
|
306
|
+
padding: 0;
|
307
|
+
}
|
308
|
+
|
309
|
+
/**
|
310
|
+
* Restore the focus styles unset by the previous rule.
|
311
|
+
*/
|
312
|
+
|
313
|
+
button:-moz-focusring,
|
314
|
+
[type="button"]:-moz-focusring,
|
315
|
+
[type="reset"]:-moz-focusring,
|
316
|
+
[type="submit"]:-moz-focusring {
|
317
|
+
outline: 1px dotted ButtonText;
|
318
|
+
}
|
319
|
+
|
320
|
+
/**
|
321
|
+
* Change the border, margin, and padding in all browsers (opinionated).
|
322
|
+
*/
|
323
|
+
|
324
|
+
fieldset {
|
325
|
+
border: 1px solid #c0c0c0;
|
326
|
+
margin: 0 2px;
|
327
|
+
padding: 0.35em 0.625em 0.75em;
|
328
|
+
}
|
329
|
+
|
330
|
+
/**
|
331
|
+
* 1. Correct the text wrapping in Edge and IE.
|
332
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
333
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
334
|
+
* `fieldset` elements in all browsers.
|
335
|
+
*/
|
336
|
+
|
337
|
+
legend {
|
338
|
+
box-sizing: border-box; /* 1 */
|
339
|
+
color: inherit; /* 2 */
|
340
|
+
display: table; /* 1 */
|
341
|
+
max-width: 100%; /* 1 */
|
342
|
+
padding: 0; /* 3 */
|
343
|
+
white-space: normal; /* 1 */
|
344
|
+
}
|
345
|
+
|
346
|
+
/**
|
347
|
+
* 1. Add the correct display in IE 9-.
|
348
|
+
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
349
|
+
*/
|
350
|
+
|
351
|
+
progress {
|
352
|
+
display: inline-block; /* 1 */
|
353
|
+
vertical-align: baseline; /* 2 */
|
354
|
+
}
|
355
|
+
|
356
|
+
/**
|
357
|
+
* Remove the default vertical scrollbar in IE.
|
358
|
+
*/
|
359
|
+
|
360
|
+
textarea {
|
361
|
+
overflow: auto;
|
362
|
+
}
|
363
|
+
|
364
|
+
/**
|
365
|
+
* 1. Add the correct box sizing in IE 10-.
|
366
|
+
* 2. Remove the padding in IE 10-.
|
367
|
+
*/
|
368
|
+
|
369
|
+
[type="checkbox"],
|
370
|
+
[type="radio"] {
|
371
|
+
box-sizing: border-box; /* 1 */
|
372
|
+
padding: 0; /* 2 */
|
373
|
+
}
|
374
|
+
|
375
|
+
/**
|
376
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
377
|
+
*/
|
378
|
+
|
379
|
+
[type="number"]::-webkit-inner-spin-button,
|
380
|
+
[type="number"]::-webkit-outer-spin-button {
|
381
|
+
height: auto;
|
382
|
+
}
|
383
|
+
|
384
|
+
/**
|
385
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
386
|
+
* 2. Correct the outline style in Safari.
|
387
|
+
*/
|
388
|
+
|
389
|
+
[type="search"] {
|
390
|
+
-webkit-appearance: textfield; /* 1 */
|
391
|
+
outline-offset: -2px; /* 2 */
|
392
|
+
}
|
393
|
+
|
394
|
+
/**
|
395
|
+
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
396
|
+
*/
|
397
|
+
|
398
|
+
[type="search"]::-webkit-search-cancel-button,
|
399
|
+
[type="search"]::-webkit-search-decoration {
|
400
|
+
-webkit-appearance: none;
|
401
|
+
}
|
402
|
+
|
403
|
+
/**
|
404
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
405
|
+
* 2. Change font properties to `inherit` in Safari.
|
406
|
+
*/
|
407
|
+
|
408
|
+
::-webkit-file-upload-button {
|
409
|
+
-webkit-appearance: button; /* 1 */
|
410
|
+
font: inherit; /* 2 */
|
411
|
+
}
|
412
|
+
|
413
|
+
/* Interactive
|
414
|
+
========================================================================== */
|
415
|
+
|
416
|
+
/*
|
417
|
+
* Add the correct display in IE 9-.
|
418
|
+
* 1. Add the correct display in Edge, IE, and Firefox.
|
419
|
+
*/
|
420
|
+
|
421
|
+
details, /* 1 */
|
422
|
+
menu {
|
423
|
+
display: block;
|
424
|
+
}
|
425
|
+
|
426
|
+
/*
|
427
|
+
* Add the correct display in all browsers.
|
428
|
+
*/
|
429
|
+
|
430
|
+
summary {
|
431
|
+
display: list-item;
|
432
|
+
}
|
433
|
+
|
434
|
+
/* Scripting
|
435
|
+
========================================================================== */
|
436
|
+
|
437
|
+
/**
|
438
|
+
* Add the correct display in IE 9-.
|
439
|
+
*/
|
440
|
+
|
441
|
+
canvas {
|
442
|
+
display: inline-block;
|
443
|
+
}
|
444
|
+
|
445
|
+
/**
|
446
|
+
* Add the correct display in IE.
|
447
|
+
*/
|
448
|
+
|
449
|
+
template {
|
450
|
+
display: none;
|
451
|
+
}
|
452
|
+
|
453
|
+
/* Hidden
|
454
|
+
========================================================================== */
|
455
|
+
|
456
|
+
/**
|
457
|
+
* Add the correct display in IE 10-.
|
458
|
+
*/
|
459
|
+
|
460
|
+
[hidden] {
|
461
|
+
display: none;
|
462
|
+
}
|
463
|
+
@keyframes spin {
|
464
|
+
from {
|
465
|
+
transform: rotate(0deg); }
|
466
|
+
to {
|
467
|
+
transform: rotate(360deg); } }
|
468
|
+
.icon {
|
469
|
+
display: inline-block;
|
470
|
+
width: 24px;
|
471
|
+
height: 24px;
|
472
|
+
vertical-align: middle;
|
473
|
+
fill: #9b9b9b; }
|
474
|
+
.icon.spin {
|
475
|
+
animation: spin 1s infinite linear; }
|