@surflane/css 0.0.0-stage → 0.10.1

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.
@@ -0,0 +1,201 @@
1
+ /* Composition classes: Heading, Text and Prose. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.base {
6
+ .surf-heading,
7
+ .surf-text {
8
+ margin: 0;
9
+ overflow-wrap: anywhere;
10
+ }
11
+ /* Korean wraps between words, not syllables. Only for lang="ko": keep-all would
12
+ * stop Chinese and Japanese from wrapping at all. */
13
+ :is(.surf-heading, .surf-text, .surf-prose):lang(ko),
14
+ :is(.surf-heading, .surf-text, .surf-prose) :lang(ko) {
15
+ word-break: keep-all;
16
+ }
17
+ .surf-heading {
18
+ font-family: var(--surf-font-display);
19
+ font-size: var(--surf-type-page-size);
20
+ line-height: var(--surf-type-page-leading);
21
+ font-weight: var(--surf-weight-medium);
22
+ letter-spacing: var(--surf-type-page-tracking);
23
+ text-wrap: balance;
24
+ color: var(--surf-ink);
25
+ }
26
+ .surf-heading[data-size='display'] {
27
+ font-size: var(--surf-type-display-size);
28
+ line-height: var(--surf-type-display-leading);
29
+ letter-spacing: var(--surf-type-display-tracking);
30
+ }
31
+ .surf-heading[data-size='title'] {
32
+ font-size: var(--surf-type-title-size);
33
+ line-height: var(--surf-type-title-leading);
34
+ letter-spacing: var(--surf-type-title-tracking);
35
+ }
36
+ .surf-heading[data-size='section'] {
37
+ font-size: var(--surf-type-section-size);
38
+ line-height: var(--surf-type-section-leading);
39
+ letter-spacing: var(--surf-type-section-tracking);
40
+ }
41
+ .surf-heading[data-size='subsection'] {
42
+ font-family: var(--surf-font-body);
43
+ font-size: var(--surf-type-subsection-size);
44
+ line-height: var(--surf-type-subsection-leading);
45
+ letter-spacing: var(--surf-type-subsection-tracking);
46
+ }
47
+ .surf-text {
48
+ font-family: var(--surf-font-body);
49
+ font-size: var(--surf-type-body-size);
50
+ line-height: var(--surf-type-body-leading);
51
+ font-weight: var(--surf-weight-regular);
52
+ color: var(--surf-ink);
53
+ }
54
+ .surf-text[data-variant='reading'] {
55
+ font-size: var(--surf-type-reading-size);
56
+ line-height: var(--surf-type-reading-leading);
57
+ letter-spacing: var(--surf-type-reading-tracking);
58
+ }
59
+ .surf-text[data-variant='caption'] {
60
+ font-size: var(--surf-type-caption-size);
61
+ line-height: var(--surf-type-caption-leading);
62
+ letter-spacing: var(--surf-type-caption-tracking);
63
+ }
64
+ .surf-text[data-variant='table'] {
65
+ font-size: var(--surf-type-compact-size);
66
+ line-height: var(--surf-type-compact-leading);
67
+ letter-spacing: var(--surf-type-compact-tracking);
68
+ font-variant-numeric: tabular-nums;
69
+ }
70
+ .surf-text[data-variant='mono'] {
71
+ font-family: var(--surf-font-code);
72
+ font-variant-ligatures: none;
73
+ font-size: var(--surf-type-code-size);
74
+ line-height: var(--surf-type-code-leading);
75
+ letter-spacing: var(--surf-tracking-mono);
76
+ }
77
+ .surf-text[data-variant='metric'] {
78
+ font-family: var(--surf-font-display);
79
+ font-size: var(--surf-type-metric-size);
80
+ line-height: var(--surf-type-metric-leading);
81
+ letter-spacing: var(--surf-type-metric-tracking);
82
+ font-variant-numeric: tabular-nums;
83
+ font-weight: var(--surf-weight-medium);
84
+ }
85
+ .surf-text[data-weight='medium'] {
86
+ font-weight: var(--surf-weight-medium);
87
+ }
88
+ .surf-text[data-color='secondary'] {
89
+ color: var(--surf-ink-body);
90
+ }
91
+ .surf-text[data-color='muted'] {
92
+ color: var(--surf-ink-muted);
93
+ }
94
+ .surf-text strong {
95
+ font-weight: var(--surf-weight-medium);
96
+ }
97
+ .surf-prose {
98
+ max-width: var(--surf-layout-reading);
99
+ font: var(--surf-weight-regular)
100
+ var(--surf-type-reading-size)/var(--surf-type-reading-leading)
101
+ var(--surf-font-body);
102
+ color: var(--surf-ink-body);
103
+ overflow-wrap: anywhere;
104
+ }
105
+ .surf-prose > * {
106
+ margin-block: 0 var(--surf-space-4);
107
+ }
108
+ /* Text blocks keep the reading measure, however deep in sections; tables, code and
109
+ * images use the full width, and components inside prose lay out their own text. */
110
+ .surf-prose :is(p, ul, ol, blockquote):not(.surf-prose [class*='surf-'] *) {
111
+ max-inline-size: var(--surf-layout-reading-measure);
112
+ }
113
+ .surf-prose > :last-child {
114
+ margin-bottom: 0;
115
+ }
116
+ .surf-prose :is(h2, h3, h4) {
117
+ font-family: var(--surf-font-display);
118
+ font-weight: var(--surf-weight-medium);
119
+ color: var(--surf-ink);
120
+ margin-block: var(--surf-space-8) var(--surf-space-3);
121
+ }
122
+ /* A heading's top margin separates it from the text above; the first child has none.
123
+ (0,2,0) beats the heading rule's (0,1,1). */
124
+ .surf-prose > :first-child {
125
+ margin-top: 0;
126
+ }
127
+ .surf-prose h2 {
128
+ font-size: var(--surf-type-page-size);
129
+ line-height: var(--surf-type-page-leading);
130
+ letter-spacing: var(--surf-type-page-tracking);
131
+ }
132
+ .surf-prose h3 {
133
+ font-size: var(--surf-type-section-size);
134
+ line-height: var(--surf-type-section-leading);
135
+ letter-spacing: var(--surf-type-section-tracking);
136
+ }
137
+ .surf-prose h4 {
138
+ font-family: var(--surf-font-body);
139
+ font-size: var(--surf-type-subsection-size);
140
+ line-height: var(--surf-type-subsection-leading);
141
+ letter-spacing: var(--surf-type-subsection-tracking);
142
+ }
143
+ .surf-prose strong {
144
+ font-weight: var(--surf-weight-medium);
145
+ }
146
+ .surf-prose code {
147
+ font-family: var(--surf-font-code);
148
+ font-variant-ligatures: none;
149
+ font-size: 0.875em;
150
+ background: var(--surf-code-bg);
151
+ border-radius: var(--surf-radius-sm);
152
+ padding: 2px 4px;
153
+ }
154
+ .surf-prose pre {
155
+ max-width: 100%;
156
+ overflow: auto;
157
+ padding: var(--surf-space-4);
158
+ border-radius: var(--surf-radius-md);
159
+ background: var(--surf-code-bg);
160
+ }
161
+ .surf-prose pre code {
162
+ padding: 0;
163
+ white-space: pre;
164
+ overflow-wrap: normal;
165
+ }
166
+ .surf-prose a {
167
+ color: var(--surf-brand-ink);
168
+ text-underline-offset: 0.2em;
169
+ }
170
+ .surf-text[data-variant='label'] {
171
+ font-size: var(--surf-type-label-size);
172
+ line-height: var(--surf-type-label-leading);
173
+ letter-spacing: var(--surf-type-label-tracking);
174
+ }
175
+ /* Earlier page title sizes; both now render the display role. */
176
+ .surf-heading:is([data-size='workspace'], [data-size='document']) {
177
+ font-size: var(--surf-type-display-size);
178
+ line-height: var(--surf-type-display-leading);
179
+ letter-spacing: var(--surf-type-display-tracking);
180
+ }
181
+ .surf-text {
182
+ letter-spacing: var(--surf-type-body-tracking);
183
+ }
184
+ .surf-prose {
185
+ letter-spacing: var(--surf-type-reading-tracking);
186
+ }
187
+ .surf-text[data-variant='mono'],
188
+ .surf-prose code {
189
+ letter-spacing: var(--surf-tracking-mono);
190
+ }
191
+ /* Reapply after any font shorthand: shorthand resets inherited kerning. */
192
+ .surf-heading,
193
+ .surf-text,
194
+ .surf-prose,
195
+ .surf-prose code,
196
+ .surf-prose pre {
197
+ font-kerning: normal;
198
+ font-optical-sizing: auto;
199
+ font-synthesis-weight: none;
200
+ }
201
+ }
@@ -0,0 +1,6 @@
1
+ /* Opt-in, framework-neutral composition; no application-wide reset. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+ @import './foundations/layout.css';
5
+ @import './foundations/typography.css';
6
+ @import './foundations/page-header.css';
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@surflane/css",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.10.1",
4
+ "description": "Surflane's CSS-only layer: control, layout composition, document typography and presentation classes that work without React, on top of @surflane/design-tokens.",
5
+ "keywords": [
6
+ "design-system",
7
+ "css",
8
+ "css-layers",
9
+ "surflane"
10
+ ],
11
+ "homepage": "https://surflane.page",
12
+ "bugs": {
13
+ "url": "https://github.com/Ashon/surflane/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/Ashon/surflane.git",
18
+ "directory": "packages/css"
19
+ },
20
+ "license": "MIT OR Apache-2.0",
21
+ "author": "ashon",
22
+ "type": "module",
23
+ "files": [
24
+ "*.css",
25
+ "presentation/*.css",
26
+ "foundations/*.css",
27
+ "LICENSE-MIT",
28
+ "LICENSE-APACHE"
29
+ ],
30
+ "exports": {
31
+ "./controls.css": "./controls.css",
32
+ "./foundations.css": "./foundations.css",
33
+ "./foundations/*.css": "./foundations/*.css",
34
+ "./presentation.css": "./presentation.css",
35
+ "./presentation/*.css": "./presentation/*.css",
36
+ "./typography.css": "./typography.css",
37
+ "./package.json": "./package.json"
38
+ },
39
+ "peerDependencies": {
40
+ "@surflane/design-tokens": "^0.10.1"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ }
45
+ }
@@ -0,0 +1,63 @@
1
+ /* Presentation classes: Avatar. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.components {
6
+ .surf-avatar {
7
+ box-sizing: border-box;
8
+ --surf-avatar-size: var(--surf-size-avatar-default);
9
+ display: inline-flex;
10
+ vertical-align: middle;
11
+ position: relative;
12
+ flex: none;
13
+ align-items: center;
14
+ justify-content: center;
15
+ width: var(--surf-avatar-size);
16
+ height: var(--surf-avatar-size);
17
+ overflow: visible;
18
+ border: 1px solid var(--surf-line);
19
+ border-radius: var(--surf-radius-full);
20
+ background: var(--surf-surface);
21
+ color: var(--surf-ink-body);
22
+ font: var(--surf-weight-medium) var(--surf-type-caption-size)/1
23
+ var(--surf-font-body);
24
+ letter-spacing: var(--surf-type-caption-tracking);
25
+ }
26
+ .surf-avatar:is([data-size='sm'], [data-size='small']) {
27
+ --surf-avatar-size: var(--surf-size-avatar-small);
28
+ font-size: var(--surf-type-caption-size);
29
+ }
30
+ .surf-avatar:is([data-size='lg'], [data-size='large']) {
31
+ --surf-avatar-size: var(--surf-size-avatar-large);
32
+ font-size: var(--surf-size-font-large);
33
+ }
34
+ .surf-avatar-image {
35
+ width: 100%;
36
+ height: 100%;
37
+ object-fit: cover;
38
+ border-radius: inherit;
39
+ }
40
+ .surf-avatar-status {
41
+ position: absolute;
42
+ inset-inline-end: 0;
43
+ bottom: 0;
44
+ width: max(8px, 25%);
45
+ height: max(8px, 25%);
46
+ box-sizing: border-box;
47
+ border: 2px solid var(--surf-menu-background);
48
+ border-radius: var(--surf-radius-full);
49
+ background: var(--surf-status-success-fg);
50
+ }
51
+ .surf-avatar-fallback {
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ width: 100%;
56
+ height: 100%;
57
+ }
58
+ /* The fallback glyph scales with the avatar. */
59
+ .surf-avatar-fallback > svg {
60
+ inline-size: 50%;
61
+ block-size: 50%;
62
+ }
63
+ }
@@ -0,0 +1,83 @@
1
+ /* Presentation classes: Badge / Status. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.components {
6
+ .surf-badge {
7
+ box-sizing: border-box;
8
+ display: inline-flex;
9
+ vertical-align: middle;
10
+ align-items: center;
11
+ gap: var(--surf-status-badge-gap);
12
+ max-width: 100%;
13
+ padding: 4px 9px;
14
+ border: 0;
15
+ border-radius: var(--surf-radius-pill);
16
+ background: var(--surf-badge-neutral-bg);
17
+ color: var(--surf-status-neutral-fg);
18
+ font: var(--surf-weight-medium)
19
+ var(--surf-type-caption-size)/var(--surf-type-caption-leading)
20
+ var(--surf-font-body);
21
+ overflow-wrap: anywhere;
22
+ }
23
+ .surf-badge-icon {
24
+ display: inline-flex;
25
+ flex: none;
26
+ align-items: center;
27
+ }
28
+ /* The glyph is as tall as the badge text. */
29
+ .surf-badge-icon > svg {
30
+ inline-size: 1em;
31
+ block-size: 1em;
32
+ }
33
+ .surf-badge[data-tone='success'] {
34
+ color: var(--surf-status-success-fg);
35
+ background: var(--surf-badge-success-bg);
36
+ }
37
+ .surf-badge[data-tone='danger'] {
38
+ color: var(--surf-status-danger-fg);
39
+ background: var(--surf-badge-danger-bg);
40
+ }
41
+ .surf-badge[data-tone='caution'] {
42
+ color: var(--surf-status-caution-fg);
43
+ background: var(--surf-badge-caution-bg);
44
+ }
45
+ .surf-badge[data-tone='progress'] {
46
+ color: var(--surf-status-progress-fg);
47
+ background: var(--surf-badge-progress-bg);
48
+ }
49
+ .surf-badge[data-tone='info'] {
50
+ color: var(--surf-status-info-fg);
51
+ background: var(--surf-badge-info-bg);
52
+ }
53
+ @media (forced-colors: active) {
54
+ .surf-badge {
55
+ border: 1px solid CanvasText;
56
+ padding: 3px 8px;
57
+ }
58
+ }
59
+ @media (prefers-reduced-motion: reduce), (forced-colors: active) {
60
+ :is(.surf-badge)[data-status-transition] {
61
+ --surf-status-progress: 1 !important;
62
+ }
63
+ }
64
+ }
65
+ @layer surflane.sizes {
66
+ :is(.surf-badge)[data-status-transition] {
67
+ background-color: color-mix(
68
+ in oklch,
69
+ var(--surf-status-from-0),
70
+ var(--surf-status-to-0) calc(var(--surf-status-progress) * 100%)
71
+ );
72
+ color: color-mix(
73
+ in oklch,
74
+ var(--surf-status-from-1),
75
+ var(--surf-status-to-1) calc(var(--surf-status-progress) * 100%)
76
+ );
77
+ border-color: color-mix(
78
+ in oklch,
79
+ var(--surf-status-from-2),
80
+ var(--surf-status-to-2) calc(var(--surf-status-progress) * 100%)
81
+ );
82
+ }
83
+ }
@@ -0,0 +1,25 @@
1
+ /* Presentation classes: base. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.components {
6
+ .surf-code-scroll {
7
+ max-width: 100%;
8
+ overflow: auto;
9
+ }
10
+ .surf-feedback-sr {
11
+ position: absolute;
12
+ width: 1px;
13
+ height: 1px;
14
+ padding: 0;
15
+ overflow: hidden;
16
+ clip-path: inset(50%);
17
+ white-space: nowrap;
18
+ }
19
+ /* Registered progress keeps status transitions in the explicit OKLCH space. */
20
+ @property --surf-status-progress {
21
+ syntax: '<number>';
22
+ inherits: false;
23
+ initial-value: 1;
24
+ }
25
+ }
@@ -0,0 +1,40 @@
1
+ /* Presentation classes: Breadcrumbs. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.components {
6
+ .surf-breadcrumb-list {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ align-items: center;
10
+ gap: var(--surf-space-2);
11
+ min-width: 0;
12
+ margin: 0;
13
+ padding: 0;
14
+ list-style: none;
15
+ }
16
+ .surf-breadcrumb-item {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ gap: var(--surf-space-2);
20
+ min-width: 0;
21
+ max-width: 100%;
22
+ }
23
+ .surf-breadcrumbs {
24
+ font: var(--surf-weight-regular)
25
+ var(--surf-type-caption-size)/var(--surf-type-caption-leading)
26
+ var(--surf-font-body);
27
+ }
28
+ .surf-breadcrumb-separator {
29
+ display: inline-flex;
30
+ flex: none;
31
+ color: var(--surf-ink-muted);
32
+ }
33
+ .surf-breadcrumb-current {
34
+ color: var(--surf-ink-muted);
35
+ overflow-wrap: anywhere;
36
+ }
37
+ .surf-breadcrumb-separator:dir(rtl) > svg {
38
+ transform: rotate(180deg);
39
+ }
40
+ }
@@ -0,0 +1,54 @@
1
+ /* Presentation classes: Card / Surface. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.components {
6
+ /* Cards use one surface; children provide hierarchy without extra frames. */
7
+ .surf-card {
8
+ display: grid;
9
+ gap: var(--surf-space-4);
10
+ min-width: 0;
11
+ padding: var(--surf-surface-padding, var(--surf-space-6));
12
+ border-radius: var(--surf-radius-lg);
13
+ background: var(--surf-surface);
14
+ color: var(--surf-ink-body);
15
+ }
16
+ .surf-card:is([data-surface='canvas'], [data-tone='canvas']) {
17
+ background: var(--surf-canvas);
18
+ }
19
+ .surf-card-header {
20
+ display: grid;
21
+ gap: var(--surf-space-2);
22
+ min-width: 0;
23
+ }
24
+ .surf-card-title {
25
+ margin: 0;
26
+ color: var(--surf-ink);
27
+ font: var(--surf-weight-medium)
28
+ var(--surf-type-section-size)/var(--surf-type-section-leading)
29
+ var(--surf-font-body);
30
+ letter-spacing: var(--surf-type-section-tracking);
31
+ overflow-wrap: anywhere;
32
+ }
33
+ .surf-card-description {
34
+ margin: 0;
35
+ color: var(--surf-ink-body);
36
+ }
37
+ .surf-card-body {
38
+ min-width: 0;
39
+ overflow-wrap: anywhere;
40
+ }
41
+ .surf-card-footer {
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ align-items: center;
45
+ justify-content: space-between;
46
+ gap: var(--surf-space-3);
47
+ }
48
+ .surf-card-body > :first-child {
49
+ margin-top: 0;
50
+ }
51
+ .surf-card-body > :last-child {
52
+ margin-bottom: 0;
53
+ }
54
+ }
@@ -0,0 +1,81 @@
1
+ /* Presentation classes: Code block. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.components {
6
+ /* Plain source display is also available to non-React consumers. */
7
+ .surf-code-block {
8
+ position: relative;
9
+ min-width: 0;
10
+ color: var(--surf-ink-body);
11
+ }
12
+ .surf-code-toolbar {
13
+ display: flex;
14
+ flex-wrap: wrap;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ gap: var(--surf-space-3);
18
+ margin-bottom: var(--surf-space-3);
19
+ }
20
+ .surf-code-label {
21
+ display: inline-flex;
22
+ align-items: baseline;
23
+ flex-wrap: wrap;
24
+ gap: var(--surf-space-3);
25
+ font-weight: var(--surf-weight-medium);
26
+ overflow-wrap: anywhere;
27
+ }
28
+ .surf-code-language {
29
+ color: var(--surf-ink-muted);
30
+ font: var(--surf-weight-regular)
31
+ var(--surf-type-caption-size)/var(--surf-type-caption-leading)
32
+ var(--surf-font-code);
33
+ letter-spacing: var(--surf-tracking-mono);
34
+ }
35
+ .surf-code-block > :is(.surf-scroll-root, .surf-code-scroll) {
36
+ background: var(--surf-code-bg);
37
+ border-radius: var(--surf-radius-md);
38
+ }
39
+ .surf-code-text {
40
+ margin: 0;
41
+ padding: var(--surf-space-4);
42
+ font: var(--surf-weight-regular)
43
+ var(--surf-type-code-size)/var(--surf-type-code-leading)
44
+ var(--surf-font-code);
45
+ letter-spacing: var(--surf-tracking-mono);
46
+ font-variant-ligatures: none;
47
+ white-space: pre;
48
+ overflow-wrap: normal;
49
+ tab-size: 2;
50
+ }
51
+ .surf-code-text code {
52
+ font: inherit;
53
+ }
54
+ .surf-code-block[data-wrap] .surf-code-text {
55
+ white-space: pre-wrap;
56
+ overflow-wrap: anywhere;
57
+ }
58
+ /* Copy results stay inside the button. */
59
+ .surf-code-copy[data-copy-state='copied'] {
60
+ color: var(--surf-status-success-fg);
61
+ }
62
+ .surf-code-copy[data-copy-state='failed'] {
63
+ color: var(--surf-status-danger-fg);
64
+ }
65
+ /* The result fades in where the action was, and the action fades back. */
66
+ .surf-code-copy[data-copy-used]
67
+ :is(.surf-code-copy-icon, .surf-code-copy-label) {
68
+ animation: surf-copy-fade var(--surf-duration-base) var(--surf-ease-out);
69
+ }
70
+ @keyframes surf-copy-fade {
71
+ from {
72
+ opacity: 0;
73
+ }
74
+ }
75
+ @media (prefers-reduced-motion: reduce) {
76
+ .surf-code-copy[data-copy-used]
77
+ :is(.surf-code-copy-icon, .surf-code-copy-label) {
78
+ animation: none;
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,45 @@
1
+ /* Presentation classes: Empty state. */
2
+ @layer surflane.tokens, surflane.themes, surflane.base, surflane.components,
3
+ surflane.sizes;
4
+
5
+ @layer surflane.components {
6
+ .surf-empty-actions {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ gap: var(--surf-space-2);
10
+ margin-top: var(--surf-space-4);
11
+ }
12
+ .surf-empty {
13
+ padding: var(--surf-space-6);
14
+ text-align: center;
15
+ color: var(--surf-ink-body);
16
+ overflow-wrap: anywhere;
17
+ }
18
+ .surf-empty-icon {
19
+ display: flex;
20
+ justify-content: center;
21
+ color: var(--surf-ink-muted);
22
+ margin-bottom: var(--surf-space-3);
23
+ }
24
+ .surf-empty-title {
25
+ font: var(--surf-weight-medium)
26
+ var(--surf-type-section-size)/var(--surf-type-section-leading)
27
+ var(--surf-font-display);
28
+ letter-spacing: var(--surf-type-section-tracking);
29
+ color: var(--surf-ink);
30
+ margin: 0;
31
+ }
32
+ .surf-empty-description {
33
+ max-width: 52ch;
34
+ margin: var(--surf-space-2) auto 0;
35
+ color: var(--surf-ink-body);
36
+ }
37
+ .surf-empty-actions {
38
+ justify-content: center;
39
+ }
40
+ @media (max-width: 560px) {
41
+ .surf-empty {
42
+ padding: var(--surf-space-4);
43
+ }
44
+ }
45
+ }