Replace sprockets-sass with dartsass-sprockets
Unified · Split
| @@ -15,16 +15,15 @@ group :app do · 14 unmodified lines | ||
| 15 | 15 | gem 'browser' |
| 16 | 16 | gem 'chunky_png' |
| 17 | 17 | gem 'erubi' |
| 18 | + gem 'dartsass-sprockets' | |
| 18 | 19 | gem 'image_optim_pack', platforms: :ruby |
| 19 | 20 | gem 'image_optim' |
| 20 | 21 | gem 'rack-ssl-enforcer' |
| 21 | 22 | gem 'rack' |
| 22 | 23 | gem 'rss' |
| 23 | − gem 'sass' | |
| 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 |
| @@ -1,6 +1,25 @@ | ||
| 1 | 1 | GEM |
| 2 | 2 | remote: https://rubygems.org/ |
| 3 | 3 | specs: |
| 4 | + actionpack (7.2.3) | |
| 5 | + actionview (= 7.2.3) | |
| 6 | + activesupport (= 7.2.3) | |
| 7 | + cgi | |
| 8 | + nokogiri (>= 1.8.5) | |
| 9 | + racc | |
| 10 | + rack (>= 2.2.4, < 3.3) | |
| 11 | + rack-session (>= 1.0.1) | |
| 12 | + rack-test (>= 0.6.3) | |
| 13 | + rails-dom-testing (~> 2.2) | |
| 14 | + rails-html-sanitizer (~> 1.6) | |
| 15 | + useragent (~> 0.16) | |
| 16 | + actionview (7.2.3) | |
| 17 | + activesupport (= 7.2.3) | |
| 18 | + builder (~> 3.1) | |
| 19 | + cgi | |
| 20 | + erubi (~> 1.11) | |
| 21 | + rails-dom-testing (~> 2.2) | |
| 22 | + rails-html-sanitizer (~> 1.6) | |
| 4 | 23 | activesupport (7.2.3) |
| 5 | 24 | base64 |
| 6 | 25 | benchmark (>= 0.3) |
| @@ -21,13 +40,24 @@ GEM · 14 unmodified lines | ||
| 21 | 40 | rouge (>= 1.0.0) |
| 22 | 41 | bigdecimal (3.1.9) |
| 23 | 42 | browser (5.3.1) |
| 43 | + builder (3.3.0) | |
| 24 | 44 | byebug (12.0.0) |
| 45 | + cgi (0.5.1) | |
| 25 | 46 | chunky_png (1.4.0) |
| 26 | 47 | coderay (1.1.3) |
| 27 | 48 | concurrent-ruby (1.3.5) |
| 28 | 49 | connection_pool (2.4.1) |
| 50 | + crass (1.0.6) | |
| 29 | 51 | daemons (1.4.1) |
| 52 | + dartsass-sprockets (3.2.1) | |
| 53 | + railties (>= 4.0.0) | |
| 54 | + sassc-embedded (~> 1.80.1) | |
| 55 | + sprockets (> 3.0) | |
| 56 | + sprockets-rails | |
| 57 | + tilt | |
| 58 | + date (3.5.1) | |
| 30 | 59 | drb (2.2.3) |
| 60 | + erb (6.0.1) | |
| 31 | 61 | erubi (1.13.1) |
| 32 | 62 | ethon (0.18.0) |
| 33 | 63 | ffi (>= 1.15.0) |
| @@ -37,6 +67,9 @@ GEM · 3 unmodified lines | ||
| 37 | 67 | exifr (1.4.0) |
| 38 | 68 | ffi (1.17.3) |
| 39 | 69 | fspath (3.1.2) |
| 70 | + google-protobuf (4.33.4) | |
| 71 | + bigdecimal | |
| 72 | + rake (>= 13) | |
| 40 | 73 | highline (3.1.2) |
| 41 | 74 | reline |
| 42 | 75 | html-pipeline (2.14.3) |
| @@ -56,7 +89,14 @@ GEM · 13 unmodified lines | ||
| 56 | 89 | image_size (3.3.0) |
| 57 | 90 | in_threads (1.6.0) |
| 58 | 91 | io-console (0.8.0) |
| 92 | + irb (1.16.0) | |
| 93 | + pp (>= 0.6.0) | |
| 94 | + rdoc (>= 4.0.0) | |
| 95 | + reline (>= 0.4.2) | |
| 59 | 96 | logger (1.6.6) |
| 97 | + loofah (2.25.0) | |
| 98 | + crass (~> 1.0.2) | |
| 99 | + nokogiri (>= 1.12.0) | |
| 60 | 100 | method_source (1.1.0) |
| 61 | 101 | mini_portile2 (2.8.9) |
| 62 | 102 | minitest (5.27.0) |
| @@ -68,6 +108,9 @@ GEM · 5 unmodified lines | ||
| 68 | 108 | mini_portile2 (~> 2.8.2) |
| 69 | 109 | racc (~> 1.4) |
| 70 | 110 | options (2.3.2) |
| 111 | + pp (0.6.3) | |
| 112 | + prettyprint | |
| 113 | + prettyprint (0.2.0) | |
| 71 | 114 | progress (3.6.0) |
| 72 | 115 | progress_bar (1.3.4) |
| 73 | 116 | highline (>= 1.6) |
| @@ -78,18 +121,44 @@ GEM · 4 unmodified lines | ||
| 78 | 121 | pry-byebug (3.11.0) |
| 79 | 122 | byebug (~> 12.0) |
| 80 | 123 | pry (>= 0.13, < 0.16) |
| 124 | + psych (5.3.1) | |
| 125 | + date | |
| 126 | + stringio | |
| 81 | 127 | racc (1.8.1) |
| 82 | 128 | rack (2.2.22) |
| 83 | 129 | rack-protection (3.2.0) |
| 84 | 130 | base64 (>= 0.1.0) |
| 85 | 131 | rack (~> 2.2, >= 2.2.4) |
| 132 | + rack-session (1.0.2) | |
| 133 | + rack (< 3) | |
| 86 | 134 | rack-ssl-enforcer (0.2.9) |
| 87 | 135 | rack-test (2.2.0) |
| 88 | 136 | rack (>= 1.3) |
| 137 | + rackup (1.0.1) | |
| 138 | + rack (< 3) | |
| 139 | + webrick | |
| 140 | + rails-dom-testing (2.3.0) | |
| 141 | + activesupport (>= 5.0.0) | |
| 142 | + minitest | |
| 143 | + nokogiri (>= 1.6) | |
| 144 | + rails-html-sanitizer (1.6.2) | |
| 145 | + loofah (~> 2.21) | |
| 146 | + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) | |
| 147 | + railties (7.2.3) | |
| 148 | + actionpack (= 7.2.3) | |
| 149 | + activesupport (= 7.2.3) | |
| 150 | + cgi | |
| 151 | + irb (~> 1.13) | |
| 152 | + rackup (>= 1.0.0) | |
| 153 | + rake (>= 12.2) | |
| 154 | + thor (~> 1.0, >= 1.2.2) | |
| 155 | + tsort (>= 0.2) | |
| 156 | + zeitwerk (~> 2.6) | |
| 89 | 157 | rake (13.3.1) |
| 90 | − rb-fsevent (0.11.2) | |
| 91 | − rb-inotify (0.10.1) | |
| 92 | − ffi (~> 1.0) | |
| 158 | + rdoc (7.1.0) | |
| 159 | + erb | |
| 160 | + psych (>= 4.0.0) | |
| 161 | + tsort | |
| 93 | 162 | redcarpet (3.6.1) |
| 94 | 163 | reline (0.6.0) |
| 95 | 164 | io-console (~> 0.5) |
| @@ -99,11 +168,11 @@ GEM · 3 unmodified lines | ||
| 99 | 168 | rss (0.3.1) |
| 100 | 169 | rexml |
| 101 | 170 | ruby2_keywords (0.0.5) |
| 102 | − sass (3.7.4) | |
| 103 | − sass-listen (~> 4.0.0) | |
| 104 | − sass-listen (4.0.0) | |
| 105 | − rb-fsevent (~> 0.9, >= 0.9.4) | |
| 106 | − rb-inotify (~> 0.9, >= 0.9.7) | |
| 171 | + sass-embedded (1.97.3) | |
| 172 | + google-protobuf (~> 4.31) | |
| 173 | + rake (>= 13) | |
| 174 | + sassc-embedded (1.80.8) | |
| 175 | + sass-embedded (~> 1.80) | |
| 107 | 176 | securerandom (0.3.2) |
| 108 | 177 | sinatra (3.2.0) |
| 109 | 178 | mustermann (~> 3.0) |
| @@ -116,14 +185,17 @@ GEM · 6 unmodified lines | ||
| 116 | 185 | rack-protection (= 3.2.0) |
| 117 | 186 | sinatra (= 3.2.0) |
| 118 | 187 | tilt (~> 2.0) |
| 119 | − sprockets (3.7.5) | |
| 120 | − base64 | |
| 188 | + sprockets (4.2.2) | |
| 121 | 189 | concurrent-ruby (~> 1.0) |
| 122 | − rack (> 1, < 3) | |
| 190 | + logger | |
| 191 | + rack (>= 2.2.4, < 4) | |
| 123 | 192 | sprockets-helpers (1.4.0) |
| 124 | 193 | sprockets (>= 2.2) |
| 125 | − sprockets-sass (2.0.0.beta2) | |
| 126 | − sprockets (>= 2.0, < 4.0) | |
| 194 | + sprockets-rails (3.5.2) | |
| 195 | + actionpack (>= 6.1) | |
| 196 | + activesupport (>= 6.1) | |
| 197 | + sprockets (>= 3.0.0) | |
| 198 | + stringio (3.2.0) | |
| 127 | 199 | strings (0.2.1) |
| 128 | 200 | strings-ansi (~> 0.2) |
| 129 | 201 | unicode-display_width (>= 1.5, < 3.0) |
| @@ -139,6 +211,7 @@ GEM · 9 unmodified lines | ||
| 139 | 211 | rack (>= 1, < 3) |
| 140 | 212 | thor (1.4.0) |
| 141 | 213 | tilt (2.6.0) |
| 214 | + tsort (0.2.0) | |
| 142 | 215 | tty-pager (0.14.0) |
| 143 | 216 | strings (~> 0.2.0) |
| 144 | 217 | tty-screen (~> 0.8) |
| @@ -150,7 +223,10 @@ GEM · 5 unmodified lines | ||
| 150 | 223 | unicode-display_width (2.3.0) |
| 151 | 224 | unicode_utils (1.4.0) |
| 152 | 225 | unix_utils (0.0.15) |
| 226 | + useragent (0.16.11) | |
| 227 | + webrick (1.9.2) | |
| 153 | 228 | yajl-ruby (1.4.3) |
| 229 | + zeitwerk (2.7.4) | |
| 154 | 230 | |
| 155 | 231 | PLATFORMS |
| 156 | 232 | ruby |
| @@ -160,6 +236,7 @@ DEPENDENCIES · 3 unmodified lines | ||
| 160 | 236 | better_errors |
| 161 | 237 | browser |
| 162 | 238 | chunky_png |
| 239 | + dartsass-sprockets | |
| 163 | 240 | erubi |
| 164 | 241 | html-pipeline |
| 165 | 242 | image_optim |
| @@ -176,12 +253,10 @@ DEPENDENCIES · 10 unmodified lines | ||
| 176 | 253 | redcarpet |
| 177 | 254 | rr |
| 178 | 255 | rss |
| 179 | − sass | |
| 180 | 256 | sinatra |
| 181 | 257 | sinatra-contrib |
| 182 | 258 | sprockets |
| 183 | 259 | sprockets-helpers |
| 184 | − sprockets-sass | |
| 185 | 260 | terminal-table |
| 186 | 261 | terser |
| 187 | 262 | thin |
| @@ -18,6 +18,8 @@ · 17 unmodified lines | ||
| 18 | 18 | |
| 19 | 19 | //= require_tree ./templates |
| 20 | 20 | |
| 21 | +//= link_tree ../images/sprites | |
| 22 | + | |
| 21 | 23 | //= require tracking |
| 22 | 24 | |
| 23 | 25 | var init = function () { |
| @@ -1,7 +1,3 @@ | ||
| 1 | −//= depend_on sprites/docs.png | |
| 2 | −//= depend_on sprites/docs@2x.png | |
| 3 | −//= depend_on sprites/docs.json | |
| 4 | − | |
| 5 | 1 | /*! |
| 6 | 2 | * Copyright 2013-2026 Thibaut Courouble and other contributors |
| 7 | 3 | * |
| @@ -10,133 +6,126 @@ · 2 unmodified lines | ||
| 10 | 6 | * http://mozilla.org/MPL/2.0/ |
| 11 | 7 | */ |
| 12 | 8 | |
| 13 | −@import 'global/variables-light', | |
| 14 | − 'global/variables-dark', | |
| 15 | − 'global/variables', | |
| 16 | − 'global/mixins', | |
| 17 | − 'global/icons', | |
| 18 | − 'global/classes', | |
| 19 | − 'global/base'; | |
| 9 | + // SCSS partials that were formerly imported here are now invoked on an as-needed, per-file basis. | |
| 20 | 10 | |
| 21 | −@import 'components/app', | |
| 22 | − 'components/header', | |
| 23 | − 'components/notif', | |
| 24 | − 'components/sidebar', | |
| 25 | − 'components/settings', | |
| 26 | − 'components/content', | |
| 27 | − 'components/page', | |
| 28 | − 'components/fail', | |
| 29 | − 'components/path', | |
| 30 | − 'components/notice', | |
| 31 | − 'components/prism', | |
| 32 | − 'components/mobile', | |
| 33 | − 'components/environment'; | |
| 11 | +@use 'components/app'; | |
| 12 | +@use 'components/header'; | |
| 13 | +@use 'components/notif'; | |
| 14 | +@use 'components/sidebar'; | |
| 15 | +@use 'components/settings'; | |
| 16 | +@use 'components/content'; | |
| 17 | +@use 'components/page'; | |
| 18 | +@use 'components/fail'; | |
| 19 | +@use 'components/path'; | |
| 20 | +@use 'components/notice'; | |
| 21 | +@use 'components/prism'; | |
| 22 | +@use 'components/mobile'; | |
| 23 | +@use 'components/environment'; | |
| 34 | 24 | |
| 35 | −@import 'pages/simple', | |
| 36 | − 'pages/angular', | |
| 37 | − 'pages/angularjs', | |
| 38 | − 'pages/apache', | |
| 39 | − 'pages/async', | |
| 40 | − 'pages/bash', | |
| 41 | − 'pages/bootstrap', | |
| 42 | − 'pages/cppref', | |
| 43 | − 'pages/cakephp', | |
| 44 | − 'pages/clojure', | |
| 45 | − 'pages/codeception', | |
| 46 | − 'pages/coffeescript', | |
| 47 | − 'pages/cordova', | |
| 48 | − 'pages/crystal', | |
| 49 | − 'pages/cypress', | |
| 50 | − 'pages/d', | |
| 51 | − 'pages/d3', | |
| 52 | − 'pages/dart', | |
| 53 | − 'pages/dojo', | |
| 54 | − 'pages/drupal', | |
| 55 | − 'pages/eigen3', | |
| 56 | − 'pages/elixir', | |
| 57 | − 'pages/elisp', | |
| 58 | − 'pages/ember', | |
| 59 | − 'pages/erlang', | |
| 60 | − 'pages/express', | |
| 61 | − 'pages/fastapi', | |
| 62 | − 'pages/fluture', | |
| 63 | − 'pages/git', | |
| 64 | − 'pages/github', | |
| 65 | − 'pages/gnuplot', | |
| 66 | − 'pages/go', | |
| 67 | − 'pages/graphite', | |
| 68 | − 'pages/groovy', | |
| 69 | − 'pages/gtk', | |
| 70 | − 'pages/hapi', | |
| 71 | − 'pages/haproxy', | |
| 72 | − 'pages/haskell', | |
| 73 | − 'pages/jasmine', | |
| 74 | − 'pages/jekyll', | |
| 75 | − 'pages/joi', | |
| 76 | − 'pages/jq', | |
| 77 | − 'pages/jquery', | |
| 78 | − 'pages/julia', | |
| 79 | − 'pages/knockout', | |
| 80 | − 'pages/kotlin', | |
| 81 | − 'pages/kubectl', | |
| 82 | − 'pages/kubernetes', | |
| 83 | − 'pages/laravel', | |
| 84 | − 'pages/liquid', | |
| 85 | − 'pages/lit', | |
| 86 | − 'pages/love', | |
| 87 | − 'pages/lua', | |
| 88 | − 'pages/gnu_make', | |
| 89 | − 'pages/mariadb', | |
| 90 | − 'pages/mdn', | |
| 91 | − 'pages/meteor', | |
| 92 | − 'pages/mkdocs', | |
| 93 | − 'pages/modernizr', | |
| 94 | − 'pages/moment', | |
| 95 | − 'pages/nginx', | |
| 96 | − 'pages/node', | |
| 97 | − 'pages/npm', | |
| 98 | − 'pages/nushell', | |
| 99 | − 'pages/octave', | |
| 100 | − 'pages/openjdk', | |
| 101 | − 'pages/openlayers', | |
| 102 | − 'pages/perl', | |
| 103 | − 'pages/phalcon', | |
| 104 | − 'pages/phaser', | |
| 105 | − 'pages/php', | |
| 106 | − 'pages/phpunit', | |
| 107 | − 'pages/postgres', | |
| 108 | − 'pages/pug', | |
| 109 | − 'pages/pygame', | |
| 110 | − 'pages/python', | |
| 111 | − 'pages/qt', | |
| 112 | − 'pages/ramda', | |
| 113 | − 'pages/rdoc', | |
| 114 | − 'pages/react', | |
| 115 | − 'pages/react_native', | |
| 116 | − 'pages/reactivex', | |
| 117 | − 'pages/redis', | |
| 118 | − 'pages/rethinkdb', | |
| 119 | − 'pages/rfc', | |
| 120 | − 'pages/rubydoc', | |
| 121 | − 'pages/rust', | |
| 122 | − 'pages/rxjs', | |
| 123 | − 'pages/sanctuary', | |
| 124 | − 'pages/sanctuary_def', | |
| 125 | − 'pages/sanctuary_type_classes', | |
| 126 | − 'pages/scala', | |
| 127 | − 'pages/sinon', | |
| 128 | − 'pages/sphinx', | |
| 129 | − 'pages/sphinx_simple', | |
| 130 | − 'pages/sqlite', | |
| 131 | − 'pages/support_tables', | |
| 132 | − 'pages/tailwindcss', | |
| 133 | − 'pages/tcl_tk', | |
| 134 | − 'pages/tensorflow', | |
| 135 | − 'pages/terraform', | |
| 136 | − 'pages/typescript', | |
| 137 | − 'pages/underscore', | |
| 138 | − 'pages/vue', | |
| 139 | − 'pages/webpack', | |
| 140 | − 'pages/wordpress', | |
| 141 | − 'pages/yard', | |
| 142 | − 'pages/yii'; | |
| 25 | +@use 'pages/angular'; | |
| 26 | +@use 'pages/angularjs'; | |
| 27 | +@use 'pages/apache'; | |
| 28 | +@use 'pages/async'; | |
| 29 | +@use 'pages/bash'; | |
| 30 | +@use 'pages/bootstrap'; | |
| 31 | +@use 'pages/cppref'; | |
| 32 | +@use 'pages/cakephp'; | |
| 33 | +@use 'pages/clojure'; | |
| 34 | +@use 'pages/codeception'; | |
| 35 | +@use 'pages/coffeescript'; | |
| 36 | +@use 'pages/cordova'; | |
| 37 | +@use 'pages/crystal'; | |
| 38 | +@use 'pages/cypress'; | |
| 39 | +@use 'pages/d'; | |
| 40 | +@use 'pages/d3'; | |
| 41 | +@use 'pages/dart'; | |
| 42 | +@use 'pages/dojo'; | |
| 43 | +@use 'pages/drupal'; | |
| 44 | +@use 'pages/eigen3'; | |
| 45 | +@use 'pages/elixir'; | |
| 46 | +@use 'pages/elisp'; | |
| 47 | +@use 'pages/ember'; | |
| 48 | +@use 'pages/erlang'; | |
| 49 | +@use 'pages/express'; | |
| 50 | +@use 'pages/fastapi'; | |
| 51 | +@use 'pages/fluture'; | |
| 52 | +@use 'pages/git'; | |
| 53 | +@use 'pages/github'; | |
| 54 | +@use 'pages/gnuplot'; | |
| 55 | +@use 'pages/go'; | |
| 56 | +@use 'pages/graphite'; | |
| 57 | +@use 'pages/groovy'; | |
| 58 | +@use 'pages/gtk'; | |
| 59 | +@use 'pages/hapi'; | |
| 60 | +@use 'pages/haproxy'; | |
| 61 | +@use 'pages/haskell'; | |
| 62 | +@use 'pages/jasmine'; | |
| 63 | +@use 'pages/jekyll'; | |
| 64 | +@use 'pages/joi'; | |
| 65 | +@use 'pages/jq'; | |
| 66 | +@use 'pages/jquery'; | |
| 67 | +@use 'pages/julia'; | |
| 68 | +@use 'pages/knockout'; | |
| 69 | +@use 'pages/kotlin'; | |
| 70 | +@use 'pages/kubectl'; | |
| 71 | +@use 'pages/kubernetes'; | |
| 72 | +@use 'pages/laravel'; | |
| 73 | +@use 'pages/liquid'; | |
| 74 | +@use 'pages/lit'; | |
| 75 | +@use 'pages/love'; | |
| 76 | +@use 'pages/lua'; | |
| 77 | +@use 'pages/gnu_make'; | |
| 78 | +@use 'pages/mariadb'; | |
| 79 | +@use 'pages/mdn'; | |
| 80 | +@use 'pages/meteor'; | |
| 81 | +@use 'pages/mkdocs'; | |
| 82 | +@use 'pages/modernizr'; | |
| 83 | +@use 'pages/moment'; | |
| 84 | +@use 'pages/nginx'; | |
| 85 | +@use 'pages/node'; | |
| 86 | +@use 'pages/npm'; | |
| 87 | +@use 'pages/nushell'; | |
| 88 | +@use 'pages/octave'; | |
| 89 | +@use 'pages/openjdk'; | |
| 90 | +@use 'pages/openlayers'; | |
| 91 | +@use 'pages/perl'; | |
| 92 | +@use 'pages/phalcon'; | |
| 93 | +@use 'pages/phaser'; | |
| 94 | +@use 'pages/php'; | |
| 95 | +@use 'pages/phpunit'; | |
| 96 | +@use 'pages/postgres'; | |
| 97 | +@use 'pages/pug'; | |
| 98 | +@use 'pages/pygame'; | |
| 99 | +@use 'pages/python'; | |
| 100 | +@use 'pages/qt'; | |
| 101 | +@use 'pages/ramda'; | |
| 102 | +@use 'pages/rdoc'; | |
| 103 | +@use 'pages/react'; | |
| 104 | +@use 'pages/react_native'; | |
| 105 | +@use 'pages/reactivex'; | |
| 106 | +@use 'pages/redis'; | |
| 107 | +@use 'pages/rethinkdb'; | |
| 108 | +@use 'pages/rfc'; | |
| 109 | +@use 'pages/rubydoc'; | |
| 110 | +@use 'pages/rust'; | |
| 111 | +@use 'pages/rxjs'; | |
| 112 | +@use 'pages/sanctuary'; | |
| 113 | +@use 'pages/sanctuary_def'; | |
| 114 | +@use 'pages/sanctuary_type_classes'; | |
| 115 | +@use 'pages/scala'; | |
| 116 | +@use 'pages/sinon'; | |
| 117 | +@use 'pages/sphinx'; | |
| 118 | +@use 'pages/sphinx_simple'; | |
| 119 | +@use 'pages/sqlite'; | |
| 120 | +@use 'pages/support_tables'; | |
| 121 | +@use 'pages/tailwindcss'; | |
| 122 | +@use 'pages/tcl_tk'; | |
| 123 | +@use 'pages/tensorflow'; | |
| 124 | +@use 'pages/terraform'; | |
| 125 | +@use 'pages/typescript'; | |
| 126 | +@use 'pages/underscore'; | |
| 127 | +@use 'pages/vue'; | |
| 128 | +@use 'pages/webpack'; | |
| 129 | +@use 'pages/wordpress'; | |
| 130 | +@use 'pages/yard'; | |
| 131 | +@use 'pages/yii'; | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | html._booting { background: var(--contentBackground); } |
| 2 | 4 | body._max-width { background: none; } |
| 3 | 5 | html._booting body._max-width { background: var(--documentBackground); } |
| @@ -2,6 +2,11 @@ · 1 unmodified line | ||
| 2 | 2 | // Content |
| 3 | 3 | // |
| 4 | 4 | |
| 5 | +@use 'global/base'; | |
| 6 | +@use 'global/icons'; | |
| 7 | +@use 'global/mixins' as m; | |
| 8 | +@use 'global/classes'; | |
| 9 | + | |
| 5 | 10 | ._container { |
| 6 | 11 | position: relative; |
| 7 | 12 | z-index: var(--contentZ); |
| @@ -10,7 +15,7 @@ · 2 unmodified lines | ||
| 10 | 15 | pointer-events: none; |
| 11 | 16 | @extend %border-box; |
| 12 | 17 | |
| 13 | − @include mobile { margin-left: var(--sidebarMediumWidth); } | |
| 18 | + @include m.mobile { margin-left: var(--sidebarMediumWidth); } | |
| 14 | 19 | |
| 15 | 20 | ._sidebar-hidden & { margin-left: 0; } |
| 16 | 21 | body:not(._native-scrollbars) & { -webkit-margin-end: -1px; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._fail { // Don't use CSS variables, in case the browser doesn't support them. |
| 2 | 4 | display: block; |
| 3 | 5 | position: relative; |
| @@ -2,6 +2,10 @@ · 1 unmodified line | ||
| 2 | 2 | // Header |
| 3 | 3 | // |
| 4 | 4 | |
| 5 | +@use 'global/icons'; | |
| 6 | +@use 'global/mixins' as m; | |
| 7 | +@use 'global/classes'; | |
| 8 | + | |
| 5 | 9 | ._header { |
| 6 | 10 | position: absolute; |
| 7 | 11 | z-index: var(--headerZ); |
| @@ -17,7 +21,7 @@ · 9 unmodified lines | ||
| 17 | 21 | @extend %border-box; |
| 18 | 22 | @extend %user-select-none; |
| 19 | 23 | |
| 20 | − @include mobile { width: var(--sidebarMediumWidth); } | |
| 24 | + @include m.mobile { width: var(--sidebarMediumWidth); } | |
| 21 | 25 | } |
| 22 | 26 | |
| 23 | 27 | ._header-left { |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/mixins' as m; | |
| 2 | + | |
| 1 | 3 | ._notice { |
| 2 | 4 | position: absolute; |
| 3 | 5 | z-index: var(--noticeZ); |
| @@ -9,7 +11,7 @@ · 5 unmodified lines | ||
| 9 | 11 | background: var(--noticeBackground); |
| 10 | 12 | box-shadow: inset 0 1px var(--noticeBorder); |
| 11 | 13 | |
| 12 | − @include mobile { left: var(--sidebarMediumWidth); } | |
| 14 | + @include m.mobile { left: var(--sidebarMediumWidth); } | |
| 13 | 15 | |
| 14 | 16 | ._sidebar-hidden & { left: 0; } |
| 15 | 17 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | +@use 'global/icons'; | |
| 3 | + | |
| 1 | 4 | ._notif, %notif { |
| 2 | 5 | position: absolute; |
| 3 | 6 | z-index: 2; |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | +@use 'components/content'; | |
| 3 | + | |
| 1 | 4 | // |
| 2 | 5 | // Page |
| 3 | 6 | // |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/mixins' as m; | |
| 2 | +@use 'global/icons'; | |
| 3 | + | |
| 1 | 4 | ._path { |
| 2 | 5 | position: absolute; |
| 3 | 6 | z-index: var(--headerZ); |
| @@ -11,7 +14,7 @@ · 7 unmodified lines | ||
| 11 | 14 | background: var(--pathBackground); |
| 12 | 15 | box-shadow: inset 0 1px var(--pathBorder); |
| 13 | 16 | |
| 14 | − @include mobile { left: var(--sidebarMediumWidth); } | |
| 17 | + @include m.mobile { left: var(--sidebarMediumWidth); } | |
| 15 | 18 | |
| 16 | 19 | ._sidebar-hidden & { left: 0; } |
| 17 | 20 | |
| @@ -2,6 +2,9 @@ · 1 unmodified line | ||
| 2 | 2 | // Settings |
| 3 | 3 | // |
| 4 | 4 | |
| 5 | +@use 'global/classes'; | |
| 6 | +@use 'global/icons'; | |
| 7 | + | |
| 5 | 8 | ._settings { |
| 6 | 9 | display: none; |
| 7 | 10 | position: absolute; |
| @@ -2,6 +2,10 @@ · 1 unmodified line | ||
| 2 | 2 | // Sidebar |
| 3 | 3 | // |
| 4 | 4 | |
| 5 | +@use 'global/classes'; | |
| 6 | +@use 'global/icons'; | |
| 7 | +@use 'global/mixins' as m; | |
| 8 | + | |
| 5 | 9 | ._sidebar { |
| 6 | 10 | position: absolute; |
| 7 | 11 | z-index: var(--sidebarZ); |
| @@ -76,7 +80,7 @@ · 68 unmodified lines | ||
| 76 | 80 | box-shadow: inset -1px 0 var(--sidebarBorder); |
| 77 | 81 | @extend %border-box; |
| 78 | 82 | |
| 79 | − @include mobile { width: var(--sidebarMediumWidth); } | |
| 83 | + @include m.mobile { width: var(--sidebarMediumWidth); } | |
| 80 | 84 | |
| 81 | 85 | ._sidebar > & { min-height: 100%; } |
| 82 | 86 | |
| @@ -311,7 +315,7 @@ · 228 unmodified lines | ||
| 311 | 315 | transform: translate3d(0, 0, 0); |
| 312 | 316 | @extend %border-box; |
| 313 | 317 | |
| 314 | − @include mobile { min-width: var(--sidebarMediumWidth); } | |
| 318 | + @include m.mobile { min-width: var(--sidebarMediumWidth); } | |
| 315 | 319 | |
| 316 | 320 | > ._list-text { display: inline; } |
| 317 | 321 | |
| @@ -1,13 +1,17 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | +@use 'global/mixins' as m; | |
| 3 | +@use 'global/variables' as *; | |
| 4 | +@use 'global/print'; | |
| 5 | + | |
| 1 | 6 | html { |
| 2 | 7 | height: 100%; |
| 3 | 8 | font-size: 100%; |
| 4 | 9 | background: #fff; // fallback to show the error message to browsers that don't support CSS variables. |
| 5 | 10 | background: var(--documentBackground); |
| 6 | 11 | |
| 7 | − @include mobile { font-size: 93.75%; } | |
| 12 | + @include m.mobile { font-size: 93.75%; } | |
| 8 | 13 | |
| 9 | − @include print { background: none; } | |
| 10 | − @import 'global/print'; | |
| 14 | + @include m.print { background: none; } | |
| 11 | 15 | } |
| 12 | 16 | |
| 13 | 17 | html._theme-default { |
| @@ -1,4 +1,6 @@ | ||
| 1 | −@include print { | |
| 1 | +@use 'global/mixins' as m; | |
| 2 | + | |
| 3 | +@include m.print { | |
| 2 | 4 | ._header, ._sidebar, ._path, ._notif, ._toc, ._pre-clip, ._notice, ._links { |
| 3 | 5 | display: none !important; |
| 4 | 6 | } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'sass:color'; | |
| 2 | + | |
| 1 | 3 | html._theme-dark { |
| 2 | 4 | --absolute: white; |
| 3 | 5 | |
| @@ -29,8 +31,8 @@ html._theme-dark { · 25 unmodified lines | ||
| 29 | 31 | |
| 30 | 32 | --headerBackground: #1c1c1c; |
| 31 | 33 | --headerBorder: #000; |
| 32 | − --searchTagBackground: #{darken(#1c1c1c, 5%)}; | |
| 33 | − --searchBorder: #{darken(#000, 2%)}; | |
| 34 | + --searchTagBackground: #{color.adjust(#1c1c1c, $lightness: -5%)}; | |
| 35 | + --searchBorder: #{color.adjust(#000, $lightness: -2%)}; | |
| 34 | 36 | |
| 35 | 37 | --sidebarBackground: #24282a; |
| 36 | 38 | --transparentSidebarBackground: #{rgba(#24282a, 0)}; |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'sass:color'; | |
| 2 | + | |
| 1 | 3 | html._theme-default { |
| 2 | 4 | --absolute: black; |
| 3 | 5 | |
| @@ -29,8 +31,8 @@ html._theme-default { · 25 unmodified lines | ||
| 29 | 31 | |
| 30 | 32 | --headerBackground: #eee; |
| 31 | 33 | --headerBorder: #d7d7d7; |
| 32 | − --searchTagBackground: #{darken(#eee, 5%)}; | |
| 33 | − --searchBorder: #{darken(#d7d7d7, 2%)}; | |
| 34 | + --searchTagBackground: #{color.adjust(#eee, $lightness: -5%)}; | |
| 35 | + --searchBorder: #{color.adjust(#d7d7d7, $lightness: -2%)}; | |
| 34 | 36 | |
| 35 | 37 | --sidebarBackground: #f9f9f9; |
| 36 | 38 | --transparentSidebarBackground: #{rgba(#f9f9f9, 0)}; |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/variables-light'; | |
| 2 | +@use 'global/variables-dark'; | |
| 3 | + | |
| 1 | 4 | // Variables needed to style the error message for browsers that don't support CSS variables. |
| 2 | 5 | $baseFont: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif; |
| 3 | 6 | $textColor: #333; |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'pages/simple'; | |
| 3 | + | |
| 1 | 4 | ._angular { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._angularjs { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._apache { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._async { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._bash { |
| 2 | 4 | dl > dt > code, |
| 3 | 5 | dl > dt > kbd { |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._bootstrap { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._cakephp { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._chef { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._clojure { |
| 2 | 4 | h2:not([id]) { @extend %block-heading; } |
| 3 | 5 | h2[id], h3 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._codeception { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 3 | + | |
| 1 | 4 | ._coffeescript { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._cordova { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | + | |
| 1 | 3 | ._cppref { |
| 2 | 4 | > h2, > h3 { @extend %block-heading; } |
| 3 | 5 | > h4 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'pages/simple'; | |
| 3 | + | |
| 1 | 4 | ._crystal { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._cypress { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | + | |
| 1 | 3 | ._d { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | h3, .d_decl { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._d3 { |
| 2 | 4 | > h2 { @extend %block-heading; } |
| 3 | 5 | > h3 { @extend %block-label; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._dart { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._dojo { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._drupal { |
| 2 | 4 | h3 { @extend %block-heading; } |
| 3 | 5 | .signature { @extend %note, %note-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._elisp { |
| 2 | 4 | dl > dt { |
| 3 | 5 | @extend %block-label, %label-blue; |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._elixir { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._ember { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._erlang { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._express { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._fastapi { |
| 2 | 4 | > h2 { @extend %block-heading; } |
| 3 | 5 | > h3 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._fluture { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._git { |
| 2 | 4 | padding-left: 1rem; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._github { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._gnu_make { |
| 2 | 4 | dl dt { |
| 3 | 5 | @extend %block-label, %label-blue; |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._gnuplot { |
| 2 | 4 | .CENTER { |
| 3 | 5 | text-align: center; |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._go { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._graphite { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._groovy { |
| 2 | 4 | padding-left: 1rem; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._gtk { |
| 2 | 4 | padding-left: 1rem; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._hapi { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._haproxy { |
| 2 | 4 | padding-left: 1rem; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | + | |
| 1 | 3 | ._haskell-api { |
| 2 | 4 | > h2 { @extend %block-heading; } |
| 3 | 5 | > h3 { @extend %block-label; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._jasmine { |
| 2 | 4 | .subsection-title, h2 { @extend %block-heading; } |
| 3 | 5 | h4 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._jekyll { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._joi { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'pages/simple'; | |
| 3 | + | |
| 1 | 4 | ._jq { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._jquery { |
| 2 | 4 | // |
| 3 | 5 | // Index page |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._julia { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._knockout { |
| 2 | 4 | > h2 { @extend %block-heading; } |
| 3 | 5 | > h3 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._kotlin { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | h3 { @extend %block-label, %label-blue; } |
| @@ -1,4 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._kubectl { |
| 2 | 4 | @extend %simple; |
| 3 | − | |
| 4 | 5 | } |
| @@ -1,4 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._kubernetes { |
| 2 | 4 | @extend %simple; |
| 3 | − | |
| 4 | 5 | } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._laravel { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | h3 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._liquid { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._lit { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._love { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._lua { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._mariadb { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._mdn { |
| 2 | 4 | container-type: inline-size; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._meteor { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._mkdocs { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | h3 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._modernizr { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | h3 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._moment { |
| 2 | 4 | > h2 { @extend %block-heading; } |
| 3 | 5 | > h3 { @extend %block-label, %label-blue; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._nginx { |
| 2 | 4 | h4 { @extend %block-heading; } |
| 3 | 5 | .note { @extend %note; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._node { |
| 2 | 4 | // https://nodejs.org/api/documentation.html#stability-index |
| 3 | 5 | .api_stability { clear: both; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._npm { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._nushell { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._octave { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._openjdk { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | > .inheritance { @extend %note; } |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'pages/simple'; | |
| 3 | + | |
| 1 | 4 | ._openlayers { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | .nameContainer { |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._perl { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._phalcon { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._phaser { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | +@use 'components/content'; | |
| 3 | + | |
| 1 | 4 | ._php { |
| 2 | 5 | h1 { |
| 3 | 6 | margin-top: 0; |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._phpunit { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._postgres { |
| 2 | 4 | padding-left: 1rem; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._pug { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._pygame { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/sphinx'; | |
| 2 | + | |
| 1 | 3 | ._python { |
| 2 | 4 | @extend %sphinx; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._qt { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'pages/simple'; | |
| 3 | + | |
| 1 | 4 | ._ramda { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | +@use 'global/mixins' as m; | |
| 3 | + | |
| 1 | 4 | ._rdoc { |
| 2 | 5 | > .description, > .documentation-section { padding-left: 1rem; } |
| 3 | 6 | > .description > h2, header > h3, > h2 { @extend %block-heading; } |
| @@ -28,7 +31,7 @@ · 24 unmodified lines | ||
| 28 | 31 | |
| 29 | 32 | &:hover { text-decoration: underline; } |
| 30 | 33 | |
| 31 | − @include print { | |
| 34 | + @include m.print { | |
| 32 | 35 | display: none; |
| 33 | 36 | } |
| 34 | 37 | } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._react { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._react_native { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._reactivex { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'global/classes'; | |
| 3 | + | |
| 1 | 4 | ._redis { |
| 2 | 5 | padding-left: 1rem; |
| 3 | 6 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._rethinkdb { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | + | |
| 1 | 3 | ._rfc-pre { |
| 2 | 4 | font-size: .8125rem; |
| 3 | 5 | min-width: 38rem; |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._rubydoc { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'pages/simple'; | |
| 3 | + | |
| 1 | 4 | ._rust { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._rxjs { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._sanctuary { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._sanctuary_def { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._sanctuary_type_classes { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,7 @@ | ||
| 1 | +@use 'global/base'; | |
| 2 | +@use 'global/mixins' as m; | |
| 3 | +@use 'pages/simple'; | |
| 4 | + | |
| 1 | 5 | ._scala { |
| 2 | 6 | @extend %simple; |
| 3 | 7 | |
| @@ -22,7 +26,7 @@ · 18 unmodified lines | ||
| 22 | 26 | |
| 23 | 27 | a { padding: .4em } |
| 24 | 28 | |
| 25 | − @include print { | |
| 29 | + @include m.print { | |
| 26 | 30 | display: none; |
| 27 | 31 | } |
| 28 | 32 | } |
| @@ -36,7 +40,7 @@ · 7 unmodified lines | ||
| 36 | 40 | |
| 37 | 41 | &:hover { text-decoration: underline; } |
| 38 | 42 | |
| 39 | − @include print { | |
| 43 | + @include m.print { | |
| 40 | 44 | display: none; |
| 41 | 45 | } |
| 42 | 46 | } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | %simple { |
| 2 | 4 | padding-left: 1rem; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._sinon { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | %sphinx { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | h3 { @extend %block-label; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._sphinx_simple { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._sqlite { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._support_tables { |
| 2 | 4 | h2 { @extend %block-heading; } |
| 3 | 5 | code { @extend %label; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._tcl_tk { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._tensorflow { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._terraform { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | .note, .alert { @extend %note; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._typescript { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | .deprecated { @extend %label-red; } |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | + | |
| 1 | 3 | ._underscore { |
| 2 | 4 | padding-left: 1rem; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._vue { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._webpack { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._wordpress { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -12,4 +14,4 @@ · 8 unmodified lines | ||
| 12 | 14 | .callout-alert { |
| 13 | 15 | @extend %note, %note-orange; |
| 14 | 16 | } |
| 15 | −} | |
| 17 | +} | |
| @@ -1,3 +1,6 @@ | ||
| 1 | +@use 'global/classes'; | |
| 2 | +@use 'pages/simple'; | |
| 3 | + | |
| 1 | 4 | ._yard { |
| 2 | 5 | @extend %simple; |
| 3 | 6 | |
| @@ -1,3 +1,5 @@ | ||
| 1 | +@use 'pages/simple'; | |
| 2 | + | |
| 1 | 3 | ._yii { |
| 2 | 4 | @extend %simple; |
| 3 | 5 | |
| @@ -56,6 +56,9 @@ class SpritesCLI < Thor · 55 unmodified lines | ||
| 56 | 56 | |
| 57 | 57 | save_manifest(items, icons_per_row, 'assets/images/sprites/docs.json') |
| 58 | 58 | |
| 59 | + # SCSS wrapped in ERB templates must be compiled manually. | |
| 60 | + compile_scss_erb | |
| 61 | + | |
| 59 | 62 | if options[:remove_public_icons] |
| 60 | 63 | logger.info('Removing public/icons') |
| 61 | 64 | FileUtils.rm_rf('public/icons') |
| @@ -213,6 +216,18 @@ class SpritesCLI < Thor · 151 unmodified lines | ||
| 213 | 216 | "assets/images/sprites/docs#{size == 32 ? '@2x' : ''}.png" |
| 214 | 217 | end |
| 215 | 218 | |
| 219 | + def compile_scss_erb | |
| 220 | + scss_erb_files = Dir['assets/stylesheets/**/*.scss.erb'] | |
| 221 | + | |
| 222 | + scss_erb_files.each do |erb_path| | |
| 223 | + scss_path = erb_path.gsub('.erb', '') | |
| 224 | + File.open(scss_path, 'w') do |f| | |
| 225 | + f.write(ERB.new(File.open(erb_path).read).result) | |
| 226 | + logger.info("Compiling #{erb_path} to #{scss_path}") | |
| 227 | + end | |
| 228 | + end | |
| 229 | + end | |
| 230 | + | |
| 216 | 231 | def image_optim |
| 217 | 232 | @image_optim ||= ImageOptim.new( |
| 218 | 233 | :config_paths => [], |