@exmg/exm-upload 1.0.14 → 1.0.16

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.
@@ -1,119 +0,0 @@
1
- :host {
2
- display: flex;
3
- align-items: center;
4
- height: 65px;
5
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
6
- padding-bottom: 6px;
7
- margin-bottom: 6px;
8
- }
9
-
10
- .item {
11
- display: grid;
12
- height: 65px;
13
- width: 100%;
14
- grid-template-columns: 2rem 1fr 6rem;
15
- grid-auto-flow: column;
16
- align-items: center;
17
- }
18
-
19
- .vertical-center {
20
- display: flex;
21
- align-items: center;
22
- }
23
-
24
- .loader {
25
- width: 18px;
26
- height: 18px;
27
- border: 3px solid var(--md-sys-color-primary);
28
- border-bottom-color: transparent;
29
- border-radius: 50%;
30
- display: inline-block;
31
- box-sizing: border-box;
32
- animation: rotation 1s linear infinite;
33
- }
34
-
35
- .name-container {
36
- margin-left: 16px;
37
- display: flex;
38
- flex-direction: column;
39
- gap: 4px;
40
- width: 100%;
41
- }
42
-
43
- .file-name {
44
- width: 100%;
45
- white-space: nowrap;
46
- overflow: hidden;
47
- text-overflow: ellipsis;
48
- }
49
-
50
- .file-error {
51
- width: 100%;
52
- white-space: nowrap;
53
- overflow: hidden;
54
- text-overflow: ellipsis;
55
- }
56
-
57
- .file-details {
58
- display: flex;
59
- flex-direction: row;
60
- justify-content: space-between;
61
- }
62
-
63
- .file-error {
64
- font-size: 0.7rem;
65
- background-color: var(--md-sys-color-error-container, #b00020);
66
- color: var(--md-sys-color-on-error-container, white);
67
- padding: 2px 4px;
68
- border-radius: 6px;
69
- }
70
-
71
- .actions {
72
- display: flex;
73
- justify-content: flex-end;
74
- justify-self: flex-end;
75
- width: 60px;
76
- }
77
-
78
- .error-icon,
79
- .error-icon svg {
80
- fill: #b00020;
81
- font-weight: bold;
82
- width: 32px;
83
- height: 32px;
84
- }
85
-
86
- .success-icon {
87
- --md-icon-color: green;
88
- --md-icon-size: 32px;
89
- --md-icon-weight: 400;
90
- }
91
-
92
- .badge {
93
- display: flex;
94
- align-items: center;
95
- background-color: var(--md-ref-palette-primary-primary50);
96
- margin-right: 4px;
97
- border-radius: 4px;
98
- color: var(--md-ref-palette-primary-primary80);
99
- padding: 6px;
100
- font-size: 0.6rem;
101
- height: 0.4rem;
102
- font-weight: bold;
103
- line-height: 1.75;
104
- letter-spacing: 0.5px;
105
- }
106
-
107
- .status {
108
- display: flex;
109
- justify-content: center;
110
- }
111
-
112
- @keyframes rotation {
113
- 0% {
114
- transform: rotate(0deg);
115
- }
116
- 100% {
117
- transform: rotate(360deg);
118
- }
119
- }
@@ -1,147 +0,0 @@
1
- :host {
2
- display: flex;
3
- color: var(--exm-upload-text-color, #000);
4
- color: var(--_supporting-text-color);
5
- font: var(--_supporting-text-type);
6
- flex-direction: column;
7
- justify-content: center;
8
- align-items: center;
9
- gap: 0.5rem;
10
- padding: 8px 0 8px 0;
11
- --_supporting-text-color: var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));
12
- --_supporting-text-type: var(
13
- --md-dialog-supporting-text-type,
14
- 400 0.875rem / 1.25rem var(--md-ref-typeface-plain, Roboto)
15
- );
16
- }
17
-
18
- .image-upload-wrapper {
19
- display: flex;
20
- width: 100%;
21
- flex-direction: row;
22
- }
23
-
24
- #preview {
25
- max-width: 80px;
26
- max-height: 80px;
27
- }
28
-
29
- .preview-wrapper {
30
- margin: 1rem;
31
- }
32
-
33
- .info-wrapper {
34
- display: flex;
35
- margin-left: 1.5rem;
36
- flex-direction: column;
37
- padding: 1rem;
38
- gap: 12px;
39
- }
40
-
41
- .info {
42
- display: flex;
43
- flex-direction: column;
44
- gap: 8px;
45
- }
46
-
47
- .description {
48
- color: var(--exm-upload-description-text-color, #a7a7a7);
49
- font-size: 0.9rem;
50
- margin-bottom: 1rem;
51
- }
52
-
53
- .browse {
54
- width: 50%;
55
- }
56
-
57
- exm-button {
58
- display: flex;
59
- align-items: center;
60
- }
61
-
62
- .click-label {
63
- position: absolute;
64
- width: 100%;
65
- height: 100%;
66
- box-sizing: border-box;
67
- display: flex;
68
- align-items: center;
69
- justify-content: center;
70
- cursor: pointer;
71
- }
72
-
73
- img {
74
- z-index: 99999;
75
- display: block;
76
-
77
- /* This rule is very important, please don't ignore this */
78
- max-width: 100%;
79
- }
80
-
81
- .image-container {
82
- width: 200px;
83
- height: 200px;
84
- }
85
-
86
- .error-message {
87
- display: flex;
88
- align-items: center;
89
- gap: 1rem;
90
- background-color: #dedede;
91
- width: 450px;
92
- padding: 8px;
93
- color: hsl(0, 87%, 56%);
94
- border-radius: 4px;
95
- margin-bottom: 1rem;
96
- box-sizing: border-box;
97
- }
98
-
99
- .item {
100
- width: 100%;
101
- }
102
-
103
- .item-container {
104
- width: 100%;
105
- }
106
-
107
- .item:first-child {
108
- margin-top: 1rem;
109
- }
110
-
111
- .item:last-child {
112
- border-bottom: none;
113
- }
114
-
115
- .actions {
116
- display: flex;
117
- flex-direction: row;
118
- justify-content: space-between;
119
- margin-bottom: 2rem;
120
- align-items: center;
121
- .icon-buttons {
122
- display: flex;
123
- flex-direction: row;
124
- gap: 8px;
125
- }
126
- }
127
-
128
- .disabled {
129
- opacity: 0.5;
130
- -webkit-user-select: none;
131
- -khtml-user-select: none;
132
- -moz-user-select: none;
133
- -o-user-select: none;
134
- user-select: none;
135
- }
136
-
137
- exm-upload-drop-area a {
138
- color: var(--md-sys-color-primary);
139
- text-decoration: none;
140
- }
141
-
142
- exm-upload-drop-area md-icon {
143
- fill: #0071dc;
144
- --md-icon-color: var(--md-sys-color-primary);
145
- --md-icon-size: 48px;
146
- --md-icon-weight: 600;
147
- }