cssremedy-rails 0.1.7 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67296836543e7080b4cccb9cca164cb2714adb03012aa1d14685a96c3e249b3e
4
- data.tar.gz: 78dbad405098eb1a33b3356c16fdea39995a191e64c678e797de06bfa43429cf
3
+ metadata.gz: a06d350cec24a43f7770392c408408bdb15a738e0b406b722389a7db8bc4126f
4
+ data.tar.gz: 5b12bf045f1e999a07d9a3899ff4beaedd2ab65db4a36bb60bf0c2dc2a5504d4
5
5
  SHA512:
6
- metadata.gz: 685619371e4a28fb1cb9b580d9b7f9cc973c5d6324527d263fac91167854916fa18fa03008eaae5ef5aac9ac406057d1f3c3e33188c709b92d2b4b5d1668c242
7
- data.tar.gz: 440d8267125500dfcdee0374a82c0995e6a07dd1de8f84608dd3e299bc690d8856c0af4474f36a1b5761cb3b6dd1519c399275ab2242bc4e827be5d2bfa00a0d
6
+ metadata.gz: b946188335995a1bd9d2bf2bf0de43f4c1e1c65f6afbeeaef08c52ae318c6db70eeda9cfb2fb83ef0439aa92541d8559ce1b287910bb5f39087448ce41b190a8
7
+ data.tar.gz: a826053f173e40cee2f90b372026e51972db9a71ab1e7a1ea3fe58dd3a4c901e3c77b3674b9bc51376db350738137903e17845a0ed290e78eaf0ec52f62b595a
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cssremedy-rails (0.1.7)
4
+ cssremedy-rails (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- rake (10.5.0)
9
+ rake (13.0.1)
10
10
 
11
11
  PLATFORMS
12
12
  ruby
13
13
 
14
14
  DEPENDENCIES
15
- bundler (~> 1.17)
15
+ bundler (~> 2.1.2)
16
16
  cssremedy-rails!
17
- rake (~> 10.0)
17
+ rake (>= 12.3.3)
18
18
 
19
19
  BUNDLED WITH
20
- 1.17.1
20
+ 2.1.4
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.17"
26
- spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "bundler", "~> 2.1.2"
26
+ spec.add_development_dependency "rake", ">= 12.3.3"
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module Cssremedy
2
2
  module Rails
3
- VERSION = '0.1.7'.freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
5
5
  end
@@ -1,24 +1,71 @@
1
- /* Global Remedies
2
- ******************/
1
+ /* @docs
2
+ label: Core Remedies
3
+ version: 0.1.0-beta.2
3
4
 
4
- /* Use border-box by default, globally */
5
+ note: |
6
+ These remedies are recommended
7
+ as a starter for any project.
8
+
9
+ category: file
10
+ */
11
+
12
+
13
+ /* @docs
14
+ label: Box Sizing
15
+
16
+ note: |
17
+ Use border-box by default, globally.
18
+
19
+ category: global
20
+ */
5
21
  *, ::before, ::after { box-sizing: border-box; }
6
22
 
7
- /*
8
- * Consistent line spacing...
9
- * CSS Inline Layout Module Level 3: https://drafts.csswg.org/css-inline-3/#line-sizing-property
23
+
24
+ /* @docs
25
+ label: Line Sizing
26
+
27
+ note: |
28
+ Consistent line-spacing,
29
+ even when inline elements have different line-heights.
30
+
31
+ links:
32
+ - https://drafts.csswg.org/css-inline-3/#line-sizing-property
33
+
34
+ category: global
10
35
  */
11
36
  html { line-sizing: normal; }
12
37
 
13
- /* Remove the tiny space around the edge of the page */
38
+
39
+ /* @docs
40
+ label: Body Margins
41
+
42
+ note: |
43
+ Remove the tiny space around the edge of the page.
44
+
45
+ category: global
46
+ */
14
47
  body { margin: 0; }
15
48
 
16
49
 
17
- /* Headings
18
- ***********/
50
+ /* @docs
51
+ label: Hidden Attribute
19
52
 
20
- /* Switch to rem units for headings */
21
- /* @@@ Initial values are based on existing browser defaults */
53
+ note: |
54
+ Maintain `hidden` behaviour when overriding `display` values.
55
+
56
+ category: global
57
+ */
58
+ [hidden] { display: none; }
59
+
60
+
61
+ /* @docs
62
+ label: Heading Sizes
63
+
64
+ note: |
65
+ Switch to rem units for headings
66
+
67
+ category: typography
68
+ */
22
69
  h1 { font-size: 2rem; }
23
70
  h2 { font-size: 1.5rem; }
24
71
  h3 { font-size: 1.17rem; }
@@ -26,20 +73,38 @@ h4 { font-size: 1.00rem; }
26
73
  h5 { font-size: 0.83rem; }
27
74
  h6 { font-size: 0.67rem; }
28
75
 
29
- /* Keep h1 margins consistent, even when nested */
76
+
77
+ /* @docs
78
+ label: H1 Margins
79
+
80
+ note: |
81
+ Keep h1 margins consistent, even when nested.
82
+
83
+ category: typography
84
+ */
30
85
  h1 { margin: 0.67em 0; }
31
86
 
32
87
 
33
- /* Typography
34
- *************/
88
+ /* @docs
89
+ label: Pre Wrapping
35
90
 
36
- /* Overflow by default is bad */
91
+ note: |
92
+ Overflow by default is bad...
93
+
94
+ category: typography
95
+ */
37
96
  pre { white-space: pre-wrap; }
38
97
 
39
- /*
40
- * 1. Solid, thin horizontal rules
41
- * 2. Remove Firefox `color: gray`
42
- * 3. Remove default `1px` height, and common `overflow: hidden`
98
+
99
+ /* @docs
100
+ label: Horizontal Rule
101
+
102
+ note: |
103
+ 1. Solid, thin horizontal rules
104
+ 2. Remove Firefox `color: gray`
105
+ 3. Remove default `1px` height, and common `overflow: hidden`
106
+
107
+ category: typography
43
108
  */
44
109
  hr {
45
110
  border-style: solid;
@@ -50,52 +115,116 @@ hr {
50
115
  }
51
116
 
52
117
 
53
- /* Embedded Elements
54
- ********************/
118
+ /* @docs
119
+ label: Responsive Embeds
55
120
 
56
- /*
57
- * 1. Block display is usually what we want
58
- * 2. Remove strange space-below when inline
59
- * 3. Responsive by default
121
+ note: |
122
+ 1. Block display is usually what we want
123
+ 2. The `vertical-align` removes strange space-below in case authors overwrite the display value
124
+ 3. Responsive by default
125
+ 4. Audio without `[controls]` remains hidden by default
126
+
127
+ category: embedded elements
60
128
  */
61
129
  img, svg, video, canvas, audio, iframe, embed, object {
62
130
  display: block;
63
131
  vertical-align: middle;
64
132
  max-width: 100%;
65
133
  }
134
+ audio:not([controls]) { display:none; }
135
+
136
+
137
+ /* @docs
138
+ label: Responsive Images
139
+
140
+ note: |
141
+ These new elements display inline by default,
142
+ but that's not the expected behavior for either one.
143
+ This can interfere with proper layout and aspect-ratio handling.
144
+
145
+ 1. Remove the unnecessary wrapping `picture`, while maintaining contents
146
+ 2. Source elements have nothing to display, so we hide them entirely
66
147
 
67
- /*
68
- * Maintain intrinsic aspect ratios when `max-width` is applied
69
- * (iframe, embed, and object have no intrinsic ratio, set height explicitly)
148
+ category: embedded elements
149
+ */
150
+ picture { display: contents; }
151
+ source { display: none; }
152
+
153
+
154
+ /* @docs
155
+ label: Aspect Ratios
156
+
157
+ note: |
158
+ Maintain intrinsic aspect ratios when `max-width` is applied.
159
+ `iframe`, `embed`, and `object` are also embedded,
160
+ but have no intrinsic ratio,
161
+ so their `height` needs to be set explicitly.
162
+
163
+ category: embedded elements
70
164
  */
71
165
  img, svg, video, canvas {
72
166
  height: auto;
73
167
  }
74
168
 
75
- /*
76
- * There is no good reason elements default to 300px,
77
- * and audio files are unlikely to come with a width attribute
169
+
170
+ /* @docs
171
+ label: Audio Width
172
+
173
+ note: |
174
+ There is no good reason elements default to 300px,
175
+ and audio files are unlikely to come with a width attribute.
176
+
177
+ category: embedded elements
78
178
  */
79
179
  audio { width: 100%; }
80
180
 
181
+ /* @docs
182
+ label: Image Borders
81
183
 
82
- /* Old Browsers
83
- ***************/
184
+ note: |
185
+ Remove the border on images inside links in IE 10 and earlier.
84
186
 
85
- /* Remove the border on images inside links in IE 10 and earlier */
187
+ category: legacy browsers
188
+ */
86
189
  img { border-style: none; }
87
190
 
88
- /* Hide the overflow in IE 10 and earlier */
191
+
192
+ /* @docs
193
+ label: SVG Overflow
194
+
195
+ note: |
196
+ Hide the overflow in IE 10 and earlier.
197
+
198
+ category: legacy browsers
199
+ */
89
200
  svg { overflow: hidden; }
90
201
 
91
- /* Default block display on HTML5 elements */
92
- article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
202
+
203
+ /* @docs
204
+ label: HTML5 Elements
205
+
206
+ note: |
207
+ Default block display on HTML5 elements.
208
+ For oldIE to apply this styling one needs to add some JS as well (i.e. `document.createElement("main")`)
209
+
210
+ links:
211
+ - https://www.sitepoint.com/html5-older-browsers-and-the-shiv/
212
+
213
+ category: legacy browsers
214
+ */
215
+ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
93
216
  display: block;
94
217
  }
95
218
 
96
- /*
97
- * 1. Add the correct box sizing in IE 10
98
- * 2. Remove the padding in IE 10
219
+
220
+ /* @docs
221
+ label: Checkbox & Radio Inputs
222
+
223
+ note: |
224
+ 1. Add the correct box sizing in IE 10
225
+ 2. Remove the padding in IE 10
226
+
227
+ category: legacy browsers
99
228
  */
100
229
  [type='checkbox'],
101
230
  [type='radio'] {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cssremedy-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Prudhomme
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,29 +16,29 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
19
+ version: 2.1.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.17'
26
+ version: 2.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
- description:
40
+ version: 12.3.3
41
+ description:
42
42
  email:
43
43
  - blake.prudhomme@gmail.com
44
44
  executables: []
@@ -66,7 +66,7 @@ homepage: https://github.com/blakeprudhomme/cssremedy-rails
66
66
  licenses:
67
67
  - MIT
68
68
  metadata: {}
69
- post_install_message:
69
+ post_install_message:
70
70
  rdoc_options: []
71
71
  require_paths:
72
72
  - lib
@@ -81,9 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubyforge_project:
85
- rubygems_version: 2.7.6
86
- signing_key:
84
+ rubygems_version: 3.3.3
85
+ signing_key:
87
86
  specification_version: 4
88
87
  summary: Integrates CSS Remedy with the rails asset pipeline.
89
88
  test_files: []