-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbase.scss
More file actions
100 lines (90 loc) · 2.25 KB
/
base.scss
File metadata and controls
100 lines (90 loc) · 2.25 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
:root {
--color-text: inherit;
--color-accent: rgba(0, 128, 0, 0.5);
--color-accent-bg: rgba(0, 128, 0, 0.15);
--color-error: #f00;
--color-error-bg: #fff0f0;
--font-family-mono: monospace;
--font-size-base: 1rem;
--line-height-base: 1.5;
--spacing-xs: 0.25rem;
--spacing-sm: 0.5rem;
--button-padding-y: 0.4em;
--button-padding-x: 0.75em;
--border-radius-sm: 0.25em;
--transition-border: border-color 0.2s linear;
--transition-shadow: box-shadow 0.2s ease-in-out;
}
#configs input {
width: 100%;
padding: var(--spacing-xs);
box-sizing: border-box;
line-height: var(--line-height-base);
font-size: var(--font-size-base);
color: var(--color-text);
font-family: var(--font-family-mono);
background-color: transparent;
border: 0;
border-radius: 0;
outline: none;
appearance: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.config__headline > span,
.config__url {
hyphens: none;
word-break: break-word;
overflow-wrap: break-word;
text-wrap: wrap;
}
.config__url em {
padding-right: 0.125em;
letter-spacing: -0.05em;
opacity: 0.75;
font-style: italic;
}
.config__url .config__url-amp:last-child {
display: none !important;
}
.js__copy-element {
position: fixed;
top: 0;
left: 0;
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
user-select: text;
}
.js__copy-element::selection {
background-color: transparent;
}
.noscript {
font-weight: 600;
color: var(--color-error);
background: var(--color-error-bg);
padding: var(--spacing-sm);
border: 1px solid var(--color-error);
}
button[data-bind-click="copy"] {
padding: var(--button-padding-y) var(--button-padding-x);
border: 2px solid transparent;
border-radius: var(--border-radius-sm);
background-color: #fff;
color: var(--color-text);
cursor: pointer;
font: inherit;
line-height: 1.2;
transition: var(--transition-border), var(--transition-shadow);
}
button[data-bind-click="copy"]:focus-visible {
outline: 2px dashed var(--color-accent);
outline-offset: 2px;
}
button[data-bind-click="copy"].copied,
button[data-bind-click="copy"].copied:hover,
button[data-bind-click="copy"].copied:active {
border-color: var(--color-accent);
box-shadow: inset 0 2px 4px var(--color-accent-bg);
}