[IMP] website: add close icon mixin

This commit is contained in:
stefanorigano
2017-07-10 13:37:40 +02:00
committed by qsm-odoo
parent 196b9dacd4
commit 95c7f65365
@@ -2,6 +2,37 @@
/// This file regroups the style of website UI components (edition modals, forms, ...).
///
.o-w-close-icon(@size:12px, @color:#000, @color-hover:#000, @thickness: 1px, @opacity: 0.7, @opacity-hover: 1) {
color: transparent;
position: relative;
display: inline-block;
opacity: @opacity;
.square(@size);
&:hover, &:focus {
outline: none;
opacity: @opacity-hover;
&::after, &::before {
background: @color-hover;
}
}
&:after, &:before {
content: '';
margin-top: -1px;
background: @color;
.size(100%, @thickness);
.o-position-absolute(50%, @left:0);
.o-transform(rotate(45deg));
}
&:after {
.o-transform(rotate(-45deg));
}
}
// MODALS
body .modal {
&.o_website_modal {
@@ -13,6 +44,11 @@ body .modal {
.o-w-preserve-wells();
.o-w-preserve-modals();
button.close {
.o-w-close-icon(12px);
margin-right: -2px;
}
.modal-content {
.modal-header .o_subtitle {
margin-left: 10px;