mere-blog-theme 0.5 → 1.0.1

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 (189) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -24
  3. data/_includes/author-media.html +23 -20
  4. data/_includes/google-analytics.html +6 -3
  5. data/_includes/head.html +21 -11
  6. data/_includes/hero.html +12 -7
  7. data/_includes/navbar.html +19 -19
  8. data/_includes/pagination.html +41 -21
  9. data/_includes/post-item.html +18 -15
  10. data/_includes/social-buttons.html +25 -26
  11. data/_layouts/author.html +50 -38
  12. data/_layouts/default.html +21 -19
  13. data/_layouts/homepage.html +9 -12
  14. data/_layouts/post.html +29 -28
  15. data/_sass/_intro.scss +6 -4
  16. data/_sass/_layout.scss +29 -18
  17. data/_sass/_main.scss +17 -18
  18. data/_sass/syntax.scss +14 -6
  19. data/assets/css/app.scss +1 -1
  20. data/assets/js/app.js +9 -11
  21. data/node_modules/.package-lock.json +4 -4
  22. data/node_modules/bulma/LICENSE +1 -1
  23. data/node_modules/bulma/README.md +67 -55
  24. data/node_modules/bulma/bulma.scss +4 -0
  25. data/node_modules/bulma/css/bulma.css +18412 -8566
  26. data/node_modules/bulma/css/bulma.css.map +1 -1
  27. data/node_modules/bulma/css/bulma.min.css +3 -1
  28. data/node_modules/bulma/css/versions/bulma-no-dark-mode.css +19648 -0
  29. data/node_modules/bulma/css/versions/bulma-no-dark-mode.css.map +1 -0
  30. data/node_modules/bulma/css/versions/bulma-no-dark-mode.min.css +3 -0
  31. data/node_modules/bulma/css/versions/bulma-no-helpers-prefixed.css +11136 -0
  32. data/node_modules/bulma/css/versions/bulma-no-helpers-prefixed.css.map +1 -0
  33. data/node_modules/bulma/css/versions/bulma-no-helpers-prefixed.min.css +3 -0
  34. data/node_modules/bulma/css/versions/bulma-no-helpers.css +11136 -0
  35. data/node_modules/bulma/css/versions/bulma-no-helpers.css.map +1 -0
  36. data/node_modules/bulma/css/versions/bulma-no-helpers.min.css +3 -0
  37. data/node_modules/bulma/css/versions/bulma-prefixed.min.css +21551 -0
  38. data/node_modules/bulma/css/versions/bulma-prefixed.min.css.map +1 -0
  39. data/node_modules/bulma/css/versions/bulma-prefixed.min.min.css +3 -0
  40. data/node_modules/bulma/package.json +25 -19
  41. data/node_modules/bulma/sass/_index.scss +10 -0
  42. data/node_modules/bulma/sass/base/_index.scss +6 -0
  43. data/node_modules/bulma/sass/base/animations.scss +15 -0
  44. data/node_modules/bulma/sass/base/generic.scss +239 -0
  45. data/node_modules/bulma/sass/base/minireset.scss +92 -0
  46. data/node_modules/bulma/sass/base/skeleton.scss +114 -0
  47. data/node_modules/bulma/sass/components/_index.scss +13 -0
  48. data/node_modules/bulma/sass/components/breadcrumb.scss +139 -0
  49. data/node_modules/bulma/sass/components/card.scss +162 -0
  50. data/node_modules/bulma/sass/components/dropdown.scss +188 -0
  51. data/node_modules/bulma/sass/components/menu.scss +165 -0
  52. data/node_modules/bulma/sass/components/message.scss +183 -0
  53. data/node_modules/bulma/sass/components/modal.scss +164 -0
  54. data/node_modules/bulma/sass/components/navbar.scss +799 -0
  55. data/node_modules/bulma/sass/components/pagination.scss +379 -0
  56. data/node_modules/bulma/sass/components/panel.scss +218 -0
  57. data/node_modules/bulma/sass/components/tabs.scss +273 -0
  58. data/node_modules/bulma/sass/elements/_index.scss +16 -0
  59. data/node_modules/bulma/sass/elements/block.scss +6 -0
  60. data/node_modules/bulma/sass/elements/box.scss +59 -0
  61. data/node_modules/bulma/sass/elements/button.scss +647 -0
  62. data/node_modules/bulma/sass/elements/content.scss +289 -0
  63. data/node_modules/bulma/sass/elements/delete.scss +6 -0
  64. data/node_modules/bulma/sass/elements/icon.scss +67 -0
  65. data/node_modules/bulma/sass/elements/image.scss +62 -0
  66. data/node_modules/bulma/sass/elements/loader.scss +15 -0
  67. data/node_modules/bulma/sass/elements/notification.scss +105 -0
  68. data/node_modules/bulma/sass/elements/progress.scss +115 -0
  69. data/node_modules/bulma/sass/elements/table.scss +261 -0
  70. data/node_modules/bulma/sass/elements/tag.scss +219 -0
  71. data/node_modules/bulma/sass/elements/title.scss +128 -0
  72. data/node_modules/bulma/sass/form/_index.scss +9 -0
  73. data/node_modules/bulma/sass/form/checkbox-radio.scss +36 -0
  74. data/node_modules/bulma/sass/form/file.scss +330 -0
  75. data/node_modules/bulma/sass/form/input-textarea.scss +113 -0
  76. data/node_modules/bulma/sass/form/select.scss +144 -0
  77. data/node_modules/bulma/sass/form/shared.scss +176 -0
  78. data/node_modules/bulma/sass/form/tools.scss +352 -0
  79. data/node_modules/bulma/sass/grid/_index.scss +5 -0
  80. data/node_modules/bulma/sass/grid/columns.scss +961 -0
  81. data/node_modules/bulma/sass/grid/grid.scss +209 -0
  82. data/node_modules/bulma/sass/helpers/_index.scss +15 -0
  83. data/node_modules/bulma/sass/helpers/aspect-ratio.scss +10 -0
  84. data/node_modules/bulma/sass/helpers/border.scss +15 -0
  85. data/node_modules/bulma/sass/helpers/color.scss +344 -0
  86. data/node_modules/bulma/sass/helpers/flexbox.scss +62 -0
  87. data/node_modules/bulma/sass/helpers/float.scss +28 -0
  88. data/node_modules/bulma/sass/helpers/gap.scss +24 -0
  89. data/node_modules/bulma/sass/helpers/other.scss +19 -0
  90. data/node_modules/bulma/sass/helpers/overflow.scss +21 -0
  91. data/node_modules/bulma/sass/helpers/position.scss +19 -0
  92. data/node_modules/bulma/sass/helpers/spacing.scss +64 -0
  93. data/node_modules/bulma/sass/helpers/typography.scss +168 -0
  94. data/node_modules/bulma/sass/helpers/visibility.scss +221 -0
  95. data/node_modules/bulma/sass/layout/_index.scss +9 -0
  96. data/node_modules/bulma/sass/layout/container.scss +59 -0
  97. data/node_modules/bulma/sass/layout/footer.scss +23 -0
  98. data/node_modules/bulma/sass/layout/hero.scss +270 -0
  99. data/node_modules/bulma/sass/layout/level.scss +107 -0
  100. data/node_modules/bulma/sass/layout/media.scss +106 -0
  101. data/node_modules/bulma/sass/layout/section.scss +38 -0
  102. data/node_modules/bulma/sass/themes/_index.scss +35 -0
  103. data/node_modules/bulma/sass/themes/dark.scss +56 -0
  104. data/node_modules/bulma/sass/themes/light.scss +146 -0
  105. data/node_modules/bulma/sass/themes/setup.scss +174 -0
  106. data/node_modules/bulma/sass/utilities/_index.scss +7 -0
  107. data/node_modules/bulma/sass/utilities/controls.scss +85 -0
  108. data/node_modules/bulma/sass/utilities/css-variables.scss +426 -0
  109. data/node_modules/bulma/sass/utilities/derived-variables.scss +112 -0
  110. data/node_modules/bulma/sass/utilities/extends.scss +34 -0
  111. data/node_modules/bulma/sass/utilities/functions.scss +258 -0
  112. data/node_modules/bulma/sass/utilities/initial-variables.scss +155 -0
  113. data/node_modules/bulma/sass/utilities/mixins.scss +460 -0
  114. data/node_modules/bulma/versions/bulma-no-dark-mode.scss +20 -0
  115. data/node_modules/bulma/versions/bulma-no-helpers-prefixed.scss +13 -0
  116. data/node_modules/bulma/versions/bulma-no-helpers.scss +11 -0
  117. data/node_modules/bulma/versions/bulma-prefixed.scss +6 -0
  118. data/package-lock.json +5 -12
  119. data/package.json +1 -1
  120. metadata +107 -80
  121. data/node_modules/bulma/CHANGELOG.md +0 -1539
  122. data/node_modules/bulma/bulma.sass +0 -10
  123. data/node_modules/bulma/css/bulma-rtl.css +0 -11705
  124. data/node_modules/bulma/css/bulma-rtl.css.map +0 -1
  125. data/node_modules/bulma/css/bulma-rtl.min.css +0 -1
  126. data/node_modules/bulma/sass/base/_all.sass +0 -6
  127. data/node_modules/bulma/sass/base/animations.sass +0 -5
  128. data/node_modules/bulma/sass/base/generic.sass +0 -145
  129. data/node_modules/bulma/sass/base/helpers.sass +0 -1
  130. data/node_modules/bulma/sass/base/minireset.sass +0 -79
  131. data/node_modules/bulma/sass/components/_all.sass +0 -15
  132. data/node_modules/bulma/sass/components/breadcrumb.sass +0 -77
  133. data/node_modules/bulma/sass/components/card.sass +0 -102
  134. data/node_modules/bulma/sass/components/dropdown.sass +0 -83
  135. data/node_modules/bulma/sass/components/level.sass +0 -79
  136. data/node_modules/bulma/sass/components/media.sass +0 -59
  137. data/node_modules/bulma/sass/components/menu.sass +0 -59
  138. data/node_modules/bulma/sass/components/message.sass +0 -101
  139. data/node_modules/bulma/sass/components/modal.sass +0 -117
  140. data/node_modules/bulma/sass/components/navbar.sass +0 -445
  141. data/node_modules/bulma/sass/components/pagination.sass +0 -158
  142. data/node_modules/bulma/sass/components/panel.sass +0 -121
  143. data/node_modules/bulma/sass/components/tabs.sass +0 -176
  144. data/node_modules/bulma/sass/elements/_all.sass +0 -16
  145. data/node_modules/bulma/sass/elements/box.sass +0 -26
  146. data/node_modules/bulma/sass/elements/button.sass +0 -345
  147. data/node_modules/bulma/sass/elements/container.sass +0 -29
  148. data/node_modules/bulma/sass/elements/content.sass +0 -157
  149. data/node_modules/bulma/sass/elements/form.sass +0 -1
  150. data/node_modules/bulma/sass/elements/icon.sass +0 -40
  151. data/node_modules/bulma/sass/elements/image.sass +0 -73
  152. data/node_modules/bulma/sass/elements/notification.sass +0 -52
  153. data/node_modules/bulma/sass/elements/other.sass +0 -41
  154. data/node_modules/bulma/sass/elements/progress.sass +0 -73
  155. data/node_modules/bulma/sass/elements/table.sass +0 -133
  156. data/node_modules/bulma/sass/elements/tag.sass +0 -140
  157. data/node_modules/bulma/sass/elements/title.sass +0 -72
  158. data/node_modules/bulma/sass/form/_all.sass +0 -9
  159. data/node_modules/bulma/sass/form/checkbox-radio.sass +0 -22
  160. data/node_modules/bulma/sass/form/file.sass +0 -182
  161. data/node_modules/bulma/sass/form/input-textarea.sass +0 -66
  162. data/node_modules/bulma/sass/form/select.sass +0 -87
  163. data/node_modules/bulma/sass/form/shared.sass +0 -60
  164. data/node_modules/bulma/sass/form/tools.sass +0 -215
  165. data/node_modules/bulma/sass/grid/_all.sass +0 -5
  166. data/node_modules/bulma/sass/grid/columns.sass +0 -513
  167. data/node_modules/bulma/sass/grid/tiles.sass +0 -36
  168. data/node_modules/bulma/sass/helpers/_all.sass +0 -12
  169. data/node_modules/bulma/sass/helpers/color.sass +0 -39
  170. data/node_modules/bulma/sass/helpers/flexbox.sass +0 -35
  171. data/node_modules/bulma/sass/helpers/float.sass +0 -10
  172. data/node_modules/bulma/sass/helpers/other.sass +0 -14
  173. data/node_modules/bulma/sass/helpers/overflow.sass +0 -2
  174. data/node_modules/bulma/sass/helpers/position.sass +0 -7
  175. data/node_modules/bulma/sass/helpers/spacing.sass +0 -31
  176. data/node_modules/bulma/sass/helpers/typography.sass +0 -100
  177. data/node_modules/bulma/sass/helpers/visibility.sass +0 -122
  178. data/node_modules/bulma/sass/layout/_all.sass +0 -6
  179. data/node_modules/bulma/sass/layout/footer.sass +0 -11
  180. data/node_modules/bulma/sass/layout/hero.sass +0 -149
  181. data/node_modules/bulma/sass/layout/section.sass +0 -15
  182. data/node_modules/bulma/sass/utilities/_all.sass +0 -9
  183. data/node_modules/bulma/sass/utilities/animations.sass +0 -1
  184. data/node_modules/bulma/sass/utilities/controls.sass +0 -49
  185. data/node_modules/bulma/sass/utilities/derived-variables.sass +0 -110
  186. data/node_modules/bulma/sass/utilities/extends.sass +0 -22
  187. data/node_modules/bulma/sass/utilities/functions.sass +0 -115
  188. data/node_modules/bulma/sass/utilities/initial-variables.sass +0 -78
  189. data/node_modules/bulma/sass/utilities/mixins.sass +0 -268
@@ -0,0 +1,162 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/initial-variables" as iv;
3
+ @use "../utilities/extends";
4
+ @use "../utilities/mixins" as mx;
5
+
6
+ $card-color: cv.getVar("text") !default;
7
+ $card-background-color: cv.getVar("scheme-main") !default;
8
+ $card-shadow: cv.getVar("shadow") !default;
9
+ $card-radius: 0.75rem !default;
10
+
11
+ $card-header-background-color: transparent !default;
12
+ $card-header-color: cv.getVar("text-strong") !default;
13
+ $card-header-padding: 0.75rem 1rem !default;
14
+ $card-header-shadow: 0 0.125em 0.25em
15
+ hsla(
16
+ #{cv.getVar("scheme-h")},
17
+ #{cv.getVar("scheme-s")},
18
+ #{cv.getVar("scheme-invert-l")},
19
+ 0.1
20
+ ) !default;
21
+ $card-header-weight: cv.getVar("weight-bold") !default;
22
+
23
+ $card-content-background-color: transparent !default;
24
+ $card-content-padding: 1.5rem !default;
25
+
26
+ $card-footer-background-color: transparent !default;
27
+ $card-footer-border-top: 1px solid cv.getVar("border-weak") !default;
28
+ $card-footer-padding: 0.75rem !default;
29
+
30
+ $card-media-margin: cv.getVar("block-spacing") !default;
31
+
32
+ .#{iv.$class-prefix}card {
33
+ @include cv.register-vars(
34
+ (
35
+ "card-color": #{$card-color},
36
+ "card-background-color": #{$card-background-color},
37
+ "card-shadow": #{$card-shadow},
38
+ "card-radius": #{$card-radius},
39
+ "card-header-background-color": #{$card-header-background-color},
40
+ "card-header-color": #{$card-header-color},
41
+ "card-header-padding": #{$card-header-padding},
42
+ "card-header-shadow": #{$card-header-shadow},
43
+ "card-header-weight": #{$card-header-weight},
44
+ "card-content-background-color": #{$card-content-background-color},
45
+ "card-content-padding": #{$card-content-padding},
46
+ "card-footer-background-color": #{$card-footer-background-color},
47
+ "card-footer-border-top": #{$card-footer-border-top},
48
+ "card-footer-padding": #{$card-footer-padding},
49
+ "card-media-margin": #{$card-media-margin},
50
+ )
51
+ );
52
+ }
53
+
54
+ .#{iv.$class-prefix}card {
55
+ @extend %block;
56
+ background-color: cv.getVar("card-background-color");
57
+ border-radius: cv.getVar("card-radius");
58
+ box-shadow: cv.getVar("card-shadow");
59
+ color: cv.getVar("card-color");
60
+ max-width: 100%;
61
+ position: relative;
62
+ }
63
+
64
+ %card-item {
65
+ &:first-child {
66
+ border-start-start-radius: cv.getVar("card-radius");
67
+ border-start-end-radius: cv.getVar("card-radius");
68
+ }
69
+
70
+ &:last-child {
71
+ border-end-start-radius: cv.getVar("card-radius");
72
+ border-end-end-radius: cv.getVar("card-radius");
73
+ }
74
+ }
75
+
76
+ .#{iv.$class-prefix}card-header {
77
+ @extend %card-item;
78
+ background-color: cv.getVar("card-header-background-color");
79
+ align-items: stretch;
80
+ box-shadow: cv.getVar("card-header-shadow");
81
+ display: flex;
82
+ }
83
+
84
+ .#{iv.$class-prefix}card-header-title {
85
+ align-items: center;
86
+ color: cv.getVar("card-header-color");
87
+ display: flex;
88
+ flex-grow: 1;
89
+ font-weight: cv.getVar("card-header-weight");
90
+ padding: cv.getVar("card-header-padding");
91
+
92
+ &.#{iv.$class-prefix}is-centered {
93
+ justify-content: center;
94
+ }
95
+ }
96
+
97
+ .#{iv.$class-prefix}card-header-icon {
98
+ @include mx.reset;
99
+
100
+ align-items: center;
101
+ cursor: pointer;
102
+ display: flex;
103
+ justify-content: center;
104
+ padding: cv.getVar("card-header-padding");
105
+ }
106
+
107
+ .#{iv.$class-prefix}card-image {
108
+ display: block;
109
+ position: relative;
110
+
111
+ &:first-child {
112
+ img {
113
+ border-start-start-radius: cv.getVar("card-radius");
114
+ border-start-end-radius: cv.getVar("card-radius");
115
+ }
116
+ }
117
+
118
+ &:last-child {
119
+ img {
120
+ border-end-start-radius: cv.getVar("card-radius");
121
+ border-end-end-radius: cv.getVar("card-radius");
122
+ }
123
+ }
124
+ }
125
+
126
+ .#{iv.$class-prefix}card-content {
127
+ @extend %card-item;
128
+
129
+ background-color: cv.getVar("card-content-background-color");
130
+ padding: cv.getVar("card-content-padding");
131
+ }
132
+
133
+ .#{iv.$class-prefix}card-footer {
134
+ @extend %card-item;
135
+
136
+ background-color: cv.getVar("card-footer-background-color");
137
+ border-top: cv.getVar("card-footer-border-top");
138
+ align-items: stretch;
139
+ display: flex;
140
+ }
141
+
142
+ .#{iv.$class-prefix}card-footer-item {
143
+ align-items: center;
144
+ display: flex;
145
+ flex-basis: 0;
146
+ flex-grow: 1;
147
+ flex-shrink: 0;
148
+ justify-content: center;
149
+ padding: cv.getVar("card-footer-padding");
150
+
151
+ &:not(:last-child) {
152
+ border-inline-end: cv.getVar("card-footer-border-top");
153
+ }
154
+ }
155
+
156
+ // Combinations
157
+
158
+ .#{iv.$class-prefix}card {
159
+ .#{iv.$class-prefix}media:not(:last-child) {
160
+ margin-bottom: cv.getVar("card-media-margin");
161
+ }
162
+ }
@@ -0,0 +1,188 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/initial-variables" as iv;
3
+ @use "../utilities/extends";
4
+ @use "../utilities/mixins" as mx;
5
+
6
+ $dropdown-menu-min-width: 12rem !default;
7
+
8
+ $dropdown-content-background-color: cv.getVar("scheme-main") !default;
9
+ $dropdown-content-offset: 0.25rem !default;
10
+ $dropdown-content-padding-bottom: 0.5rem !default;
11
+ $dropdown-content-padding-top: 0.5rem !default;
12
+ $dropdown-content-radius: cv.getVar("radius") !default;
13
+ $dropdown-content-shadow: cv.getVar("shadow") !default;
14
+ $dropdown-content-z: 20 !default;
15
+
16
+ $dropdown-item-h: cv.getVar("scheme-h");
17
+ $dropdown-item-s: cv.getVar("scheme-s");
18
+ $dropdown-item-l: cv.getVar("scheme-main-l");
19
+ $dropdown-item-background-l: cv.getVar("scheme-main-l");
20
+ $dropdown-item-background-l-delta: 0%;
21
+ $dropdown-item-hover-background-l-delta: cv.getVar("hover-background-l-delta");
22
+ $dropdown-item-active-background-l-delta: cv.getVar(
23
+ "active-background-l-delta"
24
+ );
25
+ $dropdown-item-color-l: cv.getVar("text-strong-l");
26
+ $dropdown-item-selected-h: cv.getVar("link-h");
27
+ $dropdown-item-selected-s: cv.getVar("link-s");
28
+ $dropdown-item-selected-l: cv.getVar("link-l");
29
+ $dropdown-item-selected-background-l: cv.getVar("link-l");
30
+ $dropdown-item-selected-color-l: cv.getVar("link-invert-l");
31
+
32
+ $dropdown-divider-background-color: cv.getVar("border-weak") !default;
33
+
34
+ .#{iv.$class-prefix}dropdown {
35
+ // prettier-ignore-start
36
+ @include cv.register-vars(
37
+ (
38
+ "dropdown-menu-min-width": #{$dropdown-menu-min-width},
39
+ "dropdown-content-background-color": #{$dropdown-content-background-color},
40
+ "dropdown-content-offset": #{$dropdown-content-offset},
41
+ "dropdown-content-padding-bottom": #{$dropdown-content-padding-bottom},
42
+ "dropdown-content-padding-top": #{$dropdown-content-padding-top},
43
+ "dropdown-content-radius": #{$dropdown-content-radius},
44
+ "dropdown-content-shadow": #{$dropdown-content-shadow},
45
+ "dropdown-content-z": #{$dropdown-content-z},
46
+ "dropdown-item-h": #{$dropdown-item-h},
47
+ "dropdown-item-s": #{$dropdown-item-s},
48
+ "dropdown-item-l": #{$dropdown-item-l},
49
+ "dropdown-item-background-l": #{$dropdown-item-background-l},
50
+ "dropdown-item-background-l-delta": #{$dropdown-item-background-l-delta},
51
+ "dropdown-item-hover-background-l-delta": #{$dropdown-item-hover-background-l-delta},
52
+ "dropdown-item-active-background-l-delta": #{$dropdown-item-active-background-l-delta},
53
+ "dropdown-item-color-l": #{$dropdown-item-color-l},
54
+ "dropdown-item-selected-h": #{$dropdown-item-selected-h},
55
+ "dropdown-item-selected-s": #{$dropdown-item-selected-s},
56
+ "dropdown-item-selected-l": #{$dropdown-item-selected-l},
57
+ "dropdown-item-selected-background-l": #{$dropdown-item-selected-background-l},
58
+ "dropdown-item-selected-color-l": #{$dropdown-item-selected-color-l},
59
+ "dropdown-divider-background-color": #{$dropdown-divider-background-color},
60
+ )
61
+ );
62
+ // prettier-ignore-end
63
+ }
64
+
65
+ .#{iv.$class-prefix}dropdown {
66
+ display: inline-flex;
67
+ position: relative;
68
+ vertical-align: top;
69
+
70
+ &.#{iv.$class-prefix}is-active,
71
+ &.#{iv.$class-prefix}is-hoverable:hover {
72
+ .#{iv.$class-prefix}dropdown-menu {
73
+ display: block;
74
+ }
75
+ }
76
+
77
+ &.#{iv.$class-prefix}is-right {
78
+ .#{iv.$class-prefix}dropdown-menu {
79
+ left: auto;
80
+ right: 0;
81
+ }
82
+ }
83
+
84
+ &.#{iv.$class-prefix}is-up {
85
+ .#{iv.$class-prefix}dropdown-menu {
86
+ bottom: 100%;
87
+ padding-bottom: cv.getVar("dropdown-content-offset");
88
+ padding-top: initial;
89
+ top: auto;
90
+ }
91
+ }
92
+ }
93
+
94
+ .#{iv.$class-prefix}dropdown-menu {
95
+ display: none;
96
+ @include mx.ltr-position(0, false);
97
+ min-width: cv.getVar("dropdown-menu-min-width");
98
+ padding-top: cv.getVar("dropdown-content-offset");
99
+ position: absolute;
100
+ top: 100%;
101
+ z-index: cv.getVar("dropdown-content-z");
102
+ }
103
+
104
+ .#{iv.$class-prefix}dropdown-content {
105
+ background-color: cv.getVar("dropdown-content-background-color");
106
+ border-radius: cv.getVar("dropdown-content-radius");
107
+ box-shadow: cv.getVar("dropdown-content-shadow");
108
+ padding-bottom: cv.getVar("dropdown-content-padding-bottom");
109
+ padding-top: cv.getVar("dropdown-content-padding-top");
110
+ }
111
+
112
+ .#{iv.$class-prefix}dropdown-item {
113
+ color: hsl(
114
+ #{cv.getVar("dropdown-item-h")},
115
+ #{cv.getVar("dropdown-item-s")},
116
+ #{cv.getVar("dropdown-item-color-l")}
117
+ );
118
+ display: block;
119
+ font-size: 0.875rem;
120
+ line-height: 1.5;
121
+ padding: 0.375rem 1rem;
122
+ }
123
+
124
+ a.#{iv.$class-prefix}dropdown-item,
125
+ button.#{iv.$class-prefix}dropdown-item {
126
+ background-color: hsl(
127
+ #{cv.getVar("dropdown-item-h")},
128
+ #{cv.getVar("dropdown-item-s")},
129
+ calc(
130
+ #{cv.getVar("dropdown-item-background-l")} + #{cv.getVar(
131
+ "dropdown-item-background-l-delta"
132
+ )}
133
+ )
134
+ );
135
+ padding-inline-end: 3rem;
136
+ text-align: inherit;
137
+ white-space: nowrap;
138
+ width: 100%;
139
+
140
+ &:hover {
141
+ @include cv.register-vars(
142
+ (
143
+ "dropdown-item-background-l-delta": #{cv.getVar(
144
+ "dropdown-item-hover-background-l-delta"
145
+ )},
146
+ "dropdown-item-border-l-delta": #{cv.getVar(
147
+ "dropdown-item-hover-border-l-delta"
148
+ )},
149
+ )
150
+ );
151
+ }
152
+
153
+ &:active {
154
+ @include cv.register-vars(
155
+ (
156
+ "dropdown-item-background-l-delta": #{cv.getVar(
157
+ "dropdown-item-active-background-l-delta"
158
+ )},
159
+ "dropdown-item-border-l-delta": #{cv.getVar(
160
+ "dropdown-item-active-border-l-delta"
161
+ )},
162
+ )
163
+ );
164
+ }
165
+
166
+ &.#{iv.$class-prefix}is-active,
167
+ &.#{iv.$class-prefix}is-selected {
168
+ @include cv.register-vars(
169
+ (
170
+ "dropdown-item-h": #{cv.getVar("dropdown-item-selected-h")},
171
+ "dropdown-item-s": #{cv.getVar("dropdown-item-selected-s")},
172
+ "dropdown-item-l": #{cv.getVar("dropdown-item-selected-l")},
173
+ "dropdown-item-background-l": #{cv.getVar(
174
+ "dropdown-item-selected-background-l"
175
+ )},
176
+ "dropdown-item-color-l": #{cv.getVar("dropdown-item-selected-color-l")},
177
+ )
178
+ );
179
+ }
180
+ }
181
+
182
+ .#{iv.$class-prefix}dropdown-divider {
183
+ background-color: cv.getVar("dropdown-divider-background-color");
184
+ border: none;
185
+ display: block;
186
+ height: 1px;
187
+ margin: 0.5rem 0;
188
+ }
@@ -0,0 +1,165 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/initial-variables" as iv;
3
+ @use "../utilities/extends";
4
+ @use "../utilities/mixins" as mx;
5
+
6
+ $menu-item-h: cv.getVar("scheme-h");
7
+ $menu-item-s: cv.getVar("scheme-s");
8
+ $menu-item-l: cv.getVar("scheme-main-l");
9
+ $menu-item-background-l: cv.getVar("scheme-main-l");
10
+ $menu-item-background-l-delta: 0%;
11
+ $menu-item-hover-background-l-delta: cv.getVar("hover-background-l-delta");
12
+ $menu-item-active-background-l-delta: cv.getVar("active-background-l-delta");
13
+ $menu-item-color-l: cv.getVar("text-l");
14
+ $menu-item-radius: cv.getVar("radius-small") !default;
15
+ $menu-item-selected-h: cv.getVar("link-h");
16
+ $menu-item-selected-s: cv.getVar("link-s");
17
+ $menu-item-selected-l: cv.getVar("link-l");
18
+ $menu-item-selected-background-l: cv.getVar("link-l");
19
+ $menu-item-selected-color-l: cv.getVar("link-invert-l");
20
+
21
+ $menu-list-border-left: 1px solid cv.getVar("border") !default;
22
+ $menu-list-line-height: 1.25 !default;
23
+ $menu-list-link-padding: 0.5em 0.75em !default;
24
+ $menu-nested-list-margin: 0.75em !default;
25
+ $menu-nested-list-padding-left: 0.75em !default;
26
+
27
+ $menu-label-color: cv.getVar("text-weak") !default;
28
+ $menu-label-font-size: 0.75em !default;
29
+ $menu-label-letter-spacing: 0.1em !default;
30
+ $menu-label-spacing: 1em !default;
31
+
32
+ .#{iv.$class-prefix}menu {
33
+ @include cv.register-vars(
34
+ (
35
+ "menu-item-h": #{$menu-item-h},
36
+ "menu-item-s": #{$menu-item-s},
37
+ "menu-item-l": #{$menu-item-l},
38
+ "menu-item-background-l": #{$menu-item-background-l},
39
+ "menu-item-background-l-delta": #{$menu-item-background-l-delta},
40
+ "menu-item-hover-background-l-delta": #{$menu-item-hover-background-l-delta},
41
+ "menu-item-active-background-l-delta": #{$menu-item-active-background-l-delta},
42
+ "menu-item-color-l": #{$menu-item-color-l},
43
+ "menu-item-radius": #{$menu-item-radius},
44
+ "menu-item-selected-h": #{$menu-item-selected-h},
45
+ "menu-item-selected-s": #{$menu-item-selected-s},
46
+ "menu-item-selected-l": #{$menu-item-selected-l},
47
+ "menu-item-selected-background-l": #{$menu-item-selected-background-l},
48
+ "menu-item-selected-color-l": #{$menu-item-selected-color-l},
49
+ "menu-list-border-left": #{$menu-list-border-left},
50
+ "menu-list-line-height": #{$menu-list-line-height},
51
+ "menu-list-link-padding": #{$menu-list-link-padding},
52
+ "menu-nested-list-margin": #{$menu-nested-list-margin},
53
+ "menu-nested-list-padding-left": #{$menu-nested-list-padding-left},
54
+ "menu-label-color": #{$menu-label-color},
55
+ "menu-label-font-size": #{$menu-label-font-size},
56
+ "menu-label-letter-spacing": #{$menu-label-letter-spacing},
57
+ "menu-label-spacing": #{$menu-label-spacing},
58
+ )
59
+ );
60
+ }
61
+
62
+ .#{iv.$class-prefix}menu {
63
+ font-size: cv.getVar("size-normal");
64
+
65
+ // Sizes
66
+ &.#{iv.$class-prefix}is-small {
67
+ font-size: cv.getVar("size-small");
68
+ }
69
+
70
+ &.#{iv.$class-prefix}is-medium {
71
+ font-size: cv.getVar("size-medium");
72
+ }
73
+
74
+ &.#{iv.$class-prefix}is-large {
75
+ font-size: cv.getVar("size-large");
76
+ }
77
+ }
78
+
79
+ .#{iv.$class-prefix}menu-list {
80
+ line-height: cv.getVar("menu-list-line-height");
81
+
82
+ a,
83
+ button,
84
+ .#{iv.$class-prefix}menu-item {
85
+ @extend %reset;
86
+ background-color: hsl(
87
+ #{cv.getVar("menu-item-h")},
88
+ #{cv.getVar("menu-item-s")},
89
+ calc(
90
+ #{cv.getVar("menu-item-background-l")} + #{cv.getVar(
91
+ "menu-item-background-l-delta"
92
+ )}
93
+ )
94
+ );
95
+ border-radius: cv.getVar("menu-item-radius");
96
+ color: hsl(
97
+ #{cv.getVar("menu-item-h")},
98
+ #{cv.getVar("menu-item-s")},
99
+ #{cv.getVar("menu-item-color-l")}
100
+ );
101
+ display: block;
102
+ padding: cv.getVar("menu-list-link-padding");
103
+ text-align: left;
104
+ width: 100%;
105
+
106
+ &:hover {
107
+ @include cv.register-vars(
108
+ (
109
+ "menu-item-background-l-delta": #{cv.getVar(
110
+ "menu-item-hover-background-l-delta"
111
+ )},
112
+ )
113
+ );
114
+ }
115
+
116
+ &:active {
117
+ @include cv.register-vars(
118
+ (
119
+ "menu-item-background-l-delta": #{cv.getVar(
120
+ "menu-item-active-background-l-delta"
121
+ )},
122
+ )
123
+ );
124
+ }
125
+
126
+ // Modifiers
127
+ &.#{iv.$class-prefix}is-active,
128
+ &.#{iv.$class-prefix}is-selected {
129
+ @include cv.register-vars(
130
+ (
131
+ "menu-item-h": #{cv.getVar("menu-item-selected-h")},
132
+ "menu-item-s": #{cv.getVar("menu-item-selected-s")},
133
+ "menu-item-l": #{cv.getVar("menu-item-selected-l")},
134
+ "menu-item-background-l": #{cv.getVar(
135
+ "menu-item-selected-background-l"
136
+ )},
137
+ "menu-item-color-l": #{cv.getVar("menu-item-selected-color-l")},
138
+ )
139
+ );
140
+ }
141
+ }
142
+
143
+ li {
144
+ ul {
145
+ border-inline-start: cv.getVar("menu-list-border-left");
146
+ margin: cv.getVar("menu-nested-list-margin");
147
+ padding-inline-start: cv.getVar("menu-nested-list-padding-left");
148
+ }
149
+ }
150
+ }
151
+
152
+ .#{iv.$class-prefix}menu-label {
153
+ color: cv.getVar("menu-label-color");
154
+ font-size: cv.getVar("menu-label-font-size");
155
+ letter-spacing: cv.getVar("menu-label-letter-spacing");
156
+ text-transform: uppercase;
157
+
158
+ &:not(:first-child) {
159
+ margin-top: cv.getVar("menu-label-spacing");
160
+ }
161
+
162
+ &:not(:last-child) {
163
+ margin-bottom: cv.getVar("menu-label-spacing");
164
+ }
165
+ }
@@ -0,0 +1,183 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/derived-variables" as dv;
3
+ @use "../utilities/initial-variables" as iv;
4
+ @use "../utilities/extends";
5
+ @use "../utilities/mixins" as mx;
6
+
7
+ $message-h: cv.getVar("scheme-h");
8
+ $message-s: cv.getVar("scheme-s");
9
+ $message-background-l: cv.getVar("background-l");
10
+ $message-border-l: cv.getVar("border-l");
11
+ $message-border-l-delta: -20% !default;
12
+ $message-border-style: solid;
13
+ $message-border-width: 0.25em;
14
+ $message-color-l: cv.getVar("text-l");
15
+ $message-header-background-l: cv.getVar("dark-l");
16
+ $message-header-color-l: cv.getVar("text-dark-invert-l");
17
+ $message-radius: cv.getVar("radius") !default;
18
+
19
+ $message-header-weight: cv.getVar("weight-semibold") !default;
20
+ $message-header-padding: 1em 1.25em !default;
21
+ $message-header-radius: cv.getVar("radius") !default;
22
+
23
+ $message-body-border-width: 0 0 0 4px !default;
24
+ $message-body-color: cv.getVar("text") !default;
25
+ $message-body-padding: 1.25em 1.5em !default;
26
+ $message-body-radius: cv.getVar("radius-small") !default;
27
+
28
+ $message-body-pre-code-background-color: transparent !default;
29
+
30
+ $message-header-body-border-width: 0 !default;
31
+ $message-colors: dv.$colors !default;
32
+
33
+ .#{iv.$class-prefix}message {
34
+ @include cv.register-vars(
35
+ (
36
+ "message-border-l-delta": #{$message-border-l-delta},
37
+ "message-radius": #{$message-radius},
38
+ "message-header-weight": #{$message-header-weight},
39
+ "message-header-padding": #{$message-header-padding},
40
+ "message-header-radius": #{$message-header-radius},
41
+ "message-body-border-width": #{$message-body-border-width},
42
+ "message-body-color": #{$message-body-color},
43
+ "message-body-padding": #{$message-body-padding},
44
+ "message-body-radius": #{$message-body-radius},
45
+ "message-body-pre-code-background-color": #{$message-body-pre-code-background-color},
46
+ "message-header-body-border-width": #{$message-header-body-border-width},
47
+ "message-h": #{$message-h},
48
+ "message-s": #{$message-s},
49
+ "message-background-l": #{$message-background-l},
50
+ "message-border-l": #{$message-border-l},
51
+ "message-border-style": #{$message-border-style},
52
+ "message-border-width": #{$message-border-width},
53
+ "message-color-l": #{$message-color-l},
54
+ "message-header-background-l": #{$message-header-background-l},
55
+ "message-header-color-l": #{$message-header-color-l},
56
+ )
57
+ );
58
+ }
59
+
60
+ .#{iv.$class-prefix}message {
61
+ @extend %block;
62
+ border-radius: cv.getVar("message-radius");
63
+ color: hsl(
64
+ #{cv.getVar("message-h")},
65
+ #{cv.getVar("message-s")},
66
+ #{cv.getVar("message-color-l")}
67
+ );
68
+ font-size: cv.getVar("size-normal");
69
+
70
+ strong {
71
+ color: currentColor;
72
+ }
73
+
74
+ a:not(.#{iv.$class-prefix}button):not(.#{iv.$class-prefix}tag):not(
75
+ .#{iv.$class-prefix}dropdown-item
76
+ ) {
77
+ color: currentColor;
78
+ text-decoration: underline;
79
+ }
80
+
81
+ // Sizes
82
+ &.#{iv.$class-prefix}is-small {
83
+ font-size: cv.getVar("size-small");
84
+ }
85
+
86
+ &.#{iv.$class-prefix}is-medium {
87
+ font-size: cv.getVar("size-medium");
88
+ }
89
+
90
+ &.#{iv.$class-prefix}is-large {
91
+ font-size: cv.getVar("size-large");
92
+ }
93
+
94
+ // Colors
95
+ @each $name, $components in $message-colors {
96
+ &.#{iv.$class-prefix}is-#{$name} {
97
+ @include cv.register-vars(
98
+ (
99
+ "message-h": #{cv.getVar($name, "", "-h")},
100
+ "message-s": #{cv.getVar($name, "", "-s")},
101
+ "message-border-l":
102
+ calc(
103
+ #{cv.getVar($name, "", "-l")} + #{cv.getVar(
104
+ "message-border-l-delta"
105
+ )}
106
+ ),
107
+ "message-color-l": #{cv.getVar($name, "", "-on-scheme-l")},
108
+ "message-header-background-l": #{cv.getVar($name, "", "-l")},
109
+ "message-header-color-l": #{cv.getVar($name, "", "-invert-l")},
110
+ )
111
+ );
112
+ }
113
+ }
114
+ }
115
+
116
+ .#{iv.$class-prefix}message-header {
117
+ align-items: center;
118
+ background-color: hsl(
119
+ #{cv.getVar("message-h")},
120
+ #{cv.getVar("message-s")},
121
+ #{cv.getVar("message-header-background-l")}
122
+ );
123
+ border-start-start-radius: cv.getVar("message-header-radius");
124
+ border-start-end-radius: cv.getVar("message-header-radius");
125
+ color: hsl(
126
+ #{cv.getVar("message-h")},
127
+ #{cv.getVar("message-s")},
128
+ #{cv.getVar("message-header-color-l")}
129
+ );
130
+ display: flex;
131
+ font-weight: cv.getVar("message-header-weight");
132
+ justify-content: space-between;
133
+ line-height: 1.25;
134
+ padding: cv.getVar("message-header-padding");
135
+ position: relative;
136
+
137
+ .#{iv.$class-prefix}delete {
138
+ flex-grow: 0;
139
+ flex-shrink: 0;
140
+ margin-inline-start: 0.75em;
141
+ }
142
+
143
+ & + .#{iv.$class-prefix}message-body {
144
+ border-width: cv.getVar("message-header-body-border-width");
145
+ border-start-start-radius: 0;
146
+ border-start-end-radius: 0;
147
+ }
148
+ }
149
+
150
+ .#{iv.$class-prefix}message-body {
151
+ background-color: hsl(
152
+ #{cv.getVar("message-h")},
153
+ #{cv.getVar("message-s")},
154
+ #{cv.getVar("message-background-l")}
155
+ );
156
+ border-inline-start-color: hsl(
157
+ #{cv.getVar("message-h")},
158
+ #{cv.getVar("message-s")},
159
+ #{cv.getVar("message-border-l")}
160
+ );
161
+ border-inline-start-style: #{cv.getVar("message-border-style")};
162
+ border-inline-start-width: #{cv.getVar("message-border-width")};
163
+ border-radius: cv.getVar("message-body-radius");
164
+ padding: cv.getVar("message-body-padding");
165
+
166
+ code,
167
+ pre {
168
+ background-color: hsl(
169
+ #{cv.getVar("message-h")},
170
+ #{cv.getVar("message-s")},
171
+ #{cv.getVar("message-header-color-l")}
172
+ );
173
+ color: hsl(
174
+ #{cv.getVar("message-h")},
175
+ #{cv.getVar("message-s")},
176
+ #{cv.getVar("message-header-background-l")}
177
+ );
178
+ }
179
+
180
+ pre code {
181
+ background-color: cv.getVar("message-body-pre-code-background-color");
182
+ }
183
+ }