ply-css 1.3.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.
- package/CLAUDE.md +176 -0
- package/LICENSE +22 -0
- package/PLY.md +646 -0
- package/README.md +170 -0
- package/dist/css/ply-core.css +6175 -0
- package/dist/css/ply-core.min.css +1 -0
- package/dist/css/ply-essentials.min.css +1 -0
- package/dist/css/ply-helpers.min.css +1 -0
- package/dist/css/ply.css +7429 -0
- package/dist/css/ply.min.css +1 -0
- package/dist/css/styles.css +7432 -0
- package/dist/css/styles.min.css +1 -0
- package/llms-full.txt +834 -0
- package/llms.txt +34 -0
- package/package.json +70 -0
- package/ply-classes.json +2625 -0
- package/snippets/accessible-drag-and-drop.html +122 -0
- package/snippets/card.html +58 -0
- package/snippets/contact-form.html +49 -0
- package/snippets/custom-theme.html +280 -0
- package/snippets/dashboard.html +77 -0
- package/snippets/data-table.html +64 -0
- package/snippets/login-page.html +45 -0
- package/snippets/navbar-page.html +39 -0
- package/snippets/notifications.html +63 -0
- package/snippets/pricing-cards.html +95 -0
- package/snippets/responsive-header.html +98 -0
- package/snippets/starter-page.html +782 -0
- package/snippets/two-column-layout.html +40 -0
- package/src/scss/_ply-core-components.scss +32 -0
- package/src/scss/_ply.scss +47 -0
- package/src/scss/components/_accordion.scss +73 -0
- package/src/scss/components/_alignments.scss +64 -0
- package/src/scss/components/_autocomplete.scss +28 -0
- package/src/scss/components/_blocks-responsive.scss +30 -0
- package/src/scss/components/_blocks.scss +39 -0
- package/src/scss/components/_buttons.scss +452 -0
- package/src/scss/components/_colors.scss +447 -0
- package/src/scss/components/_container-queries.scss +35 -0
- package/src/scss/components/_cursors.scss +24 -0
- package/src/scss/components/_dialog-patterns.scss +176 -0
- package/src/scss/components/_dropdown.scss +68 -0
- package/src/scss/components/_filterbox.scss +57 -0
- package/src/scss/components/_flexible-embed.scss +19 -0
- package/src/scss/components/_forms.scss +450 -0
- package/src/scss/components/_grid.scss +210 -0
- package/src/scss/components/_helpers-core.scss +357 -0
- package/src/scss/components/_helpers.scss +466 -0
- package/src/scss/components/_labels.scss +105 -0
- package/src/scss/components/_livesearch.scss +233 -0
- package/src/scss/components/_loader.scss +24 -0
- package/src/scss/components/_media-queries.scss +9 -0
- package/src/scss/components/_mixins.scss +387 -0
- package/src/scss/components/_modal.scss +73 -0
- package/src/scss/components/_multi-step-form.scss +190 -0
- package/src/scss/components/_navigation-responsive.scss +63 -0
- package/src/scss/components/_navigation.scss +592 -0
- package/src/scss/components/_notifications.scss +185 -0
- package/src/scss/components/_prettyprint.scss +86 -0
- package/src/scss/components/_print.scss +74 -0
- package/src/scss/components/_progress.scss +32 -0
- package/src/scss/components/_reset.scss +365 -0
- package/src/scss/components/_rtl.scss +213 -0
- package/src/scss/components/_table-interactive.scss +110 -0
- package/src/scss/components/_tables.scss +52 -0
- package/src/scss/components/_themes.scss +6 -0
- package/src/scss/components/_tooltip.scss +35 -0
- package/src/scss/components/_typography.scss +565 -0
- package/src/scss/components/_upload.scss +19 -0
- package/src/scss/components/_variables.scss +129 -0
- package/src/scss/ply-core.scss +1 -0
- package/src/scss/ply-essentials.scss +15 -0
- package/src/scss/ply-helpers.scss +11 -0
- package/src/scss/ply-iso.scss +1 -0
- package/src/scss/styles.scss +9 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
@use "colors";
|
|
2
|
+
@use "mixins";
|
|
3
|
+
@use "variables";
|
|
4
|
+
|
|
5
|
+
/* =Typeahead / Autocomplete
|
|
6
|
+
-----------------------------------------------------------------------------*/
|
|
7
|
+
.typeahead,
|
|
8
|
+
.livesearch-container {
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
input {
|
|
13
|
+
width: 100%;
|
|
14
|
+
position: relative;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.active input {
|
|
19
|
+
border-radius: variables.$border-radius variables.$border-radius 0 0;
|
|
20
|
+
border-bottom-color: var(--ply-border-color, colors.$color-gray);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.typeahead-results,
|
|
25
|
+
.livesearch-results {
|
|
26
|
+
display: none;
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 100%;
|
|
29
|
+
left: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
z-index: 101;
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 0;
|
|
34
|
+
list-style: none;
|
|
35
|
+
background: var(--ply-bg-surface, colors.$color-white);
|
|
36
|
+
border: 1px solid var(--ply-color-input-border, colors.$color-input-border);
|
|
37
|
+
border-top: none;
|
|
38
|
+
border-radius: 0 0 variables.$border-radius variables.$border-radius;
|
|
39
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
|
|
40
|
+
max-height: 240px;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
|
|
43
|
+
.typeahead.active & {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
li {
|
|
48
|
+
margin: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.typeahead-item {
|
|
52
|
+
display: block;
|
|
53
|
+
padding: 0.5rem 0.75rem;
|
|
54
|
+
color: var(--ply-color-body, colors.$color-body);
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
transition: background 0.1s ease;
|
|
58
|
+
|
|
59
|
+
&:hover,
|
|
60
|
+
&[aria-selected="true"] {
|
|
61
|
+
background: var(--ply-bg-muted, colors.$color-gray-light);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Already chosen in multi-select
|
|
65
|
+
&.disabled {
|
|
66
|
+
opacity: 0.4;
|
|
67
|
+
cursor: default;
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
background: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
li + li {
|
|
76
|
+
border-top: 1px solid var(--ply-border-color, colors.$color-gray-light);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.typeahead-empty {
|
|
81
|
+
padding: 0.5rem 0.75rem;
|
|
82
|
+
color: var(--ply-color-muted);
|
|
83
|
+
font-size: variables.$font-size-sm;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* =Multi-select
|
|
87
|
+
-----------------------------------------------------------------------------*/
|
|
88
|
+
.multiselect {
|
|
89
|
+
position: relative;
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.multiselect-tags {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
gap: 0.375rem;
|
|
97
|
+
padding: 0.375rem;
|
|
98
|
+
min-height: 2.5rem;
|
|
99
|
+
background: var(--ply-color-input-bg, colors.$color-white);
|
|
100
|
+
border: 1px solid var(--ply-color-input-border, colors.$color-input-border);
|
|
101
|
+
border-radius: variables.$border-radius;
|
|
102
|
+
cursor: text;
|
|
103
|
+
transition: border-color 0.15s ease;
|
|
104
|
+
align-items: center;
|
|
105
|
+
|
|
106
|
+
&:focus-within {
|
|
107
|
+
border-color: var(--ply-color-focus, colors.$color-blue);
|
|
108
|
+
box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.3);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.multiselect.active & {
|
|
112
|
+
border-radius: variables.$border-radius variables.$border-radius 0 0;
|
|
113
|
+
border-bottom-color: var(--ply-border-color, colors.$color-gray);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
input {
|
|
117
|
+
flex: 1;
|
|
118
|
+
min-width: 80px;
|
|
119
|
+
border: none;
|
|
120
|
+
outline: none;
|
|
121
|
+
padding: 0.25rem 0.375rem;
|
|
122
|
+
background: transparent;
|
|
123
|
+
color: var(--ply-color-body, colors.$color-body);
|
|
124
|
+
font-size: inherit;
|
|
125
|
+
font-family: inherit;
|
|
126
|
+
line-height: variables.$base-line;
|
|
127
|
+
|
|
128
|
+
&::placeholder {
|
|
129
|
+
color: var(--ply-color-placeholder, colors.$color-neutral-400);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.multiselect-tag {
|
|
135
|
+
display: inline-flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
gap: 0.25rem;
|
|
138
|
+
padding: 0.125rem 0.375rem;
|
|
139
|
+
background: var(--ply-bg-muted, colors.$color-gray);
|
|
140
|
+
color: var(--ply-color-body, colors.$color-body);
|
|
141
|
+
border-radius: variables.$border-radius;
|
|
142
|
+
font-size: variables.$font-size-sm;
|
|
143
|
+
line-height: 1.5;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
max-width: 100%;
|
|
146
|
+
|
|
147
|
+
.multiselect-tag-remove {
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
background: none;
|
|
152
|
+
border: none;
|
|
153
|
+
padding: 0;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
color: inherit;
|
|
156
|
+
opacity: 0.5;
|
|
157
|
+
font-size: 1rem;
|
|
158
|
+
line-height: 1;
|
|
159
|
+
transition: opacity 0.1s ease;
|
|
160
|
+
width: 1rem;
|
|
161
|
+
height: 1rem;
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
|
|
164
|
+
&:hover,
|
|
165
|
+
&:focus {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&:focus {
|
|
170
|
+
outline: 2px solid var(--ply-color-focus, colors.$color-blue);
|
|
171
|
+
outline-offset: 1px;
|
|
172
|
+
border-radius: 2px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&::before {
|
|
176
|
+
content: '\00D7';
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.multiselect-results {
|
|
182
|
+
display: none;
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 100%;
|
|
185
|
+
left: 0;
|
|
186
|
+
width: 100%;
|
|
187
|
+
z-index: 101;
|
|
188
|
+
margin: 0;
|
|
189
|
+
padding: 0;
|
|
190
|
+
list-style: none;
|
|
191
|
+
background: var(--ply-bg-surface, colors.$color-white);
|
|
192
|
+
border: 1px solid var(--ply-color-input-border, colors.$color-input-border);
|
|
193
|
+
border-top: none;
|
|
194
|
+
border-radius: 0 0 variables.$border-radius variables.$border-radius;
|
|
195
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
|
|
196
|
+
max-height: 240px;
|
|
197
|
+
overflow-y: auto;
|
|
198
|
+
|
|
199
|
+
.multiselect.active & {
|
|
200
|
+
display: block;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
li {
|
|
204
|
+
margin: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.multiselect-item {
|
|
208
|
+
display: block;
|
|
209
|
+
padding: 0.5rem 0.75rem;
|
|
210
|
+
color: var(--ply-color-body, colors.$color-body);
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
transition: background 0.1s ease;
|
|
213
|
+
|
|
214
|
+
&:hover,
|
|
215
|
+
&[aria-selected="true"] {
|
|
216
|
+
background: var(--ply-bg-muted, colors.$color-gray-light);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&.disabled {
|
|
220
|
+
opacity: 0.4;
|
|
221
|
+
cursor: default;
|
|
222
|
+
|
|
223
|
+
&:hover {
|
|
224
|
+
background: none;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
li + li {
|
|
230
|
+
border-top: 1px solid var(--ply-border-color, colors.$color-gray-light);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use "colors";
|
|
2
|
+
@use "mixins";
|
|
3
|
+
|
|
4
|
+
/* =Loader
|
|
5
|
+
-----------------------------------------------------------------------------*/
|
|
6
|
+
|
|
7
|
+
.loader,
|
|
8
|
+
.loader::after {
|
|
9
|
+
@include mixins.square(5em);
|
|
10
|
+
|
|
11
|
+
border-radius: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.loader {
|
|
15
|
+
@include mixins.spinning();
|
|
16
|
+
|
|
17
|
+
margin: 5em auto;
|
|
18
|
+
font-size: .8em;
|
|
19
|
+
position: relative;
|
|
20
|
+
text-indent: -9999em;
|
|
21
|
+
border: 1.1em solid rgba(255, 255, 255, 0.2);
|
|
22
|
+
border-left: 1.1em solid colors.$color-white;
|
|
23
|
+
transform: translateZ(0);
|
|
24
|
+
}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@use "sass:color";
|
|
4
|
+
@use "colors";
|
|
5
|
+
@use "variables";
|
|
6
|
+
|
|
7
|
+
@mixin clearfix() {
|
|
8
|
+
&:after {
|
|
9
|
+
content: "";
|
|
10
|
+
display: table;
|
|
11
|
+
clear: both;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes spinning {
|
|
16
|
+
from {
|
|
17
|
+
transform: rotate(0deg);
|
|
18
|
+
}
|
|
19
|
+
to {
|
|
20
|
+
transform: rotate(360deg);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin spinning($duration: 1s, $iteration: infinite) {
|
|
25
|
+
animation-duration: $duration;
|
|
26
|
+
animation-name: spinning;
|
|
27
|
+
animation-iteration-count: $iteration;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin opacity($opacity: 100) {
|
|
31
|
+
opacity: $opacity * 0.01;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin selection($r, $g, $b) {
|
|
35
|
+
::selection { background: rgb($r, $g, $b); }
|
|
36
|
+
img::selection { background: transparent; }
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin square($size:100%) {
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
display: block;
|
|
42
|
+
width: $size;
|
|
43
|
+
height: $size;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin gradient($start: #555, $end: #333) {
|
|
47
|
+
background-color: color.mix($start, $end, 60%);
|
|
48
|
+
background-image: linear-gradient(to bottom, $start, $end); // The standard
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin border-top-radius($radius) {
|
|
52
|
+
border-top-right-radius: $radius;
|
|
53
|
+
border-top-left-radius: $radius;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin border-right-radius($radius) {
|
|
57
|
+
border-bottom-right-radius: $radius;
|
|
58
|
+
border-top-right-radius: $radius;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin border-bottom-radius($radius) {
|
|
62
|
+
border-bottom-right-radius: $radius;
|
|
63
|
+
border-bottom-left-radius: $radius;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@mixin border-left-radius($radius) {
|
|
67
|
+
border-bottom-left-radius: $radius;
|
|
68
|
+
border-top-left-radius: $radius;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin bordered($top-color: #eee, $right-color: #eee, $bottom-color: #eee, $left-color: #eee) {
|
|
72
|
+
border-top: 1px solid $top-color;
|
|
73
|
+
border-right: 1px solid $right-color;
|
|
74
|
+
border-bottom: 1px solid $bottom-color;
|
|
75
|
+
border-left: 1px solid $left-color;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin retina-image($file, $type, $width, $height) {
|
|
79
|
+
background-image: url($file + '.' + $type);
|
|
80
|
+
|
|
81
|
+
@media only screen and (min-resolution: 2dppx) {
|
|
82
|
+
& {
|
|
83
|
+
background-image: url($file + '@2x.' + $type);
|
|
84
|
+
background-size: $width $height;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin transition($transition: all linear .2s) {
|
|
90
|
+
transition: $transition;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@mixin blur($radius) {
|
|
94
|
+
filter: blur($radius);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@mixin rotate($deg) {
|
|
98
|
+
transform: rotate($deg);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@mixin arrow-top($color: #fff, $size: 5px, $left: 5px) {
|
|
102
|
+
&:after {
|
|
103
|
+
bottom: 100%;
|
|
104
|
+
border: solid transparent;
|
|
105
|
+
content: " ";
|
|
106
|
+
height: 0;
|
|
107
|
+
width: 0;
|
|
108
|
+
position: absolute;
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
border-bottom-color: $color;
|
|
111
|
+
border-width: $size;
|
|
112
|
+
left: $left;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@mixin arrow-bottom($color: #fff, $size: 5px, $left: 5px) {
|
|
117
|
+
&:after {
|
|
118
|
+
top: 100%;
|
|
119
|
+
border: solid transparent;
|
|
120
|
+
content: " ";
|
|
121
|
+
height: 0;
|
|
122
|
+
width: 0;
|
|
123
|
+
position: absolute;
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
border-top-color: $color;
|
|
126
|
+
border-width: $size;
|
|
127
|
+
left: $left;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@mixin arrow-left($color: #fff, $size: 5px, $top: 5px) {
|
|
132
|
+
&:after {
|
|
133
|
+
right: 100%;
|
|
134
|
+
border: solid transparent;
|
|
135
|
+
content: " ";
|
|
136
|
+
height: 0;
|
|
137
|
+
width: 0;
|
|
138
|
+
position: absolute;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
border-right-color: $color;
|
|
141
|
+
border-width: $size;
|
|
142
|
+
top: $top;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@mixin arrow-right($color: #fff, $size: 5px, $top: 5px) {
|
|
147
|
+
&:after {
|
|
148
|
+
left: 100%;
|
|
149
|
+
border: solid transparent;
|
|
150
|
+
content: " ";
|
|
151
|
+
height: 0;
|
|
152
|
+
width: 0;
|
|
153
|
+
position: absolute;
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
border-left-color: $color;
|
|
156
|
+
border-width: $size;
|
|
157
|
+
top: $top;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@mixin close($r: 0, $g: 0, $b: 0) {
|
|
162
|
+
padding: 4px 6px;
|
|
163
|
+
line-height: 1;
|
|
164
|
+
font-size: 20px;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
color: rgba($r, $g, $b, 1);
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
@include opacity(50);
|
|
169
|
+
&:before {
|
|
170
|
+
content: '\00D7';
|
|
171
|
+
}
|
|
172
|
+
&:hover {
|
|
173
|
+
@include opacity(100);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@mixin striped($color: rgba(255, 255, 255, .2), $angle: 45deg) {
|
|
178
|
+
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@mixin animation($animation) {
|
|
182
|
+
animation: $animation;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@mixin fadeIn($duration: .25s) {
|
|
186
|
+
@keyframes fadeIn {
|
|
187
|
+
0% {
|
|
188
|
+
opacity: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
100% {
|
|
192
|
+
opacity: 1;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
animation-duration: $duration;
|
|
197
|
+
animation-name: fadeIn;
|
|
198
|
+
animation-iteration-count: 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Grid
|
|
202
|
+
@mixin column($num) {
|
|
203
|
+
width: math.div(math.div(variables.$grid-width - (variables.$grid-gutter-width * ($num - 1)), $num), (variables.$grid-width * 0.01)) * .01;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@mixin columns($factor, $num) {
|
|
207
|
+
width: (math.div(math.div(variables.$grid-width - (variables.$grid-gutter-width * ($num - 1)), $num), (variables.$grid-width * 0.01)) * $factor) + (math.div(variables.$grid-gutter-width, (variables.$grid-width * 0.01)) * ($factor - 1)) * .01;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// Buttons
|
|
211
|
+
@mixin create-button($base-color, $hover-color, $text-color, $active-shadow: .5) {
|
|
212
|
+
|
|
213
|
+
color: rgba(color.channel($text-color, "red", $space: rgb), color.channel($text-color, "green", $space: rgb), color.channel($text-color, "blue", $space: rgb), 1);
|
|
214
|
+
background: $base-color;
|
|
215
|
+
|
|
216
|
+
&:hover,
|
|
217
|
+
&:active,
|
|
218
|
+
&:focus {
|
|
219
|
+
color: rgba(color.channel($text-color, "red", $space: rgb), color.channel($text-color, "green", $space: rgb), color.channel($text-color, "blue", $space: rgb), 1);
|
|
220
|
+
background: $hover-color;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&:hover {
|
|
224
|
+
transform: translateY(0) scale(1.05, 1.05);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&:focus,
|
|
228
|
+
&:active {
|
|
229
|
+
transform: translateY(0) scale(.95, .95);
|
|
230
|
+
background: color.adjust($hover-color,$lightness: -5%);
|
|
231
|
+
box-shadow: 0 0 10px color.adjust($hover-color,$lightness: -15%) inset;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.btn-active {
|
|
235
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, $active-shadow) inset;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&.btn-active,
|
|
239
|
+
&.btn-disabled,
|
|
240
|
+
&.btn[disabled] {
|
|
241
|
+
cursor: not-allowed;
|
|
242
|
+
color: rgba(color.channel($text-color, "red", $space: rgb), color.channel($text-color, "green", $space: rgb), color.channel($text-color, "blue", $space: rgb), .5);
|
|
243
|
+
background: $hover-color;
|
|
244
|
+
|
|
245
|
+
&:hover {
|
|
246
|
+
color: rgba(color.channel($text-color, "red", $space: rgb), color.channel($text-color, "green", $space: rgb), color.channel($text-color, "blue", $space: rgb), .5);
|
|
247
|
+
transform: scale(1,1);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&:active,
|
|
251
|
+
&:focus {
|
|
252
|
+
transform: scale(1,1);
|
|
253
|
+
box-shadow: 0 0 0;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.btn-disabled,
|
|
258
|
+
&.btn[disabled] {
|
|
259
|
+
background: color.adjust($hover-color, $saturation: -50%);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&.btn-outline {
|
|
263
|
+
background: none;
|
|
264
|
+
border-color: $base-color;
|
|
265
|
+
color: $base-color;
|
|
266
|
+
&:hover {
|
|
267
|
+
color: rgba(color.channel($text-color, "red", $space: rgb), color.channel($text-color, "green", $space: rgb), color.channel($text-color, "blue", $space: rgb), 1);
|
|
268
|
+
background: $base-color;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&.btn-outline.btn[disabled],
|
|
273
|
+
&.btn-outline.btn-disabled {
|
|
274
|
+
background: none;
|
|
275
|
+
box-shadow: none;
|
|
276
|
+
color: rgba(color.channel($base-color, "red", $space: rgb), color.channel($base-color, "green", $space: rgb), color.channel($base-color, "blue", $space: rgb), .5);
|
|
277
|
+
border: 1px solid rgba(color.channel($base-color, "red", $space: rgb), color.channel($base-color, "green", $space: rgb), color.channel($base-color, "blue", $space: rgb), .3);
|
|
278
|
+
}
|
|
279
|
+
&.btn-outline.btn-active {
|
|
280
|
+
background: none;
|
|
281
|
+
color: rgba(color.channel($base-color, "red", $space: rgb), color.channel($base-color, "green", $space: rgb), color.channel($base-color, "blue", $space: rgb), 1);
|
|
282
|
+
border: none;
|
|
283
|
+
box-shadow: 0 1px 3px rgba(color.channel($hover-color, "red", $space: rgb), color.channel($hover-color, "green", $space: rgb), color.channel($hover-color, "blue", $space: rgb), .6) inset;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// Theme-aware button using CSS custom properties
|
|
288
|
+
// $color-var: the custom property name (e.g. --ply-blue)
|
|
289
|
+
// $text-color: text color for the filled button
|
|
290
|
+
@mixin create-theme-button($color-var, $text-color: #fff) {
|
|
291
|
+
color: $text-color;
|
|
292
|
+
background: var(#{$color-var}-1);
|
|
293
|
+
|
|
294
|
+
&:hover,
|
|
295
|
+
&:active,
|
|
296
|
+
&:focus {
|
|
297
|
+
color: $text-color;
|
|
298
|
+
background: var(#{$color-var}-2);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&:hover {
|
|
302
|
+
transform: translateY(0) scale(1.05, 1.05);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&:focus,
|
|
306
|
+
&:active {
|
|
307
|
+
transform: translateY(0) scale(.95, .95);
|
|
308
|
+
background: var(#{$color-var}-3);
|
|
309
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, .15) inset;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
&.btn-active {
|
|
313
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, .5) inset;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&.btn-active,
|
|
317
|
+
&.btn-disabled,
|
|
318
|
+
&.btn[disabled] {
|
|
319
|
+
cursor: not-allowed;
|
|
320
|
+
opacity: 0.5;
|
|
321
|
+
background: var(#{$color-var}-2);
|
|
322
|
+
|
|
323
|
+
&:hover {
|
|
324
|
+
opacity: 0.5;
|
|
325
|
+
transform: scale(1,1);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
&:active,
|
|
329
|
+
&:focus {
|
|
330
|
+
transform: scale(1,1);
|
|
331
|
+
box-shadow: 0 0 0;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&.btn-disabled,
|
|
336
|
+
&.btn[disabled] {
|
|
337
|
+
background: var(#{$color-var}-2);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&.btn-outline {
|
|
341
|
+
background: none;
|
|
342
|
+
border-color: var(#{$color-var}-1);
|
|
343
|
+
color: var(#{$color-var}-1);
|
|
344
|
+
opacity: 1;
|
|
345
|
+
|
|
346
|
+
&:hover {
|
|
347
|
+
color: $text-color;
|
|
348
|
+
background: var(#{$color-var}-1);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&.btn-outline.btn[disabled],
|
|
353
|
+
&.btn-outline.btn-disabled {
|
|
354
|
+
background: none;
|
|
355
|
+
box-shadow: none;
|
|
356
|
+
opacity: 0.4;
|
|
357
|
+
border: 1px solid var(#{$color-var}-1);
|
|
358
|
+
color: var(#{$color-var}-1);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&.btn-outline.btn-active {
|
|
362
|
+
background: none;
|
|
363
|
+
color: var(#{$color-var}-1);
|
|
364
|
+
border: none;
|
|
365
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, .3) inset;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@mixin text-shadow($x: 2px, $y: 2px, $distance: 5px, $color: rgba(0,0,0,.5)) {
|
|
370
|
+
text-shadow: $x $y $distance $color;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@mixin box-shadow($x: 2px, $y: 2px, $distance: 5px, $color: rgba(0,0,0,.5)) {
|
|
374
|
+
box-shadow: $x $y $distance $color;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@mixin color-opacity($color: colors.$color-white, $opacity: 0.5) {
|
|
378
|
+
background-color: rgba($color, $opacity);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@mixin centered($space: auto) {
|
|
382
|
+
margin: $space auto;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
@mixin uppercase() {
|
|
386
|
+
text-transform: uppercase;
|
|
387
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* =Modal
|
|
2
|
+
-----------------------------------------------------------------------------*/
|
|
3
|
+
#modal-overlay {
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
margin: auto;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
background-color: #000 !important;
|
|
12
|
+
@include opacity(30);
|
|
13
|
+
z-index: 100;
|
|
14
|
+
}
|
|
15
|
+
.modal-blur {
|
|
16
|
+
@include blur(3px);
|
|
17
|
+
}
|
|
18
|
+
.modal-box {
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 0;
|
|
21
|
+
left: 0;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
overflow-x: hidden;
|
|
25
|
+
overflow-y: auto;
|
|
26
|
+
z-index: 101;
|
|
27
|
+
}
|
|
28
|
+
.modal {
|
|
29
|
+
position: relative;
|
|
30
|
+
margin: auto;
|
|
31
|
+
margin-bottom: 20px;
|
|
32
|
+
padding: 0;
|
|
33
|
+
background: var(--ply-bg-surface, #fff);
|
|
34
|
+
color: var(--ply-color-body, #000);
|
|
35
|
+
box-shadow: 0 1px 70px rgba(0, 0, 0, .5);
|
|
36
|
+
|
|
37
|
+
& header {
|
|
38
|
+
padding: 30px 40px 5px 40px;
|
|
39
|
+
font-size: 18px;
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
}
|
|
42
|
+
& section {
|
|
43
|
+
padding: 30px 40px 50px 40px;
|
|
44
|
+
}
|
|
45
|
+
& footer {
|
|
46
|
+
& button {
|
|
47
|
+
width: 100%;
|
|
48
|
+
border-radius: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.modal-close {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 8px;
|
|
55
|
+
right: 12px;
|
|
56
|
+
width: 30px;
|
|
57
|
+
height: 30px;
|
|
58
|
+
text-align: right;
|
|
59
|
+
color: var(--ply-color-secondary, #525252);
|
|
60
|
+
font-size: 30px;
|
|
61
|
+
font-weight: 300;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
background: none;
|
|
64
|
+
border: none;
|
|
65
|
+
padding: 0;
|
|
66
|
+
&:hover {
|
|
67
|
+
color: var(--ply-color-body, #000);
|
|
68
|
+
}
|
|
69
|
+
&:focus-visible {
|
|
70
|
+
outline: 2px solid var(--ply-color-focus, #0f62fe);
|
|
71
|
+
outline-offset: 2px;
|
|
72
|
+
}
|
|
73
|
+
}
|