jvetrau-ds 0.1.2 → 0.1.3
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/index.cjs +79 -0
- package/index.cjs.map +1 -1
- package/index.d.cts +16 -1
- package/index.d.ts +16 -1
- package/index.js +79 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles.css +143 -0
package/styles.css
CHANGED
|
@@ -1,5 +1,148 @@
|
|
|
1
1
|
/* AUTO-GENERATED FILE. DO NOT EDIT MANUALLY. */
|
|
2
2
|
|
|
3
|
+
/* src/components/attachment/attachment.css */
|
|
4
|
+
.attachment {
|
|
5
|
+
/* color */
|
|
6
|
+
--attachment-color: var(--color-text);
|
|
7
|
+
--attachment-item-bg: var(--color-control);
|
|
8
|
+
--attachment-border-color: var(--color-line);
|
|
9
|
+
--attachment-size-color: var(--color-text-note);
|
|
10
|
+
|
|
11
|
+
color: var(--attachment-color);
|
|
12
|
+
|
|
13
|
+
/* typography */
|
|
14
|
+
--attachment-font-family: var(--font-control-family);
|
|
15
|
+
--attachment-font-size: var(--font-control);
|
|
16
|
+
--attachment-font-weight: var(--font-control-weight);
|
|
17
|
+
--attachment-line-height: var(--font-control-line);
|
|
18
|
+
--attachment-letter-spacing: var(--font-control-letter-spacing);
|
|
19
|
+
|
|
20
|
+
font-family: var(--attachment-font-family);
|
|
21
|
+
font-size: var(--attachment-font-size);
|
|
22
|
+
font-weight: var(--attachment-font-weight);
|
|
23
|
+
line-height: var(--attachment-line-height);
|
|
24
|
+
letter-spacing: var(--attachment-letter-spacing);
|
|
25
|
+
|
|
26
|
+
/* size */
|
|
27
|
+
--attachment-gap: var(--margin-control);
|
|
28
|
+
--attachment-item-gap: var(--margin-icon);
|
|
29
|
+
--attachment-item-padding: var(--padding-control-vert);
|
|
30
|
+
--attachment-preview-max-width: 240px;
|
|
31
|
+
--attachment-preview-max-height: 180px;
|
|
32
|
+
|
|
33
|
+
/* border */
|
|
34
|
+
--attachment-radius: var(--radius-control);
|
|
35
|
+
--attachment-border-width: var(--size-border-width-base);
|
|
36
|
+
|
|
37
|
+
/* depth */
|
|
38
|
+
|
|
39
|
+
/* motion */
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.attachment__list {
|
|
43
|
+
/* size */
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: var(--attachment-gap);
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: 0;
|
|
49
|
+
|
|
50
|
+
/* border */
|
|
51
|
+
list-style: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.attachment__item {
|
|
55
|
+
/* color */
|
|
56
|
+
background: var(--attachment-item-bg);
|
|
57
|
+
|
|
58
|
+
/* size */
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
gap: var(--attachment-item-gap);
|
|
63
|
+
padding: var(--attachment-item-padding);
|
|
64
|
+
|
|
65
|
+
/* border */
|
|
66
|
+
border:
|
|
67
|
+
var(--attachment-border-width)
|
|
68
|
+
solid
|
|
69
|
+
var(--attachment-border-color);
|
|
70
|
+
border-radius: var(--attachment-radius);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.attachment__link {
|
|
74
|
+
/* color */
|
|
75
|
+
color: inherit;
|
|
76
|
+
|
|
77
|
+
/* size */
|
|
78
|
+
min-width: 0;
|
|
79
|
+
|
|
80
|
+
/* typography */
|
|
81
|
+
text-decoration: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.attachment__link:hover .attachment__name {
|
|
85
|
+
text-decoration: underline;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.attachment__preview {
|
|
89
|
+
/* size */
|
|
90
|
+
display: block;
|
|
91
|
+
max-width: var(--attachment-preview-max-width);
|
|
92
|
+
max-height: var(--attachment-preview-max-height);
|
|
93
|
+
object-fit: contain;
|
|
94
|
+
|
|
95
|
+
/* border */
|
|
96
|
+
border-radius: var(--attachment-radius);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.attachment__file {
|
|
100
|
+
/* size */
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
min-width: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.attachment__name {
|
|
107
|
+
/* size */
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
|
|
110
|
+
/* typography */
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.attachment__size {
|
|
116
|
+
/* color */
|
|
117
|
+
color: var(--attachment-size-color);
|
|
118
|
+
|
|
119
|
+
/* typography */
|
|
120
|
+
font-size: 0.85em;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.attachment__remove {
|
|
124
|
+
/* color */
|
|
125
|
+
background: transparent;
|
|
126
|
+
color: inherit;
|
|
127
|
+
|
|
128
|
+
/* typography */
|
|
129
|
+
font: inherit;
|
|
130
|
+
|
|
131
|
+
/* size */
|
|
132
|
+
flex-shrink: 0;
|
|
133
|
+
padding: 0;
|
|
134
|
+
|
|
135
|
+
/* border */
|
|
136
|
+
border: 0;
|
|
137
|
+
|
|
138
|
+
/* motion */
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.attachment__remove:hover {
|
|
143
|
+
text-decoration: underline;
|
|
144
|
+
}
|
|
145
|
+
|
|
3
146
|
/* src/components/avatar/avatar.css */
|
|
4
147
|
.avatar {
|
|
5
148
|
/* color */
|