pallote-css 0.3.9 → 0.3.11

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 (45) hide show
  1. package/dist/pallote.min.css +1 -1
  2. package/dist/pallote.min.css.map +1 -1
  3. package/package.json +9 -7
  4. package/dist/pallote.scss +0 -36
  5. package/dist/scripts/accordion.js +0 -42
  6. package/dist/scripts/button.js +0 -5
  7. package/dist/scripts/cookie.js +0 -15
  8. package/dist/scripts/input.js +0 -18
  9. package/dist/scripts/nav.js +0 -22
  10. package/dist/scripts/navbar.js +0 -28
  11. package/dist/scripts/switch.js +0 -3
  12. package/dist/scripts/tabs.js +0 -30
  13. package/dist/styles/common/_editor.scss +0 -177
  14. package/dist/styles/common/_fontface.scss +0 -28
  15. package/dist/styles/common/_functions.scss +0 -11
  16. package/dist/styles/common/_global.scss +0 -154
  17. package/dist/styles/common/_mixins.scss +0 -162
  18. package/dist/styles/common/_reset.scss +0 -143
  19. package/dist/styles/common/_variables.scss +0 -249
  20. package/dist/styles/components/_accordion.scss +0 -130
  21. package/dist/styles/components/_alert.scss +0 -194
  22. package/dist/styles/components/_breadcrumbs.scss +0 -47
  23. package/dist/styles/components/_button.scss +0 -174
  24. package/dist/styles/components/_buttons.scss +0 -50
  25. package/dist/styles/components/_card.scss +0 -265
  26. package/dist/styles/components/_divider.scss +0 -50
  27. package/dist/styles/components/_form.scss +0 -55
  28. package/dist/styles/components/_grid.scss +0 -187
  29. package/dist/styles/components/_input.scss +0 -294
  30. package/dist/styles/components/_link.scss +0 -43
  31. package/dist/styles/components/_list.scss +0 -58
  32. package/dist/styles/components/_nav.scss +0 -270
  33. package/dist/styles/components/_navbar.scss +0 -189
  34. package/dist/styles/components/_page.scss +0 -33
  35. package/dist/styles/components/_section.scss +0 -189
  36. package/dist/styles/components/_sidebar.scss +0 -57
  37. package/dist/styles/components/_snippet.scss +0 -82
  38. package/dist/styles/components/_status.scss +0 -57
  39. package/dist/styles/components/_switch.scss +0 -81
  40. package/dist/styles/components/_tabs.scss +0 -115
  41. package/dist/styles/components/_tag.scss +0 -75
  42. package/dist/styles/modules/_cookie.scss +0 -38
  43. package/dist/styles/utilities/_color.scss +0 -116
  44. package/dist/styles/utilities/_global.scss +0 -208
  45. package/dist/styles/utilities/_text.scss +0 -203
@@ -1,115 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // elements
3
- // active
4
- // direction
5
- // dense
6
- // —————————————————————————————————————————————————————————————————
7
-
8
- // —————————————————————————————————————————————————————————————————
9
- // elements
10
- // —————————————————————————————————————————————————————————————————
11
-
12
- .tabs {
13
- width: 100%;
14
-
15
- &__controls {
16
- display: flex;
17
- width: 100%;
18
- border-bottom: $border;
19
- }
20
-
21
- &__item {
22
- position: relative;
23
- cursor: pointer;
24
- padding: $spacing-sm $spacing-md;
25
- border-top-left-radius: $border-radius-sm;
26
- border-top-right-radius: $border-radius-sm;
27
-
28
- &:after {
29
- content: '';
30
- position: absolute;
31
- bottom: -1px;
32
- left: 0;
33
- height: 1px;
34
- width: 100%;
35
- }
36
- }
37
-
38
- &__panel {
39
- padding: $spacing-md;
40
- }
41
- }
42
-
43
- // —————————————————————————————————————————————————————————————————
44
- // active
45
- // —————————————————————————————————————————————————————————————————
46
-
47
- .tabs__item:hover,
48
- .tabs__item--active {
49
- background-color: $hover;
50
- }
51
-
52
- .tabs__item--active {
53
- color: $primary;
54
-
55
- &:after {
56
- background-color: $primary;
57
- }
58
- }
59
-
60
- // —————————————————————————————————————————————————————————————————
61
- // direction
62
- // —————————————————————————————————————————————————————————————————
63
-
64
- .tabs--portrait {
65
- display: flex;
66
-
67
- .tabs {
68
-
69
- &__controls {
70
- flex-direction: column;
71
- width: 160px;
72
- border-bottom: 0;
73
- border-right: $border;
74
- }
75
-
76
- &__item {
77
- text-align: left;
78
- border-top-left-radius: $border-radius-sm;
79
- border-top-right-radius: 0;
80
- border-bottom-left-radius: $border-radius-sm;
81
-
82
- &:after {
83
- top: 0;
84
- right: -1px;
85
- left: auto;
86
- height: 100%;
87
- width: 1px;
88
- }
89
- }
90
-
91
- &__panel {
92
- padding-top: $spacing-sm;
93
- padding-bottom: $spacing-sm;
94
- }
95
- }
96
- }
97
-
98
- // —————————————————————————————————————————————————————————————————
99
- // dense
100
- // —————————————————————————————————————————————————————————————————
101
-
102
- .tabs--dense {
103
-
104
- .tabs {
105
-
106
- &__item {
107
- @extend %caption;
108
- padding: $spacing-xs $spacing-sm;
109
- }
110
-
111
- &__panel {
112
- padding: $spacing-sm;
113
- }
114
- }
115
- }
@@ -1,75 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // elements
3
- // color
4
- // dense
5
- // —————————————————————————————————————————————————————————————————
6
-
7
- // —————————————————————————————————————————————————————————————————
8
- // elements
9
- // —————————————————————————————————————————————————————————————————
10
-
11
- .tags {
12
- display: flex;
13
-
14
- .tag:not(:last-child) {
15
- margin-right: .25rem;
16
- }
17
-
18
- &-portrait {
19
- flex-direction: column;
20
- align-items: flex-start;
21
-
22
- .tag:not(:last-child) {
23
- margin-bottom: .25rem;
24
- margin-right: 0;
25
- }
26
- }
27
- }
28
-
29
- .tag {
30
- @extend %caption;
31
- display: inline-flex;
32
- align-items: center;
33
- justify-content: center;
34
- font-weight: $font-bold;
35
- border-radius: $border-radius-sm;
36
- white-space: nowrap; // prevent text to go on multiple lines
37
- height: 1.5rem;
38
- width: fit-content;
39
- min-width: fit-content;
40
- padding-right: 0.4em;
41
- padding-left: 0.4em;
42
- }
43
-
44
- // —————————————————————————————————————————————————————————————————
45
- // color
46
- // —————————————————————————————————————————————————————————————————
47
-
48
- @mixin color($prefix, $colors...) {
49
-
50
- @each $i in $colors {
51
- .#{$prefix}#{nth($i, 1)} {
52
- background-color: nth($i, 2);
53
- color: nth($i, 3);
54
- }
55
- }
56
- }
57
-
58
- @include color('tag',
59
- '' $primary $primary-contrast,
60
- '-secondary' $secondary $secondary-contrast,
61
- '-grey' $text-disabled $text,
62
- '-success' $success $success-contrast,
63
- '-info' $info $info-contrast,
64
- '-warning' $warning $warning-contrast,
65
- '-error' $error $error-contrast
66
- );
67
-
68
- // —————————————————————————————————————————————————————————————————
69
- // dense
70
- // —————————————————————————————————————————————————————————————————
71
-
72
- .tag-dense {
73
- @extend %overline;
74
- height: 1rem;
75
- }
@@ -1,38 +0,0 @@
1
- .cookie {
2
- z-index: 10;
3
-
4
- &.section {
5
- @include transition($transition-md, transform);
6
- position: fixed;
7
- right: 0;
8
- bottom: 0;
9
- left: 0;
10
- display: none;
11
- background-color: $background-default;
12
- text-align: left;
13
-
14
- .section_container {
15
- padding-top: 10px;
16
- padding-bottom: 9px;
17
- display: flex;
18
- flex-direction: row;
19
- align-items: baseline;
20
- justify-content: flex-start;
21
- }
22
- }
23
-
24
- &.js-cookie-accepted {
25
- @include transition($transition-md, transform);
26
- transform: translateY(100%);
27
- }
28
-
29
- &__text {
30
- width: 100%;
31
- display: inline;
32
- margin-right: $spacing-xs;
33
- }
34
-
35
- .link {
36
- flex-basis: 0;
37
- }
38
- }
@@ -1,116 +0,0 @@
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
- "main" $main $text,
26
- "contrast" $contrast $text-contrast,
27
-
28
- "grey90" $grey-90 $text-contrast,
29
- "grey80" $grey-80 $text-contrast,
30
- "grey70" $grey-70 $text-contrast,
31
- "grey60" $grey-60 $text-contrast,
32
- "grey50" $grey-50 $text-contrast,
33
- "grey40" $grey-40 $text,
34
- "grey30" $grey-30 $text,
35
- "grey20" $grey-20 $text,
36
- "grey10" $grey-10 $text,
37
- "grey5" $grey-5 $text,
38
-
39
- "default" $background-default $text,
40
- "paper" $background-paper $text,
41
-
42
- "primaryLight" $primary-light $text,
43
- "primary" $primary $text-contrast,
44
- "primaryDark" $primary-dark $text-contrast,
45
- "secondaryLight" $secondary-light $text,
46
- "secondary" $secondary $text-contrast,
47
- "secondaryDark" $secondary-dark $text-contrast,
48
-
49
- "successLight" $success-light $text,
50
- "success" $success $text-contrast,
51
- "successDark" $success-dark $text-contrast,
52
- "infoLight" $info-light $text,
53
- "info" $info $text-contrast,
54
- "infoDark" $info-dark $text-contrast,
55
- "warningLight" $warning-light $text,
56
- "warning" $warning $text,
57
- "warningDark" $warning-dark $text-contrast,
58
- "errorLight" $error-light $text,
59
- "error" $error $text-contrast,
60
- "errorDark" $error-dark $text-contrast,
61
-
62
- "border" $border-color $text
63
- );
64
-
65
- // —————————————————————————————————————————————————————————————————
66
- // stroke
67
- // —————————————————————————————————————————————————————————————————
68
-
69
- @mixin stroke($colors...) {
70
- @each $i in $colors {
71
- .stroke-#{nth($i, 1)} {
72
- border: 1px solid nth($i, 2) !important;
73
- }
74
- }
75
- }
76
-
77
- @include stroke (
78
- "main" $main,
79
- "contrast" $contrast,
80
-
81
- "grey90" $grey-90,
82
- "grey80" $grey-80,
83
- "grey70" $grey-70,
84
- "grey60" $grey-60,
85
- "grey50" $grey-50,
86
- "grey40" $grey-40,
87
- "grey30" $grey-30,
88
- "grey20" $grey-20,
89
- "grey10" $grey-10,
90
- "grey5" $grey-5 ,
91
-
92
- "default" $background-default,
93
- "paper" $background-paper,
94
-
95
- "primaryLight" $primary-light,
96
- "primary" $primary,
97
- "primaryDark" $primary-dark,
98
- "secondaryLight" $secondary-light,
99
- "secondary" $secondary,
100
- "secondaryDark" $secondary-dark,
101
-
102
- "successLight" $success-light,
103
- "success" $success,
104
- "successDark" $success-dark,
105
- "infoLight" $info-light,
106
- "info" $info,
107
- "infoDark" $info-dark,
108
- "warningLight" $warning-light,
109
- "warning" $warning,
110
- "warningDark" $warning-dark,
111
- "errorLight" $error-light,
112
- "error" $error,
113
- "errorDark" $error-dark,
114
-
115
- "border" $border-color
116
- );
@@ -1,208 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // responsive
3
- // spacing and size
4
- // position
5
- // display
6
- // border
7
- // border-radius
8
- // —————————————————————————————————————————————————————————————————
9
-
10
- // —————————————————————————————————————————————————————————————————
11
- // responsive
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- .hide {
15
-
16
- &-desktop { @include responsive(down, desktop) { display: none !important; } }
17
- &-laptop { @include responsive(down, laptop) { display: none !important; } }
18
- &-tablet { @include responsive(down, tablet) { display: none !important; } }
19
- &-mobile { @include responsive(down, mobile) { display: none !important; } }
20
- &-mobileSm { @include responsive(down, mobile-sm) { display: none !important; } }
21
- &-touch { @include responsive-touch { display: none !important; } }
22
- }
23
-
24
- .show {
25
-
26
- &-desktop { @include responsive(up, desktop) { display: none !important; } }
27
- &-laptop { @include responsive(up, laptop) { display: none !important; } }
28
- &-tablet { @include responsive(up, tablet) { display: none !important; } }
29
- &-mobile { @include responsive(up, mobile) { display: none !important; } }
30
- &-mobileSm { @include responsive(up, mobile-sm) { display: none !important; } }
31
- &-touch { @include responsive-click { display: none !important; } }
32
- }
33
-
34
- // —————————————————————————————————————————————————————————————————
35
- // spacing and size
36
- // —————————————————————————————————————————————————————————————————
37
-
38
- .w-full { width: 100% !important; }
39
- .w-fit { width: fit-content !important; }
40
-
41
- .h-full { height: 100% !important; }
42
- .h-fit { height: fit-content !important; }
43
-
44
- .m-auto { margin: auto !important; }
45
- .mt-auto { margin-top: auto !important; }
46
- .mr-auto { margin-right: auto !important; }
47
- .mb-auto { margin-bottom: auto !important; }
48
- .ml-auto { margin-left: auto !important; }
49
- .mv-auto { margin-top: auto !important; margin-bottom: auto !important; }
50
- .mh-auto { margin-right: auto !important; margin-left: auto !important; }
51
-
52
- // from .25rem to 5rem, every quarter
53
-
54
- $fractions: ( "¼": 0.25, "½": 0.5, "¾": 0.75 );
55
-
56
- @for $i from 0 through 5 {
57
- .w-#{$i} { width: #{$i}rem !important; }
58
- .h-#{$i} { height: #{$i}rem !important; }
59
-
60
- .m-#{$i} { margin: #{$i}rem !important; }
61
- .mt-#{$i} { margin-top: #{$i}rem !important; }
62
- .mr-#{$i} { margin-right: #{$i}rem !important; }
63
- .mb-#{$i} { margin-bottom: #{$i}rem !important; }
64
- .ml-#{$i} { margin-left: #{$i}rem !important; }
65
- .mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
66
- .mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
67
-
68
- .p-#{$i} { padding: #{$i}rem !important; }
69
- .pt-#{$i} { padding-top: #{$i}rem !important; }
70
- .pr-#{$i} { padding-right: #{$i}rem !important; }
71
- .pb-#{$i} { padding-bottom: #{$i}rem !important; }
72
- .pl-#{$i} { padding-left: #{$i}rem !important; }
73
- .pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
74
- .ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
75
-
76
- @each $symbol, $value in $fractions {
77
-
78
- @if $i == 0 {
79
- .w-#{$symbol} { width: #{$i + $value}rem !important; }
80
- .h-#{$symbol} { height: #{$i + $value}rem !important; }
81
-
82
- .m-#{$symbol} { margin: #{$i + $value}rem !important; }
83
- .mt-#{$symbol} { margin-top: #{$i + $value}rem !important; }
84
- .mr-#{$symbol} { margin-right: #{$i + $value}rem !important; }
85
- .mb-#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
86
- .ml-#{$symbol} { margin-left: #{$i + $value}rem !important; }
87
- .mv-#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
88
- .mh-#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
89
-
90
- .p-#{$symbol} { padding: #{$i + $value}rem !important; }
91
- .pt-#{$symbol} { padding-top: #{$i + $value}rem !important; }
92
- .pr-#{$symbol} { padding-right: #{$i + $value}rem !important; }
93
- .pb-#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
94
- .pl-#{$symbol} { padding-left: #{$i + $value}rem !important; }
95
- .pv-#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
96
- .ph-#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
97
-
98
- } @else {
99
- .w-#{$i}#{$symbol} { width: #{$i + $value}rem !important; }
100
- .h-#{$i}#{$symbol} { height: #{$i + $value}rem !important; }
101
-
102
- .m-#{$i}#{$symbol} { margin: #{$i + $value}rem !important; }
103
- .mt-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; }
104
- .mr-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; }
105
- .mb-#{$i}#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
106
- .ml-#{$i}#{$symbol} { margin-left: #{$i + $value}rem !important; }
107
- .mv-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
108
- .mh-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
109
-
110
- .p-#{$i}#{$symbol} { padding: #{$i + $value}rem !important; }
111
- .pt-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; }
112
- .pr-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; }
113
- .pb-#{$i}#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
114
- .pl-#{$i}#{$symbol} { padding-left: #{$i + $value}rem !important; }
115
- .pv-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
116
- .ph-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
117
- }
118
- }
119
- }
120
-
121
- // from 6 to 20 rem, only integer
122
-
123
- @for $i from 6 through 20 {
124
- .w-#{$i} { width: #{$i}rem !important; }
125
- .h-#{$i} { height: #{$i}rem !important; }
126
-
127
- .m-#{$i} { margin: #{$i}rem !important; }
128
- .mt-#{$i} { margin-top: #{$i}rem !important; }
129
- .mr-#{$i} { margin-right: #{$i}rem !important; }
130
- .mb-#{$i} { margin-bottom: #{$i}rem !important; }
131
- .ml-#{$i} { margin-left: #{$i}rem !important; }
132
- .mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
133
- .mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
134
-
135
- .p-#{$i} { padding: #{$i}rem !important; }
136
- .pt-#{$i} { padding-top: #{$i}rem !important; }
137
- .pr-#{$i} { padding-right: #{$i}rem !important; }
138
- .pb-#{$i} { padding-bottom: #{$i}rem !important; }
139
- .pl-#{$i} { padding-left: #{$i}rem !important; }
140
- .pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
141
- .ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
142
- }
143
-
144
- // —————————————————————————————————————————————————————————————————
145
- // position
146
- // —————————————————————————————————————————————————————————————————
147
-
148
- .pos {
149
-
150
- &-absolute { position: absolute !important; }
151
- &-relative { position: relative !important; }
152
- &-fixed { position: relative !important; }
153
- &-sticky { position: relative !important; }
154
- }
155
-
156
- // —————————————————————————————————————————————————————————————————
157
- // display
158
- // —————————————————————————————————————————————————————————————————
159
-
160
- // general display
161
-
162
- .dis-flex { display: flex !important; }
163
- .dis-inlineFlex { display: inline-flex !important; }
164
- .dis-block { display: block !important; }
165
- .dis-inlineBlock { display: inline-block !important; }
166
-
167
- // flexbasis
168
-
169
- .fb {
170
-
171
- &-content { flex-basis: content !important; }
172
- &-0 { flex-basis: 0 !important; }
173
- &-1 { flex-basis: 1 !important; }
174
- }
175
-
176
- // flex-grow
177
-
178
- .fg {
179
-
180
- &-0 { flex-grow: 0 !important; }
181
- &-1 { flex-grow: 1 !important; }
182
- }
183
-
184
- // flex-shrink
185
-
186
- .fs {
187
-
188
- &-0 { flex-shrink: 0 !important; }
189
- &-1 { flex-shrink: 1 !important; }
190
- }
191
-
192
- // —————————————————————————————————————————————————————————————————
193
- // border
194
- // —————————————————————————————————————————————————————————————————
195
-
196
- .b-1 { border: $border; }
197
- .bt-1 { border-top: $border; }
198
- .br-1 { border-right: $border; }
199
- .bb-1 { border-bottom: $border; }
200
- .bl-1 { border-left: $border; }
201
-
202
- // —————————————————————————————————————————————————————————————————
203
- // border-radius
204
- // —————————————————————————————————————————————————————————————————
205
-
206
- .br-sm { border-radius: $border-radius-sm; }
207
- .br-md { border-radius: $border-radius-md; }
208
- .br-lg { border-radius: $border-radius-lg; }