File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ group :app do
2020 gem 'rack-ssl-enforcer'
2121 gem 'rack'
2222 gem 'rss'
23- gem 'sassc '
23+ gem 'sass '
2424 gem 'sinatra-contrib'
2525 gem 'sinatra'
2626 gem 'sprockets-helpers'
27+ gem 'sprockets-sass'
2728 gem 'sprockets'
2829 gem 'thin'
2930end
Original file line number Diff line number Diff line change 7878 pry (>= 0.13 , < 0.15 )
7979 racc (1.6.2 )
8080 rack (2.2.8 )
81- rack-protection (3.2.0 )
82- base64 (>= 0.1.0 )
81+ rack-protection (3.1.0 )
8382 rack (~> 2.2 , >= 2.2.4 )
8483 rack-ssl-enforcer (0.2.9 )
8584 rack-test (2.1.0 )
8685 rack (>= 1.3 )
87- rake (13.1.0 )
86+ rake (13.0.6 )
87+ rb-fsevent (0.11.2 )
88+ rb-inotify (0.10.1 )
89+ ffi (~> 1.0 )
8890 redcarpet (3.6.0 )
8991 rexml (3.2.6 )
9092 rouge (1.11.1 )
9193 rr (3.1.0 )
9294 rss (0.3.0 )
9395 rexml
9496 ruby2_keywords (0.0.5 )
95- sassc (2.4.0 )
96- ffi (~> 1.9 )
97- sinatra (3.2.0 )
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 )
102+ sinatra (3.1.0 )
98103 mustermann (~> 3.0 )
99104 rack (~> 2.2 , >= 2.2.4 )
100- rack-protection (= 3.2 .0 )
105+ rack-protection (= 3.1 .0 )
101106 tilt (~> 2.0 )
102- sinatra-contrib (3.2 .0 )
103- multi_json ( >= 0.0.2 )
107+ sinatra-contrib (3.1 .0 )
108+ multi_json
104109 mustermann (~> 3.0 )
105- rack-protection (= 3.2 .0 )
106- sinatra (= 3.2 .0 )
110+ rack-protection (= 3.1 .0 )
111+ sinatra (= 3.1 .0 )
107112 tilt (~> 2.0 )
108- sprockets (4.2.1 )
113+ sprockets (3.7.2 )
109114 concurrent-ruby (~> 1.0 )
110- rack (>= 2.2.4 , < 4 )
115+ rack (> 1 , < 3 )
111116 sprockets-helpers (1.4.0 )
112117 sprockets (>= 2.2 )
118+ sprockets-sass (2.0.0.beta2 )
119+ sprockets (>= 2.0 , < 4.0 )
113120 strings (0.2.1 )
114121 strings-ansi (~> 0.2 )
115122 unicode-display_width (>= 1.5 , < 3.0 )
124131 eventmachine (~> 1.0 , >= 1.0.4 )
125132 rack (>= 1 , < 3 )
126133 thor (1.3.0 )
127- tilt (2.3 .0 )
134+ tilt (2.2 .0 )
128135 tty-pager (0.14.0 )
129136 strings (~> 0.2.0 )
130137 tty-screen (~> 0.8 )
@@ -163,11 +170,12 @@ DEPENDENCIES
163170 redcarpet
164171 rr
165172 rss
166- sassc
173+ sass
167174 sinatra
168175 sinatra-contrib
169176 sprockets
170177 sprockets-helpers
178+ sprockets-sass
171179 terminal-table
172180 terser
173181 thin
@@ -181,4 +189,4 @@ RUBY VERSION
181189 ruby 3.3.0p0
182190
183191BUNDLED WITH
184- 2.5.4
192+ 2.4.6
Original file line number Diff line number Diff line change 1010 * http://mozilla.org/MPL/2.0/
1111 */
1212
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-
6413@import ' global/variables-light' ,
6514 ' global/variables-dark' ,
6615 ' global/variables' ,
6716 ' global/mixins' ,
17+ ' global/icons' ,
6818 ' global/classes' ,
6919 ' global/base' ;
7020
@@ -79,8 +29,8 @@ html._theme-dark {
7929 ' components/path' ,
8030 ' components/notice' ,
8131 ' components/prism' ,
82- 'components/mobile';
83-
32+ ' components/mobile' ,
33+ ' components/environment ' ;
8434
8535@import ' pages/simple' ,
8636 ' pages/angular' ,
Original file line number Diff line number Diff line change 1+ ._hide-in-development {
2+ <%= App.environment != :production ? 'display: none;' : '' %>
3+ }
Original file line number Diff line number Diff line change 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+ %>
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class App < Sinatra::Application
9494 ]
9595
9696 sprockets . js_compressor = Terser . new
97- sprockets . css_compressor = :sassc
97+ sprockets . css_compressor = :sass
9898
9999 Sprockets ::Helpers . configure do |config |
100100 config . digest = true
You can’t perform that action at this time.
0 commit comments