Skip to content

Commit 43f7e60

Browse files
committed
💄 Fix file upload drop zone style
1 parent b04b133 commit 43f7e60

2 files changed

Lines changed: 4 additions & 42 deletions

File tree

resources/js/components/fieldtypes/assets/AssetsFieldtype.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</div>
1818

1919
<div class="drag-notification" v-if="config.allow_uploads" v-show="dragging && !showSelector">
20-
<svg-icon name="upload" class="h-12 w-12 mb-2" />
21-
{{ __('Drop File to Upload') }}
20+
<svg-icon name="upload" class="h-8 w-8 mr-3" />
21+
<span>{{ __('Drop File to Upload') }}</span>
2222
</div>
2323

2424
<template v-if="!loading">

resources/sass/components/assets.scss

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -32,49 +32,11 @@
3232
}
3333

3434
.drag-notification {
35-
border: 1px dashed #ccc;
35+
@apply text-lg absolute pin text-center rounded flex items-center justify-center;
36+
border: 1px dashed config('colors.grey-60');
3637
pointer-events: none;
37-
position: absolute;
38-
top: 0;
39-
right: 0;
40-
left: 0;
41-
bottom: 0;
4238
z-index: 1049;
4339
background: rgba(white, .9);
44-
text-align: center;
45-
display: flex;
46-
flex-direction: column;
47-
justify-content: center;
48-
align-items: center;
49-
50-
div {
51-
font-size: 24px;
52-
}
53-
54-
.icon {
55-
font-size: 60px;
56-
color: #333;
57-
border: 2px solid #333;
58-
border-radius: 60px;
59-
padding: 20px;
60-
margin-bottom: 25px;
61-
line-height: 48px;
62-
-webkit-font-smoothing: antialiased;
63-
&:before {
64-
top: 0;
65-
}
66-
}
67-
68-
h3 {
69-
font-weight: 400;
70-
margin: 25px 0;
71-
color: #333;
72-
font-size: 21px;
73-
max-width: 75%;
74-
line-height: 1.5;
75-
margin: 0 auto;
76-
-webkit-font-smoothing: antialiased;
77-
}
7840
}
7941

8042

0 commit comments

Comments
 (0)