sass-zero 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.sass-zero-references.scss +15 -15
  3. data/Gemfile.lock +1 -1
  4. data/README.md +68 -41
  5. data/app/assets/stylesheets/sass-zero/{mixins.scss → _mixins.scss} +1 -4
  6. data/app/assets/stylesheets/sass-zero/base.scss +363 -1
  7. data/lib/sass_zero/version.rb +1 -1
  8. metadata +32 -33
  9. data/app/assets/stylesheets/sass-zero/base/preflight.scss +0 -363
  10. /data/app/assets/stylesheets/sass-zero/{variables.scss → _variables.scss} +0 -0
  11. /data/app/assets/stylesheets/sass-zero/utilities/{align.scss → _align.scss} +0 -0
  12. /data/app/assets/stylesheets/sass-zero/utilities/{animation.scss → _animation.scss} +0 -0
  13. /data/app/assets/stylesheets/sass-zero/utilities/{border.scss → _border.scss} +0 -0
  14. /data/app/assets/stylesheets/sass-zero/utilities/{container.scss → _container.scss} +0 -0
  15. /data/app/assets/stylesheets/sass-zero/utilities/{flex.scss → _flex.scss} +0 -0
  16. /data/app/assets/stylesheets/sass-zero/utilities/{flush.scss → _flush.scss} +0 -0
  17. /data/app/assets/stylesheets/sass-zero/utilities/{layout.scss → _layout.scss} +0 -0
  18. /data/app/assets/stylesheets/sass-zero/utilities/{list.scss → _list.scss} +0 -0
  19. /data/app/assets/stylesheets/sass-zero/utilities/{pad.scss → _pad.scss} +0 -0
  20. /data/app/assets/stylesheets/sass-zero/utilities/{position.scss → _position.scss} +0 -0
  21. /data/app/assets/stylesheets/sass-zero/utilities/{pull.scss → _pull.scss} +0 -0
  22. /data/app/assets/stylesheets/sass-zero/utilities/{push.scss → _push.scss} +0 -0
  23. /data/app/assets/stylesheets/sass-zero/utilities/{text.scss → _text.scss} +0 -0
  24. /data/app/assets/stylesheets/sass-zero/utilities/{unpad.scss → _unpad.scss} +0 -0
  25. /data/app/assets/stylesheets/sass-zero/variables/{border.scss → _border.scss} +0 -0
  26. /data/app/assets/stylesheets/sass-zero/variables/{breakpoints.scss → _breakpoints.scss} +0 -0
  27. /data/app/assets/stylesheets/sass-zero/variables/{colors.scss → _colors.scss} +0 -0
  28. /data/app/assets/stylesheets/sass-zero/variables/{effects.scss → _effects.scss} +0 -0
  29. /data/app/assets/stylesheets/sass-zero/variables/{filters.scss → _filters.scss} +0 -0
  30. /data/app/assets/stylesheets/sass-zero/variables/{flex.scss → _flex.scss} +0 -0
  31. /data/app/assets/stylesheets/sass-zero/variables/{grid.scss → _grid.scss} +0 -0
  32. /data/app/assets/stylesheets/sass-zero/variables/{height.scss → _height.scss} +0 -0
  33. /data/app/assets/stylesheets/sass-zero/variables/{sizing.scss → _sizing.scss} +0 -0
  34. /data/app/assets/stylesheets/sass-zero/variables/{transform.scss → _transform.scss} +0 -0
  35. /data/app/assets/stylesheets/sass-zero/variables/{transition.scss → _transition.scss} +0 -0
  36. /data/app/assets/stylesheets/sass-zero/variables/{typography.scss → _typography.scss} +0 -0
  37. /data/app/assets/stylesheets/sass-zero/variables/{width.scss → _width.scss} +0 -0
  38. /data/app/assets/stylesheets/sass-zero/variables/{zindex.scss → _zindex.scss} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fe9da1ccaf5fbc04d1681efbe93e41526f727adc32be83ebb1682f8fd4df961
4
- data.tar.gz: d7aded8f5516caa5ae57c307f755630d591d4c5f33a85308710d382a9848e376
3
+ metadata.gz: 114ed05332fe9df3860360aadec6045faaa8e260fe8f67e0c013683929577b01
4
+ data.tar.gz: 72b2ab1ad8d57e93762ff9e314c0fb3139dcbd7d2fcab8e206a8c48628eea8b4
5
5
  SHA512:
6
- metadata.gz: a6ecefd8d3c7ac214b0afe5ef25171a703e704fe8480c3be010ec681cde5003d43c7fe4e7e849ee5650b389307dbb381e7d8e2225f2cbf89f4865aa8c66063a6
7
- data.tar.gz: a79e1322722d6bfe2fe3b91b16e24c500f4a00297e42607011f2257250b0e07c55b04abc2851ce443d2b2a6f95862e48300e180ae386553ed222ba6f26ad0b6a
6
+ metadata.gz: c1472582db52dba68bf6bde60c1cbe2146ada491d39d83271a3a24f8005e2a60b52e75d01a3bcd9066f89a13b40df228bf95219546173783e5cc1da5f6d96b89
7
+ data.tar.gz: bfd43f33caa510c7a675acb957c215dc74e3e95339f2da0a4937886bc5296004ae626bed236d428a6c007b5e32b3b0ad21879930b2e49da4a3a39065a16a18d1
@@ -1,5 +1,5 @@
1
1
  // *******************************************************************
2
- // borders.scss
2
+ // Borders
3
3
  // *******************************************************************
4
4
 
5
5
  $rounded-none: 0;
@@ -19,7 +19,7 @@ $border-4: 4px;
19
19
  $border-8: 8px;
20
20
 
21
21
  // *******************************************************************
22
- // breakpoints.scss
22
+ // Breakpoints
23
23
  // *******************************************************************
24
24
 
25
25
  $breakpoint-sm: 640px;
@@ -29,7 +29,7 @@ $breakpoint-xl: 1280px;
29
29
  $breakpoint-2xl: 1536px;
30
30
 
31
31
  // *******************************************************************
32
- // colors.scss
32
+ // Colors
33
33
  // *******************************************************************
34
34
 
35
35
  $transparent: transparent;
@@ -281,7 +281,7 @@ $blue-gray-800: #1e293b;
281
281
  $blue-gray-900: #0f172a;
282
282
 
283
283
  // *******************************************************************
284
- // effects.scss
284
+ // Effects
285
285
  // *******************************************************************
286
286
 
287
287
  $shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
@@ -310,7 +310,7 @@ $opacity-95: 0.95;
310
310
  $opacity-100: 1;
311
311
 
312
312
  // *******************************************************************
313
- // filters.scss
313
+ // Filters
314
314
  // *******************************************************************
315
315
 
316
316
  $blur-none: blur(0);
@@ -373,7 +373,7 @@ $sepia-0: sepia(0);
373
373
  $sepia: sepia(100%);
374
374
 
375
375
  // *******************************************************************
376
- // flex.scss
376
+ // Flex
377
377
  // *******************************************************************
378
378
 
379
379
  $flex-1: 1 1 0%; // Allow grow and shrink, ignoring its initial size.
@@ -388,7 +388,7 @@ $flex-shrink-0: 0;
388
388
  $flex-shrink: 1;
389
389
 
390
390
  // *******************************************************************
391
- // grid.scss
391
+ // Grid
392
392
  // *******************************************************************
393
393
 
394
394
  $grid-cols-1: repeat(1, minmax(0, 1fr));
@@ -448,7 +448,7 @@ $auto-rows-max: max-content;
448
448
  $auto-rows-fr: minmax(0, 1fr);
449
449
 
450
450
  // *******************************************************************
451
- // height.scss
451
+ // Height
452
452
  // *******************************************************************
453
453
 
454
454
  $h-auto: auto;
@@ -487,7 +487,7 @@ $max-h-max: max-content;
487
487
  $max-h-fit: fit-content;
488
488
 
489
489
  // *******************************************************************
490
- // sizing.scss
490
+ // Sizing
491
491
  // *******************************************************************
492
492
 
493
493
  $size-px: 1px;
@@ -523,7 +523,7 @@ $size-80: 20rem;
523
523
  $size-96: 24rem;
524
524
 
525
525
  // *******************************************************************
526
- // transform.scss
526
+ // Transform
527
527
  // *******************************************************************
528
528
 
529
529
  $scale-0: 0;
@@ -563,7 +563,7 @@ $skew-6: 6deg;
563
563
  $skew-12: 12deg;
564
564
 
565
565
  // *******************************************************************
566
- // transition.scss
566
+ // Transition
567
567
  // *******************************************************************
568
568
 
569
569
  $transition-none: none;
@@ -598,7 +598,7 @@ $ease-out: cubic-bezier(0, 0, 0.2, 1);
598
598
  $ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
599
599
 
600
600
  // *******************************************************************
601
- // typography.scss
601
+ // Typography
602
602
  // *******************************************************************
603
603
 
604
604
  $font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
@@ -652,7 +652,7 @@ $tracking-wider: 0.05em;
652
652
  $tracking-widest: 0.1em;
653
653
 
654
654
  // *******************************************************************
655
- // width.scss
655
+ // Width
656
656
  // *******************************************************************
657
657
 
658
658
  $w-auto: auto;
@@ -713,7 +713,7 @@ $max-w-max: max-content;
713
713
  $max-w-fit: fit-content;
714
714
 
715
715
  // *******************************************************************
716
- // zindex.scss
716
+ // Zindex
717
717
  // *******************************************************************
718
718
 
719
719
  $z-auto: auto;
@@ -725,7 +725,7 @@ $z-40: 40;
725
725
  $z-50: 50;
726
726
 
727
727
  // *******************************************************************
728
- // mixins.scss
728
+ // Mixins
729
729
  // *******************************************************************
730
730
 
731
731
  @mixin antialiased {}
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sass-zero (1.1.6)
4
+ sass-zero (1.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -23,75 +23,78 @@ Add these lines to your application.css:
23
23
 
24
24
  #### Essential
25
25
 
26
- - [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/border.scss)
27
- - [Colors](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/colors.scss)
28
- - [Effects](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/effects.scss)
29
- - [Flex](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/flex.scss)
30
- - [Grid](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/grid.scss)
31
- - [Height](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/height.scss)
32
- - [Sizing](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/sizing.scss)
33
- - [Typography](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/typography.scss)
34
- - [Width](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/width.scss)
26
+ - [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_border.scss)
27
+ - [Colors](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_colors.scss)
28
+ - [Effects](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_effects.scss)
29
+ - [Flex](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_flex.scss)
30
+ - [Grid](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_grid.scss)
31
+ - [Height](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_height.scss)
32
+ - [Sizing](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_sizing.scss)
33
+ - [Typography](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_typography.scss)
34
+ - [Width](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_width.scss)
35
35
 
36
36
  #### Others
37
37
 
38
- - [Breakpoints](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/breakpoints.scss)
39
- - [Filters](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/filters.scss)
40
- - [Transform](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/transform.scss)
41
- - [Transition](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/transition.scss)
42
- - [Z-Index](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/zindex.scss)
38
+ - [Breakpoints](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_breakpoints.scss)
39
+ - [Filters](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_filters.scss)
40
+ - [Transform](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_transform.scss)
41
+ - [Transition](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_transition.scss)
42
+ - [Z-Index](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_zindex.scss)
43
+ - [Mixins](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/_mixins.scss)
43
44
 
44
45
  ### Utility classes
45
46
 
46
- - [Align](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/align.scss)
47
- - [Animation](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/animation.scss)
48
- - [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/border.scss)
49
- - [Container](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/container.scss)
50
- - [Flex Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/flex.scss)
51
- - [Layout Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/layout.scss)
52
- - [List Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/list.scss)
53
- - [Margin Pull](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/pull.scss)
54
- - [Margin Push](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/push.scss)
55
- - [Margin Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/flush.scss)
56
- - [Padding](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/pad.scss)
57
- - [Padding Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/unpad.scss)
58
- - [Position Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/position.scss)
59
- - [Text Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/text.scss)
60
-
61
- ### Breadboard
62
-
63
- - [Breadboard](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/breadboard.scss)
64
- - [Example](https://github.com/lazaronixon/sass-zero/blob/master/example.html)
47
+ - [Align](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_align.scss)
48
+ - [Animation](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_animation.scss)
49
+ - [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_border.scss)
50
+ - [Container](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_container.scss)
51
+ - [Flex Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_flex.scss)
52
+ - [Layout Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_layout.scss)
53
+ - [List Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_list.scss)
54
+ - [Margin Pull](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_pull.scss)
55
+ - [Margin Push](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_push.scss)
56
+ - [Margin Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_flush.scss)
57
+ - [Padding](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_pad.scss)
58
+ - [Padding Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_unpad.scss)
59
+ - [Position Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_position.scss)
60
+ - [Text Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_text.scss)
65
61
 
66
62
  ## Breadboard
67
63
 
68
64
  This is an optional black-and-white theme that you can use as design foundation.
69
65
 
70
- ![screenshot](https://nixo-etc.s3-sa-east-1.amazonaws.com/sass-zero-screenshot-3.png)
66
+ - [Breadboard](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/breadboard.scss)
67
+ - [Screenshot](https://nixo-etc.s3-sa-east-1.amazonaws.com/sass-zero-screenshot-3.png)
68
+ - [Example](https://github.com/lazaronixon/sass-zero/blob/master/example.html)
71
69
 
72
70
  ## Using variables
73
71
 
74
- Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Variables](https://github.com/lazaronixon/sass-zero/blob/master/vendor/assets/stylesheets/sass-zero/variables.scss):
72
+ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Variables](https://github.com/lazaronixon/sass-zero/blob/master/vendor/assets/stylesheets/sass-zero/_variables.scss):
75
73
 
76
74
  ```scss
77
75
  @import "sass-zero/variables";
78
76
 
79
77
  .block {
80
- color: $red-300;
78
+ color: $rose-500;
81
79
 
82
- &__element {
83
- color: $red-400;
80
+ &__element_one {
81
+ color: $fuchsia-500;
82
+ }
83
+
84
+ &__element_two {
85
+ color: $purple-500;
84
86
  }
85
87
 
86
88
  &--modifier {
87
- color: $red-500;
89
+ color: $violet-500;
88
90
  }
89
91
  }
90
92
  ```
91
93
 
92
94
  ```html
93
95
  <div class="block block--modifier">
94
- <div class="block__element" />
96
+ <div class="block__element_one" />
97
+ <div class="block__element_two" />
95
98
  </div>
96
99
  ```
97
100
 
@@ -102,10 +105,34 @@ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Vari
102
105
  1. Copy `.sass-zero-references.scss` to the root of your application.
103
106
  2. Install [SCSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-scss).
104
107
 
105
- ### Atom/TextMate
108
+ ### Pulsar/TextMate
106
109
 
107
110
  1. Copy `.sass-zero-references.scss` to the root of your application.
108
111
 
112
+ ## Customization
113
+
114
+ ### Breadboard
115
+
116
+ When you are sure about the style of your application you should make a copy of `breadboard.scss` and customize fonts, borders, and colors.
117
+
118
+ You will need to remove the breadboard from application.css:
119
+
120
+ ```css
121
+ *= require sass-zero/base
122
+ *= require sass-zero/utilities
123
+ ```
124
+
125
+ ### Variables
126
+
127
+ Instead of using the default variables you can add or change variables, I recommend you make a copy of `_variables.scss` to your application and change it as you want.
128
+
129
+ ```scss
130
+ @import "sass-zero/variables/border";
131
+ @import "sass-zero/variables/breakpoints";
132
+ @import "design-system/colors";
133
+ ...
134
+ ```
135
+
109
136
  ## Development
110
137
 
111
138
  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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
@@ -1,7 +1,4 @@
1
- @import "variables/border";
2
- @import "variables/effects";
3
1
  @import "variables/sizing";
4
- @import "variables/zindex";
5
2
 
6
3
  @mixin antialiased {
7
4
  -webkit-font-smoothing: antialiased;
@@ -39,7 +36,7 @@
39
36
  padding-right: $padding-x;
40
37
  padding-left: $padding-x;
41
38
  margin-right: auto;
42
- margin-left: auto;
39
+ margin-left: auto;
43
40
  }
44
41
 
45
42
  @mixin gradient($direction, $from, $to: transparent, $via: null) {
@@ -1 +1,363 @@
1
- @import "base/preflight";
1
+ @import "variables/colors";
2
+ @import "variables/typography";
3
+
4
+ /*
5
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
6
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
7
+ */
8
+
9
+ *,
10
+ ::before,
11
+ ::after {
12
+ box-sizing: border-box; /* 1 */
13
+ border-width: 0; /* 2 */
14
+ border-style: solid; /* 2 */
15
+ border-color: $gray-200; /* 2 */
16
+ }
17
+
18
+ ::before,
19
+ ::after {
20
+ --tw-content: '';
21
+ }
22
+
23
+ /*
24
+ 1. Use a consistent sensible line-height in all browsers.
25
+ 2. Prevent adjustments of font size after orientation changes in iOS.
26
+ 3. Use a more readable tab size.
27
+ 4. Use the user's configured `sans` font-family by default.
28
+ */
29
+
30
+ html {
31
+ line-height: 1.5; /* 1 */
32
+ -webkit-text-size-adjust: 100%; /* 2 */
33
+ -moz-tab-size: 4; /* 3 */
34
+ tab-size: 4; /* 3 */
35
+ font-family: $font-sans; /* 4 */
36
+ }
37
+
38
+ /*
39
+ 1. Remove the margin in all browsers.
40
+ 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
41
+ */
42
+
43
+ body {
44
+ margin: 0; /* 1 */
45
+ line-height: inherit; /* 2 */
46
+ }
47
+
48
+ /*
49
+ 1. Add the correct height in Firefox.
50
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
51
+ 3. Ensure horizontal rules are visible by default.
52
+ */
53
+
54
+ hr {
55
+ height: 0; /* 1 */
56
+ color: inherit; /* 2 */
57
+ border-top-width: 1px; /* 3 */
58
+ }
59
+
60
+ /*
61
+ Add the correct text decoration in Chrome, Edge, and Safari.
62
+ */
63
+
64
+ abbr:where([title]) {
65
+ text-decoration: underline dotted;
66
+ }
67
+
68
+ /*
69
+ Remove the default font size and weight for headings.
70
+ */
71
+
72
+ h1,
73
+ h2,
74
+ h3,
75
+ h4,
76
+ h5,
77
+ h6 {
78
+ font-size: inherit;
79
+ font-weight: inherit;
80
+ }
81
+
82
+ /*
83
+ Reset links to optimize for opt-in styling instead of opt-out.
84
+ */
85
+
86
+ a {
87
+ color: inherit;
88
+ text-decoration: inherit;
89
+ }
90
+
91
+ /*
92
+ Add the correct font weight in Edge and Safari.
93
+ */
94
+
95
+ b,
96
+ strong {
97
+ font-weight: bolder;
98
+ }
99
+
100
+ /*
101
+ 1. Use the user's configured `mono` font family by default.
102
+ 2. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+ code,
106
+ kbd,
107
+ samp,
108
+ pre {
109
+ font-family: $font-mono; /* 1 */
110
+ font-size: 1em; /* 2 */
111
+ }
112
+
113
+ /*
114
+ Add the correct font size in all browsers.
115
+ */
116
+
117
+ small {
118
+ font-size: 80%;
119
+ }
120
+
121
+ /*
122
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
123
+ */
124
+
125
+ sub,
126
+ sup {
127
+ font-size: 75%;
128
+ line-height: 0;
129
+ position: relative;
130
+ vertical-align: baseline;
131
+ }
132
+
133
+ sub {
134
+ bottom: -0.25em;
135
+ }
136
+
137
+ sup {
138
+ top: -0.5em;
139
+ }
140
+
141
+ /*
142
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
143
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
144
+ 3. Remove gaps between table borders by default.
145
+ */
146
+
147
+ table {
148
+ text-indent: 0; /* 1 */
149
+ border-color: inherit; /* 2 */
150
+ border-collapse: collapse; /* 3 */
151
+ }
152
+
153
+ /*
154
+ 1. Change the font styles in all browsers.
155
+ 2. Remove the margin in Firefox and Safari.
156
+ 3. Remove default padding in all browsers.
157
+ */
158
+
159
+ button,
160
+ input,
161
+ optgroup,
162
+ select,
163
+ textarea {
164
+ font-family: inherit; /* 1 */
165
+ font-size: 100%; /* 1 */
166
+ font-weight: inherit; /* 1 */
167
+ line-height: inherit; /* 1 */
168
+ color: inherit; /* 1 */
169
+ margin: 0; /* 2 */
170
+ padding: 0; /* 3 */
171
+ }
172
+
173
+ /*
174
+ Remove the inheritance of text transform in Edge and Firefox.
175
+ */
176
+
177
+ button,
178
+ select {
179
+ text-transform: none;
180
+ }
181
+
182
+ /*
183
+ 1. Correct the inability to style clickable types in iOS and Safari.
184
+ 2. Remove default button styles.
185
+ */
186
+
187
+ button,
188
+ [type='button'],
189
+ [type='reset'],
190
+ [type='submit'] {
191
+ -webkit-appearance: button; /* 1 */
192
+ background-color: transparent; /* 2 */
193
+ background-image: none; /* 2 */
194
+ }
195
+
196
+ /*
197
+ Use the modern Firefox focus style for all focusable elements.
198
+ */
199
+
200
+ :-moz-focusring {
201
+ outline: auto;
202
+ }
203
+
204
+ /*
205
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
206
+ */
207
+
208
+ :-moz-ui-invalid {
209
+ box-shadow: none;
210
+ }
211
+
212
+ /*
213
+ Add the correct vertical alignment in Chrome and Firefox.
214
+ */
215
+
216
+ progress {
217
+ vertical-align: baseline;
218
+ }
219
+
220
+ /*
221
+ Correct the cursor style of increment and decrement buttons in Safari.
222
+ */
223
+
224
+ ::-webkit-inner-spin-button,
225
+ ::-webkit-outer-spin-button {
226
+ height: auto;
227
+ }
228
+
229
+ /*
230
+ 1. Correct the odd appearance in Chrome and Safari.
231
+ 2. Correct the outline style in Safari.
232
+ */
233
+
234
+ [type='search'] {
235
+ -webkit-appearance: textfield; /* 1 */
236
+ outline-offset: -2px; /* 2 */
237
+ }
238
+
239
+ /*
240
+ Remove the inner padding in Chrome and Safari on macOS.
241
+ */
242
+
243
+ ::-webkit-search-decoration {
244
+ -webkit-appearance: none;
245
+ }
246
+
247
+ /*
248
+ 1. Correct the inability to style clickable types in iOS and Safari.
249
+ 2. Change font properties to `inherit` in Safari.
250
+ */
251
+
252
+ ::-webkit-file-upload-button {
253
+ -webkit-appearance: button; /* 1 */
254
+ font: inherit; /* 2 */
255
+ }
256
+
257
+ /*
258
+ Add the correct display in Chrome and Safari.
259
+ */
260
+
261
+ summary {
262
+ display: list-item;
263
+ }
264
+
265
+ /*
266
+ Removes the default spacing and border for appropriate elements.
267
+ */
268
+
269
+ blockquote,
270
+ dl,
271
+ dd,
272
+ h1,
273
+ h2,
274
+ h3,
275
+ h4,
276
+ h5,
277
+ h6,
278
+ hr,
279
+ figure,
280
+ p,
281
+ pre {
282
+ margin: 0;
283
+ }
284
+
285
+ fieldset {
286
+ margin: 0;
287
+ padding: 0;
288
+ }
289
+
290
+ legend {
291
+ padding: 0;
292
+ }
293
+
294
+ ol,
295
+ ul,
296
+ menu {
297
+ list-style: none;
298
+ margin: 0;
299
+ padding: 0;
300
+ }
301
+
302
+ /*
303
+ Prevent resizing textareas horizontally by default.
304
+ */
305
+
306
+ textarea {
307
+ resize: vertical;
308
+ }
309
+
310
+ /*
311
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
312
+ 2. Set the default placeholder color to the user's configured gray 400 color.
313
+ */
314
+
315
+ input::placeholder,
316
+ textarea::placeholder {
317
+ opacity: 1; /* 1 */
318
+ color: $gray-400; /* 2 */
319
+ }
320
+
321
+ /*
322
+ Set the default cursor for buttons.
323
+ */
324
+
325
+ button,
326
+ [role="button"] {
327
+ cursor: pointer;
328
+ }
329
+
330
+ /*
331
+ Make sure disabled buttons don't get the pointer cursor.
332
+ */
333
+ :disabled {
334
+ cursor: default;
335
+ }
336
+
337
+ /*
338
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
339
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
340
+ This can trigger a poorly considered lint error in some tools but is included by design.
341
+ */
342
+
343
+ img,
344
+ svg,
345
+ video,
346
+ canvas,
347
+ audio,
348
+ iframe,
349
+ embed,
350
+ object {
351
+ display: block; /* 1 */
352
+ vertical-align: middle; /* 2 */
353
+ }
354
+
355
+ /*
356
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
357
+ */
358
+
359
+ img,
360
+ video {
361
+ max-width: 100%;
362
+ height: auto;
363
+ }
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Zero
3
- VERSION = "1.1.6"
3
+ VERSION = "1.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazaronixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-04 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -25,40 +25,39 @@ files:
25
25
  - Gemfile.lock
26
26
  - README.md
27
27
  - Rakefile
28
+ - app/assets/stylesheets/sass-zero/_mixins.scss
29
+ - app/assets/stylesheets/sass-zero/_variables.scss
28
30
  - app/assets/stylesheets/sass-zero/base.scss
29
- - app/assets/stylesheets/sass-zero/base/preflight.scss
30
31
  - app/assets/stylesheets/sass-zero/breadboard.scss
31
- - app/assets/stylesheets/sass-zero/mixins.scss
32
32
  - app/assets/stylesheets/sass-zero/utilities.scss
33
- - app/assets/stylesheets/sass-zero/utilities/align.scss
34
- - app/assets/stylesheets/sass-zero/utilities/animation.scss
35
- - app/assets/stylesheets/sass-zero/utilities/border.scss
36
- - app/assets/stylesheets/sass-zero/utilities/container.scss
37
- - app/assets/stylesheets/sass-zero/utilities/flex.scss
38
- - app/assets/stylesheets/sass-zero/utilities/flush.scss
39
- - app/assets/stylesheets/sass-zero/utilities/layout.scss
40
- - app/assets/stylesheets/sass-zero/utilities/list.scss
41
- - app/assets/stylesheets/sass-zero/utilities/pad.scss
42
- - app/assets/stylesheets/sass-zero/utilities/position.scss
43
- - app/assets/stylesheets/sass-zero/utilities/pull.scss
44
- - app/assets/stylesheets/sass-zero/utilities/push.scss
45
- - app/assets/stylesheets/sass-zero/utilities/text.scss
46
- - app/assets/stylesheets/sass-zero/utilities/unpad.scss
47
- - app/assets/stylesheets/sass-zero/variables.scss
48
- - app/assets/stylesheets/sass-zero/variables/border.scss
49
- - app/assets/stylesheets/sass-zero/variables/breakpoints.scss
50
- - app/assets/stylesheets/sass-zero/variables/colors.scss
51
- - app/assets/stylesheets/sass-zero/variables/effects.scss
52
- - app/assets/stylesheets/sass-zero/variables/filters.scss
53
- - app/assets/stylesheets/sass-zero/variables/flex.scss
54
- - app/assets/stylesheets/sass-zero/variables/grid.scss
55
- - app/assets/stylesheets/sass-zero/variables/height.scss
56
- - app/assets/stylesheets/sass-zero/variables/sizing.scss
57
- - app/assets/stylesheets/sass-zero/variables/transform.scss
58
- - app/assets/stylesheets/sass-zero/variables/transition.scss
59
- - app/assets/stylesheets/sass-zero/variables/typography.scss
60
- - app/assets/stylesheets/sass-zero/variables/width.scss
61
- - app/assets/stylesheets/sass-zero/variables/zindex.scss
33
+ - app/assets/stylesheets/sass-zero/utilities/_align.scss
34
+ - app/assets/stylesheets/sass-zero/utilities/_animation.scss
35
+ - app/assets/stylesheets/sass-zero/utilities/_border.scss
36
+ - app/assets/stylesheets/sass-zero/utilities/_container.scss
37
+ - app/assets/stylesheets/sass-zero/utilities/_flex.scss
38
+ - app/assets/stylesheets/sass-zero/utilities/_flush.scss
39
+ - app/assets/stylesheets/sass-zero/utilities/_layout.scss
40
+ - app/assets/stylesheets/sass-zero/utilities/_list.scss
41
+ - app/assets/stylesheets/sass-zero/utilities/_pad.scss
42
+ - app/assets/stylesheets/sass-zero/utilities/_position.scss
43
+ - app/assets/stylesheets/sass-zero/utilities/_pull.scss
44
+ - app/assets/stylesheets/sass-zero/utilities/_push.scss
45
+ - app/assets/stylesheets/sass-zero/utilities/_text.scss
46
+ - app/assets/stylesheets/sass-zero/utilities/_unpad.scss
47
+ - app/assets/stylesheets/sass-zero/variables/_border.scss
48
+ - app/assets/stylesheets/sass-zero/variables/_breakpoints.scss
49
+ - app/assets/stylesheets/sass-zero/variables/_colors.scss
50
+ - app/assets/stylesheets/sass-zero/variables/_effects.scss
51
+ - app/assets/stylesheets/sass-zero/variables/_filters.scss
52
+ - app/assets/stylesheets/sass-zero/variables/_flex.scss
53
+ - app/assets/stylesheets/sass-zero/variables/_grid.scss
54
+ - app/assets/stylesheets/sass-zero/variables/_height.scss
55
+ - app/assets/stylesheets/sass-zero/variables/_sizing.scss
56
+ - app/assets/stylesheets/sass-zero/variables/_transform.scss
57
+ - app/assets/stylesheets/sass-zero/variables/_transition.scss
58
+ - app/assets/stylesheets/sass-zero/variables/_typography.scss
59
+ - app/assets/stylesheets/sass-zero/variables/_width.scss
60
+ - app/assets/stylesheets/sass-zero/variables/_zindex.scss
62
61
  - example.html
63
62
  - lib/sass-zero.rb
64
63
  - lib/sass_zero.rb
@@ -1,363 +0,0 @@
1
- @import "../variables/colors";
2
- @import "../variables/typography";
3
-
4
- /*
5
- 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
6
- 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
7
- */
8
-
9
- *,
10
- ::before,
11
- ::after {
12
- box-sizing: border-box; /* 1 */
13
- border-width: 0; /* 2 */
14
- border-style: solid; /* 2 */
15
- border-color: $gray-200; /* 2 */
16
- }
17
-
18
- ::before,
19
- ::after {
20
- --tw-content: '';
21
- }
22
-
23
- /*
24
- 1. Use a consistent sensible line-height in all browsers.
25
- 2. Prevent adjustments of font size after orientation changes in iOS.
26
- 3. Use a more readable tab size.
27
- 4. Use the user's configured `sans` font-family by default.
28
- */
29
-
30
- html {
31
- line-height: 1.5; /* 1 */
32
- -webkit-text-size-adjust: 100%; /* 2 */
33
- -moz-tab-size: 4; /* 3 */
34
- tab-size: 4; /* 3 */
35
- font-family: $font-sans; /* 4 */
36
- }
37
-
38
- /*
39
- 1. Remove the margin in all browsers.
40
- 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
41
- */
42
-
43
- body {
44
- margin: 0; /* 1 */
45
- line-height: inherit; /* 2 */
46
- }
47
-
48
- /*
49
- 1. Add the correct height in Firefox.
50
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
51
- 3. Ensure horizontal rules are visible by default.
52
- */
53
-
54
- hr {
55
- height: 0; /* 1 */
56
- color: inherit; /* 2 */
57
- border-top-width: 1px; /* 3 */
58
- }
59
-
60
- /*
61
- Add the correct text decoration in Chrome, Edge, and Safari.
62
- */
63
-
64
- abbr:where([title]) {
65
- text-decoration: underline dotted;
66
- }
67
-
68
- /*
69
- Remove the default font size and weight for headings.
70
- */
71
-
72
- h1,
73
- h2,
74
- h3,
75
- h4,
76
- h5,
77
- h6 {
78
- font-size: inherit;
79
- font-weight: inherit;
80
- }
81
-
82
- /*
83
- Reset links to optimize for opt-in styling instead of opt-out.
84
- */
85
-
86
- a {
87
- color: inherit;
88
- text-decoration: inherit;
89
- }
90
-
91
- /*
92
- Add the correct font weight in Edge and Safari.
93
- */
94
-
95
- b,
96
- strong {
97
- font-weight: bolder;
98
- }
99
-
100
- /*
101
- 1. Use the user's configured `mono` font family by default.
102
- 2. Correct the odd `em` font sizing in all browsers.
103
- */
104
-
105
- code,
106
- kbd,
107
- samp,
108
- pre {
109
- font-family: $font-mono; /* 1 */
110
- font-size: 1em; /* 2 */
111
- }
112
-
113
- /*
114
- Add the correct font size in all browsers.
115
- */
116
-
117
- small {
118
- font-size: 80%;
119
- }
120
-
121
- /*
122
- Prevent `sub` and `sup` elements from affecting the line height in all browsers.
123
- */
124
-
125
- sub,
126
- sup {
127
- font-size: 75%;
128
- line-height: 0;
129
- position: relative;
130
- vertical-align: baseline;
131
- }
132
-
133
- sub {
134
- bottom: -0.25em;
135
- }
136
-
137
- sup {
138
- top: -0.5em;
139
- }
140
-
141
- /*
142
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
143
- 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
144
- 3. Remove gaps between table borders by default.
145
- */
146
-
147
- table {
148
- text-indent: 0; /* 1 */
149
- border-color: inherit; /* 2 */
150
- border-collapse: collapse; /* 3 */
151
- }
152
-
153
- /*
154
- 1. Change the font styles in all browsers.
155
- 2. Remove the margin in Firefox and Safari.
156
- 3. Remove default padding in all browsers.
157
- */
158
-
159
- button,
160
- input,
161
- optgroup,
162
- select,
163
- textarea {
164
- font-family: inherit; /* 1 */
165
- font-size: 100%; /* 1 */
166
- font-weight: inherit; /* 1 */
167
- line-height: inherit; /* 1 */
168
- color: inherit; /* 1 */
169
- margin: 0; /* 2 */
170
- padding: 0; /* 3 */
171
- }
172
-
173
- /*
174
- Remove the inheritance of text transform in Edge and Firefox.
175
- */
176
-
177
- button,
178
- select {
179
- text-transform: none;
180
- }
181
-
182
- /*
183
- 1. Correct the inability to style clickable types in iOS and Safari.
184
- 2. Remove default button styles.
185
- */
186
-
187
- button,
188
- [type='button'],
189
- [type='reset'],
190
- [type='submit'] {
191
- -webkit-appearance: button; /* 1 */
192
- background-color: transparent; /* 2 */
193
- background-image: none; /* 2 */
194
- }
195
-
196
- /*
197
- Use the modern Firefox focus style for all focusable elements.
198
- */
199
-
200
- :-moz-focusring {
201
- outline: auto;
202
- }
203
-
204
- /*
205
- Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
206
- */
207
-
208
- :-moz-ui-invalid {
209
- box-shadow: none;
210
- }
211
-
212
- /*
213
- Add the correct vertical alignment in Chrome and Firefox.
214
- */
215
-
216
- progress {
217
- vertical-align: baseline;
218
- }
219
-
220
- /*
221
- Correct the cursor style of increment and decrement buttons in Safari.
222
- */
223
-
224
- ::-webkit-inner-spin-button,
225
- ::-webkit-outer-spin-button {
226
- height: auto;
227
- }
228
-
229
- /*
230
- 1. Correct the odd appearance in Chrome and Safari.
231
- 2. Correct the outline style in Safari.
232
- */
233
-
234
- [type='search'] {
235
- -webkit-appearance: textfield; /* 1 */
236
- outline-offset: -2px; /* 2 */
237
- }
238
-
239
- /*
240
- Remove the inner padding in Chrome and Safari on macOS.
241
- */
242
-
243
- ::-webkit-search-decoration {
244
- -webkit-appearance: none;
245
- }
246
-
247
- /*
248
- 1. Correct the inability to style clickable types in iOS and Safari.
249
- 2. Change font properties to `inherit` in Safari.
250
- */
251
-
252
- ::-webkit-file-upload-button {
253
- -webkit-appearance: button; /* 1 */
254
- font: inherit; /* 2 */
255
- }
256
-
257
- /*
258
- Add the correct display in Chrome and Safari.
259
- */
260
-
261
- summary {
262
- display: list-item;
263
- }
264
-
265
- /*
266
- Removes the default spacing and border for appropriate elements.
267
- */
268
-
269
- blockquote,
270
- dl,
271
- dd,
272
- h1,
273
- h2,
274
- h3,
275
- h4,
276
- h5,
277
- h6,
278
- hr,
279
- figure,
280
- p,
281
- pre {
282
- margin: 0;
283
- }
284
-
285
- fieldset {
286
- margin: 0;
287
- padding: 0;
288
- }
289
-
290
- legend {
291
- padding: 0;
292
- }
293
-
294
- ol,
295
- ul,
296
- menu {
297
- list-style: none;
298
- margin: 0;
299
- padding: 0;
300
- }
301
-
302
- /*
303
- Prevent resizing textareas horizontally by default.
304
- */
305
-
306
- textarea {
307
- resize: vertical;
308
- }
309
-
310
- /*
311
- 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
312
- 2. Set the default placeholder color to the user's configured gray 400 color.
313
- */
314
-
315
- input::placeholder,
316
- textarea::placeholder {
317
- opacity: 1; /* 1 */
318
- color: $gray-400; /* 2 */
319
- }
320
-
321
- /*
322
- Set the default cursor for buttons.
323
- */
324
-
325
- button,
326
- [role="button"] {
327
- cursor: pointer;
328
- }
329
-
330
- /*
331
- Make sure disabled buttons don't get the pointer cursor.
332
- */
333
- :disabled {
334
- cursor: default;
335
- }
336
-
337
- /*
338
- 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
339
- 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
340
- This can trigger a poorly considered lint error in some tools but is included by design.
341
- */
342
-
343
- img,
344
- svg,
345
- video,
346
- canvas,
347
- audio,
348
- iframe,
349
- embed,
350
- object {
351
- display: block; /* 1 */
352
- vertical-align: middle; /* 2 */
353
- }
354
-
355
- /*
356
- Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
357
- */
358
-
359
- img,
360
- video {
361
- max-width: 100%;
362
- height: auto;
363
- }