-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathfile-uploader.component.scss
78 lines (68 loc) · 1.8 KB
/
file-uploader.component.scss
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
.previews {
display: flex;
flex-wrap: wrap;
gap: 8px;
width: 100%;
margin-top: 12px;
}
/*
CSS variables are used to customize the appearance of the file uploader.
See more: https://uploadcare.com/docs/file-uploader/styling/
*/
.file-uploader {
--uc-primary-dark: var(--ui-action-button-background);
--uc-primary-foreground-dark: var(--ui-action-button-text-color);
}
.preview {
position: relative;
}
.preview-remove-button {
position: absolute;
right: -8px;
top: -8px;
width: 18px;
height: 18px;
padding: 0;
font-size: 16px;
line-height: 1;
font-family: monospace;
border: 1px solid var(--ui-control-border-color-default);
border-radius: 8px;
background: var(--ui-control-background-color);
box-shadow: 0 0 16px 0 var(--ui-control-box-shadow-color);
color: var(--ui-control-text-color);
cursor: pointer;
&:hover, &:focus {
background: var(--ui-control-background-color);
outline: 1px solid var(--ui-control-outline-color-focus);
}
}
.preview-image {
width: 100px;
height: 100px;
border-radius: 8px;
object-fit: cover;
}
.root::ng-deep lr-simple-btn button {
height: auto;
padding: 10px 12px !important;
font-family: monospace;
line-height: 1;
font-size: 16px;
border: 1px solid var(--ui-control-border-color-default);
border-radius: 8px;
background: var(--ui-control-background-color);
box-shadow: 0 0 16px 0 var(--ui-control-box-shadow-color);
color: var(--ui-control-text-color);
}
.root::ng-deep lr-simple-btn lr-icon {
display: none;
}
.root::ng-deep lr-simple-btn button:hover,
.root::ng-deep lr-simple-btn button:focus {
background: var(--ui-control-background-color);
outline: 3px solid var(--ui-control-outline-color-focus);
}
.root::ng-deep lr-simple-btn button:active {
border-color: var(--ui-control-border-color-focus);
}