File tree Expand file tree Collapse file tree 5 files changed +59
-65
lines changed Expand file tree Collapse file tree 5 files changed +59
-65
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,10 @@ group :app do
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
Original file line number Diff line number Diff line change 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 )
93
90
rr (3.1.0 )
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
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
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
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
+
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
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',
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments