tokite 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/assets/stylesheets/tokite/application.scss +3 -23
  4. data/app/views/layouts/tokite/application.html.haml +1 -2
  5. data/lib/tasks/{tokite.rake → ridgepole.rake} +4 -11
  6. data/lib/tasks/stylesheet.rake +23 -0
  7. data/lib/tokite/engine.rb +12 -0
  8. data/lib/tokite/version.rb +1 -1
  9. data/vendor/README.md +1 -0
  10. data/vendor/stylesheets/tokite/bulma/LICENSE +21 -0
  11. data/vendor/stylesheets/tokite/bulma/sass/_index.scss +10 -0
  12. data/vendor/stylesheets/tokite/bulma/sass/base/_index.scss +6 -0
  13. data/vendor/stylesheets/tokite/bulma/sass/base/animations.scss +15 -0
  14. data/vendor/stylesheets/tokite/bulma/sass/base/generic.scss +240 -0
  15. data/vendor/stylesheets/tokite/bulma/sass/base/minireset.scss +92 -0
  16. data/vendor/stylesheets/tokite/bulma/sass/base/skeleton.scss +114 -0
  17. data/vendor/stylesheets/tokite/bulma/sass/components/_index.scss +13 -0
  18. data/vendor/stylesheets/tokite/bulma/sass/components/breadcrumb.scss +139 -0
  19. data/vendor/stylesheets/tokite/bulma/sass/components/card.scss +162 -0
  20. data/vendor/stylesheets/tokite/bulma/sass/components/dropdown.scss +188 -0
  21. data/vendor/stylesheets/tokite/bulma/sass/components/menu.scss +165 -0
  22. data/vendor/stylesheets/tokite/bulma/sass/components/message.scss +183 -0
  23. data/vendor/stylesheets/tokite/bulma/sass/components/modal.scss +164 -0
  24. data/vendor/stylesheets/tokite/bulma/sass/components/navbar.scss +799 -0
  25. data/vendor/stylesheets/tokite/bulma/sass/components/pagination.scss +379 -0
  26. data/vendor/stylesheets/tokite/bulma/sass/components/panel.scss +218 -0
  27. data/vendor/stylesheets/tokite/bulma/sass/components/tabs.scss +273 -0
  28. data/vendor/stylesheets/tokite/bulma/sass/elements/_index.scss +16 -0
  29. data/vendor/stylesheets/tokite/bulma/sass/elements/block.scss +6 -0
  30. data/vendor/stylesheets/tokite/bulma/sass/elements/box.scss +59 -0
  31. data/vendor/stylesheets/tokite/bulma/sass/elements/button.scss +659 -0
  32. data/vendor/stylesheets/tokite/bulma/sass/elements/content.scss +289 -0
  33. data/vendor/stylesheets/tokite/bulma/sass/elements/delete.scss +6 -0
  34. data/vendor/stylesheets/tokite/bulma/sass/elements/icon.scss +67 -0
  35. data/vendor/stylesheets/tokite/bulma/sass/elements/image.scss +64 -0
  36. data/vendor/stylesheets/tokite/bulma/sass/elements/loader.scss +15 -0
  37. data/vendor/stylesheets/tokite/bulma/sass/elements/notification.scss +105 -0
  38. data/vendor/stylesheets/tokite/bulma/sass/elements/progress.scss +115 -0
  39. data/vendor/stylesheets/tokite/bulma/sass/elements/table.scss +261 -0
  40. data/vendor/stylesheets/tokite/bulma/sass/elements/tag.scss +219 -0
  41. data/vendor/stylesheets/tokite/bulma/sass/elements/title.scss +130 -0
  42. data/vendor/stylesheets/tokite/bulma/sass/form/_index.scss +9 -0
  43. data/vendor/stylesheets/tokite/bulma/sass/form/checkbox-radio.scss +36 -0
  44. data/vendor/stylesheets/tokite/bulma/sass/form/file.scss +330 -0
  45. data/vendor/stylesheets/tokite/bulma/sass/form/input-textarea.scss +115 -0
  46. data/vendor/stylesheets/tokite/bulma/sass/form/select.scss +144 -0
  47. data/vendor/stylesheets/tokite/bulma/sass/form/shared.scss +178 -0
  48. data/vendor/stylesheets/tokite/bulma/sass/form/tools.scss +352 -0
  49. data/vendor/stylesheets/tokite/bulma/sass/grid/_index.scss +5 -0
  50. data/vendor/stylesheets/tokite/bulma/sass/grid/columns.scss +961 -0
  51. data/vendor/stylesheets/tokite/bulma/sass/grid/grid.scss +209 -0
  52. data/vendor/stylesheets/tokite/bulma/sass/helpers/_index.scss +15 -0
  53. data/vendor/stylesheets/tokite/bulma/sass/helpers/aspect-ratio.scss +12 -0
  54. data/vendor/stylesheets/tokite/bulma/sass/helpers/border.scss +15 -0
  55. data/vendor/stylesheets/tokite/bulma/sass/helpers/color.scss +344 -0
  56. data/vendor/stylesheets/tokite/bulma/sass/helpers/flexbox.scss +62 -0
  57. data/vendor/stylesheets/tokite/bulma/sass/helpers/float.scss +28 -0
  58. data/vendor/stylesheets/tokite/bulma/sass/helpers/gap.scss +24 -0
  59. data/vendor/stylesheets/tokite/bulma/sass/helpers/other.scss +19 -0
  60. data/vendor/stylesheets/tokite/bulma/sass/helpers/overflow.scss +21 -0
  61. data/vendor/stylesheets/tokite/bulma/sass/helpers/position.scss +19 -0
  62. data/vendor/stylesheets/tokite/bulma/sass/helpers/spacing.scss +64 -0
  63. data/vendor/stylesheets/tokite/bulma/sass/helpers/typography.scss +174 -0
  64. data/vendor/stylesheets/tokite/bulma/sass/helpers/visibility.scss +221 -0
  65. data/vendor/stylesheets/tokite/bulma/sass/layout/_index.scss +9 -0
  66. data/vendor/stylesheets/tokite/bulma/sass/layout/container.scss +59 -0
  67. data/vendor/stylesheets/tokite/bulma/sass/layout/footer.scss +23 -0
  68. data/vendor/stylesheets/tokite/bulma/sass/layout/hero.scss +273 -0
  69. data/vendor/stylesheets/tokite/bulma/sass/layout/level.scss +107 -0
  70. data/vendor/stylesheets/tokite/bulma/sass/layout/media.scss +106 -0
  71. data/vendor/stylesheets/tokite/bulma/sass/layout/section.scss +38 -0
  72. data/vendor/stylesheets/tokite/bulma/sass/themes/_index.scss +36 -0
  73. data/vendor/stylesheets/tokite/bulma/sass/themes/dark.scss +57 -0
  74. data/vendor/stylesheets/tokite/bulma/sass/themes/light.scss +147 -0
  75. data/vendor/stylesheets/tokite/bulma/sass/themes/setup.scss +174 -0
  76. data/vendor/stylesheets/tokite/bulma/sass/utilities/_index.scss +7 -0
  77. data/vendor/stylesheets/tokite/bulma/sass/utilities/controls.scss +85 -0
  78. data/vendor/stylesheets/tokite/bulma/sass/utilities/css-variables.scss +502 -0
  79. data/vendor/stylesheets/tokite/bulma/sass/utilities/derived-variables.scss +112 -0
  80. data/vendor/stylesheets/tokite/bulma/sass/utilities/extends.scss +34 -0
  81. data/vendor/stylesheets/tokite/bulma/sass/utilities/functions.scss +310 -0
  82. data/vendor/stylesheets/tokite/bulma/sass/utilities/initial-variables.scss +157 -0
  83. data/vendor/stylesheets/tokite/bulma/sass/utilities/mixins.scss +462 -0
  84. metadata +94 -21
  85. data/app/assets/config/tokite_manifest.js +0 -3
  86. data/app/assets/javascripts/tokite/application.js +0 -1
  87. data/lib/tasks/yarn.rake +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c2d826563734d2a9367d2edc7bd1944f01699741ab707d064b27c31766eb2ad
4
- data.tar.gz: 9f894494013fa308c8191c0e0f048464bfd20f40ff6793c8bf22a29ba8cab15e
3
+ metadata.gz: dc37cc8504c8f6e99a888c5e95fb615ad501d07a3bbaf7dc5a9cfb79e128a6b9
4
+ data.tar.gz: a644b121fbc9029c52b5ca1ef262a5f158e87332c4815cfc12a04918002c2690
5
5
  SHA512:
6
- metadata.gz: 4ceb1262c72d7aee9e4b3abdeee75fcf96e8fc3f2d2aab4fbc76155b72d6cc464ef42c1c9558369607eb1eb058dd072674fa63764d118fd34f167d1d19d8f4b7
7
- data.tar.gz: 0c42bd10d19ec9e9affd4004da12924ccab344e5b222aabb717a6ee96b9f692ec505f76953f92ebb43096ac66f3f967b91be602df243350c48d30a3254a68728
6
+ metadata.gz: ea44fdcafcc8f024ca37f55005016eda1649cd19473a75b70bfe14471f9db776b35e9d029f0f7c0a7d24f3f7c0f9de2c89eb2b5eb1d1f6524ef01b589ed4828a
7
+ data.tar.gz: 38df2defc91afcb321d083ae35c066bb89670260faa4ec8f3f9ece9bee96e686a64889813b6e484396051f0275f4b09bda5df7321d802b2df81bee7641434556
data/README.md CHANGED
@@ -28,9 +28,9 @@ $ ./bin/rails app:tokite:ridgepole:apply
28
28
  $ RAILS_ENV=test ./bin/rails app:tokite:ridgepole:apply
29
29
  ```
30
30
 
31
- ### Setup yarn pkg
31
+ ### Download CSS files
32
32
  ```console
33
- $ ./bin/rails tokite:yarn:install
33
+ $ ./bin/rails app:tokite:stylesheet:install
34
34
  ```
35
35
 
36
36
  ## Configuration
@@ -1,23 +1,3 @@
1
- @import "bulma/sass/utilities/initial-variables";
2
-
3
- // Bootstrap-like colors
4
- $white: #fff;
5
- $black: #000;
6
- $red: #d9534f;
7
- $orange: #f0ad4e;
8
- $yellow: #ffd500;
9
- $green: #5cb85c;
10
- $blue: #0275d8;
11
- $teal: #5bc0de;
12
- $pink: #ff5b77;
13
- $purple: #613d7c;
14
-
15
- $primary: $blue;
16
- $info: $teal;
17
- $success: $green;
18
- $warning: $orange;
19
- $danger: $red;
20
- $dark: $grey-darker;
21
- $text: $grey-dark;
22
-
23
- @import "bulma/bulma";
1
+ @use "tokite/bulma/sass" with (
2
+ $primary: rgb(2 117 216),
3
+ );
@@ -4,8 +4,7 @@
4
4
  %title Tokite
5
5
  = csrf_meta_tags
6
6
 
7
- = stylesheet_link_tag 'tokite/application', media: 'all'
8
- = javascript_include_tag 'tokite/application'
7
+ = stylesheet_link_tag 'tokite/application', media: 'all'
9
8
 
10
9
  %body
11
10
  - if current_user
@@ -3,11 +3,11 @@ namespace :tokite do
3
3
  def engine_path(file)
4
4
  Tokite::Engine.root.join(file).to_s
5
5
  end
6
-
6
+
7
7
  def app_path(file)
8
8
  Rails.root.join(file).to_s
9
9
  end
10
-
10
+
11
11
  def ridgepole_exec(*args)
12
12
  yml = Rails.root.join("config/database.yml").to_s
13
13
  sh "bundle", "exec", "ridgepole", "-c", yml, "-E", Rails.env, *args
@@ -17,12 +17,12 @@ namespace :tokite do
17
17
  task :apply do
18
18
  ridgepole_exec("--file", app_path("schema/Schemafile"), "-a")
19
19
  end
20
-
20
+
21
21
  desc "Apply Schemafile (dry-run)"
22
22
  task :"dry-run" do
23
23
  ridgepole_exec("--file", app_path("schema/Schemafile"), "-a", "--dry-run")
24
24
  end
25
-
25
+
26
26
  desc "Install schema"
27
27
  task :install do
28
28
  schema_dir = app_path("schema")
@@ -41,11 +41,4 @@ namespace :tokite do
41
41
  end
42
42
  end
43
43
  end
44
-
45
- namespace :yarn do
46
- desc "Install yarn packages"
47
- task :install do
48
- sh "yarn", "add", "bulma"
49
- end
50
- end
51
44
  end
@@ -0,0 +1,23 @@
1
+ namespace :tokite do
2
+ namespace :stylesheet do
3
+ desc "Download stylesheets under the vendor directory"
4
+ task :install do
5
+ vendor_dir = Tokite::Engine.root.join("vendor", "stylesheets", "tokite")
6
+ rm_rf(vendor_dir)
7
+ mkdir_p(vendor_dir)
8
+
9
+ tmp_dir = Tokite::Engine.root.join("tmp")
10
+ mkdir_p(tmp_dir)
11
+
12
+ # Bulma
13
+ version = "1.0.4"
14
+ bulma_url = "https://github.com/jgthms/bulma/releases/download/#{version}/bulma-#{version}.zip"
15
+ bulma_zip = tmp_dir.join("bulma.zip")
16
+ bulma_dir = vendor_dir.join("bulma")
17
+ mkdir_p(bulma_dir.join("sass"))
18
+ sh "curl -sSfL -o '#{bulma_zip}' '#{bulma_url}'"
19
+ sh "tar xf '#{bulma_zip}' --strip-components 2 -C '#{bulma_dir.join("sass")}' 'bulma/sass'"
20
+ sh "tar xf '#{bulma_zip}' --strip-components 1 -C '#{bulma_dir}' 'bulma/LICENSE'"
21
+ end
22
+ end
23
+ end
data/lib/tokite/engine.rb CHANGED
@@ -3,12 +3,24 @@ module Tokite
3
3
  isolate_namespace Tokite
4
4
 
5
5
  config.before_configuration do
6
+ require "dartsass-rails"
6
7
  require "haml-rails"
8
+ require "propshaft"
7
9
  require "slack-notifier"
8
10
  end
9
11
 
10
12
  initializer "tokite.config" do
11
13
  Tokite::Engine.routes.default_url_options = { protocol: "https", host: ENV.fetch("APP_HOST", "example.com") }
12
14
  end
15
+
16
+ initializer "tokite.assets" do |app|
17
+ if app.config.respond_to?(:assets)
18
+ app.config.assets.paths << Engine.root.join("vendor", "stylesheets")
19
+ end
20
+
21
+ app.config.dartsass.builds.merge!({
22
+ Engine.root.join("app", "assets", "stylesheets", "tokite", "application.scss") => "tokite/application.css",
23
+ })
24
+ end
13
25
  end
14
26
  end
@@ -1,3 +1,3 @@
1
1
  module Tokite
2
- VERSION = '0.8.1'
2
+ VERSION = '0.9.0'
3
3
  end
data/vendor/README.md ADDED
@@ -0,0 +1 @@
1
+ Files under this directory is a collection of redistribution of dependencies. Each file is redistributed under its license.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Jeremy Thomas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,10 @@
1
+ @forward "utilities";
2
+ @forward "themes";
3
+ @forward "base";
4
+ @forward "elements";
5
+ @forward "form";
6
+ @forward "components";
7
+ @forward "grid";
8
+ @forward "layout";
9
+ @forward "base/skeleton";
10
+ @forward "helpers";
@@ -0,0 +1,6 @@
1
+ /* Bulma Base */
2
+ @charset "utf-8";
3
+
4
+ @forward "minireset";
5
+ @forward "generic";
6
+ @forward "animations";
@@ -0,0 +1,15 @@
1
+ @keyframes spinAround {
2
+ from {
3
+ transform: rotate(0deg);
4
+ }
5
+
6
+ to {
7
+ transform: rotate(359deg);
8
+ }
9
+ }
10
+
11
+ @keyframes pulsate {
12
+ 50% {
13
+ opacity: 0.5;
14
+ }
15
+ }
@@ -0,0 +1,240 @@
1
+ @use "../utilities/initial-variables" as iv;
2
+ @use "../utilities/css-variables.scss" as cv;
3
+ @use "../utilities/mixins" as mx;
4
+
5
+ $body-background-color: cv.getVar("scheme-main") !default;
6
+ $body-size: 1em !default;
7
+ $body-min-width: 300px !default;
8
+ $body-rendering: optimizeLegibility !default;
9
+ $body-family: cv.getVar("family-primary") !default;
10
+ $body-overflow-x: hidden !default;
11
+ $body-overflow-y: scroll !default;
12
+
13
+ $body-color: cv.getVar("text") !default;
14
+ $body-font-size: 1em !default;
15
+ $body-weight: cv.getVar("weight-normal") !default;
16
+ $body-line-height: 1.5 !default;
17
+
18
+ $code-family: cv.getVar("family-code") !default;
19
+ $code-padding: 0.25em 0.5em 0.25em !default;
20
+ $code-weight: normal !default;
21
+ $code-size: 0.875em !default;
22
+
23
+ $small-font-size: 0.875em !default;
24
+
25
+ $hr-background-color: cv.getVar("background") !default;
26
+ $hr-height: 2px !default;
27
+ $hr-margin: 1.5rem 0 !default;
28
+
29
+ $strong-color: cv.getVar("text-strong") !default;
30
+ $strong-weight: cv.getVar("weight-semibold") !default;
31
+
32
+ $pre-font-size: 0.875em !default;
33
+ $pre-padding: 1.25rem 1.5rem !default;
34
+ $pre-code-font-size: 1em !default;
35
+
36
+ #{iv.$variables-host} {
37
+ @include cv.register-vars(
38
+ (
39
+ "body-background-color": #{$body-background-color},
40
+ "body-size": #{$body-size},
41
+ "body-min-width": #{$body-min-width},
42
+ "body-rendering": #{$body-rendering},
43
+ "body-family": #{$body-family},
44
+ "body-overflow-x": #{$body-overflow-x},
45
+ "body-overflow-y": #{$body-overflow-y},
46
+ "body-color": #{$body-color},
47
+ "body-font-size": #{$body-font-size},
48
+ "body-weight": #{$body-weight},
49
+ "body-line-height": #{$body-line-height},
50
+ "code-family": #{$code-family},
51
+ "code-padding": #{$code-padding},
52
+ "code-weight": #{$code-weight},
53
+ "code-size": #{$code-size},
54
+ "small-font-size": #{$small-font-size},
55
+ "hr-background-color": #{$hr-background-color},
56
+ "hr-height": #{$hr-height},
57
+ "hr-margin": #{$hr-margin},
58
+ "strong-color": #{$strong-color},
59
+ "strong-weight": #{$strong-weight},
60
+ "pre-font-size": #{$pre-font-size},
61
+ "pre-padding": #{$pre-padding},
62
+ "pre-code-font-size": #{$pre-code-font-size},
63
+ )
64
+ );
65
+ }
66
+
67
+ html {
68
+ background-color: cv.getVar("body-background-color");
69
+ font-size: cv.getVar("body-size");
70
+ -moz-osx-font-smoothing: grayscale;
71
+ -webkit-font-smoothing: antialiased;
72
+ min-width: cv.getVar("body-min-width");
73
+ overflow-x: cv.getVar("body-overflow-x");
74
+ overflow-y: cv.getVar("body-overflow-y");
75
+ text-rendering: cv.getVar("body-rendering");
76
+ text-size-adjust: 100%;
77
+ }
78
+
79
+ article,
80
+ aside,
81
+ figure,
82
+ footer,
83
+ header,
84
+ hgroup,
85
+ section {
86
+ display: block;
87
+ }
88
+
89
+ body,
90
+ button,
91
+ input,
92
+ optgroup,
93
+ select,
94
+ textarea {
95
+ font-family: cv.getVar("body-family");
96
+ }
97
+
98
+ code,
99
+ pre {
100
+ -moz-osx-font-smoothing: auto;
101
+ -webkit-font-smoothing: auto;
102
+ font-family: cv.getVar("code-family");
103
+ }
104
+
105
+ body {
106
+ color: cv.getVar("body-color");
107
+ font-size: cv.getVar("body-font-size");
108
+ font-weight: cv.getVar("body-weight");
109
+ line-height: cv.getVar("body-line-height");
110
+ }
111
+
112
+ // Inline
113
+
114
+ a,
115
+ button {
116
+ cursor: pointer;
117
+
118
+ &:focus-visible {
119
+ outline-color: hsl(
120
+ cv.getVar("focus-h"),
121
+ cv.getVar("focus-s"),
122
+ cv.getVar("focus-l")
123
+ );
124
+ outline-offset: cv.getVar("focus-offset");
125
+ outline-style: cv.getVar("focus-style");
126
+ outline-width: cv.getVar("focus-width");
127
+
128
+ &:active {
129
+ outline-width: 1px;
130
+ }
131
+ }
132
+
133
+ &:active {
134
+ outline-width: 1px;
135
+ }
136
+ }
137
+
138
+ a {
139
+ color: cv.getVar("link-text");
140
+ cursor: pointer;
141
+ text-decoration: none;
142
+ transition-duration: cv.getVar("duration");
143
+ transition-property: background-color, border-color, color;
144
+
145
+ strong {
146
+ color: currentColor;
147
+ }
148
+ }
149
+
150
+ button {
151
+ @include mx.reset;
152
+ transition-duration: cv.getVar("duration");
153
+ transition-property: background-color, border-color, color;
154
+ }
155
+
156
+ code {
157
+ background-color: cv.getVar("code-background");
158
+ border-radius: 0.5em;
159
+ color: cv.getVar("code");
160
+ font-size: cv.getVar("code-size");
161
+ font-weight: cv.getVar("code-weight");
162
+ padding: cv.getVar("code-padding");
163
+ }
164
+
165
+ hr {
166
+ background-color: cv.getVar("hr-background-color");
167
+ border: none;
168
+ display: block;
169
+ height: cv.getVar("hr-height");
170
+ margin: cv.getVar("hr-margin");
171
+ }
172
+
173
+ img {
174
+ height: auto;
175
+ max-width: 100%;
176
+ }
177
+
178
+ input[type="checkbox"],
179
+ input[type="radio"] {
180
+ vertical-align: baseline;
181
+ }
182
+
183
+ small {
184
+ font-size: cv.getVar("small-font-size");
185
+ }
186
+
187
+ span {
188
+ font-style: inherit;
189
+ font-weight: inherit;
190
+ }
191
+
192
+ strong {
193
+ color: cv.getVar("strong-color");
194
+ font-weight: cv.getVar("strong-weight");
195
+ }
196
+
197
+ svg {
198
+ height: auto;
199
+ width: auto;
200
+ }
201
+
202
+ // Block
203
+
204
+ fieldset {
205
+ border: none;
206
+ }
207
+
208
+ pre {
209
+ @include mx.overflow-touch;
210
+
211
+ background-color: cv.getVar("pre-background");
212
+ color: cv.getVar("pre");
213
+ font-size: cv.getVar("pre-font-size");
214
+ overflow-x: auto;
215
+ padding: cv.getVar("pre-padding");
216
+ white-space: pre;
217
+ word-wrap: normal;
218
+
219
+ code {
220
+ background-color: transparent;
221
+ color: currentColor;
222
+ font-size: cv.getVar("pre-code-font-size");
223
+ padding: 0;
224
+ }
225
+ }
226
+
227
+ table {
228
+ td,
229
+ th {
230
+ vertical-align: top;
231
+
232
+ &:not([align]) {
233
+ text-align: inherit;
234
+ }
235
+ }
236
+
237
+ th {
238
+ color: cv.getVar("text-strong");
239
+ }
240
+ }
@@ -0,0 +1,92 @@
1
+ /*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
2
+ // Blocks
3
+ html,
4
+ body,
5
+ p,
6
+ ol,
7
+ ul,
8
+ li,
9
+ dl,
10
+ dt,
11
+ dd,
12
+ blockquote,
13
+ figure,
14
+ fieldset,
15
+ legend,
16
+ textarea,
17
+ pre,
18
+ iframe,
19
+ hr,
20
+ h1,
21
+ h2,
22
+ h3,
23
+ h4,
24
+ h5,
25
+ h6 {
26
+ margin: 0;
27
+ padding: 0;
28
+ }
29
+
30
+ // Headings
31
+ h1,
32
+ h2,
33
+ h3,
34
+ h4,
35
+ h5,
36
+ h6 {
37
+ font-size: 100%;
38
+ font-weight: normal;
39
+ }
40
+
41
+ // List
42
+ ul {
43
+ list-style: none;
44
+ }
45
+
46
+ // Form
47
+ button,
48
+ input,
49
+ select,
50
+ textarea {
51
+ margin: 0;
52
+ }
53
+
54
+ // Box sizing
55
+ html {
56
+ box-sizing: border-box;
57
+ }
58
+
59
+ * {
60
+ &,
61
+ &::before,
62
+ &::after {
63
+ box-sizing: inherit;
64
+ }
65
+ }
66
+
67
+ // Media
68
+ img,
69
+ video {
70
+ height: auto;
71
+ max-width: 100%;
72
+ }
73
+
74
+ // Iframe
75
+ iframe {
76
+ border: 0;
77
+ }
78
+
79
+ // Table
80
+ table {
81
+ border-collapse: collapse;
82
+ border-spacing: 0;
83
+ }
84
+
85
+ td,
86
+ th {
87
+ padding: 0;
88
+
89
+ &:not([align]) {
90
+ text-align: inherit;
91
+ }
92
+ }
@@ -0,0 +1,114 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/initial-variables" as iv;
3
+ @use "../utilities/mixins" as mx;
4
+ @use "../utilities/extends";
5
+
6
+ $skeleton-background: cv.getVar("border") !default;
7
+ $skeleton-radius: cv.getVar("radius-small") !default;
8
+ $skeleton-block-min-height: 4.5em !default;
9
+ $skeleton-lines-gap: 0.75em !default;
10
+ $skeleton-line-height: 0.75em !default;
11
+
12
+ #{iv.$variables-host} {
13
+ @include cv.register-vars(
14
+ (
15
+ "skeleton-background": #{$skeleton-background},
16
+ "skeleton-radius": #{$skeleton-radius},
17
+ "skeleton-block-min-height": #{$skeleton-block-min-height},
18
+ "skeleton-lines-gap": #{$skeleton-lines-gap},
19
+ "skeleton-line-height": #{$skeleton-line-height},
20
+ )
21
+ );
22
+ }
23
+
24
+ %skeleton-pulsation {
25
+ animation-duration: 2s;
26
+ animation-iteration-count: infinite;
27
+ animation-name: pulsate;
28
+ animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
29
+ background-color: cv.getVar("skeleton-background");
30
+ border-radius: cv.getVar("skeleton-radius");
31
+ box-shadow: none;
32
+ pointer-events: none;
33
+ }
34
+
35
+ .#{iv.$class-prefix}is-skeleton {
36
+ @extend %skeleton-pulsation;
37
+ color: transparent !important;
38
+
39
+ em,
40
+ strong {
41
+ color: inherit;
42
+ }
43
+
44
+ img {
45
+ visibility: hidden;
46
+ }
47
+
48
+ &.#{iv.$class-prefix}checkbox {
49
+ input {
50
+ opacity: 0;
51
+ }
52
+ }
53
+
54
+ &.#{iv.$class-prefix}delete {
55
+ border-radius: cv.getVar("radius-rounded");
56
+
57
+ &::before,
58
+ &::after {
59
+ display: none;
60
+ }
61
+ }
62
+ }
63
+
64
+ input.#{iv.$class-prefix}is-skeleton,
65
+ textarea.#{iv.$class-prefix}is-skeleton {
66
+ resize: none;
67
+
68
+ @include mx.placeholder {
69
+ color: transparent !important;
70
+ }
71
+ }
72
+
73
+ .#{iv.$class-prefix}has-skeleton {
74
+ color: transparent !important;
75
+ position: relative;
76
+
77
+ &::after {
78
+ @extend %skeleton-pulsation;
79
+ content: "";
80
+ display: block;
81
+ height: 100%;
82
+ left: 0;
83
+ max-width: 100%;
84
+ min-width: 10%;
85
+ position: absolute;
86
+ top: 0;
87
+ width: 7em;
88
+ }
89
+ }
90
+
91
+ .#{iv.$class-prefix}skeleton-block {
92
+ @extend %block;
93
+ @extend %skeleton-pulsation;
94
+ color: transparent !important;
95
+ min-height: cv.getVar("skeleton-block-min-height");
96
+ }
97
+
98
+ .#{iv.$class-prefix}skeleton-lines {
99
+ color: transparent !important;
100
+ display: flex;
101
+ flex-direction: column;
102
+ gap: cv.getVar("skeleton-lines-gap");
103
+ position: relative;
104
+
105
+ > div {
106
+ @extend %skeleton-pulsation;
107
+ height: cv.getVar("skeleton-line-height");
108
+
109
+ &:last-child {
110
+ min-width: 4em;
111
+ width: 30%;
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,13 @@
1
+ /* Bulma Components */
2
+ @charset "utf-8";
3
+
4
+ @forward "breadcrumb";
5
+ @forward "card";
6
+ @forward "dropdown";
7
+ @forward "menu";
8
+ @forward "message";
9
+ @forward "modal";
10
+ @forward "navbar";
11
+ @forward "pagination";
12
+ @forward "panel";
13
+ @forward "tabs";