Update dependency sprockets to 4.2.1
Unified · Split
| @@ -20,11 +20,10 @@ group :app do · 19 unmodified lines | ||
| 20 | 20 | gem 'rack-ssl-enforcer' |
| 21 | 21 | gem 'rack' |
| 22 | 22 | gem 'rss' |
| 23 | − gem 'sass' | |
| 23 | + gem 'sassc' | |
| 24 | 24 | gem 'sinatra-contrib' |
| 25 | 25 | gem 'sinatra' |
| 26 | 26 | gem 'sprockets-helpers' |
| 27 | − gem 'sprockets-sass' | |
| 28 | 27 | gem 'sprockets' |
| 29 | 28 | gem 'thin' |
| 30 | 29 | end |
| @@ -84,9 +84,6 @@ GEM · 83 unmodified lines | ||
| 84 | 84 | rack-test (2.1.0) |
| 85 | 85 | rack (>= 1.3) |
| 86 | 86 | rake (13.0.6) |
| 87 | − rb-fsevent (0.11.2) | |
| 88 | − rb-inotify (0.10.1) | |
| 89 | − ffi (~> 1.0) | |
| 90 | 87 | redcarpet (3.6.0) |
| 91 | 88 | rexml (3.2.6) |
| 92 | 89 | rouge (1.11.1) |
| @@ -94,11 +91,8 @@ GEM · 1 unmodified line | ||
| 94 | 91 | rss (0.3.0) |
| 95 | 92 | rexml |
| 96 | 93 | ruby2_keywords (0.0.5) |
| 97 | − sass (3.7.4) | |
| 98 | − sass-listen (~> 4.0.0) | |
| 99 | − sass-listen (4.0.0) | |
| 100 | − rb-fsevent (~> 0.9, >= 0.9.4) | |
| 101 | − rb-inotify (~> 0.9, >= 0.9.7) | |
| 94 | + sassc (2.4.0) | |
| 95 | + ffi (~> 1.9) | |
| 102 | 96 | sinatra (3.1.0) |
| 103 | 97 | mustermann (~> 3.0) |
| 104 | 98 | rack (~> 2.2, >= 2.2.4) |
| @@ -110,13 +104,11 @@ GEM · 5 unmodified lines | ||
| 110 | 104 | rack-protection (= 3.1.0) |
| 111 | 105 | sinatra (= 3.1.0) |
| 112 | 106 | tilt (~> 2.0) |
| 113 | − sprockets (3.7.2) | |
| 107 | + sprockets (4.2.1) | |
| 114 | 108 | concurrent-ruby (~> 1.0) |
| 115 | − rack (> 1, < 3) | |
| 109 | + rack (>= 2.2.4, < 4) | |
| 116 | 110 | sprockets-helpers (1.4.0) |
| 117 | 111 | sprockets (>= 2.2) |
| 118 | − sprockets-sass (2.0.0.beta2) | |
| 119 | − sprockets (>= 2.0, < 4.0) | |
| 120 | 112 | strings (0.2.1) |
| 121 | 113 | strings-ansi (~> 0.2) |
| 122 | 114 | unicode-display_width (>= 1.5, < 3.0) |
| @@ -170,12 +162,11 @@ DEPENDENCIES · 47 unmodified lines | ||
| 170 | 162 | redcarpet |
| 171 | 163 | rr |
| 172 | 164 | rss |
| 173 | − sass | |
| 165 | + sassc | |
| 174 | 166 | sinatra |
| 175 | 167 | sinatra-contrib |
| 176 | 168 | sprockets |
| 177 | 169 | sprockets-helpers |
| 178 | − sprockets-sass | |
| 179 | 170 | terminal-table |
| 180 | 171 | terser |
| 181 | 172 | thin |
| @@ -10,11 +10,61 @@ · 9 unmodified lines | ||
| 10 | 10 | * http://mozilla.org/MPL/2.0/ |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | +/* https://github.com/rails/sass-rails/issues/139 */ | |
| 14 | + | |
| 15 | +<% manifest = JSON.parse(File.read('assets/images/sprites/docs.json')) %> | |
| 16 | + | |
| 17 | +%svg-icon { | |
| 18 | + display: inline-block; | |
| 19 | + vertical-align: top; | |
| 20 | + width: 1rem; | |
| 21 | + height: 1rem; | |
| 22 | + pointer-events: none; | |
| 23 | + fill: currentColor; | |
| 24 | +} | |
| 25 | + | |
| 26 | +%doc-icon { | |
| 27 | + content: ''; | |
| 28 | + display: block; | |
| 29 | + width: 1rem; | |
| 30 | + height: 1rem; | |
| 31 | + background-image: image-url('sprites/docs.png'); | |
| 32 | + background-size: <%= manifest['icons_per_row'] %>rem <%= manifest['icons_per_row'] %>rem; | |
| 33 | +} | |
| 34 | + | |
| 35 | +@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { | |
| 36 | + %doc-icon { background-image: image-url('sprites/docs@2x.png'); } | |
| 37 | +} | |
| 38 | + | |
| 39 | +html._theme-dark { | |
| 40 | + %darkIconFix { | |
| 41 | + filter: invert(100%) grayscale(100%); | |
| 42 | + -webkit-filter: invert(100%) grayscale(100%); | |
| 43 | + } | |
| 44 | +} | |
| 45 | + | |
| 46 | +<%= | |
| 47 | + items = [] | |
| 48 | + | |
| 49 | + manifest['items'].each do |item| | |
| 50 | + rules = [] | |
| 51 | + rules << "background-position: -#{item['col']}rem -#{item['row']}rem;" | |
| 52 | + rules << "@extend %darkIconFix !optional;" if item['dark_icon_fix'] | |
| 53 | + items << "._icon-#{item['type']}:before { #{rules.join(' ')} }" | |
| 54 | + end | |
| 55 | + | |
| 56 | + items.join('') | |
| 57 | + %> | |
| 58 | + | |
| 59 | +._hide-in-development { | |
| 60 | + <%= App.environment != :production ? 'display: none;' : '' %> | |
| 61 | +} | |
| 62 | + | |
| 63 | + | |
| 13 | 64 | @import 'global/variables-light', |
| 14 | 65 | 'global/variables-dark', |
| 15 | 66 | 'global/variables', |
| 16 | 67 | 'global/mixins', |
| 17 | − 'global/icons', | |
| 18 | 68 | 'global/classes', |
| 19 | 69 | 'global/base'; |
| 20 | 70 | |
| @@ -29,8 +79,8 @@ · 8 unmodified lines | ||
| 29 | 79 | 'components/path', |
| 30 | 80 | 'components/notice', |
| 31 | 81 | 'components/prism', |
| 32 | − 'components/mobile', | |
| 33 | − 'components/environment'; | |
| 82 | + 'components/mobile'; | |
| 83 | + | |
| 34 | 84 | |
| 35 | 85 | @import 'pages/simple', |
| 36 | 86 | 'pages/angular', |
| @@ -1,3 +0,0 @@ | ||
| 1 | −._hide-in-development { | |
| 2 | − <%= App.environment != :production ? 'display: none;' : '' %> | |
| 3 | −} | |
| @@ -1,43 +0,0 @@ | ||
| 1 | −<% manifest = JSON.parse(File.read('assets/images/sprites/docs.json')) %> | |
| 2 | − | |
| 3 | −%svg-icon { | |
| 4 | − display: inline-block; | |
| 5 | − vertical-align: top; | |
| 6 | − width: 1rem; | |
| 7 | − height: 1rem; | |
| 8 | − pointer-events: none; | |
| 9 | − fill: currentColor; | |
| 10 | −} | |
| 11 | − | |
| 12 | −%doc-icon { | |
| 13 | − content: ''; | |
| 14 | − display: block; | |
| 15 | − width: 1rem; | |
| 16 | − height: 1rem; | |
| 17 | − background-image: image-url('sprites/docs.png'); | |
| 18 | − background-size: <%= manifest['icons_per_row'] %>rem <%= manifest['icons_per_row'] %>rem; | |
| 19 | −} | |
| 20 | − | |
| 21 | −@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { | |
| 22 | − %doc-icon { background-image: image-url('sprites/docs@2x.png'); } | |
| 23 | −} | |
| 24 | − | |
| 25 | −html._theme-dark { | |
| 26 | − %darkIconFix { | |
| 27 | − filter: invert(100%) grayscale(100%); | |
| 28 | − -webkit-filter: invert(100%) grayscale(100%); | |
| 29 | − } | |
| 30 | −} | |
| 31 | − | |
| 32 | −<%= | |
| 33 | − items = [] | |
| 34 | − | |
| 35 | − manifest['items'].each do |item| | |
| 36 | − rules = [] | |
| 37 | − rules << "background-position: -#{item['col']}rem -#{item['row']}rem;" | |
| 38 | − rules << "@extend %darkIconFix !optional;" if item['dark_icon_fix'] | |
| 39 | − items << "._icon-#{item['type']}:before { #{rules.join(' ')} }" | |
| 40 | − end | |
| 41 | − | |
| 42 | − items.join('') | |
| 43 | − %> | |