[REF] *: BS5: remove hover mixins usage (due to BS5 removal)
* = mail, survey, web, web_editor, website, website_event, website_mail removed mixins: * hover * plain-hover-focus * hover-focus These mixins are now replaced by their CSS equivalent. Task ID: 2766483 Part-of: odoo/odoo#95450
This commit is contained in:
@@ -10,7 +10,7 @@ $o-mail-emoji-height: 2rem;
|
||||
padding: 2px;
|
||||
width: $o-mail-emoji-height;
|
||||
height: $o-mail-emoji-height;
|
||||
@include hover-focus() {
|
||||
&:hover, &:focus {
|
||||
background-color: grey('100');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// Dropdown adapted from event templates to get a coherent styling
|
||||
.dropdown-toggle {
|
||||
text-align: left;
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
&:after {
|
||||
|
||||
@@ -60,7 +60,7 @@ $o-color-extras-nesting-selector: '&' !default;
|
||||
}
|
||||
a#{$parent},
|
||||
button#{$parent} {
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
@include o-bg-color(darken($color, 10%), $text-color, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
}
|
||||
|
||||
a#{$parent}, button#{$parent} {
|
||||
@include hover-focus() {
|
||||
&:hover, &:focus {
|
||||
color: darken($color-value, $-hover) !important;
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,7 @@
|
||||
}
|
||||
|
||||
a#{$parent}.fa-circle, button#{$parent}.fa-circle {
|
||||
@include hover-focus() {
|
||||
&:hover, &:focus {
|
||||
color: darken($color, $-hover) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ $o-form-label-margin-right: 0px;
|
||||
pointer-events: none;
|
||||
|
||||
&:not(.btn-primary) {
|
||||
@include plain-hover-focus() {
|
||||
&, &:hover, &:focus {
|
||||
color: $text-muted;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
@if $emphasized-link-hover-darken-percentage != 0 {
|
||||
a#{$parent} {
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -671,7 +671,7 @@ blockquote {
|
||||
&, h6 { // Quick fix: sometimes we use h6 in dropdowns
|
||||
color: $dropdown-link-color !important;
|
||||
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
color: $dropdown-link-hover-color !important;
|
||||
}
|
||||
}
|
||||
@@ -735,7 +735,7 @@ blockquote {
|
||||
a:not(.btn), .btn-link {
|
||||
color: auto-contrast($-link-color, $-bg-color, 'o-cc#{$index}-link');
|
||||
|
||||
@include hover {
|
||||
&:hover {
|
||||
color: auto-contrast($-link-hover-color, $-bg-color, 'o-cc#{$index}-link');
|
||||
}
|
||||
}
|
||||
@@ -780,7 +780,7 @@ blockquote {
|
||||
@include gradient-bg($-btn-primary-color);
|
||||
color: color-yiq($-btn-primary-color) !important;
|
||||
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
color: color-yiq($-btn-primary-color) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1343,7 +1343,7 @@ span.list-inline-item.o_add_language:last-child {
|
||||
color: rgba(color-yiq($-footer-color), 0.5);
|
||||
}
|
||||
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
@include o-apply-colors($-copyright-color, $with-extras: false, $background: $-footer-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
.s_mega_menu_cards:not([data-vcss]) {
|
||||
.nav-link {
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
background: rgba(0, 0, 0, .05);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
background: rgba(0, 0, 0, .05);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
.s_mega_menu_little_icons:not([data-vcss]) {
|
||||
.nav-link {
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
background: rgba(0, 0, 0, .05);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
border: $border-width solid gray('400');
|
||||
@include o-bg-color(gray('white'), $with-extras: false);
|
||||
@include border-radius($dropdown-border-radius);
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
border-color: theme-color('primary');
|
||||
color: theme-color('primary');
|
||||
text-decoration: none;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
border: $border-width solid $border-color;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
background-color: gray('300');
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@
|
||||
header {
|
||||
a {
|
||||
transition: all .25s ease-in-out;
|
||||
@include hover-focus {
|
||||
&:hover, &:focus {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
@include hover-focus () {
|
||||
&:hover, &:focus {
|
||||
small {
|
||||
transition-duration: 1s;
|
||||
opacity: 1;
|
||||
|
||||
Reference in New Issue
Block a user