cssremedy-rails 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 635164272e16b9c610fb7163f41170d0d271def0007b94657f585a57b4884b13
4
- data.tar.gz: 92b64dc742955a71a2819d7be38c4054ba9dea3ec558a209ee431ec6b88e4bd9
3
+ metadata.gz: 67296836543e7080b4cccb9cca164cb2714adb03012aa1d14685a96c3e249b3e
4
+ data.tar.gz: 78dbad405098eb1a33b3356c16fdea39995a191e64c678e797de06bfa43429cf
5
5
  SHA512:
6
- metadata.gz: 77f3c42987c7b8d3af32e3e1d2cff214672980c322a59b3d2db6bc2c11a84bd8afdf1285d5ec389a830f587dfc6e09ea7e3c1a2fd2a20ab57520584754d8a87b
7
- data.tar.gz: fb1e2aa7a9f526cde537f19f0123a82b3be974b97c1c322b9fdc3f7251b6c1153347182b2a14bf2adf1f92178f1fe02ce7d3121945e8921637a6afd5a228e977
6
+ metadata.gz: 685619371e4a28fb1cb9b580d9b7f9cc973c5d6324527d263fac91167854916fa18fa03008eaae5ef5aac9ac406057d1f3c3e33188c709b92d2b4b5d1668c242
7
+ data.tar.gz: 440d8267125500dfcdee0374a82c0995e6a07dd1de8f84608dd3e299bc690d8856c0af4474f36a1b5761cb3b6dd1519c399275ab2242bc4e827be5d2bfa00a0d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cssremedy-rails (0.1.6)
4
+ cssremedy-rails (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'open-uri'
4
4
  desc 'Download the latest remedy.css'
5
5
  task :update do
6
6
  puts "[#{Time.now}] Start: Updating remedy.css"
7
- url = 'https://raw.githubusercontent.com/mozdevs/cssremedy/master/remedy.css'
7
+ url = 'https://raw.githubusercontent.com/mozdevs/cssremedy/master/css/remedy.css'
8
8
  outputfile = 'vendor/assets/stylesheets/cssremedy-rails/remedy.css'
9
9
 
10
10
  File.open(outputfile, 'wb') do |file|
@@ -1,5 +1,5 @@
1
1
  module Cssremedy
2
2
  module Rails
3
- VERSION = '0.1.6'.freeze
3
+ VERSION = '0.1.7'.freeze
4
4
  end
5
5
  end
@@ -1,102 +1,104 @@
1
+ /* Global Remedies
2
+ ******************/
1
3
 
4
+ /* Use border-box by default, globally */
5
+ *, ::before, ::after { box-sizing: border-box; }
2
6
 
3
- /* This project is under construction. It's not ready for release yet. As of Feb 11, 2019. */
4
-
5
-
7
+ /*
8
+ * Consistent line spacing...
9
+ * CSS Inline Layout Module Level 3: https://drafts.csswg.org/css-inline-3/#line-sizing-property
10
+ */
11
+ html { line-sizing: normal; }
6
12
 
7
- *, ::before, ::after { box-sizing: border-box; } /* Switch to border-box for box-sizing. */
13
+ /* Remove the tiny space around the edge of the page */
14
+ body { margin: 0; }
8
15
 
9
- /* Immediately jump any animation to the end point if the user has set their device to "prefers reduced motion". */
10
- /* This could create bad, unintended consequences. Remove as needed, and write your own appropriate code for prefers-reduced-motion. */
11
- @media (prefers-reduced-motion: reduce) {
12
- * {
13
- animation-duration: 0.001s !important;
14
- transition-duration: 0.001s !important;
15
- animation-iteration-count: 1 !important;
16
- }
17
- }
18
16
 
19
- body {
20
- margin: 0; /* Remove the tiny space around the edge of the page */
21
- }
17
+ /* Headings
18
+ ***********/
22
19
 
23
- /* Switch to using rem units for typography. Fix line-height on headlines. */
24
- h1 {
25
- font-size: 2rem; /* Make all of the H1 tags large, remove nested-shrinking sizes. */
26
- margin: 0.67em 0;
27
- }
28
- h2 {
29
- font-size: 1.5rem;
30
- }
31
- h3 {
32
- font-size: 1.17rem;
33
- }
34
- h4 {
35
- font-size: 1.00rem;
36
- }
37
- h5 {
38
- font-size: 0.83rem;
39
- }
40
- h6 {
41
- font-size: 0.67rem;
42
- }
20
+ /* Switch to rem units for headings */
21
+ /* @@@ Initial values are based on existing browser defaults */
22
+ h1 { font-size: 2rem; }
23
+ h2 { font-size: 1.5rem; }
24
+ h3 { font-size: 1.17rem; }
25
+ h4 { font-size: 1.00rem; }
26
+ h5 { font-size: 0.83rem; }
27
+ h6 { font-size: 0.67rem; }
43
28
 
44
- h2, h3, h4, h5, h6{
45
- line-height: 1;
46
- }
29
+ /* Keep h1 margins consistent, even when nested */
30
+ h1 { margin: 0.67em 0; }
47
31
 
48
- /* Improve readability */
49
- p, ul, ol, dl, address {
50
- line-height: 1.5;
51
- }
52
32
 
33
+ /* Typography
34
+ *************/
53
35
 
54
- pre {
55
- white-space: pre-wrap; /* Overflow by default is bad. */
56
- }
36
+ /* Overflow by default is bad */
37
+ pre { white-space: pre-wrap; }
57
38
 
39
+ /*
40
+ * 1. Solid, thin horizontal rules
41
+ * 2. Remove Firefox `color: gray`
42
+ * 3. Remove default `1px` height, and common `overflow: hidden`
43
+ */
58
44
  hr {
59
- border: .5px solid;
45
+ border-style: solid;
46
+ border-width: 1px 0 0;
47
+ color: inherit;
48
+ height: 0;
49
+ overflow: visible;
60
50
  }
61
51
 
62
52
 
63
- /* Are browsers now consistent with margin & padding on lists?
64
- See: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Consistent_list_indentation */
65
- nav ul {
66
- list-style: none;
67
- }
53
+ /* Embedded Elements
54
+ ********************/
68
55
 
69
- img, video, canvas, audio, iframe, embed, object {
70
- display: block; /* Switch display mode to block, since that's what we usually want for images. */
71
- vertical-align: middle; /* If you override, and make an image inline, it's likely you'll want middle vertical alignment. */
72
- }
73
- img, video {
74
- max-width: 100%; /* Make images and video flexible by default. */
75
- height: auto; /* Ensure images and video maintain their aspect ratio when max-width comes into play. */
76
- }
77
- img {
78
- border-style: none; /* Remove the border on images inside links in IE 10 and earlier. */
56
+ /*
57
+ * 1. Block display is usually what we want
58
+ * 2. Remove strange space-below when inline
59
+ * 3. Responsive by default
60
+ */
61
+ img, svg, video, canvas, audio, iframe, embed, object {
62
+ display: block;
63
+ vertical-align: middle;
64
+ max-width: 100%;
79
65
  }
80
66
 
81
- /* In English, when styling the <q> element, use curly quotes instead of straight quotes. */
67
+ /*
68
+ * Maintain intrinsic aspect ratios when `max-width` is applied
69
+ * (iframe, embed, and object have no intrinsic ratio, set height explicitly)
70
+ */
71
+ img, svg, video, canvas {
72
+ height: auto;
73
+ }
82
74
 
83
- /* Code for this is now in the quotes.css file */
75
+ /*
76
+ * There is no good reason elements default to 300px,
77
+ * and audio files are unlikely to come with a width attribute
78
+ */
79
+ audio { width: 100%; }
84
80
 
85
81
 
82
+ /* Old Browsers
83
+ ***************/
86
84
 
85
+ /* Remove the border on images inside links in IE 10 and earlier */
86
+ img { border-style: none; }
87
87
 
88
- /* Support upcoming properties that haven't been broadly implemented yet,
89
- but for which the initial value and legacy behavior is not be the best behavior.
90
- */
88
+ /* Hide the overflow in IE 10 and earlier */
89
+ svg { overflow: hidden; }
91
90
 
92
- /* Consistent line spacing, which does not unnecessarily grow to accommodate things that would fit anyway */
93
- /* From CSS Inline Layout Module Level 3: https://drafts.csswg.org/css-inline-3/#line-sizing-property */
94
- :root {
95
- line-sizing: normal;
91
+ /* Default block display on HTML5 elements */
92
+ article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
93
+ display: block;
96
94
  }
97
95
 
98
- /* Improve spacing of punctuation marks and at script changes in CJK languages */
99
- /* From CSS Text Module Level 4: https://drafts.csswg.org/css-text-4/#text-spacing-property */
100
- :root {
101
- text-spacing: trim-start allow-end trim-adjacent ideograph-alpha ideograph-numeric;
96
+ /*
97
+ * 1. Add the correct box sizing in IE 10
98
+ * 2. Remove the padding in IE 10
99
+ */
100
+ [type='checkbox'],
101
+ [type='radio'] {
102
+ box-sizing: border-box;
103
+ padding: 0;
102
104
  }
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Prudhomme
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-14 00:00:00.000000000 Z
11
+ date: 2019-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler