-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathindex.css
More file actions
146 lines (126 loc) · 3.13 KB
/
Copy pathindex.css
File metadata and controls
146 lines (126 loc) · 3.13 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
.cdx-attaches {
--color-line: #EFF0F1;
--color-bg: #fff;
--color-bg-secondary: #F8F8F8;
--color-bg-secondary--hover: #f2f2f2;
--color-text-secondary: #707684;
&--with-file {
display: flex;
align-items: center;
padding: 10px 12px;
border: 1px solid var(--color-line);
border-radius: 7px;
background: var(--color-bg);
&[role="button"] {
cursor: pointer;
}
^&__file-info {
display: grid;
grid-gap: 4px;
max-width: calc(100% - 80px);
margin: auto 0;
flex-grow: 2;
}
^&__download-button {
display: flex;
align-items: center;
background: var(--color-bg-secondary);
padding: 6px;
border-radius: 6px;
margin: auto 0 auto auto;
color: inherit;
&:hover {
background: var(--color-bg-secondary--hover);
}
& svg {
width: 20px;
height: 20px;
fill: none;
}
}
^&__file-icon {
position: relative;
&-background {
background-color: #333;
width: 27px;
height: 30px;
margin-right: 12px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
@supports(-webkit-mask-box-image: url('')){
border-radius: 0;
-webkit-mask-box-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10.3872C0 1.83334 1.83334 0 10.3872 0H13.6128C22.1667 0 24 1.83334 24 10.3872V13.6128C24 22.1667 22.1667 24 13.6128 24H10.3872C1.83334 24 0 22.1667 0 13.6128V10.3872Z' fill='black'/%3E%3C/svg%3E%0A") 48% 41% 37.9% 53.3%;;
}
}
&-label {
position: absolute;
left: 3px;
top: 11px;
background: inherit;
text-transform: uppercase;
line-height: 1em;
color: #fff;
padding: 1px 2px;
border-radius: 3px;
font-size: 10px;
font-weight: bold;
/* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.22); */
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
letter-spacing: 0.02em;
}
& svg {
width: 20px;
height: 20px;
}
& path {
stroke: #fff;
}
}
^&__size {
color: var(--color-text-secondary);
font-size: 12px;
line-height: 1em;
&::after {
content: attr(data-size);
margin-left: 0.2em;
}
}
^&__title {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
outline: none;
max-width: 90%;
font-size: 14px;
font-weight: 500;
line-height: 1em;
}
^&__title:empty::before {
content: attr(data-placeholder);
color: #7b7e89;
}
}
&--loading {
^&__title,
^&__file-icon,
^&__size,
^&__download-button,
^&__button {
opacity: 0;
font-size: 0;
}
}
&__button {
display: flex;
align-items: center;
justify-content: center;
color: #000;
border-radius: 7px;
font-weight: 500;
svg {
margin-top: 0;
}
}
}