-
Notifications
You must be signed in to change notification settings - Fork 690
Expand file tree
/
Copy pathcp.css
More file actions
83 lines (74 loc) · 1.63 KB
/
cp.css
File metadata and controls
83 lines (74 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@layer preflight, theme, base, components, utilities;
@import './shared/preflight.css' layer(preflight);
@import './shared/variables.css' layer(theme);
@import './shared/tokens.css' layer(theme);
@import './shared/base.css' layer(base);
.resizable-container {
border: 2px solid;
padding: 20px;
width: 300px;
resize: both;
overflow: auto;
}
.skip-link {
/* Based on tailwind's sr-only class */
--x-position: 0;
--y-position: 0;
display: inline-block;
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
background-color: var(--c-bg-body);
text-decoration: none;
padding-block: var(--c-spacing-md);
padding-inline: var(--c-spacing-lg);
outline: none;
border: 1px dashed var(--c-form-control-border);
color: var(--c-fg-text);
font-weight: var(--font-weight-medium);
border-radius: var(--c-radius-md);
&:focus {
width: auto;
height: auto;
overflow: visible;
clip: auto;
white-space: normal;
inset-inline-start: var(--x-position);
inset-block-start: var(--y-position);
}
}
.skip-link--global {
--x-position: calc(10rem / 16);
--y-position: calc(5rem / 16);
}
.error-list {
color: var(--c-color-danger-on-normal);
list-style: none;
padding: 0;
margin: 0;
}
/* Copied from tailwind's sr-only class */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
border-width: 0;
}
.c-icon {
display: inline-flex;
width: 1.25em;
height: 1em;
svg {
height: 1em;
overflow: visible;
}
}