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,185 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "colors";
|
|
3
|
+
@use "variables";
|
|
4
|
+
|
|
5
|
+
/* =Notifications
|
|
6
|
+
-----------------------------------------------------------------------------*/
|
|
7
|
+
|
|
8
|
+
$alert-colors: (
|
|
9
|
+
"blue": (#edf5ff, #0043ce, #001d6c, #4589ff),
|
|
10
|
+
"red": (#fff1f1, #da1e28, #2d0709, #ff8389),
|
|
11
|
+
"yellow": (#fdf6dd, #f1c21b, #302400, #f1c21b),
|
|
12
|
+
"green": (#defbe6, #198038, #071908, #42be65),
|
|
13
|
+
"black": (#e0e0e0, #161616, #262626, #8d8d8d),
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
.tools-alert,
|
|
17
|
+
.alert {
|
|
18
|
+
padding: 0.75rem 1rem;
|
|
19
|
+
background: var(--ply-bg-surface-alt, colors.$color-gray-pastel);
|
|
20
|
+
color: var(--ply-color-body, colors.$color-black);
|
|
21
|
+
margin-bottom: variables.$base-line;
|
|
22
|
+
border-radius: variables.$border-radius;
|
|
23
|
+
border-left: 4px solid colors.$color-gray-dark;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
gap: 0.625rem;
|
|
27
|
+
|
|
28
|
+
// Stacked layout — column direction for multi-line alerts (e.g. CTA blocks)
|
|
29
|
+
&.tools-alert-stack,
|
|
30
|
+
&.alert-stack {
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.tools-alert-icon,
|
|
35
|
+
.alert-icon {
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
width: 1.25rem;
|
|
38
|
+
height: 1.25rem;
|
|
39
|
+
margin-top: 0.125rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tools-alert-content,
|
|
43
|
+
.alert-content {
|
|
44
|
+
flex: 1;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tools-alert-dismiss,
|
|
49
|
+
.alert-dismiss {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
background: none;
|
|
52
|
+
border: none;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
padding: 0;
|
|
55
|
+
color: inherit;
|
|
56
|
+
opacity: 0.5;
|
|
57
|
+
transition: opacity 0.15s ease;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
font-size: 1.25rem;
|
|
60
|
+
min-width: 2.75rem;
|
|
61
|
+
min-height: 2.75rem;
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
margin: -0.5rem -0.375rem -0.5rem 0;
|
|
66
|
+
border-radius: variables.$border-radius;
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:focus-visible {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
outline: 2px solid var(--ply-color-focus, #0f62fe);
|
|
75
|
+
outline-offset: -2px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::before {
|
|
79
|
+
content: '\00D7';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Light alert color variants — Carbon-inspired support tints
|
|
85
|
+
@each $name, $values in $alert-colors {
|
|
86
|
+
$light-bg: list.nth($values, 1);
|
|
87
|
+
$light-border: list.nth($values, 2);
|
|
88
|
+
|
|
89
|
+
.tools-alert-#{$name},
|
|
90
|
+
.alert-#{$name} {
|
|
91
|
+
background: $light-bg;
|
|
92
|
+
border-left-color: $light-border;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Outline variant — keeps tinted bg, adds full border
|
|
97
|
+
.tools-alert-outline,
|
|
98
|
+
.alert-outline {
|
|
99
|
+
border: 1px solid colors.$color-gray-dark;
|
|
100
|
+
border-left-width: 4px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@each $name, $values in $alert-colors {
|
|
104
|
+
$light-border: list.nth($values, 2);
|
|
105
|
+
|
|
106
|
+
.tools-alert-outline.tools-alert-#{$name},
|
|
107
|
+
.alert-outline.alert-#{$name} {
|
|
108
|
+
border-color: $light-border;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Ghost variant — transparent bg, border only
|
|
113
|
+
.tools-alert-ghost,
|
|
114
|
+
.alert-ghost {
|
|
115
|
+
background: transparent;
|
|
116
|
+
border: 1px solid colors.$color-gray-dark;
|
|
117
|
+
border-left-width: 4px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@each $name, $values in $alert-colors {
|
|
121
|
+
$light-border: list.nth($values, 2);
|
|
122
|
+
|
|
123
|
+
.tools-alert-ghost.tools-alert-#{$name},
|
|
124
|
+
.alert-ghost.alert-#{$name} {
|
|
125
|
+
background: transparent;
|
|
126
|
+
border-color: $light-border;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Toast messages — alerts positioned fixed in the top-right
|
|
131
|
+
.tools-message,
|
|
132
|
+
.message {
|
|
133
|
+
position: fixed;
|
|
134
|
+
z-index: 110;
|
|
135
|
+
top: 10px;
|
|
136
|
+
right: 10px;
|
|
137
|
+
max-width: 350px;
|
|
138
|
+
border-left: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Dark alert variants — Carbon Gray 90 tinted
|
|
142
|
+
@mixin dark-alerts {
|
|
143
|
+
.tools-alert,
|
|
144
|
+
.alert {
|
|
145
|
+
background: var(--ply-bg-surface-alt);
|
|
146
|
+
color: var(--ply-color-body);
|
|
147
|
+
border-left-color: #6f6f6f;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@each $name, $values in $alert-colors {
|
|
151
|
+
$dark-bg: list.nth($values, 3);
|
|
152
|
+
$dark-border: list.nth($values, 4);
|
|
153
|
+
|
|
154
|
+
.tools-alert-#{$name},
|
|
155
|
+
.alert-#{$name} {
|
|
156
|
+
background: $dark-bg;
|
|
157
|
+
border-left-color: $dark-border;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.tools-alert-outline.tools-alert-#{$name},
|
|
161
|
+
.alert-outline.alert-#{$name} {
|
|
162
|
+
border-color: $dark-border;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.tools-alert-ghost.tools-alert-#{$name},
|
|
166
|
+
.alert-ghost.alert-#{$name} {
|
|
167
|
+
border-color: $dark-border;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.tools-alert-ghost,
|
|
172
|
+
.alert-ghost {
|
|
173
|
+
background: transparent;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media (prefers-color-scheme: dark) {
|
|
178
|
+
:root:not([data-theme]) {
|
|
179
|
+
@include dark-alerts;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
[data-theme="dark"] {
|
|
184
|
+
@include dark-alerts;
|
|
185
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* string content */
|
|
2
|
+
.str {
|
|
3
|
+
color: #dd1144;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* a keyword */
|
|
7
|
+
.kwd {
|
|
8
|
+
color: #333333;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* a comment */
|
|
12
|
+
.com {
|
|
13
|
+
color: #999988;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* a type name */
|
|
17
|
+
.typ {
|
|
18
|
+
color: #445588;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* a literal value */
|
|
22
|
+
.lit {
|
|
23
|
+
color: #445588;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* punctuation */
|
|
27
|
+
.pun {
|
|
28
|
+
color: #888;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* lisp open bracket */
|
|
32
|
+
.opn {
|
|
33
|
+
color: #333333;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* lisp close bracket */
|
|
37
|
+
.clo {
|
|
38
|
+
color: #333333;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* a markup tag name */
|
|
42
|
+
.tag {
|
|
43
|
+
color: #367ac3;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* a markup attribute name */
|
|
47
|
+
.atn {
|
|
48
|
+
color: #51a7c9;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* a markup attribute value */
|
|
52
|
+
.atv {
|
|
53
|
+
color: #709c1a;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* a declaration */
|
|
57
|
+
.dec {
|
|
58
|
+
color: #666;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* a variable name */
|
|
62
|
+
.var {
|
|
63
|
+
color: teal;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* a function name */
|
|
67
|
+
.fun {
|
|
68
|
+
color: #990000;
|
|
69
|
+
}
|
|
70
|
+
.linenums ol li {
|
|
71
|
+
list-style-type: none;
|
|
72
|
+
counter-increment: list;
|
|
73
|
+
position: relative;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.linenums ol li:after {
|
|
77
|
+
content: counter(list);
|
|
78
|
+
position: absolute;
|
|
79
|
+
left: -3.3em;
|
|
80
|
+
border-right: 1px solid #e5e5e5;
|
|
81
|
+
padding-right: 9px;
|
|
82
|
+
width: 2.45em;
|
|
83
|
+
text-align: right;
|
|
84
|
+
color: rgba(0, 0, 0, .3);
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
|
|
3
|
+
@media print {
|
|
4
|
+
|
|
5
|
+
* {
|
|
6
|
+
text-shadow: none !important;
|
|
7
|
+
color: #000 !important;
|
|
8
|
+
background: transparent !important;
|
|
9
|
+
box-shadow: none !important;
|
|
10
|
+
font-size: variables.$font-size-print;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.h1,
|
|
14
|
+
h1 {
|
|
15
|
+
font-size: variables.$font-size-h1-print;
|
|
16
|
+
}
|
|
17
|
+
.h2,
|
|
18
|
+
h2 {
|
|
19
|
+
font-size: variables.$font-size-h2-print;
|
|
20
|
+
}
|
|
21
|
+
.h3,
|
|
22
|
+
h3 {
|
|
23
|
+
font-size: variables.$font-size-h3-print;
|
|
24
|
+
}
|
|
25
|
+
.h4,
|
|
26
|
+
h4 {
|
|
27
|
+
font-size: variables.$font-size-h4-print;
|
|
28
|
+
}
|
|
29
|
+
.h5,
|
|
30
|
+
h5 {
|
|
31
|
+
font-size: variables.$font-size-h5-print;
|
|
32
|
+
}
|
|
33
|
+
.h6,
|
|
34
|
+
h6 {
|
|
35
|
+
font-size: variables.$font-size-h6-print;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
a,
|
|
39
|
+
a:visited {
|
|
40
|
+
text-decoration: underline;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
a[href]:after {
|
|
44
|
+
content: " (" attr(href) ")";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
abbr[title]:after
|
|
48
|
+
{
|
|
49
|
+
content: " (" attr(title) ")";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
a[href^="javascript:"]:after,
|
|
53
|
+
a[href^="#"]:after {
|
|
54
|
+
content: "";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
pre,
|
|
58
|
+
blockquote {
|
|
59
|
+
page-break-inside: avoid;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
blockquote {
|
|
63
|
+
border: none;
|
|
64
|
+
font-style: italic;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
img {
|
|
68
|
+
max-width: 100% !important;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
select {
|
|
72
|
+
background: #fff !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* =Progress
|
|
2
|
+
-----------------------------------------------------------------------------*/
|
|
3
|
+
#tools-progress {
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
z-index: 1000000;
|
|
9
|
+
height: 10px;
|
|
10
|
+
& span {
|
|
11
|
+
display: block;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
background-color: $color-blue-dark;
|
|
15
|
+
@include striped();
|
|
16
|
+
@include animation(progress-bar-stripes 2s linear infinite);
|
|
17
|
+
background-size: 40px 40px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@-webkit-keyframes progress-bar-stripes {
|
|
22
|
+
from { background-position: 40px 0; }
|
|
23
|
+
to { background-position: 0 0; }
|
|
24
|
+
}
|
|
25
|
+
@-o-keyframes progress-bar-stripes {
|
|
26
|
+
from { background-position: 40px 0; }
|
|
27
|
+
to { background-position: 0 0; }
|
|
28
|
+
}
|
|
29
|
+
@keyframes progress-bar-stripes {
|
|
30
|
+
from { background-position: 40px 0; }
|
|
31
|
+
to { background-position: 0 0; }
|
|
32
|
+
}
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
@use "mixins";
|
|
2
|
+
|
|
3
|
+
/* =Reset
|
|
4
|
+
-----------------------------------------------------------------------------*/
|
|
5
|
+
*,
|
|
6
|
+
*:before,
|
|
7
|
+
*:after {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
font-family: var(--ply-font-body, sans-serif);
|
|
13
|
+
-webkit-text-size-adjust: 100%;
|
|
14
|
+
text-size-adjust: 100%;
|
|
15
|
+
@include mixins.square;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
html,
|
|
19
|
+
body,
|
|
20
|
+
div,
|
|
21
|
+
span,
|
|
22
|
+
object,
|
|
23
|
+
iframe,
|
|
24
|
+
p,
|
|
25
|
+
blockquote,
|
|
26
|
+
pre,
|
|
27
|
+
a,
|
|
28
|
+
abbr,
|
|
29
|
+
acronym,
|
|
30
|
+
address,
|
|
31
|
+
big,
|
|
32
|
+
cite,
|
|
33
|
+
code,
|
|
34
|
+
del,
|
|
35
|
+
dfn,
|
|
36
|
+
em,
|
|
37
|
+
img,
|
|
38
|
+
ins,
|
|
39
|
+
kbd,
|
|
40
|
+
q,
|
|
41
|
+
s,
|
|
42
|
+
samp,
|
|
43
|
+
small,
|
|
44
|
+
strike,
|
|
45
|
+
strong,
|
|
46
|
+
sub,
|
|
47
|
+
sup,
|
|
48
|
+
tt,
|
|
49
|
+
var,
|
|
50
|
+
b,
|
|
51
|
+
u,
|
|
52
|
+
i,
|
|
53
|
+
center,
|
|
54
|
+
dl,
|
|
55
|
+
dt,
|
|
56
|
+
dd,
|
|
57
|
+
ol,
|
|
58
|
+
ul,
|
|
59
|
+
li,
|
|
60
|
+
fieldset,
|
|
61
|
+
form,
|
|
62
|
+
label,
|
|
63
|
+
legend,
|
|
64
|
+
table,
|
|
65
|
+
caption,
|
|
66
|
+
tbody,
|
|
67
|
+
tfoot,
|
|
68
|
+
thead,
|
|
69
|
+
tr,
|
|
70
|
+
th,
|
|
71
|
+
td,
|
|
72
|
+
article,
|
|
73
|
+
aside,
|
|
74
|
+
canvas,
|
|
75
|
+
details,
|
|
76
|
+
embed,
|
|
77
|
+
figure,
|
|
78
|
+
figcaption,
|
|
79
|
+
footer,
|
|
80
|
+
header,
|
|
81
|
+
hgroup,
|
|
82
|
+
menu,
|
|
83
|
+
nav,
|
|
84
|
+
output,
|
|
85
|
+
ruby,
|
|
86
|
+
section,
|
|
87
|
+
summary,
|
|
88
|
+
time,
|
|
89
|
+
mark,
|
|
90
|
+
audio,
|
|
91
|
+
video,
|
|
92
|
+
h1,
|
|
93
|
+
h2,
|
|
94
|
+
h3,
|
|
95
|
+
h4,
|
|
96
|
+
h5,
|
|
97
|
+
h6 {
|
|
98
|
+
margin: 0;
|
|
99
|
+
padding: 0;
|
|
100
|
+
border: 0;
|
|
101
|
+
outline: 0;
|
|
102
|
+
font-size: 100%;
|
|
103
|
+
vertical-align: baseline;
|
|
104
|
+
background: transparent;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
a:active,
|
|
108
|
+
a:hover {
|
|
109
|
+
outline: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Visible focus for keyboard navigation */
|
|
113
|
+
a:focus-visible,
|
|
114
|
+
button:focus-visible,
|
|
115
|
+
summary:focus-visible,
|
|
116
|
+
[tabindex]:focus-visible {
|
|
117
|
+
outline: 2px solid var(--ply-color-focus, #0f62fe);
|
|
118
|
+
outline-offset: 2px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
article,
|
|
122
|
+
aside,
|
|
123
|
+
details,
|
|
124
|
+
figcaption,
|
|
125
|
+
figure,
|
|
126
|
+
footer,
|
|
127
|
+
header,
|
|
128
|
+
hgroup,
|
|
129
|
+
main,
|
|
130
|
+
nav,
|
|
131
|
+
section,
|
|
132
|
+
embed,
|
|
133
|
+
object,
|
|
134
|
+
iframe,
|
|
135
|
+
audio,
|
|
136
|
+
video,
|
|
137
|
+
canvas,
|
|
138
|
+
progress,
|
|
139
|
+
meter,
|
|
140
|
+
output,
|
|
141
|
+
textarea {
|
|
142
|
+
display: block;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
audio:not([controls]) {
|
|
146
|
+
display: none;
|
|
147
|
+
height: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* To prevent some browsers from inserting quotes on q and p */
|
|
151
|
+
blockquote,
|
|
152
|
+
q {
|
|
153
|
+
quotes: none;
|
|
154
|
+
}
|
|
155
|
+
blockquote p:before,
|
|
156
|
+
blockquote p:after,
|
|
157
|
+
q:before,
|
|
158
|
+
q:after {
|
|
159
|
+
content: '';
|
|
160
|
+
content: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Table reset */
|
|
164
|
+
table {
|
|
165
|
+
border-collapse: collapse;
|
|
166
|
+
border-spacing: 0;
|
|
167
|
+
}
|
|
168
|
+
caption,
|
|
169
|
+
th,
|
|
170
|
+
td {
|
|
171
|
+
text-align: left;
|
|
172
|
+
vertical-align: top;
|
|
173
|
+
}
|
|
174
|
+
thead th,
|
|
175
|
+
thead td {
|
|
176
|
+
font-weight: bold;
|
|
177
|
+
vertical-align: bottom;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Image inside */
|
|
181
|
+
a img,
|
|
182
|
+
th img,
|
|
183
|
+
td img {
|
|
184
|
+
vertical-align: top;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
button,
|
|
188
|
+
input,
|
|
189
|
+
select,
|
|
190
|
+
textarea {
|
|
191
|
+
margin: 0;
|
|
192
|
+
}
|
|
193
|
+
textarea {
|
|
194
|
+
overflow: auto;
|
|
195
|
+
vertical-align: top;
|
|
196
|
+
resize: vertical;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Normalize buttons in IE */
|
|
200
|
+
button {
|
|
201
|
+
width: auto;
|
|
202
|
+
overflow: visible;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Hand cursor on clickable controls */
|
|
206
|
+
input[type="reset"],
|
|
207
|
+
input[type="submit"],
|
|
208
|
+
input[type="file"],
|
|
209
|
+
input[type="radio"],
|
|
210
|
+
input[type="checkbox"],
|
|
211
|
+
select,
|
|
212
|
+
button {
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/* Trick with vertical align for radio and checkbox */
|
|
218
|
+
input[type="radio"],
|
|
219
|
+
input[type="checkbox"] {
|
|
220
|
+
font-size: 110%;
|
|
221
|
+
position: relative;
|
|
222
|
+
top: -1px;
|
|
223
|
+
margin-right: 3px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Normalize search fields */
|
|
227
|
+
input[type="search"] {
|
|
228
|
+
appearance: textfield;
|
|
229
|
+
}
|
|
230
|
+
input[type="search"]::-webkit-search-decoration,
|
|
231
|
+
input[type="search"]::-webkit-search-cancel-button {
|
|
232
|
+
appearance: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Normalize horizontal line */
|
|
236
|
+
hr {
|
|
237
|
+
display: block;
|
|
238
|
+
height: 1px;
|
|
239
|
+
border: 0;
|
|
240
|
+
border-top: 1px solid var(--ply-border-color, #ddd);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* Responsive media */
|
|
244
|
+
img,
|
|
245
|
+
video,
|
|
246
|
+
audio,
|
|
247
|
+
embed,
|
|
248
|
+
object {
|
|
249
|
+
max-width: 100%;
|
|
250
|
+
}
|
|
251
|
+
img,
|
|
252
|
+
video,
|
|
253
|
+
embed,
|
|
254
|
+
object {
|
|
255
|
+
height: auto;
|
|
256
|
+
}
|
|
257
|
+
embed,
|
|
258
|
+
object {
|
|
259
|
+
height: 100%;
|
|
260
|
+
}
|
|
261
|
+
img {
|
|
262
|
+
vertical-align: middle;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* Native <details>/<summary> — Swiss/Modernist accordion */
|
|
266
|
+
details {
|
|
267
|
+
border: 1px solid var(--ply-border-color, #e0e0e0);
|
|
268
|
+
border-radius: 0.25rem;
|
|
269
|
+
padding: 0.75rem 1rem;
|
|
270
|
+
margin-bottom: 1.5rem;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
summary {
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
font-weight: 600;
|
|
276
|
+
padding: 0.25rem 0;
|
|
277
|
+
list-style: none;
|
|
278
|
+
|
|
279
|
+
&::marker,
|
|
280
|
+
&::-webkit-details-marker {
|
|
281
|
+
display: none;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
&::before {
|
|
285
|
+
content: '\25B6';
|
|
286
|
+
display: inline-block;
|
|
287
|
+
margin-right: 0.5rem;
|
|
288
|
+
font-size: 0.75em;
|
|
289
|
+
transition: transform 0.15s ease;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
details[open] > summary::before {
|
|
294
|
+
transform: rotate(90deg);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
details[open] > summary {
|
|
298
|
+
margin-bottom: 0.75rem;
|
|
299
|
+
border-bottom: 1px solid var(--ply-border-color, #e0e0e0);
|
|
300
|
+
padding-bottom: 0.75rem;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* Native <dialog> — modal styling */
|
|
304
|
+
dialog {
|
|
305
|
+
border: none;
|
|
306
|
+
border-radius: 0.25rem;
|
|
307
|
+
padding: 1.5rem;
|
|
308
|
+
max-width: 32rem;
|
|
309
|
+
width: 90%;
|
|
310
|
+
box-shadow: var(--ply-shadow-3, 0 4px 24px rgba(0, 0, 0, 0.15));
|
|
311
|
+
background: var(--ply-bg-surface, #ffffff);
|
|
312
|
+
color: var(--ply-color-body, #161616);
|
|
313
|
+
|
|
314
|
+
&::backdrop {
|
|
315
|
+
background: rgba(0, 0, 0, 0.5);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* Native <progress> and <meter> */
|
|
320
|
+
progress {
|
|
321
|
+
appearance: none;
|
|
322
|
+
width: 100%;
|
|
323
|
+
height: 0.5rem;
|
|
324
|
+
border: none;
|
|
325
|
+
border-radius: 0.25rem;
|
|
326
|
+
background: var(--ply-bg-muted, #e0e0e0);
|
|
327
|
+
margin-bottom: 1.5rem;
|
|
328
|
+
|
|
329
|
+
&::-webkit-progress-bar {
|
|
330
|
+
background: var(--ply-bg-muted, #e0e0e0);
|
|
331
|
+
border-radius: 0.25rem;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&::-webkit-progress-value {
|
|
335
|
+
background: var(--ply-color-link, #0f62fe);
|
|
336
|
+
border-radius: 0.25rem;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
&::-moz-progress-bar {
|
|
340
|
+
background: var(--ply-color-link, #0f62fe);
|
|
341
|
+
border-radius: 0.25rem;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
meter {
|
|
346
|
+
appearance: none;
|
|
347
|
+
width: 100%;
|
|
348
|
+
height: 0.5rem;
|
|
349
|
+
border: none;
|
|
350
|
+
border-radius: 0.25rem;
|
|
351
|
+
background: var(--ply-bg-muted, #e0e0e0);
|
|
352
|
+
margin-bottom: 1.5rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* Respect reduced motion preferences */
|
|
356
|
+
@media (prefers-reduced-motion: reduce) {
|
|
357
|
+
*,
|
|
358
|
+
*::before,
|
|
359
|
+
*::after {
|
|
360
|
+
animation-duration: 0.01ms !important;
|
|
361
|
+
animation-iteration-count: 1 !important;
|
|
362
|
+
transition-duration: 0.01ms !important;
|
|
363
|
+
scroll-behavior: auto !important;
|
|
364
|
+
}
|
|
365
|
+
}
|