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
@@ -0,0 +1,122 @@
1
+ // —————————————————————————————————————————————————————————————————
2
+ // fill
3
+ // stroke
4
+ // —————————————————————————————————————————————————————————————————
5
+
6
+ // —————————————————————————————————————————————————————————————————
7
+ // fill
8
+ // —————————————————————————————————————————————————————————————————
9
+
10
+ @mixin fill($colors...) {
11
+
12
+ @each $i in $colors {
13
+ .fill--#{nth($i, 1)} {
14
+ color: nth($i, 3) !important;
15
+ background-color: nth($i, 2) !important;
16
+
17
+ .card__title {
18
+ color: nth($i, 3) !important;
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ @include fill (
25
+ "white" $white $text-contrast,
26
+ "black" $black $text,
27
+
28
+ "grey90" $grey-90 $text,
29
+ "grey80" $grey-80 $text,
30
+ "grey70" $grey-70 $text,
31
+ "grey60" $grey-60 $text,
32
+ "grey50" $grey-50 $text,
33
+ "grey40" $grey-40 $text-contrast,
34
+ "grey30" $grey-30 $text-contrast,
35
+ "grey20" $grey-20 $text-contrast,
36
+ "grey10" $grey-10 $text-contrast,
37
+ "grey5" $grey-5 $text-contrast,
38
+
39
+ "primaryLight" $primary-light $text-contrast,
40
+ "primary" $primary $primary-text,
41
+ "primaryDark" $primary-dark $primary-text,
42
+ "secondaryLight" $secondary-light $text-contrast,
43
+ "secondary" $secondary $secondary-text,
44
+ "secondaryDark" $secondary-dark $secondary-text,
45
+ "highlightLight" $highlight-light $text-contrast,
46
+ "highlight" $highlight $highlight-text,
47
+ "highlightDark" $highlight-dark $highlight-text,
48
+
49
+ "successLight" $success-light $text-contrast,
50
+ "success" $success $success-contrast,
51
+ "successDark" $success-dark $success-contrast,
52
+ "infoLight" $info-light $text-contrast,
53
+ "info" $info $info-contrast,
54
+ "infoDark" $info-dark $info-contrast,
55
+ "warningLight" $warning-light $text-contrast,
56
+ "warning" $warning $warning-contrast,
57
+ "warningDark" $warning-dark $warning-contrast,
58
+ "errorLight" $error-light $text-contrast,
59
+ "error" $error $error-contrast,
60
+ "errorDark" $error-dark $error-contrast,
61
+
62
+ "default" $background-default $text,
63
+ "paper" $background-paper $text,
64
+
65
+ "border" $border-color $text
66
+ );
67
+
68
+ // —————————————————————————————————————————————————————————————————
69
+ // stroke
70
+ // —————————————————————————————————————————————————————————————————
71
+
72
+ @mixin stroke($colors...) {
73
+ @each $i in $colors {
74
+ .stroke--#{nth($i, 1)} {
75
+ border: 1px solid nth($i, 2) !important;
76
+ }
77
+ }
78
+ }
79
+
80
+ @include stroke (
81
+ "black" $black,
82
+ "white" $white,
83
+
84
+ "grey90" $grey-90,
85
+ "grey80" $grey-80,
86
+ "grey70" $grey-70,
87
+ "grey60" $grey-60,
88
+ "grey50" $grey-50,
89
+ "grey40" $grey-40,
90
+ "grey30" $grey-30,
91
+ "grey20" $grey-20,
92
+ "grey10" $grey-10,
93
+ "grey5" $grey-5 ,
94
+
95
+ "primaryLight" $primary-light,
96
+ "primary" $primary,
97
+ "primaryDark" $primary-dark,
98
+ "secondaryLight" $secondary-light,
99
+ "secondary" $secondary,
100
+ "secondaryDark" $secondary-dark,
101
+ "highlightLight" $highlight-light,
102
+ "highlight" $highlight,
103
+ "highlightDark" $highlight-dark,
104
+
105
+ "successLight" $success-light,
106
+ "success" $success,
107
+ "successDark" $success-dark,
108
+ "infoLight" $info-light,
109
+ "info" $info,
110
+ "infoDark" $info-dark,
111
+ "warningLight" $warning-light,
112
+ "warning" $warning,
113
+ "warningDark" $warning-dark,
114
+ "errorLight" $error-light,
115
+ "error" $error,
116
+ "errorDark" $error-dark,
117
+
118
+ "default" $background-default,
119
+ "paper" $background-paper,
120
+
121
+ "border" $border-color
122
+ );
@@ -0,0 +1,121 @@
1
+ // —————————————————————————————————————————————————————————————————
2
+ // responsive
3
+ // spacing and size
4
+ // position
5
+ // display
6
+ // misc
7
+ // —————————————————————————————————————————————————————————————————
8
+
9
+ // —————————————————————————————————————————————————————————————————
10
+ // responsive
11
+ // —————————————————————————————————————————————————————————————————
12
+
13
+ .hide {
14
+
15
+ &-desktop { @include responsive(down, desktop) { display: none !important; } }
16
+ &-laptop { @include responsive(down, laptop) { display: none !important; } }
17
+ &-tablet { @include responsive(down, tablet) { display: none !important; } }
18
+ &-mobile { @include responsive(down, mobile) { display: none !important; } }
19
+ &-touch { @include responsive-touch { display: none !important; } }
20
+ }
21
+
22
+ .show {
23
+
24
+ &-desktop { @include responsive(up, desktop) { display: none !important; } }
25
+ &-laptop { @include responsive(up, laptop) { display: none !important; } }
26
+ &-tablet { @include responsive(up, tablet) { display: none !important; } }
27
+ &-mobile { @include responsive(up, mobile) { display: none !important; } }
28
+ }
29
+
30
+ // —————————————————————————————————————————————————————————————————
31
+ // spacing and size
32
+ // —————————————————————————————————————————————————————————————————
33
+
34
+ // margin and padding
35
+
36
+ .m-05 { margin: $spacing-sm !important; }
37
+ .mt-05 { margin-top: $spacing-sm !important; }
38
+ .mr-05 { margin-right: $spacing-sm !important; }
39
+ .mb-05 { margin-bottom: $spacing-sm !important; }
40
+ .ml-05 { margin-left: $spacing-sm !important; }
41
+
42
+ .p-05 { padding: $spacing-sm !important; }
43
+ .pt-05 { padding-top: $spacing-sm !important; }
44
+ .pr-05 { padding-right: $spacing-sm !important; }
45
+ .pb-05 { padding-bottom: $spacing-sm !important; }
46
+ .pl-05 { padding-left: $spacing-sm !important; }
47
+
48
+ @for $i from 1 through 20 {
49
+
50
+ .m-#{$i} { margin: $i*$spacing-sm !important; }
51
+ .mt-#{$i} { margin-top: $i*$spacing-sm !important; }
52
+ .mr-#{$i} { margin-right: $i*$spacing-sm !important; }
53
+ .mb-#{$i} { margin-bottom: $i*$spacing-sm !important; }
54
+ .ml-#{$i} { margin-left: $i*$spacing-sm !important; }
55
+
56
+ .p-#{$i} { padding: $i*$spacing-sm !important; }
57
+ .pt-#{$i} { padding-top: $i*$spacing-sm !important; }
58
+ .pr-#{$i} { padding-right: $i*$spacing-sm !important; }
59
+ .pb-#{$i} { padding-bottom: $i*$spacing-sm !important; }
60
+ .pl-#{$i} { padding-left: $i*$spacing-sm !important; }
61
+ }
62
+
63
+ // width
64
+
65
+ $max: 100;
66
+ $step: 5;
67
+
68
+ @for $i from 1 through calc($max/$step) {
69
+ $value: $i * $step;
70
+
71
+ .w-percent-#{$value} { width: $value + 0% !important; }
72
+ }
73
+
74
+ @for $i from 1 through 40 {
75
+
76
+ .w-rem-#{$i} { width: $i*$spacing-sm !important; }
77
+ }
78
+
79
+ // —————————————————————————————————————————————————————————————————
80
+ // position
81
+ // —————————————————————————————————————————————————————————————————
82
+
83
+ .pos {
84
+
85
+ &-absolute { position: absolute; }
86
+ }
87
+ // —————————————————————————————————————————————————————————————————
88
+ // display
89
+ // —————————————————————————————————————————————————————————————————
90
+
91
+ // general display
92
+
93
+ .d-flex { display: flex; }
94
+ .d-inlineFlex { display: inline-flex; }
95
+ .d-block { display: block; }
96
+ .d-inlineBlock { display: inline-block; }
97
+
98
+ // flexbox
99
+
100
+ .fb {
101
+
102
+ &-content { flex-basis: content !important; }
103
+ &-0 { flex-basis: 0 !important; }
104
+ &-1 { flex-basis: 1 !important; }
105
+ }
106
+
107
+ .fg {
108
+
109
+ &-0 { flex-grow: 0 !important; }
110
+ &-1 { flex-grow: 1 !important; }
111
+ }
112
+
113
+ .fs {
114
+
115
+ &-0 { flex-shrink: 0 !important; }
116
+ &-1 { flex-shrink: 1 !important; }
117
+ }
118
+
119
+ // —————————————————————————————————————————————————————————————————
120
+ // misc
121
+ // —————————————————————————————————————————————————————————————————
@@ -0,0 +1,63 @@
1
+ // —————————————————————————————————————————————————————————————————
2
+ // color
3
+ // alignement
4
+ // style
5
+ // weight
6
+ // —————————————————————————————————————————————————————————————————
7
+
8
+ // —————————————————————————————————————————————————————————————————
9
+ // color
10
+ // —————————————————————————————————————————————————————————————————
11
+
12
+ @mixin color($prefix, $colors...) {
13
+ @each $i in $colors {
14
+ .#{$prefix}#{nth($i, 1)} {
15
+ color: nth($i, 2) !important;
16
+
17
+ .h1, .h2, .h3, .h4, .h5, .h6 {
18
+ color: nth($i, 2) !important;
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ @include color('text--',
25
+ 'default' $text,
26
+ 'alt' $text-alt,
27
+ 'disabled' $text-disabled,
28
+ 'contrast' $text-contrast,
29
+ 'contrastAlt' $text-contrast-alt,
30
+ 'contrastDisabled' $text-contrast-disabled,
31
+ 'primary' $primary,
32
+ 'secondary' $secondary,
33
+ 'primary' $primary,
34
+ 'highlight' $highlight,
35
+ 'success' $success,
36
+ 'info' $info,
37
+ 'warning' $warning,
38
+ 'error' $error,
39
+ );
40
+
41
+ // —————————————————————————————————————————————————————————————————
42
+ // alignement
43
+ // —————————————————————————————————————————————————————————————————
44
+
45
+ .text--left, %text--left { text-align: left !important; }
46
+ .text--center, %text--center { text-align: center !important; }
47
+ .text--right, %text--right { text-align: right !important; }
48
+
49
+ // —————————————————————————————————————————————————————————————————
50
+ // style
51
+ // —————————————————————————————————————————————————————————————————
52
+
53
+ .text--italic, %text--italic { font-style: italic !important; }
54
+ .text--underline, %text--underline { text-decoration: underline !important; }
55
+ .text--strikeThrough, %text--strikeThrough { text-decoration: line-through !important; }
56
+
57
+ // —————————————————————————————————————————————————————————————————
58
+ // weight
59
+ // —————————————————————————————————————————————————————————————————
60
+
61
+ .text--regular, %text--regular { font-weight: $font-regular !important; }
62
+ .text--bold, %text--bold { font-weight: $font-bold !important; }
63
+ .text--black, %text--black { font-weight: $font-black !important; }
package/package.json ADDED
@@ -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
+ }