pallote-css 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +88 -0
  3. package/_site/LICENSE +21 -0
  4. package/_site/README.md +88 -0
  5. package/_site/package.json +28 -0
  6. package/assets/_sass/.DS_Store +0 -0
  7. package/assets/_sass/common/_editor.scss +166 -0
  8. package/assets/_sass/common/_fontface.scss +28 -0
  9. package/assets/_sass/common/_global.scss +132 -0
  10. package/assets/_sass/common/_mixins.scss +156 -0
  11. package/assets/_sass/common/_reset.scss +81 -0
  12. package/assets/_sass/common/_variables.scss +213 -0
  13. package/assets/_sass/components/_alert.scss +189 -0
  14. package/assets/_sass/components/_button.scss +257 -0
  15. package/assets/_sass/components/_buttons.scss +63 -0
  16. package/assets/_sass/components/_card.scss +252 -0
  17. package/assets/_sass/components/_form.scss +68 -0
  18. package/assets/_sass/components/_grid.scss +163 -0
  19. package/assets/_sass/components/_input.scss +268 -0
  20. package/assets/_sass/components/_link.scss +49 -0
  21. package/assets/_sass/components/_list.scss +40 -0
  22. package/assets/_sass/components/_nav.scss +72 -0
  23. package/assets/_sass/components/_navbar.scss +207 -0
  24. package/assets/_sass/components/_page.scss +33 -0
  25. package/assets/_sass/components/_section.scss +158 -0
  26. package/assets/_sass/components/_sidebar.scss +27 -0
  27. package/assets/_sass/components/_tag.scss +78 -0
  28. package/assets/_sass/components/_text.scss +89 -0
  29. package/assets/_sass/modules/_cookie.scss +32 -0
  30. package/assets/_sass/plugins/_highlighter-theme.scss +68 -0
  31. package/assets/_sass/utilities/_color.scss +122 -0
  32. package/assets/_sass/utilities/_global.scss +121 -0
  33. package/assets/_sass/utilities/_text.scss +63 -0
  34. package/package.json +28 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Arnaud Darré
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # Pallote CSS
2
+
3
+ Lightweight CSS component library
4
+
5
+ ## Run and deploy
6
+
7
+ ### Run the website locally
8
+
9
+ - Install [Jekyll](https://jekyllrb.com/). Jekyll is a Ruby Gem that can be installed on most systems ([Installation manual](https://jekyllrb.com/docs/installation/)).
10
+
11
+ - Run the website in development mode
12
+
13
+ ```shell
14
+ jekyll serve
15
+ ```
16
+
17
+ ### Branches and environments
18
+
19
+ | Environment | Branch | URL |
20
+ | --- | --- | --- |
21
+ | Local | | [localhost:4000](http://localhost:4000) |
22
+ | Staging | `develop` | [develop.pallote.com](https://develop.pallote.com/) |
23
+ | Production | `production` | [pallote.com](https://pallote.com/) |
24
+
25
+ ### Deployment
26
+
27
+ We use git flow for versioning and version tagging. On branch develop:
28
+
29
+ - Pull the latest changes
30
+
31
+ ```shell
32
+ git pull | git pull origin production
33
+ ```
34
+
35
+ - Initiate your feature
36
+
37
+ ```shell
38
+ git flow feature start my-feature
39
+ ```
40
+
41
+ - This will automatically create a new branch to work on your feature
42
+ - Once the feature/update is done, close the feature
43
+
44
+ ```shell
45
+ git flow feature finish my-feature
46
+ ```
47
+
48
+ - push the changes to the remote `develop` branch, to test on the staging environment
49
+
50
+ ```shell
51
+ git push
52
+ ```
53
+
54
+ - Once the tests have passed, publish the release (adding the version tag at the end)
55
+
56
+ ```shell
57
+ git flow release start x.x.x
58
+ git flow release finish x.x.x
59
+ ```
60
+
61
+ - push the changes
62
+
63
+ ```shell
64
+ git push | git push origin develop | git push --tags
65
+ ```
66
+
67
+ Deployment is automated with Netlify. The production and staging environments are deployed automatically when the corresponding branches are pushed.
68
+
69
+ ## Dependencies & Methodologies
70
+
71
+ ### SASS
72
+
73
+ Styling is powered with Sass, a preprocessor scripting language that is interpreted or compiled into Cascading Style Sheets (CSS).
74
+ Style files are located in the assets/_sass folder. You don't need to run any additional command to compile, it does it automatically with `jekyll serve` ([installation manual](https://sass-lang.com/install)).
75
+
76
+ ### Jekyll plugins
77
+
78
+ #### Compress
79
+
80
+ A Jekyll layout that compresses HTML ([documentation](http://jch.penibelst.de/)).
81
+
82
+ #### Jekyll Inline SVG
83
+
84
+ SVG optimizer and inliner for jekyll ([documentation](https://github.com/sdumetz/jekyll-inline-svg)).
85
+
86
+ #### Liquify
87
+
88
+ A Jekyll filter that can parse Liquid in front matter ([documentation](https://github.com/gemfarmer/jekyll-liquify)).
package/_site/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Arnaud Darré
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,88 @@
1
+ # Pallote CSS
2
+
3
+ Lightweight CSS component library
4
+
5
+ ## Run and deploy
6
+
7
+ ### Run the website locally
8
+
9
+ - Install [Jekyll](https://jekyllrb.com/). Jekyll is a Ruby Gem that can be installed on most systems ([Installation manual](https://jekyllrb.com/docs/installation/)).
10
+
11
+ - Run the website in development mode
12
+
13
+ ```shell
14
+ jekyll serve
15
+ ```
16
+
17
+ ### Branches and environments
18
+
19
+ | Environment | Branch | URL |
20
+ | --- | --- | --- |
21
+ | Local | | [localhost:4000](http://localhost:4000) |
22
+ | Staging | `develop` | [develop.pallote.com](https://develop.pallote.com/) |
23
+ | Production | `production` | [pallote.com](https://pallote.com/) |
24
+
25
+ ### Deployment
26
+
27
+ We use git flow for versioning and version tagging. On branch develop:
28
+
29
+ - Pull the latest changes
30
+
31
+ ```shell
32
+ git pull | git pull origin production
33
+ ```
34
+
35
+ - Initiate your feature
36
+
37
+ ```shell
38
+ git flow feature start my-feature
39
+ ```
40
+
41
+ - This will automatically create a new branch to work on your feature
42
+ - Once the feature/update is done, close the feature
43
+
44
+ ```shell
45
+ git flow feature finish my-feature
46
+ ```
47
+
48
+ - push the changes to the remote `develop` branch, to test on the staging environment
49
+
50
+ ```shell
51
+ git push
52
+ ```
53
+
54
+ - Once the tests have passed, publish the release (adding the version tag at the end)
55
+
56
+ ```shell
57
+ git flow release start x.x.x
58
+ git flow release finish x.x.x
59
+ ```
60
+
61
+ - push the changes
62
+
63
+ ```shell
64
+ git push | git push origin develop | git push --tags
65
+ ```
66
+
67
+ Deployment is automated with Netlify. The production and staging environments are deployed automatically when the corresponding branches are pushed.
68
+
69
+ ## Dependencies & Methodologies
70
+
71
+ ### SASS
72
+
73
+ Styling is powered with Sass, a preprocessor scripting language that is interpreted or compiled into Cascading Style Sheets (CSS).
74
+ Style files are located in the assets/_sass folder. You don't need to run any additional command to compile, it does it automatically with `jekyll serve` ([installation manual](https://sass-lang.com/install)).
75
+
76
+ ### Jekyll plugins
77
+
78
+ #### Compress
79
+
80
+ A Jekyll layout that compresses HTML ([documentation](http://jch.penibelst.de/)).
81
+
82
+ #### Jekyll Inline SVG
83
+
84
+ SVG optimizer and inliner for jekyll ([documentation](https://github.com/sdumetz/jekyll-inline-svg)).
85
+
86
+ #### Liquify
87
+
88
+ A Jekyll filter that can parse Liquid in front matter ([documentation](https://github.com/gemfarmer/jekyll-liquify)).
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "pallote-css",
3
+ "version": "0.0.0",
4
+ "description": "CSS component library",
5
+ "main": "_site/assets/css/pallote.css",
6
+ "files": [
7
+ "_site/assets/css/pallote.css",
8
+ "assets/_sass/*"
9
+ ],
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/ArnaudDarre/pallote-css.git"
16
+ },
17
+ "keywords": [
18
+ "CSS library",
19
+ "CSS Components",
20
+ "SASS"
21
+ ],
22
+ "author": "Nocheke",
23
+ "license": "ISC",
24
+ "bugs": {
25
+ "url": "https://github.com/ArnaudDarre/pallote-css/issues"
26
+ },
27
+ "homepage": "https://github.com/ArnaudDarre/pallote-css#readme"
28
+ }
Binary file
@@ -0,0 +1,166 @@
1
+ // —————————————————————————————————————————————————————————————————
2
+ // text
3
+ // lists
4
+ // table
5
+ // —————————————————————————————————————————————————————————————————
6
+
7
+ .editor, %editor {
8
+ max-width: $max-width-editor;
9
+
10
+ // —————————————————————————————————————————————————————————————————
11
+ // text
12
+ // —————————————————————————————————————————————————————————————————
13
+
14
+ h2 { @extend %h3; }
15
+ h3 { @extend %h4; }
16
+ h4 { @extend %h5; }
17
+ h5 { @extend %h6; }
18
+ h6 { @extend %subtitle; }
19
+ blockquote { @extend %subtitle; }
20
+
21
+ h2 {
22
+ color: $primary;
23
+ }
24
+
25
+ h2, h3, h4, h5, h6 {
26
+
27
+ &:not(:first-child) { margin-top: 1.5em; }
28
+ &:not(:last-child) { margin-bottom: .75em; }
29
+ }
30
+
31
+ p,
32
+ ol, ul,
33
+ p + a, a + p {
34
+
35
+ &:not(:first-child) { margin-top: 0.75em; }
36
+ }
37
+
38
+ .highlighter-rouge,
39
+ .alert {
40
+ margin-top: 1.5rem;
41
+ margin-bottom: 1.5rem;
42
+ width: fit-content;
43
+ }
44
+
45
+ a {
46
+ color: $primary;
47
+ text-decoration: underline;
48
+ }
49
+
50
+ strong {
51
+ font-weight: $font-bold;
52
+ }
53
+
54
+ em {
55
+ font-style: italic;
56
+ }
57
+
58
+ blockquote {
59
+ position: relative;
60
+ background-color: $background-paper;
61
+ padding: $spacing-md $spacing-lg;
62
+ border-radius: $border-radius-md;
63
+
64
+ &:before {
65
+ @include pseudo-element('”', -$spacing-md, auto, auto, -$spacing-sm, auto, auto);
66
+ font-size: $spacing-xxl;
67
+ color: $primary;
68
+ line-height: 1;
69
+ }
70
+
71
+ &:not(:first-child) {
72
+ margin-top: 1.5rem;
73
+ margin-bottom: 1.5rem;
74
+ }
75
+ }
76
+
77
+ // —————————————————————————————————————————————————————————————————
78
+ // lists
79
+ // —————————————————————————————————————————————————————————————————
80
+
81
+ ol,
82
+ ul {
83
+ margin-left: $spacing-md;
84
+ }
85
+
86
+ ol { list-style: decimal; }
87
+ ul { list-style: disc; }
88
+
89
+ li + li { margin-top: $spacing-xs; }
90
+
91
+ li {
92
+
93
+ > ul {
94
+ margin-top: 0.25rem !important;
95
+ margin-left: 0;
96
+
97
+ li + li { margin-top: 0; }
98
+ }
99
+
100
+ &:not(:last-child) {
101
+
102
+ > ul {
103
+ margin-bottom: 0.25rem;
104
+ }
105
+ }
106
+ }
107
+
108
+ // —————————————————————————————————————————————————————————————————
109
+ // table
110
+ // —————————————————————————————————————————————————————————————————
111
+
112
+ table {
113
+ border-collapse: separate;
114
+ border: $border;
115
+ border-radius: $border-radius-sm;
116
+
117
+ &.table--dense {
118
+
119
+ th { font-size: 0.65rem; }
120
+ td { font-size: 0.75rem;; }
121
+ td, th { padding: 1px $spacing-xs; }
122
+ }
123
+ }
124
+
125
+ thead {
126
+ background-color: $background-paper;
127
+
128
+ tr:first-child {
129
+
130
+ th {
131
+ border-top: none;
132
+
133
+ &:first-of-type { border-top-left-radius: $border-radius-sm; }
134
+ &:last-of-type { border-top-right-radius: $border-radius-sm; }
135
+ }
136
+ }
137
+ }
138
+
139
+ tbody {
140
+
141
+ tr:last-child {
142
+
143
+ th, td {
144
+
145
+ &:first-of-type { border-bottom-left-radius: $border-radius-sm; }
146
+ &:last-of-type { border-bottom-right-radius: $border-radius-sm; }
147
+ }
148
+ }
149
+ }
150
+
151
+ td,
152
+ th {
153
+ padding: $spacing-xs $spacing-sm $spacing-sm;
154
+ border-top: $border;
155
+
156
+ &:not(:first-child) {
157
+ border-left: $border;
158
+ }
159
+ }
160
+
161
+ th {
162
+ font-size: 0.875rem;
163
+ font-weight: bold;
164
+ color: $text-alt;
165
+ }
166
+ }
@@ -0,0 +1,28 @@
1
+ // In order to have a clean a easy to use font, give the same font-family name to all styles.
2
+ // You can then sort them by using the font-style (normal or italic) property
3
+
4
+ // —————————————————————————————————————————————————————————————————
5
+ // list of styles and their weight equivalent
6
+ // —————————————————————————————————————————————————————————————————
7
+ // style name weight variable
8
+ // —————————————————————————————————————————————————————————————————
9
+ // thin, hairline 100 $thin
10
+ // extralight, ultralight 200 $extralight
11
+ // light 300 $light
12
+ // normal, regular 400 $regular
13
+ // medium 500 $medium
14
+ // semibold, demibold 600 $semibold
15
+ // bold 700 $bold
16
+ // extrabold, ultrabold 800 $extrabold
17
+ // black, heavy 900 $black
18
+ // —————————————————————————————————————————————————————————————————
19
+
20
+ // —————————————————————————————————————————————————————————————————
21
+ // barlow
22
+ // —————————————————————————————————————————————————————————————————
23
+
24
+ @include fontface('Barlow', barlow/barlow-regular, $font-regular, normal);
25
+ @include fontface('Barlow', barlow/barlow-italic, $font-regular, italic);
26
+
27
+ @include fontface('Barlow', barlow/barlow-semibold, $font-bold, normal);
28
+ @include fontface('Barlow', barlow/barlow-semibold-italic, $font-bold, italic);
@@ -0,0 +1,132 @@
1
+ html {
2
+ scroll-behavior: smooth;
3
+ }
4
+
5
+ body {
6
+ font-family: $font;
7
+ font-size: 16px;
8
+ line-height: 1.5;
9
+ font-weight: $font-regular;
10
+ background-color: $background-default;
11
+ color: $text;
12
+ // needed for footer margin-top: auto if content smaller than viewport height
13
+ display: flex;
14
+ flex-direction: column;
15
+ min-height: 100vh;
16
+
17
+ &.js-freeze {
18
+ overflow: hidden;
19
+ }
20
+ }
21
+
22
+ // stick to bottom of page when page height smaller than viewport height
23
+ footer {
24
+ margin-top: auto;
25
+ }
26
+
27
+ // embed responsively
28
+
29
+ .embed-container {
30
+ position: relative;
31
+ padding-bottom: 56.25%;
32
+ height: 0;
33
+ overflow: hidden;
34
+ max-width: 100%;
35
+ border-radius: $spacing-md;
36
+
37
+ iframe, object, embed {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ width: 100%;
42
+ height: 100%;
43
+ }
44
+ }
45
+
46
+ // text selection
47
+ ::-moz-selection {
48
+ background: $primary;
49
+ color: $primary-text;
50
+ }
51
+
52
+ ::selection {
53
+ background: $primary;
54
+ color: $primary-text;
55
+ }
56
+
57
+ ::-moz-selection {
58
+ background: $primary;
59
+ color: $primary-text;
60
+ }
61
+
62
+ // remove autocomplete from webkit browsers
63
+
64
+ input:-webkit-autofill,
65
+ input:-webkit-autofill:hover,
66
+ input:-webkit-autofill:focus,
67
+ textarea:-webkit-autofill,
68
+ textarea:-webkit-autofill:hover
69
+ textarea:-webkit-autofill:focus,
70
+ select:-webkit-autofill,
71
+ select:-webkit-autofill:hover,
72
+ select:-webkit-autofill:focus {
73
+ -webkit-box-shadow: 0 0 0px 1000px $primary-light inset;
74
+ @include transition($transition-md, background-color);
75
+ }
76
+
77
+ // prevent images from stretching with flex
78
+
79
+ img {
80
+ align-self: center;
81
+ width: 100%;
82
+ }
83
+
84
+ // lists
85
+
86
+ ul {
87
+ list-style: disc;
88
+ }
89
+
90
+ li {
91
+ margin-left: $spacing-md;
92
+
93
+ & + & {
94
+ padding-top: $spacing-xs;
95
+ }
96
+ }
97
+
98
+ // buttons and links
99
+
100
+ button,
101
+ a {
102
+ outline-color: $primary;
103
+ cursor: pointer;
104
+ }
105
+
106
+ // iframe
107
+
108
+ iframe {
109
+ display: block; // remove bottom spacing
110
+ width: 100%;
111
+ border-radius: $border-radius-md;
112
+ border: $border;
113
+ }
114
+
115
+ strong {
116
+ font-weight: $font-bold;
117
+ }
118
+
119
+ // z-index
120
+
121
+ @for $i from 0 through 9 {
122
+ .z-index--#{$i} { z-index: $i; }
123
+ }
124
+
125
+ .cookie { z-index: 10; }
126
+ header { z-index: 11; }
127
+
128
+ // background
129
+
130
+ .background-cover {
131
+ @include background(50% 50%, cover);
132
+ }