pallote-css 0.3.11 → 0.3.12

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 (54) hide show
  1. package/README.md +0 -144
  2. package/dist/pallote.scss +31 -0
  3. package/dist/styles/common/_editor.scss +181 -0
  4. package/dist/styles/common/_fontface.scss +31 -0
  5. package/dist/styles/common/_functions.scss +11 -0
  6. package/dist/styles/common/_global.scss +157 -0
  7. package/dist/styles/common/_mixins.scss +165 -0
  8. package/dist/styles/common/_reset.scss +145 -0
  9. package/dist/styles/common/_variables.scss +252 -0
  10. package/dist/styles/components/_accordion.scss +133 -0
  11. package/dist/styles/components/_alert.scss +198 -0
  12. package/dist/styles/components/_breadcrumbs.scss +50 -0
  13. package/dist/styles/components/_button.scss +180 -0
  14. package/dist/styles/components/_buttons.scss +52 -0
  15. package/dist/styles/components/_card.scss +268 -0
  16. package/dist/styles/components/_divider.scss +52 -0
  17. package/dist/styles/components/_form.scss +58 -0
  18. package/dist/styles/components/_grid.scss +190 -0
  19. package/dist/styles/components/_input.scss +298 -0
  20. package/dist/styles/components/_link.scss +46 -0
  21. package/dist/styles/components/_list.scss +60 -0
  22. package/dist/styles/components/_nav.scss +274 -0
  23. package/dist/styles/components/_navbar.scss +192 -0
  24. package/dist/styles/components/_page.scss +33 -0
  25. package/dist/styles/components/_section.scss +193 -0
  26. package/dist/styles/components/_sidebar.scss +61 -0
  27. package/dist/styles/components/_snippet.scss +85 -0
  28. package/dist/styles/components/_status.scss +60 -0
  29. package/dist/styles/components/_switch.scss +84 -0
  30. package/dist/styles/components/_tabs.scss +118 -0
  31. package/dist/styles/components/_tag.scss +79 -0
  32. package/dist/styles/modules/_cookie.scss +38 -0
  33. package/dist/styles/utilities/_color.scss +119 -0
  34. package/dist/styles/utilities/_global.scss +211 -0
  35. package/dist/styles/utilities/_text.scss +207 -0
  36. package/package.json +8 -6
  37. package/dist/assets/fonts/SourceSansPro/regular.woff2 +0 -0
  38. package/dist/assets/fonts/SourceSansPro/regularitalic.woff2 +0 -0
  39. package/dist/assets/fonts/SourceSansPro/semibold.woff2 +0 -0
  40. package/dist/assets/fonts/SourceSansPro/semibolditalic.woff2 +0 -0
  41. package/dist/assets/icons/logos/patreon.svg +0 -3
  42. package/dist/assets/icons/phosphor/arrow-right.svg +0 -1
  43. package/dist/assets/icons/phosphor/arrow-square-out.svg +0 -1
  44. package/dist/assets/icons/phosphor/caret-down.svg +0 -1
  45. package/dist/assets/icons/phosphor/check-circle.svg +0 -1
  46. package/dist/assets/icons/phosphor/check.svg +0 -1
  47. package/dist/assets/icons/phosphor/coffee.svg +0 -1
  48. package/dist/assets/icons/phosphor/download-simple.svg +0 -1
  49. package/dist/assets/icons/phosphor/envelope-simple.svg +0 -1
  50. package/dist/assets/icons/phosphor/files.svg +0 -1
  51. package/dist/assets/icons/phosphor/info.svg +0 -1
  52. package/dist/assets/icons/phosphor/warning.svg +0 -1
  53. package/dist/assets/icons/phosphor/x-circle.svg +0 -1
  54. package/dist/assets/icons/rabbit.svg +0 -1
@@ -0,0 +1,207 @@
1
+ @use "sass:list";
2
+ @use "../common/mixins";
3
+ @use "../common/variables";
4
+
5
+ // —————————————————————————————————————————————————————————————————
6
+ // elements
7
+ // align
8
+ // weight
9
+ // transform
10
+ // italic
11
+ // underline
12
+ // strikeThrough
13
+ // code
14
+ // color
15
+ // —————————————————————————————————————————————————————————————————
16
+
17
+ // —————————————————————————————————————————————————————————————————
18
+ // elements
19
+ // —————————————————————————————————————————————————————————————————
20
+
21
+ @mixin font-size($font-size, $font-weight, $line-height) {
22
+ font-size: $font-size;
23
+ font-weight: $font-weight;
24
+ line-height: $line-height;
25
+ }
26
+
27
+ .h1, %h1 {
28
+ @include font-size(
29
+ variables.$h1-size,
30
+ variables.$h1-weight,
31
+ variables.$h1-line-height
32
+ );
33
+ }
34
+
35
+ .h2, %h2 {
36
+ @include font-size(
37
+ variables.$h2-size,
38
+ variables.$h2-weight,
39
+ variables.$h2-line-height
40
+ );
41
+ }
42
+
43
+ .h3, %h3 {
44
+ @include font-size(
45
+ variables.$h3-size,
46
+ variables.$h3-weight,
47
+ variables.$h3-line-height
48
+ );
49
+ }
50
+
51
+ .h4, %h4 {
52
+ @include font-size(
53
+ variables.$h4-size,
54
+ variables.$h4-weight,
55
+ variables.$h4-line-height
56
+ );
57
+ }
58
+
59
+ .h5, %h5 {
60
+ @include font-size(
61
+ variables.$h5-size,
62
+ variables.$h5-weight,
63
+ variables.$h5-line-height
64
+ );
65
+ }
66
+
67
+ .h6, %h6 {
68
+ @include font-size(
69
+ variables.$h6-size,
70
+ variables.$h6-weight,
71
+ variables.$h6-line-height
72
+ );
73
+ }
74
+
75
+ .subtitle, %subtitle {
76
+ @include font-size(
77
+ variables.$subtitle-size,
78
+ variables.$subtitle-weight,
79
+ variables.$subtitle-line-height
80
+ );
81
+ }
82
+
83
+ .body, %body {
84
+ @include font-size(
85
+ variables.$body-size,
86
+ variables.$body-weight,
87
+ variables.$body-line-height
88
+ );
89
+ }
90
+
91
+ .caption, %caption {
92
+ @include font-size(
93
+ variables.$caption-size,
94
+ variables.$caption-weight,
95
+ variables.$caption-line-height
96
+ );
97
+ }
98
+
99
+ .overline, %overline {
100
+ @include font-size(
101
+ variables.$overline-size,
102
+ variables.$overline-weight,
103
+ variables.$overline-line-height
104
+ );
105
+ }
106
+
107
+ @mixin gutter {
108
+
109
+ & + & {
110
+ margin-top: .75em;
111
+ }
112
+ }
113
+
114
+ .h1, .h2, .h3, .h4, .h5, .h6,
115
+ .subtitle, .body, .caption, .overline {
116
+ @include gutter;
117
+ }
118
+
119
+ // —————————————————————————————————————————————————————————————————
120
+ // align
121
+ // —————————————————————————————————————————————————————————————————
122
+
123
+ .text-left, %text-left { text-align: left !important; }
124
+ .text-center, %text-center { text-align: center !important; }
125
+ .text-right, %text-right { text-align: right !important; }
126
+
127
+ // —————————————————————————————————————————————————————————————————
128
+ // weight
129
+ // —————————————————————————————————————————————————————————————————
130
+
131
+ .text-regular, %text-regular { font-weight: variables.$font-regular !important; }
132
+ .text-bold, %text-bold { font-weight: variables.$font-bold !important; }
133
+
134
+ // —————————————————————————————————————————————————————————————————
135
+ // transform
136
+ // —————————————————————————————————————————————————————————————————
137
+
138
+ .text-none, %text-none { text-transform: none; }
139
+ .text-capitalize, %text-capitalize { text-transform: capitalize; }
140
+ .text-uppercase, %text-uppercase { text-transform: uppercase; }
141
+ .text-lowercase, %text-lowercase { text-transform: lowercase; }
142
+ .text-initial, %text-initial { text-transform: initial; }
143
+ .text-inherit, %text-inherit { text-transform: inherit; }
144
+
145
+ // —————————————————————————————————————————————————————————————————
146
+ // italic
147
+ // —————————————————————————————————————————————————————————————————
148
+
149
+ .text-italic, %text-italic { font-style: italic !important; }
150
+
151
+ // —————————————————————————————————————————————————————————————————
152
+ // underline
153
+ // —————————————————————————————————————————————————————————————————
154
+
155
+ .text-underline, %text-underline { text-decoration: underline !important; }
156
+
157
+ // —————————————————————————————————————————————————————————————————
158
+ // strikeThrough
159
+ // —————————————————————————————————————————————————————————————————
160
+
161
+ .text-strikeThrough, %text-strikeThrough { text-decoration: line-through !important; }
162
+
163
+ // —————————————————————————————————————————————————————————————————
164
+ // code
165
+ // —————————————————————————————————————————————————————————————————
166
+
167
+ .text-code, %text-code { font-family: variables.$font-code !important; }
168
+
169
+ // —————————————————————————————————————————————————————————————————
170
+ // color
171
+ // —————————————————————————————————————————————————————————————————
172
+
173
+ @mixin color($prefix, $colors...) {
174
+ @each $i in $colors {
175
+ .#{$prefix}#{list.nth($i, 1)} {
176
+ color: list.nth($i, 2) !important;
177
+
178
+ .h1, .h2, .h3, .h4, .h5, .h6 {
179
+ color: list.nth($i, 2) !important;
180
+ }
181
+
182
+ &.link {
183
+ text-decoration: underline rgba(list.nth($i, 2), 0.5);
184
+
185
+ @include mixins.hover {
186
+ text-decoration: underline 0.125em;
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+
193
+ @include color('text-',
194
+ 'default' variables.$text,
195
+ 'alt' variables.$text-alt,
196
+ 'disabled' variables.$text-disabled,
197
+ 'contrast' variables.$text-contrast,
198
+ 'contrastAlt' variables.$text-contrast-alt,
199
+ 'contrastDisabled' variables.$text-contrast-disabled,
200
+ 'primary' variables.$primary,
201
+ 'secondary' variables.$secondary,
202
+ 'primary' variables.$primary,
203
+ 'success' variables.$success,
204
+ 'info' variables.$info,
205
+ 'warning' variables.$warning,
206
+ 'error' variables.$error,
207
+ );
package/package.json CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "pallote-css",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "CSS component library",
5
- "main": "dist/pallote.min.css",
6
- "styles": "dist/pallote.min.css",
5
+ "main": "dist/pallote.scss",
6
+ "styles": "dist/pallote.scss",
7
7
  "files": [
8
8
  "dist/*"
9
9
  ],
10
+ "publishConfig": {
11
+ "directory": "dist"
12
+ },
10
13
  "scripts": {
11
- "dev": "bundle exec jekyll serve & onchange 'src/styles/**/*.scss' 'src/scripts/**/*.js' -- npm run build",
14
+ "dev": "onchange 'src/styles/**/*.scss' 'src/scripts/**/*.js' -- npm run build",
12
15
  "build": "npm run build:js && npm run build:css",
13
16
  "build:assets": "ncp src/assets dist/assets",
14
- "build:css": "sass src/pallote.scss dist/pallote.min.css --style=compressed",
17
+ "build:css": "sass src/pallote.scss dist/pallote.min.css --style=compressed && ncp src/styles dist/styles && ncp src/pallote.scss dist/pallote.scss",
15
18
  "build:js": "uglifyjs src/scripts/*.js -o dist/pallote.min.js"
16
19
  },
17
20
  "repository": {
@@ -32,7 +35,6 @@
32
35
  "devDependencies": {
33
36
  "ncp": "^2.0.0",
34
37
  "onchange": "^7.1.0",
35
- "pallote-css": "^0.2.7",
36
38
  "sass": "^1.71.1",
37
39
  "uglify-js": "^3.17.4"
38
40
  }
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M22.0873 7.60923C22.0835 4.80015 19.8957 2.49789 17.3288 1.66718C14.1413 0.635628 9.93721 0.785146 6.89347 2.22126C3.20439 3.96211 2.04552 7.77545 2.00233 11.5786C1.96689 14.7055 2.27896 22.941 6.92423 22.9997C10.3758 23.0435 10.8897 18.596 12.4868 16.4541C13.623 14.9301 15.086 14.4997 16.887 14.054C19.9823 13.2879 22.0918 10.8451 22.0873 7.60923Z" fill="currentColor"/>
3
- </svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M80,56V24a8,8,0,0,1,16,0V56a8,8,0,0,1-16,0Zm40,8a8,8,0,0,0,8-8V24a8,8,0,0,0-16,0V56A8,8,0,0,0,120,64Zm32,0a8,8,0,0,0,8-8V24a8,8,0,0,0-16,0V56A8,8,0,0,0,152,64Zm96,56v8a40,40,0,0,1-37.51,39.91,96.59,96.59,0,0,1-27,40.09H208a8,8,0,0,1,0,16H32a8,8,0,0,1,0-16H56.54A96.3,96.3,0,0,1,24,136V88a8,8,0,0,1,8-8H208A40,40,0,0,1,248,120ZM200,96H40v40a80.27,80.27,0,0,0,45.12,72h69.76A80.27,80.27,0,0,0,200,136Zm32,24a24,24,0,0,0-16-22.62V136a95.78,95.78,0,0,1-1.2,15A24,24,0,0,0,232,128Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M213.66,66.34l-40-40A8,8,0,0,0,168,24H88A16,16,0,0,0,72,40V56H56A16,16,0,0,0,40,72V216a16,16,0,0,0,16,16H168a16,16,0,0,0,16-16V200h16a16,16,0,0,0,16-16V72A8,8,0,0,0,213.66,66.34ZM168,216H56V72h76.69L168,107.31v84.53c0,.06,0,.11,0,.16s0,.1,0,.16V216Zm32-32H184V104a8,8,0,0,0-2.34-5.66l-40-40A8,8,0,0,0,136,56H88V40h76.69L200,75.31Zm-56-32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,152Zm0,32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,184Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rabbit"><path d="M20 8.54V4a2 2 0 1 0-4 0v3"/><path d="M7.61 12.53a3 3 0 1 0-1.6 4.3" color="white"/><path d="M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1.93 1.93 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1c-1.7 0-3 1.3-3 3"/><path d="M13 16a3 3 0 0 1 2.24 5"/><path d="M18 12h.01" color="white"/></svg>