-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvaadin-upload-file-styles.js
76 lines (65 loc) · 1.71 KB
/
vaadin-upload-file-styles.js
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
import { css } from 'lit-element';
export const vaadinUploadFileStyles = css`
:host {
color: var(--lumo-body-text-color);
display: block;
font-family: var(--lumo-font-family);
font-size: var(--lumo-font-size-m);
line-height: var(--lumo-line-height-m);
margin-top: var(--lumo-space-m);
}
li {
align-items: flex-start;
display: inline-flex;
width: 100%;
}
#icon {
color: var(--lumo-primary-color);
flex-shrink: 0;
margin-right: var(--lumo-space-xs);
margin-top: calc(((var(--lumo-font-size-m) * var(--lumo-line-height-m)) - var(--lumo-icon-size-m)) / 2);
opacity: 0;
}
:host([value="100"]) #icon {
opacity: 1;
}
#info {
display: inline-flex;
flex-direction: column;
margin-right: var(--lumo-space-m);
width: 100%;
}
#status {
color: var(--lumo-secondary-text-color);
font-size: var(--lumo-font-size-s);
}
progress {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
border: none;
border-radius: var(--lumo-border-radius);
height: calc(var(--lumo-size-xs) * 0.25);
margin-top: var(--lumo-space-s);
overflow: hidden;
width: 100%;
}
progress::-webkit-progress-bar {
background-color: var(--lumo-contrast-10pct);
background-image: none;
}
progress::-webkit-progress-value {
background-color: var(--lumo-primary-color);
background-image: none;
}
progress::-moz-progress-bar {
background-color: var(--lumo-primary-color);
background-image: none;
}
#buttons {
display: inline-flex;
flex-shrink: 0;
line-height: 1;
margin-top: calc(((var(--lumo-font-size-m) * var(--lumo-line-height-m)) - var(--lumo-icon-size-m)) / 2);
}
`;