bulma-rails 0.9.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +48 -14
  3. data/app/assets/stylesheets/bulma.scss +4 -0
  4. data/app/assets/stylesheets/sass/_index.scss +10 -0
  5. data/app/assets/stylesheets/sass/base/_index.scss +6 -0
  6. data/app/assets/stylesheets/sass/base/animations.scss +15 -0
  7. data/app/assets/stylesheets/sass/base/generic.scss +239 -0
  8. data/app/assets/stylesheets/sass/base/minireset.scss +92 -0
  9. data/app/assets/stylesheets/sass/base/skeleton.scss +126 -0
  10. data/app/assets/stylesheets/sass/components/_index.scss +13 -0
  11. data/app/assets/stylesheets/sass/components/breadcrumb.scss +139 -0
  12. data/app/assets/stylesheets/sass/components/card.scss +162 -0
  13. data/app/assets/stylesheets/sass/components/dropdown.scss +188 -0
  14. data/app/assets/stylesheets/sass/components/menu.scss +165 -0
  15. data/app/assets/stylesheets/sass/components/message.scss +183 -0
  16. data/app/assets/stylesheets/sass/components/modal.scss +164 -0
  17. data/app/assets/stylesheets/sass/components/navbar.scss +788 -0
  18. data/app/assets/stylesheets/sass/components/pagination.scss +379 -0
  19. data/app/assets/stylesheets/sass/components/panel.scss +218 -0
  20. data/app/assets/stylesheets/sass/components/tabs.scss +273 -0
  21. data/app/assets/stylesheets/sass/elements/_index.scss +16 -0
  22. data/app/assets/stylesheets/sass/elements/block.scss +6 -0
  23. data/app/assets/stylesheets/sass/elements/box.scss +59 -0
  24. data/app/assets/stylesheets/sass/elements/button.scss +640 -0
  25. data/app/assets/stylesheets/sass/elements/content.scss +283 -0
  26. data/app/assets/stylesheets/sass/elements/delete.scss +6 -0
  27. data/app/assets/stylesheets/sass/elements/icon.scss +67 -0
  28. data/app/assets/stylesheets/sass/elements/image.scss +62 -0
  29. data/app/assets/stylesheets/sass/elements/loader.scss +15 -0
  30. data/app/assets/stylesheets/sass/elements/notification.scss +105 -0
  31. data/app/assets/stylesheets/sass/elements/progress.scss +115 -0
  32. data/app/assets/stylesheets/sass/elements/table.scss +261 -0
  33. data/app/assets/stylesheets/sass/elements/tag.scss +219 -0
  34. data/app/assets/stylesheets/sass/elements/title.scss +128 -0
  35. data/app/assets/stylesheets/sass/form/_index.scss +9 -0
  36. data/app/assets/stylesheets/sass/form/checkbox-radio.scss +32 -0
  37. data/app/assets/stylesheets/sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/sass/form/input-textarea.scss +123 -0
  39. data/app/assets/stylesheets/sass/form/select.scss +143 -0
  40. data/app/assets/stylesheets/sass/form/shared.scss +172 -0
  41. data/app/assets/stylesheets/sass/form/tools.scss +341 -0
  42. data/app/assets/stylesheets/sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/sass/grid/columns-v2.scss +957 -0
  44. data/app/assets/stylesheets/sass/grid/columns.scss +877 -0
  45. data/app/assets/stylesheets/sass/grid/grid.scss +209 -0
  46. data/app/assets/stylesheets/sass/helpers/_index.scss +15 -0
  47. data/app/assets/stylesheets/sass/helpers/aspect-ratio.scss +10 -0
  48. data/app/assets/stylesheets/sass/helpers/border.scss +15 -0
  49. data/app/assets/stylesheets/sass/helpers/color.scss +364 -0
  50. data/app/assets/stylesheets/sass/helpers/flexbox.scss +62 -0
  51. data/app/assets/stylesheets/sass/helpers/float.scss +28 -0
  52. data/app/assets/stylesheets/sass/helpers/gap.scss +24 -0
  53. data/app/assets/stylesheets/sass/helpers/other.scss +19 -0
  54. data/app/assets/stylesheets/sass/helpers/overflow.scss +21 -0
  55. data/app/assets/stylesheets/sass/helpers/position.scss +19 -0
  56. data/app/assets/stylesheets/sass/helpers/spacing.scss +64 -0
  57. data/app/assets/stylesheets/sass/helpers/typography.scss +168 -0
  58. data/app/assets/stylesheets/sass/helpers/visibility.scss +221 -0
  59. data/app/assets/stylesheets/sass/layout/_index.scss +9 -0
  60. data/app/assets/stylesheets/sass/layout/container.scss +51 -0
  61. data/app/assets/stylesheets/sass/layout/footer.scss +23 -0
  62. data/app/assets/stylesheets/sass/layout/hero.scss +270 -0
  63. data/app/assets/stylesheets/sass/layout/level.scss +107 -0
  64. data/app/assets/stylesheets/sass/layout/media.scss +106 -0
  65. data/app/assets/stylesheets/sass/layout/section.scss +34 -0
  66. data/app/assets/stylesheets/sass/themes/_index.scss +35 -0
  67. data/app/assets/stylesheets/sass/themes/dark.scss +56 -0
  68. data/app/assets/stylesheets/sass/themes/light.scss +145 -0
  69. data/app/assets/stylesheets/sass/themes/setup.scss +174 -0
  70. data/app/assets/stylesheets/sass/utilities/_index.scss +7 -0
  71. data/app/assets/stylesheets/sass/utilities/controls.scss +85 -0
  72. data/app/assets/stylesheets/sass/utilities/css-variables.scss +425 -0
  73. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +112 -0
  74. data/app/assets/stylesheets/sass/utilities/extends.scss +34 -0
  75. data/app/assets/stylesheets/sass/utilities/functions.scss +258 -0
  76. data/app/assets/stylesheets/sass/utilities/initial-variables.scss +155 -0
  77. data/app/assets/stylesheets/sass/utilities/mixins.scss +460 -0
  78. data/bulma-rails.gemspec +4 -6
  79. metadata +84 -74
  80. data/app/assets/stylesheets/bulma.sass +0 -10
  81. data/app/assets/stylesheets/sass/base/_all.sass +0 -6
  82. data/app/assets/stylesheets/sass/base/animations.sass +0 -5
  83. data/app/assets/stylesheets/sass/base/generic.sass +0 -145
  84. data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
  85. data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
  86. data/app/assets/stylesheets/sass/components/_all.sass +0 -15
  87. data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -77
  88. data/app/assets/stylesheets/sass/components/card.sass +0 -103
  89. data/app/assets/stylesheets/sass/components/dropdown.sass +0 -83
  90. data/app/assets/stylesheets/sass/components/level.sass +0 -79
  91. data/app/assets/stylesheets/sass/components/media.sass +0 -59
  92. data/app/assets/stylesheets/sass/components/menu.sass +0 -59
  93. data/app/assets/stylesheets/sass/components/message.sass +0 -101
  94. data/app/assets/stylesheets/sass/components/modal.sass +0 -117
  95. data/app/assets/stylesheets/sass/components/navbar.sass +0 -446
  96. data/app/assets/stylesheets/sass/components/pagination.sass +0 -167
  97. data/app/assets/stylesheets/sass/components/panel.sass +0 -121
  98. data/app/assets/stylesheets/sass/components/tabs.sass +0 -176
  99. data/app/assets/stylesheets/sass/elements/_all.sass +0 -16
  100. data/app/assets/stylesheets/sass/elements/box.sass +0 -26
  101. data/app/assets/stylesheets/sass/elements/button.sass +0 -357
  102. data/app/assets/stylesheets/sass/elements/container.sass +0 -29
  103. data/app/assets/stylesheets/sass/elements/content.sass +0 -162
  104. data/app/assets/stylesheets/sass/elements/form.sass +0 -1
  105. data/app/assets/stylesheets/sass/elements/icon.sass +0 -46
  106. data/app/assets/stylesheets/sass/elements/image.sass +0 -73
  107. data/app/assets/stylesheets/sass/elements/notification.sass +0 -52
  108. data/app/assets/stylesheets/sass/elements/other.sass +0 -31
  109. data/app/assets/stylesheets/sass/elements/progress.sass +0 -73
  110. data/app/assets/stylesheets/sass/elements/table.sass +0 -134
  111. data/app/assets/stylesheets/sass/elements/tag.sass +0 -140
  112. data/app/assets/stylesheets/sass/elements/title.sass +0 -70
  113. data/app/assets/stylesheets/sass/form/_all.sass +0 -9
  114. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -22
  115. data/app/assets/stylesheets/sass/form/file.sass +0 -184
  116. data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -66
  117. data/app/assets/stylesheets/sass/form/select.sass +0 -88
  118. data/app/assets/stylesheets/sass/form/shared.sass +0 -60
  119. data/app/assets/stylesheets/sass/form/tools.sass +0 -215
  120. data/app/assets/stylesheets/sass/grid/_all.sass +0 -5
  121. data/app/assets/stylesheets/sass/grid/columns.sass +0 -513
  122. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -36
  123. data/app/assets/stylesheets/sass/helpers/_all.sass +0 -12
  124. data/app/assets/stylesheets/sass/helpers/color.sass +0 -39
  125. data/app/assets/stylesheets/sass/helpers/flexbox.sass +0 -35
  126. data/app/assets/stylesheets/sass/helpers/float.sass +0 -10
  127. data/app/assets/stylesheets/sass/helpers/other.sass +0 -14
  128. data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
  129. data/app/assets/stylesheets/sass/helpers/position.sass +0 -7
  130. data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -31
  131. data/app/assets/stylesheets/sass/helpers/typography.sass +0 -103
  132. data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
  133. data/app/assets/stylesheets/sass/layout/_all.sass +0 -6
  134. data/app/assets/stylesheets/sass/layout/footer.sass +0 -11
  135. data/app/assets/stylesheets/sass/layout/hero.sass +0 -153
  136. data/app/assets/stylesheets/sass/layout/section.sass +0 -17
  137. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -9
  138. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -1
  139. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -49
  140. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -114
  141. data/app/assets/stylesheets/sass/utilities/extends.sass +0 -25
  142. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -135
  143. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -79
  144. data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -303
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb793337dd5425144623b53744b9505ecbd6bb85d7896099f4381d70f40c00be
4
- data.tar.gz: 63b2556f401653e1a20e704154c0cde0ad7335fa8f2ba6422f4bea1913d41001
3
+ metadata.gz: c4cfbda8cfc8fffb2a18fe246b4036d7ee45a8eb3822a5f7ca22a298012730a2
4
+ data.tar.gz: a1d9891c5160e2225a5b2eff83eb48bbfe484b67a89ba12be1b223ed56f6d881
5
5
  SHA512:
6
- metadata.gz: b0992d9a411de47c501cfd01ef7a4146a4e12376463f416754e5dd8f531f1649e7906d62ef696fe131fc0acefa40d75b6685ab71fdc9f3fbbc83dcd872c828ca
7
- data.tar.gz: fe0e2ec8b2c435c9874d6119fefd697c9eb87e985ba5956567cb158cfbbe1072485c42e02d105a0cdf6b580237d5157da215c6dd7ed369da7a53c64b2ab4eae1
6
+ metadata.gz: dc4f8a1c7a3c1d58e3dbc6eb6641ea06401335aa8682f3fab7383f4c7ed6c6f30b6122c0024873c0d493818c1a06beef20448a331dddac20fc766c31b5a55b38
7
+ data.tar.gz: bd17be47f3058a805303ab5febb080f141e1528862c2b257dbb2f3c5788cba406bf483aeb1567f3d31aa1724d27ee68aaf5a6468ef293a270b23ce8ca7a8e13b
data/README.md CHANGED
@@ -1,29 +1,63 @@
1
- # bulma-rails
1
+ # Bulma Sass for Rails
2
2
 
3
- Integrates [Bulma](http://bulma.io/) with the rails asset pipeline.
4
-
5
- A modern CSS framework based on Flexbox.
3
+ [Bulma](http://bulma.io/) is a modern CSS framework based on Flexbox
4
+ that provides ready-to-use frontend components that you can easily combine
5
+ to build responsive web interfaces. It provides CSS classes to help you style your HTML code.
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
9
+ From [v 1.0.0](https://github.com/jgthms/bulma/releases/tag/1.0.0) Bulma is a full rewrite of using [Dart Sass](https://sass-lang.com/dart-sass/).
10
+
11
+ This gem integrates [Bulma](http://bulma.io/) with the rails asset pipeline.
12
+
13
+ #### For a fresh Rails application
14
+
15
+ 1. Add `gem "bulma-rails", "~> 1.0.0"` to your application's Gemfile
16
+ 2. Run `./bin/bundle add dartsass-rails`
17
+ 3. Run `./bin/rails dartsass:install`
18
+ 4. Delete default entry point `rm app/assets/stylesheets/application.css`
10
19
 
11
- gem "bulma-rails", "~> 0.9.4"
20
+ #### For a Rails application that already uses Dart Sass
12
21
 
13
- And then execute:
22
+ 1. Add `gem "bulma-rails", "~> 1.0.0"` to your application's Gemfile
23
+ 2. And then execute `bundle`
14
24
 
15
- $ bundle
25
+ #### For a Rails application that uses sassc-rails or sass-rails
26
+ 1. Delete `sassc-rails` or `sass-rails` gem from your application's Gemfile
27
+ 2. Add `gem "bulma-rails", "~> 1.0.0"` to your application's Gemfile
28
+ 3. Run `./bin/bundle add dartsass-rails`
29
+ 4. Run `./bin/rails dartsass:install`
30
+
31
+ if you encountered with `LoadError: cannot load such file -- sassc`
32
+ run `rails tmp:clear` and restarting the server.
16
33
 
17
34
  ## Usage
18
35
 
19
- To import all assets in your Rails project, add the following line to your application.scss:
20
- ``` ruby
21
- @import "bulma";
22
- ```
36
+ 1. Add `@use "bulma";` to your application.scss to load all styles.
37
+ 2. Run `rails dartsass:build` or `./bin/dev` to generated CSS output
38
+
39
+
40
+ ## Modularity
41
+ Modularity in Bulma helps to import only what you need.
42
+ As an example, Layout features like Bulma's columns can be loaded directly without requiring any additional files. Simply load the `columns.scss` file with the `@use` keyword into your `application.scss`:
43
+
44
+ @use "sass/grid/columns";
45
+
46
+ For more information about Modularity see [Modularity in bulma](https://bulma.io/documentation/start/modular/)
47
+
48
+ ## Mixins
49
+
50
+ For using mixins add the following line to your `application.scss`:
51
+
52
+ @use "sass/utilities/mixins";
53
+
54
+ For more information about Mixins see [Bulma Sass Mixins](https://bulma.io/documentation/start/modular/)
55
+
56
+ ## Helpful references
23
57
 
24
- For information about customizing Bulma,
25
- see: [Customizing with Sass](http://bulma.io/documentation/overview/customize/). As you don't need to download any files, jump to **2 Set your variables**. Beware that the example shown there uses SASS instead of SCSS syntax.
58
+ Migrating to Bulma v1 and discover what changes, see [Migrating to Bulma v1](https://bulma.io/documentation/start/migrating-to-v1/)
26
59
 
60
+ For information about customizing Bulma, see: [Bulma Customization Concepts](https://bulma.io/documentation/customize/concepts/)
27
61
 
28
62
  ## Contributing
29
63
 
@@ -0,0 +1,4 @@
1
+ @charset "utf-8";
2
+
3
+ /*! bulma.io v1.0.0 | MIT License | github.com/jgthms/bulma */
4
+ @use "sass";
@@ -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,239 @@
1
+ @use "../utilities/css-variables.scss" as cv;
2
+ @use "../utilities/mixins" as mx;
3
+
4
+ $body-background-color: cv.getVar("scheme-main") !default;
5
+ $body-size: 1em !default;
6
+ $body-min-width: 300px !default;
7
+ $body-rendering: optimizeLegibility !default;
8
+ $body-family: cv.getVar("family-primary") !default;
9
+ $body-overflow-x: hidden !default;
10
+ $body-overflow-y: scroll !default;
11
+
12
+ $body-color: cv.getVar("text") !default;
13
+ $body-font-size: 1em !default;
14
+ $body-weight: cv.getVar("weight-normal") !default;
15
+ $body-line-height: 1.5 !default;
16
+
17
+ $code-family: cv.getVar("family-code") !default;
18
+ $code-padding: 0.25em 0.5em 0.25em !default;
19
+ $code-weight: normal !default;
20
+ $code-size: 0.875em !default;
21
+
22
+ $small-font-size: 0.875em !default;
23
+
24
+ $hr-background-color: cv.getVar("background") !default;
25
+ $hr-height: 2px !default;
26
+ $hr-margin: 1.5rem 0 !default;
27
+
28
+ $strong-color: cv.getVar("text-strong") !default;
29
+ $strong-weight: cv.getVar("weight-semibold") !default;
30
+
31
+ $pre-font-size: 0.875em !default;
32
+ $pre-padding: 1.25rem 1.5rem !default;
33
+ $pre-code-font-size: 1em !default;
34
+
35
+ :root {
36
+ @include cv.register-vars(
37
+ (
38
+ "body-background-color": #{$body-background-color},
39
+ "body-size": #{$body-size},
40
+ "body-min-width": #{$body-min-width},
41
+ "body-rendering": #{$body-rendering},
42
+ "body-family": #{$body-family},
43
+ "body-overflow-x": #{$body-overflow-x},
44
+ "body-overflow-y": #{$body-overflow-y},
45
+ "body-color": #{$body-color},
46
+ "body-font-size": #{$body-font-size},
47
+ "body-weight": #{$body-weight},
48
+ "body-line-height": #{$body-line-height},
49
+ "code-family": #{$code-family},
50
+ "code-padding": #{$code-padding},
51
+ "code-weight": #{$code-weight},
52
+ "code-size": #{$code-size},
53
+ "small-font-size": #{$small-font-size},
54
+ "hr-background-color": #{$hr-background-color},
55
+ "hr-height": #{$hr-height},
56
+ "hr-margin": #{$hr-margin},
57
+ "strong-color": #{$strong-color},
58
+ "strong-weight": #{$strong-weight},
59
+ "pre-font-size": #{$pre-font-size},
60
+ "pre-padding": #{$pre-padding},
61
+ "pre-code-font-size": #{$pre-code-font-size},
62
+ )
63
+ );
64
+ }
65
+
66
+ html {
67
+ background-color: cv.getVar("body-background-color");
68
+ font-size: cv.getVar("body-size");
69
+ -moz-osx-font-smoothing: grayscale;
70
+ -webkit-font-smoothing: antialiased;
71
+ min-width: cv.getVar("body-min-width");
72
+ overflow-x: cv.getVar("body-overflow-x");
73
+ overflow-y: cv.getVar("body-overflow-y");
74
+ text-rendering: cv.getVar("body-rendering");
75
+ text-size-adjust: 100%;
76
+ }
77
+
78
+ article,
79
+ aside,
80
+ figure,
81
+ footer,
82
+ header,
83
+ hgroup,
84
+ section {
85
+ display: block;
86
+ }
87
+
88
+ body,
89
+ button,
90
+ input,
91
+ optgroup,
92
+ select,
93
+ textarea {
94
+ font-family: cv.getVar("body-family");
95
+ }
96
+
97
+ code,
98
+ pre {
99
+ -moz-osx-font-smoothing: auto;
100
+ -webkit-font-smoothing: auto;
101
+ font-family: cv.getVar("code-family");
102
+ }
103
+
104
+ body {
105
+ color: cv.getVar("body-color");
106
+ font-size: cv.getVar("body-font-size");
107
+ font-weight: cv.getVar("body-weight");
108
+ line-height: cv.getVar("body-line-height");
109
+ }
110
+
111
+ // Inline
112
+
113
+ a,
114
+ button {
115
+ cursor: pointer;
116
+
117
+ &:focus-visible {
118
+ outline-color: hsl(
119
+ cv.getVar("focus-h"),
120
+ cv.getVar("focus-s"),
121
+ cv.getVar("focus-l")
122
+ );
123
+ outline-offset: cv.getVar("focus-offset");
124
+ outline-style: cv.getVar("focus-style");
125
+ outline-width: cv.getVar("focus-width");
126
+
127
+ &:active {
128
+ outline-width: 1px;
129
+ }
130
+ }
131
+
132
+ &:active {
133
+ outline-width: 1px;
134
+ }
135
+ }
136
+
137
+ a {
138
+ color: cv.getVar("link-text");
139
+ cursor: pointer;
140
+ text-decoration: none;
141
+ transition-duration: cv.getVar("duration");
142
+ transition-property: background-color, border-color, color;
143
+
144
+ strong {
145
+ color: currentColor;
146
+ }
147
+ }
148
+
149
+ button {
150
+ @include mx.reset;
151
+ transition-duration: cv.getVar("duration");
152
+ transition-property: background-color, border-color, color;
153
+ }
154
+
155
+ code {
156
+ background-color: cv.getVar("code-background");
157
+ border-radius: 0.5em;
158
+ color: cv.getVar("code");
159
+ font-size: cv.getVar("code-size");
160
+ font-weight: cv.getVar("code-weight");
161
+ padding: cv.getVar("code-padding");
162
+ }
163
+
164
+ hr {
165
+ background-color: cv.getVar("hr-background-color");
166
+ border: none;
167
+ display: block;
168
+ height: cv.getVar("hr-height");
169
+ margin: cv.getVar("hr-margin");
170
+ }
171
+
172
+ img {
173
+ height: auto;
174
+ max-width: 100%;
175
+ }
176
+
177
+ input[type="checkbox"],
178
+ input[type="radio"] {
179
+ vertical-align: baseline;
180
+ }
181
+
182
+ small {
183
+ font-size: cv.getVar("small-font-size");
184
+ }
185
+
186
+ span {
187
+ font-style: inherit;
188
+ font-weight: inherit;
189
+ }
190
+
191
+ strong {
192
+ color: cv.getVar("strong-color");
193
+ font-weight: cv.getVar("strong-weight");
194
+ }
195
+
196
+ svg {
197
+ height: auto;
198
+ width: auto;
199
+ }
200
+
201
+ // Block
202
+
203
+ fieldset {
204
+ border: none;
205
+ }
206
+
207
+ pre {
208
+ @include mx.overflow-touch;
209
+
210
+ background-color: cv.getVar("pre-background");
211
+ color: cv.getVar("pre");
212
+ font-size: cv.getVar("pre-font-size");
213
+ overflow-x: auto;
214
+ padding: cv.getVar("pre-padding");
215
+ white-space: pre;
216
+ word-wrap: normal;
217
+
218
+ code {
219
+ background-color: transparent;
220
+ color: currentColor;
221
+ font-size: cv.getVar("pre-code-font-size");
222
+ padding: 0;
223
+ }
224
+ }
225
+
226
+ table {
227
+ td,
228
+ th {
229
+ vertical-align: top;
230
+
231
+ &:not([align]) {
232
+ text-align: inherit;
233
+ }
234
+ }
235
+
236
+ th {
237
+ color: cv.getVar("text-strong");
238
+ }
239
+ }
@@ -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,126 @@
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
+ :root {
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
+ }
115
+
116
+ .#{iv.$class-prefix}skeleton {
117
+ background-image: linear-gradient(
118
+ 0deg,
119
+ transparent 0%,
120
+ transparent 50%,
121
+ #f60 50%,
122
+ #f60 100%
123
+ );
124
+ background-position: top left;
125
+ background-size: 1.5em;
126
+ }
@@ -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";