bulma-rails 0.9.4 → 1.0.4

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +86 -13
  3. data/app/assets/stylesheets/bulma.scss +4 -0
  4. data/app/assets/stylesheets/bulma_sass/_index.scss +10 -0
  5. data/app/assets/stylesheets/bulma_sass/base/_index.scss +6 -0
  6. data/app/assets/stylesheets/bulma_sass/base/animations.scss +15 -0
  7. data/app/assets/stylesheets/bulma_sass/base/generic.scss +240 -0
  8. data/app/assets/stylesheets/bulma_sass/base/minireset.scss +92 -0
  9. data/app/assets/stylesheets/bulma_sass/base/skeleton.scss +114 -0
  10. data/app/assets/stylesheets/bulma_sass/components/_index.scss +13 -0
  11. data/app/assets/stylesheets/bulma_sass/components/breadcrumb.scss +139 -0
  12. data/app/assets/stylesheets/bulma_sass/components/card.scss +162 -0
  13. data/app/assets/stylesheets/bulma_sass/components/dropdown.scss +188 -0
  14. data/app/assets/stylesheets/bulma_sass/components/menu.scss +165 -0
  15. data/app/assets/stylesheets/bulma_sass/components/message.scss +183 -0
  16. data/app/assets/stylesheets/bulma_sass/components/modal.scss +164 -0
  17. data/app/assets/stylesheets/bulma_sass/components/navbar.scss +799 -0
  18. data/app/assets/stylesheets/bulma_sass/components/pagination.scss +379 -0
  19. data/app/assets/stylesheets/bulma_sass/components/panel.scss +218 -0
  20. data/app/assets/stylesheets/bulma_sass/components/tabs.scss +273 -0
  21. data/app/assets/stylesheets/bulma_sass/elements/_index.scss +16 -0
  22. data/app/assets/stylesheets/bulma_sass/elements/block.scss +6 -0
  23. data/app/assets/stylesheets/bulma_sass/elements/box.scss +59 -0
  24. data/app/assets/stylesheets/bulma_sass/elements/button.scss +659 -0
  25. data/app/assets/stylesheets/bulma_sass/elements/content.scss +289 -0
  26. data/app/assets/stylesheets/bulma_sass/elements/delete.scss +6 -0
  27. data/app/assets/stylesheets/bulma_sass/elements/icon.scss +67 -0
  28. data/app/assets/stylesheets/bulma_sass/elements/image.scss +64 -0
  29. data/app/assets/stylesheets/bulma_sass/elements/loader.scss +15 -0
  30. data/app/assets/stylesheets/bulma_sass/elements/notification.scss +105 -0
  31. data/app/assets/stylesheets/bulma_sass/elements/progress.scss +115 -0
  32. data/app/assets/stylesheets/bulma_sass/elements/table.scss +261 -0
  33. data/app/assets/stylesheets/bulma_sass/elements/tag.scss +219 -0
  34. data/app/assets/stylesheets/bulma_sass/elements/title.scss +130 -0
  35. data/app/assets/stylesheets/bulma_sass/form/_index.scss +9 -0
  36. data/app/assets/stylesheets/bulma_sass/form/checkbox-radio.scss +36 -0
  37. data/app/assets/stylesheets/bulma_sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/bulma_sass/form/input-textarea.scss +115 -0
  39. data/app/assets/stylesheets/bulma_sass/form/select.scss +144 -0
  40. data/app/assets/stylesheets/bulma_sass/form/shared.scss +178 -0
  41. data/app/assets/stylesheets/bulma_sass/form/tools.scss +352 -0
  42. data/app/assets/stylesheets/bulma_sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/bulma_sass/grid/columns.scss +961 -0
  44. data/app/assets/stylesheets/bulma_sass/grid/grid.scss +209 -0
  45. data/app/assets/stylesheets/bulma_sass/helpers/_index.scss +15 -0
  46. data/app/assets/stylesheets/bulma_sass/helpers/aspect-ratio.scss +12 -0
  47. data/app/assets/stylesheets/bulma_sass/helpers/border.scss +15 -0
  48. data/app/assets/stylesheets/bulma_sass/helpers/color.scss +344 -0
  49. data/app/assets/stylesheets/bulma_sass/helpers/flexbox.scss +62 -0
  50. data/app/assets/stylesheets/bulma_sass/helpers/float.scss +28 -0
  51. data/app/assets/stylesheets/bulma_sass/helpers/gap.scss +24 -0
  52. data/app/assets/stylesheets/bulma_sass/helpers/other.scss +19 -0
  53. data/app/assets/stylesheets/bulma_sass/helpers/overflow.scss +21 -0
  54. data/app/assets/stylesheets/bulma_sass/helpers/position.scss +19 -0
  55. data/app/assets/stylesheets/bulma_sass/helpers/spacing.scss +64 -0
  56. data/app/assets/stylesheets/bulma_sass/helpers/typography.scss +174 -0
  57. data/app/assets/stylesheets/bulma_sass/helpers/visibility.scss +221 -0
  58. data/app/assets/stylesheets/bulma_sass/layout/_index.scss +9 -0
  59. data/app/assets/stylesheets/bulma_sass/layout/container.scss +59 -0
  60. data/app/assets/stylesheets/bulma_sass/layout/footer.scss +23 -0
  61. data/app/assets/stylesheets/bulma_sass/layout/hero.scss +273 -0
  62. data/app/assets/stylesheets/bulma_sass/layout/level.scss +107 -0
  63. data/app/assets/stylesheets/bulma_sass/layout/media.scss +106 -0
  64. data/app/assets/stylesheets/bulma_sass/layout/section.scss +38 -0
  65. data/app/assets/stylesheets/bulma_sass/themes/_index.scss +36 -0
  66. data/app/assets/stylesheets/bulma_sass/themes/dark.scss +57 -0
  67. data/app/assets/stylesheets/bulma_sass/themes/light.scss +147 -0
  68. data/app/assets/stylesheets/bulma_sass/themes/setup.scss +174 -0
  69. data/app/assets/stylesheets/bulma_sass/utilities/_index.scss +7 -0
  70. data/app/assets/stylesheets/bulma_sass/utilities/controls.scss +85 -0
  71. data/app/assets/stylesheets/bulma_sass/utilities/css-variables.scss +502 -0
  72. data/app/assets/stylesheets/bulma_sass/utilities/derived-variables.scss +112 -0
  73. data/app/assets/stylesheets/bulma_sass/utilities/extends.scss +34 -0
  74. data/app/assets/stylesheets/bulma_sass/utilities/functions.scss +310 -0
  75. data/app/assets/stylesheets/bulma_sass/utilities/initial-variables.scss +157 -0
  76. data/app/assets/stylesheets/bulma_sass/utilities/mixins.scss +462 -0
  77. data/bulma-rails.gemspec +4 -6
  78. metadata +83 -74
  79. data/app/assets/stylesheets/bulma.sass +0 -10
  80. data/app/assets/stylesheets/sass/base/_all.sass +0 -6
  81. data/app/assets/stylesheets/sass/base/animations.sass +0 -5
  82. data/app/assets/stylesheets/sass/base/generic.sass +0 -145
  83. data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
  84. data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
  85. data/app/assets/stylesheets/sass/components/_all.sass +0 -15
  86. data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -77
  87. data/app/assets/stylesheets/sass/components/card.sass +0 -103
  88. data/app/assets/stylesheets/sass/components/dropdown.sass +0 -83
  89. data/app/assets/stylesheets/sass/components/level.sass +0 -79
  90. data/app/assets/stylesheets/sass/components/media.sass +0 -59
  91. data/app/assets/stylesheets/sass/components/menu.sass +0 -59
  92. data/app/assets/stylesheets/sass/components/message.sass +0 -101
  93. data/app/assets/stylesheets/sass/components/modal.sass +0 -117
  94. data/app/assets/stylesheets/sass/components/navbar.sass +0 -446
  95. data/app/assets/stylesheets/sass/components/pagination.sass +0 -167
  96. data/app/assets/stylesheets/sass/components/panel.sass +0 -121
  97. data/app/assets/stylesheets/sass/components/tabs.sass +0 -176
  98. data/app/assets/stylesheets/sass/elements/_all.sass +0 -16
  99. data/app/assets/stylesheets/sass/elements/box.sass +0 -26
  100. data/app/assets/stylesheets/sass/elements/button.sass +0 -357
  101. data/app/assets/stylesheets/sass/elements/container.sass +0 -29
  102. data/app/assets/stylesheets/sass/elements/content.sass +0 -162
  103. data/app/assets/stylesheets/sass/elements/form.sass +0 -1
  104. data/app/assets/stylesheets/sass/elements/icon.sass +0 -46
  105. data/app/assets/stylesheets/sass/elements/image.sass +0 -73
  106. data/app/assets/stylesheets/sass/elements/notification.sass +0 -52
  107. data/app/assets/stylesheets/sass/elements/other.sass +0 -31
  108. data/app/assets/stylesheets/sass/elements/progress.sass +0 -73
  109. data/app/assets/stylesheets/sass/elements/table.sass +0 -134
  110. data/app/assets/stylesheets/sass/elements/tag.sass +0 -140
  111. data/app/assets/stylesheets/sass/elements/title.sass +0 -70
  112. data/app/assets/stylesheets/sass/form/_all.sass +0 -9
  113. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -22
  114. data/app/assets/stylesheets/sass/form/file.sass +0 -184
  115. data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -66
  116. data/app/assets/stylesheets/sass/form/select.sass +0 -88
  117. data/app/assets/stylesheets/sass/form/shared.sass +0 -60
  118. data/app/assets/stylesheets/sass/form/tools.sass +0 -215
  119. data/app/assets/stylesheets/sass/grid/_all.sass +0 -5
  120. data/app/assets/stylesheets/sass/grid/columns.sass +0 -513
  121. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -36
  122. data/app/assets/stylesheets/sass/helpers/_all.sass +0 -12
  123. data/app/assets/stylesheets/sass/helpers/color.sass +0 -39
  124. data/app/assets/stylesheets/sass/helpers/flexbox.sass +0 -35
  125. data/app/assets/stylesheets/sass/helpers/float.sass +0 -10
  126. data/app/assets/stylesheets/sass/helpers/other.sass +0 -14
  127. data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
  128. data/app/assets/stylesheets/sass/helpers/position.sass +0 -7
  129. data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -31
  130. data/app/assets/stylesheets/sass/helpers/typography.sass +0 -103
  131. data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
  132. data/app/assets/stylesheets/sass/layout/_all.sass +0 -6
  133. data/app/assets/stylesheets/sass/layout/footer.sass +0 -11
  134. data/app/assets/stylesheets/sass/layout/hero.sass +0 -153
  135. data/app/assets/stylesheets/sass/layout/section.sass +0 -17
  136. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -9
  137. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -1
  138. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -49
  139. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -114
  140. data/app/assets/stylesheets/sass/utilities/extends.sass +0 -25
  141. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -135
  142. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -79
  143. 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: 8effdb1290e304821a7fadc0c77a3e8ce3591488599f9d69c250e440f31dd2a0
4
+ data.tar.gz: 5f421df85c9fa6ab1fda1658cdef8392b6e1452e69aee0f7b2eacff596ff7566
5
5
  SHA512:
6
- metadata.gz: b0992d9a411de47c501cfd01ef7a4146a4e12376463f416754e5dd8f531f1649e7906d62ef696fe131fc0acefa40d75b6685ab71fdc9f3fbbc83dcd872c828ca
7
- data.tar.gz: fe0e2ec8b2c435c9874d6119fefd697c9eb87e985ba5956567cb158cfbbe1072485c42e02d105a0cdf6b580237d5157da215c6dd7ed369da7a53c64b2ab4eae1
6
+ metadata.gz: 95ebf085f272b07e55bac320f254ccdfae286b922c988dee44d9a3b969b6292558ed49b94b315dc914a6b99783cdcda7c52b54d8cf2e0a6feba1865c4b3f44b9
7
+ data.tar.gz: c13cad06640162d8c788c5677c600fe3127930272f74545596a7e6ebd305c8f09084518b45718be8b01c50e2ba1fdde5f8257e5dad396bf164f330c49945a326
data/README.md CHANGED
@@ -1,29 +1,102 @@
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";
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 "bulma_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 "bulma_sass/utilities/mixins";
53
+
54
+ For more information about Mixins see [Bulma Sass Mixins](https://bulma.io/documentation/sass/mixins/)
55
+
56
+ ## Prefix
57
+
58
+ Prefix all generated classes with `bulma-`:
59
+ ```
60
+ // application.scss
61
+ // Load all styles with `bulma-` prefix
62
+
63
+ @use "bulma_sass" with (
64
+ $class-prefix: "bulma-"
65
+ );
66
+ ```
67
+
68
+ ## Customization
69
+
70
+ To overwrite Bulma’s Sass variables with your own value, write `@use` and the `with` keyword for example to your `application.scss`:
71
+ ```
72
+ // Set your brand colors
73
+ $purple: #8a4d76;
74
+ $pink: #fa7c91;
75
+ $brown: #757763;
76
+ $beige-light: #d0d1cd;
77
+ $beige-lighter: #eff0eb;
78
+
79
+ // Override global Sass variables from the /utilities folder
80
+ @use "bulma_sass/utilities" with (
81
+ $family-primary: '"Nunito", sans-serif',
82
+ $grey-dark: $brown,
83
+ $grey-light: $beige-light,
84
+ $primary: $purple,
85
+ $link: $pink,
86
+ $control-border-width: 2px
87
+ );
88
+
89
+ // Load all styles
90
+ @use "bulma";
22
91
  ```
23
92
 
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.
93
+ This allows you to override Bulma’s global variables from the `utilities` folder.
94
+
95
+ For more information about Customization see [Customize with Modular Sass](https://bulma.io/documentation/customize/with-modular-sass/)
96
+
97
+ ## Helpful references
26
98
 
99
+ Migrating to Bulma v1 and discover what changes, see [Migrating to Bulma v1](https://bulma.io/documentation/start/migrating-to-v1/)
27
100
 
28
101
  ## Contributing
29
102
 
@@ -0,0 +1,4 @@
1
+ @charset "utf-8";
2
+
3
+ /*! bulma.io v1.0.4 | MIT License | github.com/jgthms/bulma */
4
+ @use "bulma_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,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";