File tree Expand file tree Collapse file tree 6 files changed +76
-71
lines changed Expand file tree Collapse file tree 6 files changed +76
-71
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ group :app do
20
20
gem 'rack-ssl-enforcer'
21
21
gem 'rack'
22
22
gem 'rss'
23
- gem 'sassc '
23
+ gem 'sass '
24
24
gem 'sinatra-contrib'
25
25
gem 'sinatra'
26
26
gem 'sprockets-helpers'
27
+ gem 'sprockets-sass'
27
28
gem 'sprockets'
28
29
gem 'thin'
29
30
end
Original file line number Diff line number Diff line change 78
78
pry (>= 0.13 , < 0.15 )
79
79
racc (1.6.2 )
80
80
rack (2.2.8 )
81
- rack-protection (3.2.0 )
82
- base64 (>= 0.1.0 )
81
+ rack-protection (3.1.0 )
83
82
rack (~> 2.2 , >= 2.2.4 )
84
83
rack-ssl-enforcer (0.2.9 )
85
84
rack-test (2.1.0 )
86
85
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 )
88
90
redcarpet (3.6.0 )
89
91
rexml (3.2.6 )
90
92
rouge (1.11.1 )
91
93
rr (3.1.0 )
92
94
rss (0.3.0 )
93
95
rexml
94
96
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 )
98
103
mustermann (~> 3.0 )
99
104
rack (~> 2.2 , >= 2.2.4 )
100
- rack-protection (= 3.2 .0 )
105
+ rack-protection (= 3.1 .0 )
101
106
tilt (~> 2.0 )
102
- sinatra-contrib (3.2 .0 )
103
- multi_json ( >= 0.0.2 )
107
+ sinatra-contrib (3.1 .0 )
108
+ multi_json
104
109
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 )
107
112
tilt (~> 2.0 )
108
- sprockets (4.2.1 )
113
+ sprockets (3.7.2 )
109
114
concurrent-ruby (~> 1.0 )
110
- rack (>= 2.2.4 , < 4 )
115
+ rack (> 1 , < 3 )
111
116
sprockets-helpers (1.4.0 )
112
117
sprockets (>= 2.2 )
118
+ sprockets-sass (2.0.0.beta2 )
119
+ sprockets (>= 2.0 , < 4.0 )
113
120
strings (0.2.1 )
114
121
strings-ansi (~> 0.2 )
115
122
unicode-display_width (>= 1.5 , < 3.0 )
124
131
eventmachine (~> 1.0 , >= 1.0.4 )
125
132
rack (>= 1 , < 3 )
126
133
thor (1.3.0 )
127
- tilt (2.3 .0 )
134
+ tilt (2.2 .0 )
128
135
tty-pager (0.14.0 )
129
136
strings (~> 0.2.0 )
130
137
tty-screen (~> 0.8 )
@@ -163,11 +170,12 @@ DEPENDENCIES
163
170
redcarpet
164
171
rr
165
172
rss
166
- sassc
173
+ sass
167
174
sinatra
168
175
sinatra-contrib
169
176
sprockets
170
177
sprockets-helpers
178
+ sprockets-sass
171
179
terminal-table
172
180
terser
173
181
thin
@@ -181,4 +189,4 @@ RUBY VERSION
181
189
ruby 3.3.0p0
182
190
183
191
BUNDLED WITH
184
- 2.5.4
192
+ 2.4.6
Original file line number Diff line number Diff line change 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/
[email protected] '); }
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
-
64
13
@import ' global/variables-light' ,
65
14
' global/variables-dark' ,
66
15
' global/variables' ,
67
16
' global/mixins' ,
17
+ ' global/icons' ,
68
18
' global/classes' ,
69
19
' global/base' ;
70
20
@@ -79,8 +29,8 @@ html._theme-dark {
79
29
' components/path' ,
80
30
' components/notice' ,
81
31
' components/prism' ,
82
- 'components/mobile';
83
-
32
+ ' components/mobile' ,
33
+ ' components/environment ' ;
84
34
85
35
@import ' pages/simple' ,
86
36
' 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/
[email protected] '); }
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
94
94
]
95
95
96
96
sprockets . js_compressor = Terser . new
97
- sprockets . css_compressor = :sassc
97
+ sprockets . css_compressor = :sass
98
98
99
99
Sprockets ::Helpers . configure do |config |
100
100
config . digest = true
You can’t perform that action at this time.
0 commit comments