Skip to content

Commit 63fdde6

Browse files
stefanoriganoqsm-odoo
authored andcommitted
[FIX] website: fix usability/design issues in o_select_media_dialog
1 parent 8a87c38 commit 63fdde6

File tree

1 file changed

+45
-17
lines changed

1 file changed

+45
-17
lines changed

addons/web_editor/static/src/less/web_editor.ui.components.less

+45-17
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ body .modal {
189189
ul.pager {
190190
margin: 0;
191191
> li > a {
192-
border-radius: 3px;
192+
border-radius: 0px;
193193
margin-left: 2px;
194194
padding: 6px 14px;
195195
}
@@ -206,20 +206,34 @@ body .modal {
206206
}
207207
}
208208
}
209-
.dropdown-toggle {
210-
line-height: 0;
211-
height: 34px;
209+
210+
.well {
211+
border-top-width: 0;
212+
213+
label {
214+
margin: auto 10px;
215+
}
216+
217+
.btn-group {
218+
margin-right: 10px;
219+
}
212220
}
221+
213222
.o_existing_attachment_cell {
214223
@odoo-border-image: 1px;
215224
.o_existing_attachment_remove {
216225
.o-position-absolute(@odoo-border-image, 15px + @odoo-border-image);
217-
padding: 3px 3px 12px 12px;
218-
background-color: white;
219-
border-bottom: 1px solid black;
220-
border-left: 1px solid black;
221-
border-radius: 0 0 0 100%;
222-
opacity: 0.8;
226+
padding: 3px 5px 5px 5px;
227+
background-color: fade(white, 80%);
228+
text-shadow: 0 0 1px white;
229+
border-radius: 0 0 0 2px;
230+
opacity: 0;
231+
cursor: pointer;
232+
233+
&:hover {
234+
background-color: white;
235+
color: @o-we-color-danger;
236+
}
223237
}
224238
.o_image {
225239
border: @odoo-border-image solid transparent;
@@ -235,15 +249,29 @@ body .modal {
235249
border-color: @odoo-brand-primary;
236250
box-shadow: 0px 0px 2px 2px @odoo-brand-secondary;
237251
}
252+
&:hover {
253+
.o_existing_attachment_remove {
254+
opacity: 1;
255+
}
256+
}
238257
}
239-
.font-icons-icons > span {
240-
font-size: 30px;
241-
margin: 5px;
242-
padding: 3px;
243-
cursor: pointer;
258+
.font-icons-icons {
259+
padding: 20px 0;
244260

245-
&.o_selected {
246-
box-shadow: 0px 0px 2px 2px @odoo-brand-secondary;
261+
> span {
262+
text-align: center;
263+
font-size: 22px;
264+
margin: 5px;
265+
width: 50px;
266+
height: 50px;
267+
padding: 15px;
268+
cursor: pointer;
269+
270+
&.o_selected {
271+
cursor: auto;
272+
background-color: @o-we-color-paper;
273+
box-shadow: 0px 0px 0px 1px @o-we-color-success;
274+
}
247275
}
248276
}
249277
}

0 commit comments

Comments
 (0)