EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
LESS cleanup
Yurii255200b46863
diff --git a/frontend/less/espo/bootstrap/buttons.less b/frontend/less/espo/bootstrap/buttons.lessindex f4750965bd..c772f55a77 100644--- a/frontend/less/espo/bootstrap/buttons.less+++ b/frontend/less/espo/bootstrap/buttons.less@@ -1,16 +1,16 @@.btn {- display: inline-block;- margin-bottom: 0; // For input.btn- font-weight: normal;- text-align: center;- vertical-align: middle;- touch-action: manipulation;- cursor: pointer;- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214- border: var(--1px) solid transparent;- white-space: nowrap;- .button-size(var(--padding-base-vertical); var(--padding-base-horizontal); var(--font-size-base); var(--line-height-base));- .user-select(none);+ display: inline-block;+ margin-bottom: 0; // For input.btn+ font-weight: normal;+ text-align: center;+ vertical-align: middle;+ touch-action: manipulation;+ cursor: pointer;+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214+ border: var(--1px) solid transparent;+ white-space: nowrap;+ .button-size(var(--padding-base-vertical); var(--padding-base-horizontal); var(--font-size-base); var(--line-height-base));+ user-select: none;&,&:active:hover, // Espo-fix@@ -31,9 +31,9 @@&.disabled,&[disabled],fieldset[disabled] & {- cursor: @cursor-disabled;- .opacity(.65);- .box-shadow(none);+ cursor: @cursor-disabled;+ opacity: 0.65;+ box-shadow: none;}a& {diff --git a/frontend/less/espo/bootstrap/dropdowns.less b/frontend/less/espo/bootstrap/dropdowns.lessindex 46618ace66..bf42c46bb9 100644--- a/frontend/less/espo/bootstrap/dropdowns.less+++ b/frontend/less/espo/bootstrap/dropdowns.less@@ -104,7 +104,6 @@text-decoration: none;background-color: transparent;background-image: none; // Remove CSS gradient- .reset-filter();cursor: @cursor-disabled;}}diff --git a/frontend/less/espo/bootstrap/forms.less b/frontend/less/espo/bootstrap/forms.lessindex f5b57e1b47..9a296b0ced 100644--- a/frontend/less/espo/bootstrap/forms.less+++ b/frontend/less/espo/bootstrap/forms.less@@ -62,14 +62,14 @@ input[type="range"] {// Make multiple select elements height not fixedselect[multiple],select[size] {- height: auto;+ height: auto;}// Focus for file, radio, and checkboxinput[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus {- .tab-focus();+ .tab-focus();}// Adjust output element@@ -83,46 +83,46 @@ output {.form-control {- display: block;- width: 100%;- //height: var(--input-height-base); // Make inputs at least the height of their button counterpart (base line-height + padding + border)- padding: var(--padding-base-vertical) var(--padding-base-horizontal);- font-size: var(--font-size-base);- line-height: var(--line-height-base);- color: var(--input-color);- background-color: var(--input-bg);- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214-- // Placeholder- .placeholder();-- // Unstyle the caret on `<select>`s in IE10+.- &::-ms-expand {- border: 0;- background-color: transparent;- }+ display: block;+ width: 100%;+ //height: var(--input-height-base); // Make inputs at least the height of their button counterpart (base line-height + padding + border)+ padding: var(--padding-base-vertical) var(--padding-base-horizontal);+ font-size: var(--font-size-base);+ line-height: var(--line-height-base);+ color: var(--input-color);+ background-color: var(--input-bg);+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214++ // Placeholder+ .placeholder();++ // Unstyle the caret on `<select>`s in IE10+.+ &::-ms-expand {+ border: 0;+ background-color: transparent;+ }- // Disabled and read-only inputs- //- // HTML5 says that controls under a fieldset > legend:first-child won't be- // disabled if the fieldset is disabled. Due to implementation difficulty, we- // don't honor that edge case; we style them as disabled anyway.- &[disabled],- &[readonly],- fieldset[disabled] & {- background-color: var(--input-bg-disabled);- opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655- }+ // Disabled and read-only inputs+ //+ // HTML5 says that controls under a fieldset > legend:first-child won't be+ // disabled if the fieldset is disabled. Due to implementation difficulty, we+ // don't honor that edge case; we style them as disabled anyway.+ &[disabled],+ &[readonly],+ fieldset[disabled] & {+ background-color: var(--input-bg-disabled);+ opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655+ }- &[disabled],- fieldset[disabled] & {- cursor: @cursor-disabled;- }+ &[disabled],+ fieldset[disabled] & {+ cursor: @cursor-disabled;+ }- // Reset height for `textarea`s- textarea& {- height: auto;- }+ // Reset height for `textarea`s+ textarea& {+ height: auto;+ }}@@ -134,7 +134,7 @@ output {// https://github.com/twbs/bootstrap/issues/11586.input[type="search"] {- -webkit-appearance: none;+ -webkit-appearance: none;}diff --git a/frontend/less/espo/bootstrap/mixins.less b/frontend/less/espo/bootstrap/mixins.lessindex d06b82e31c..cca263f1fb 100644--- a/frontend/less/espo/bootstrap/mixins.less+++ b/frontend/less/espo/bootstrap/mixins.less@@ -2,13 +2,7 @@// --------------------------------------------------// Utilities-@import "mixins/hide-text.less";-@import "mixins/opacity.less";-@import "mixins/image.less";-@import "mixins/reset-filter.less";-@import "mixins/resize.less";@import "mixins/responsive-visibility.less";-@import "mixins/size.less";@import "mixins/tab-focus.less";@import "mixins/reset-text.less";@import "mixins/text-overflow.less";diff --git a/frontend/less/espo/bootstrap/mixins/border-radius.less b/frontend/less/espo/bootstrap/mixins/border-radius.lessindex ca05dbf457..5b101297d6 100644--- a/frontend/less/espo/bootstrap/mixins/border-radius.less+++ b/frontend/less/espo/bootstrap/mixins/border-radius.less@@ -1,18 +1,16 @@-// Single side border-radius-.border-top-radius(@radius) {- border-top-right-radius: @radius;- border-top-left-radius: @radius;+ border-top-right-radius: @radius;+ border-top-left-radius: @radius;}.border-right-radius(@radius) {- border-bottom-right-radius: @radius;- border-top-right-radius: @radius;+ border-bottom-right-radius: @radius;+ border-top-right-radius: @radius;}.border-bottom-radius(@radius) {- border-bottom-right-radius: @radius;- border-bottom-left-radius: @radius;+ border-bottom-right-radius: @radius;+ border-bottom-left-radius: @radius;}.border-left-radius(@radius) {- border-bottom-left-radius: @radius;- border-top-left-radius: @radius;+ border-bottom-left-radius: @radius;+ border-top-left-radius: @radius;}diff --git a/frontend/less/espo/bootstrap/mixins/buttons.less b/frontend/less/espo/bootstrap/mixins/buttons.lessindex f7733b68f5..2a0dc1b036 100644--- a/frontend/less/espo/bootstrap/mixins/buttons.less+++ b/frontend/less/espo/bootstrap/mixins/buttons.less@@ -1,7 +1,6 @@-// Button sizes.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height) {- padding: @padding-vertical @padding-horizontal;- font-size: @font-size;- line-height: @line-height;+ padding: @padding-vertical @padding-horizontal;+ font-size: @font-size;+ line-height: @line-height;}diff --git a/frontend/less/espo/bootstrap/mixins/forms.less b/frontend/less/espo/bootstrap/mixins/forms.lessindex a9a13c7ea4..dd16fbb86d 100644--- a/frontend/less/espo/bootstrap/mixins/forms.less+++ b/frontend/less/espo/bootstrap/mixins/forms.less@@ -1,21 +1,15 @@-// Form control sizing-//-// Relative text size, padding, and border-radii changes for form controls. For-// horizontal sizing, wrap controls in the predefined grid classes. `<select>`-// element gets special love because it's special, and that's a fact!.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height) {- //height: @input-height;- padding: @padding-vertical @padding-horizontal;- font-size: @font-size;- line-height: @line-height;+ padding: @padding-vertical @padding-horizontal;+ font-size: @font-size;+ line-height: @line-height;- select& {- height: @input-height;- line-height: @input-height;- }+ select& {+ height: @input-height;+ line-height: @input-height;+ }- textarea&,- select[multiple]& {- height: auto;- }+ textarea&,+ select[multiple]& {+ height: auto;+ }}diff --git a/frontend/less/espo/bootstrap/mixins/hide-text.less b/frontend/less/espo/bootstrap/mixins/hide-text.lessdeleted file mode 100644index 2bb84a3b44..0000000000--- a/frontend/less/espo/bootstrap/mixins/hide-text.less+++ /dev/null@@ -1,21 +0,0 @@-// CSS image replacement-//-// Heads up! v3 launched with only `.hide-text()`, but per our pattern for-// mixins being reused as classes with the same name, this doesn't hold up. As-// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.-//-// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757--// Deprecated as of v3.0.1 (has been removed in v4)-.hide-text() {- font: ~"0/0" a;- color: transparent;- text-shadow: none;- background-color: transparent;- border: 0;-}--// New mixin to use as of v3.0.1-.text-hide() {- .hide-text();-}diff --git a/frontend/less/espo/bootstrap/mixins/image.less b/frontend/less/espo/bootstrap/mixins/image.lessdeleted file mode 100644index f233cb3e19..0000000000--- a/frontend/less/espo/bootstrap/mixins/image.less+++ /dev/null@@ -1,33 +0,0 @@-// Image Mixins-// - Responsive image-// - Retina image---// Responsive image-//-// Keep images from scaling beyond the width of their parents.-.img-responsive(@display: block) {- display: @display;- max-width: 100%; // Part 1: Set a maximum relative to the parent- height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching-}---// Retina image-//-// Short retina mixin for setting background-image and -size. Note that the-// spelling of `min--moz-device-pixel-ratio` is intentional.-.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {- background-image: url("@{file-1x}");-- @media- only screen and (-webkit-min-device-pixel-ratio: 2),- only screen and ( min--moz-device-pixel-ratio: 2),- only screen and ( -o-min-device-pixel-ratio: 2/1),- only screen and ( min-device-pixel-ratio: 2),- only screen and ( min-resolution: 192dpi),- only screen and ( min-resolution: 2dppx) {- background-image: url("@{file-2x}");- background-size: @width-1x @height-1x;- }-}diff --git a/frontend/less/espo/bootstrap/mixins/nav-divider.less b/frontend/less/espo/bootstrap/mixins/nav-divider.lessindex 2b0ab8590c..490c47353e 100644--- a/frontend/less/espo/bootstrap/mixins/nav-divider.less+++ b/frontend/less/espo/bootstrap/mixins/nav-divider.less@@ -1,10 +1,6 @@-// Horizontal dividers-//-// Dividers (basically an hr) within dropdowns and nav lists-.nav-divider(@color: #e5e5e5) {- height: 1px;- margin: calc(var(--line-height-computed-half) - var(--1px)) 0;- overflow: hidden;- background-color: @color;+ height: var(--1px);+ margin: calc(var(--line-height-computed-half) - var(--1px)) 0;+ overflow: hidden;+ background-color: @color;}diff --git a/frontend/less/espo/bootstrap/mixins/opacity.less b/frontend/less/espo/bootstrap/mixins/opacity.lessdeleted file mode 100644index 1f7148099e..0000000000--- a/frontend/less/espo/bootstrap/mixins/opacity.less+++ /dev/null@@ -1,5 +0,0 @@-// Opacity--.opacity(@opacity) {- opacity: @opacity;-}diff --git a/frontend/less/espo/bootstrap/mixins/panels.less b/frontend/less/espo/bootstrap/mixins/panels.lessindex f94b39c095..764185c1bf 100644--- a/frontend/less/espo/bootstrap/mixins/panels.less+++ b/frontend/less/espo/bootstrap/mixins/panels.less@@ -1,22 +1,22 @@-// Panels-.panel-variant(@border; @heading-text-color; @heading-border) {- border-color: @border;+ border-color: @border;- & > .panel-heading {- color: @heading-text-color;- border-color: @heading-border;+ & > .panel-heading {+ color: @heading-text-color;+ border-color: @heading-border;- + .panel-collapse > .panel-body {- border-top-color: @border;- }- .badge {- background-color: @heading-text-color;+ + .panel-collapse > .panel-body {+ border-top-color: @border;+ }++ .badge {+ background-color: @heading-text-color;+ }}- }- & > .panel-footer {- + .panel-collapse > .panel-body {- border-bottom-color: @border;++ & > .panel-footer {+ + .panel-collapse > .panel-body {+ border-bottom-color: @border;+ }}- }}diff --git a/frontend/less/espo/bootstrap/mixins/progress-bar.less b/frontend/less/espo/bootstrap/mixins/progress-bar.lessindex 9237e822b9..3d30d999be 100644--- a/frontend/less/espo/bootstrap/mixins/progress-bar.less+++ b/frontend/less/espo/bootstrap/mixins/progress-bar.less@@ -1,5 +1,3 @@-// Progress bars-.progress-bar-variant(@color) {- background-color: @color;+ background-color: @color;}diff --git a/frontend/less/espo/bootstrap/mixins/reset-filter.less b/frontend/less/espo/bootstrap/mixins/reset-filter.lessdeleted file mode 100644index 68cdb5e186..0000000000--- a/frontend/less/espo/bootstrap/mixins/reset-filter.less+++ /dev/null@@ -1,8 +0,0 @@-// Reset filters for IE-//-// When you need to remove a gradient background, do not forget to use this to reset-// the IE filter for IE9 and below.--.reset-filter() {- filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));-}diff --git a/frontend/less/espo/bootstrap/mixins/reset-text.less b/frontend/less/espo/bootstrap/mixins/reset-text.lessindex 8e57ab011d..c034faad6f 100644--- a/frontend/less/espo/bootstrap/mixins/reset-text.less+++ b/frontend/less/espo/bootstrap/mixins/reset-text.less@@ -1,17 +1,17 @@.reset-text() {- font-family: @font-family-base;- // We deliberately do NOT reset font-size.- font-style: normal;- font-weight: normal;- letter-spacing: normal;- line-break: auto;- line-height: var(--line-height-base);- text-align: start;- text-decoration: none;- text-shadow: none;- text-transform: none;- white-space: normal;- word-break: normal;- word-spacing: normal;- word-wrap: normal;+ font-family: @font-family-base;+ // We deliberately do NOT reset font-size.+ font-style: normal;+ font-weight: normal;+ letter-spacing: normal;+ line-break: auto;+ line-height: var(--line-height-base);+ text-align: start;+ text-decoration: none;+ text-shadow: none;+ text-transform: none;+ white-space: normal;+ word-break: normal;+ word-spacing: normal;+ word-wrap: normal;}diff --git a/frontend/less/espo/bootstrap/mixins/resize.less b/frontend/less/espo/bootstrap/mixins/resize.lessdeleted file mode 100644index 3acd3afdba..0000000000--- a/frontend/less/espo/bootstrap/mixins/resize.less+++ /dev/null@@ -1,6 +0,0 @@-// Resize anything--.resizable(@direction) {- resize: @direction; // Options: horizontal, vertical, both- overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`-}diff --git a/frontend/less/espo/bootstrap/mixins/responsive-visibility.less b/frontend/less/espo/bootstrap/mixins/responsive-visibility.lessindex ecf1e979fd..2b3ee00462 100644--- a/frontend/less/espo/bootstrap/mixins/responsive-visibility.less+++ b/frontend/less/espo/bootstrap/mixins/responsive-visibility.less@@ -1,15 +1,20 @@-// Responsive utilities--//// More easily include all the states for responsive-utilities.less..responsive-visibility() {- display: block !important;- table& { display: table !important; }- tr& { display: table-row !important; }- th&,- td& { display: table-cell !important; }+ display: block !important;++ table& {+ display: table !important;+ }++ tr& {+ display: table-row !important;+ }++ th&, td& {+ display: table-cell !important;+ }}.responsive-invisibility() {- display: none !important;+ display: none !important;}diff --git a/frontend/less/espo/bootstrap/mixins/size.less b/frontend/less/espo/bootstrap/mixins/size.lessdeleted file mode 100644index a8be650896..0000000000--- a/frontend/less/espo/bootstrap/mixins/size.less+++ /dev/null@@ -1,10 +0,0 @@-// Sizing shortcuts--.size(@width; @height) {- width: @width;- height: @height;-}--.square(@size) {- .size(@size; @size);-}diff --git a/frontend/less/espo/bootstrap/mixins/tab-focus.less b/frontend/less/espo/bootstrap/mixins/tab-focus.lessindex d12d23629f..c87ceb109e 100644--- a/frontend/less/espo/bootstrap/mixins/tab-focus.less+++ b/frontend/less/espo/bootstrap/mixins/tab-focus.less@@ -1,9 +1,4 @@-// WebKit-style focus-.tab-focus() {- // WebKit-specific. Other browsers will keep their default outline style.- // (Initially tried to also force default via `outline: initial`,- // but that seems to erroneously remove the outline in Firefox altogether.)- outline: 5px auto -webkit-focus-ring-color;- outline-offset: -2px;+ outline: var(--5px) auto -webkit-focus-ring-color;+ outline-offset: var(--minus-2px);}diff --git a/frontend/less/espo/bootstrap/mixins/text-overflow.less b/frontend/less/espo/bootstrap/mixins/text-overflow.lessindex c11ad2fb74..01f4bc869d 100644--- a/frontend/less/espo/bootstrap/mixins/text-overflow.less+++ b/frontend/less/espo/bootstrap/mixins/text-overflow.less@@ -1,8 +1,7 @@-// Text overflow// Requires inline-block or block for proper styling.text-overflow() {- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}diff --git a/frontend/less/espo/bootstrap/mixins/vendor-prefixes.less b/frontend/less/espo/bootstrap/mixins/vendor-prefixes.lessindex 1d40ad978b..38c7c069d0 100644--- a/frontend/less/espo/bootstrap/mixins/vendor-prefixes.less+++ b/frontend/less/espo/bootstrap/mixins/vendor-prefixes.less@@ -1,52 +1,7 @@-// Vendor Prefixes-//-// All vendor mixins are deprecated as of v3.2.0 due to the introduction of-// Autoprefixer in our Gruntfile. They have been removed in v4.--// - Animations-// - Backface visibility-// - Box shadow-// - Box sizing-// - Content columns-// - Hyphens-// - Placeholder text-// - Transformations-// - Transitions-// - User Select-// Animations.animation(@animation) {- animation: @animation;-}-.animation-name(@name) {- animation-name: @name;-}-.animation-duration(@duration) {- animation-duration: @duration;-}-.animation-timing-function(@timing-function) {- animation-timing-function: @timing-function;-}-.animation-delay(@delay) {- animation-delay: @delay;-}-.animation-iteration-count(@iteration-count) {- animation-iteration-count: @iteration-count;-}-.animation-direction(@direction) {- animation-direction: @direction;-}-.animation-fill-mode(@fill-mode) {- animation-fill-mode: @fill-mode;-}--// Backface visibility-// Prevent browsers from flickering when using CSS 3D transforms.-// Default value is `visible`, but can be changed to `hidden`--.backface-visibility(@visibility) {- backface-visibility: @visibility;+ animation: @animation;}.box-shadow(@shadow) {@@ -57,85 +12,24 @@box-sizing: @boxmodel;}-// CSS3 Content Columns-.content-columns(@column-count) {- column-count: @column-count;- column-gap: var(--grid-gutter-width);-}--// Optional hyphenation-.hyphens(@mode: auto) {- word-wrap: break-word;- hyphens: @mode;-}-.placeholder(@color: @input-color-placeholder) {&::placeholder {color: @color;}}-.scale(@ratio) {- transform: scale(@ratio);-}-.scale(@ratioX; @ratioY) {- transform: scale(@ratioX, @ratioY);-}-.scaleX(@ratio) {- transform: scaleX(@ratio);-}-.scaleY(@ratio) {- transform: scaleY(@ratio);-}-.skew(@x; @y) {- transform: skewX(@x) skewY(@y);-}-.translate(@x; @y) {- transform: translate(@x, @y);-}-.translate3d(@x; @y; @z) {- transform: translate3d(@x, @y, @z);-}-.rotate(@degrees) {- transform: rotate(@degrees);-}-.rotateX(@degrees) {- transform: rotateX(@degrees);-}-.rotateY(@degrees) {- transform: rotateY(@degrees);-}-.perspective(@perspective) {- perspective: @perspective;-}-.perspective-origin(@perspective) {- perspective-origin: @perspective;-}-.transform-origin(@origin) {- transform-origin: @origin;-}--.transition(@transition) {- transition: @transition;+ transition: @transition;}.transition-property(@transition-property) {- transition-property: @transition-property;+ transition-property: @transition-property;}.transition-delay(@transition-delay) {- transition-delay: @transition-delay;+ transition-delay: @transition-delay;}.transition-duration(@transition-duration) {- transition-duration: @transition-duration;+ transition-duration: @transition-duration;}.transition-timing-function(@timing-function) {- transition-timing-function: @timing-function;-}-.transition-transform(@transition) {- transition: transform @transition;-}---.user-select(@select) {- user-select: @select;+ transition-timing-function: @timing-function;}diff --git a/frontend/less/espo/bootstrap/modals.less b/frontend/less/espo/bootstrap/modals.lessindex b624b4ffeb..cdd64dcf00 100644--- a/frontend/less/espo/bootstrap/modals.less+++ b/frontend/less/espo/bootstrap/modals.less@@ -48,8 +48,12 @@z-index: @zindex-modal-background;background-color: var(--modal-backdrop-bg);- &.fade { .opacity(0); }- &.in { .opacity(@modal-backdrop-opacity); }+ &.fade {+ opacity: 0;+ }+ &.in {+ opacity: @modal-backdrop-opacity;+ }}.modal-header {diff --git a/frontend/less/espo/bootstrap/scaffolding.less b/frontend/less/espo/bootstrap/scaffolding.lessindex 89d44dedc7..c2c7498947 100644--- a/frontend/less/espo/bootstrap/scaffolding.less+++ b/frontend/less/espo/bootstrap/scaffolding.less@@ -77,11 +77,6 @@ img {vertical-align: middle;}-// Responsive images (ensure images don't scale beyond their parents)-.img-responsive {- .img-responsive();-}-// Perfect circle.img-circle {border-radius: 50%; // set radius in percentsdiff --git a/frontend/less/espo/bootstrap/tooltip.less b/frontend/less/espo/bootstrap/tooltip.lessindex 091f3ff5e3..856aa270c9 100644--- a/frontend/less/espo/bootstrap/tooltip.less+++ b/frontend/less/espo/bootstrap/tooltip.less@@ -2,21 +2,23 @@// Base class.tooltip {- position: absolute;- z-index: @zindex-tooltip;- display: block;- // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.- // So reset our font and text properties to avoid inheriting weird values.- .reset-text();- font-size: var(--font-size-small);+ position: absolute;+ z-index: @zindex-tooltip;+ display: block;+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.+ // So reset our font and text properties to avoid inheriting weird values.+ .reset-text();+ font-size: var(--font-size-small);- .opacity(0);+ opacity: 0;- &.in { .opacity(@tooltip-opacity); }- &.top { margin-top: var(--minus-3px); padding: @tooltip-arrow-width 0; }- &.right { margin-left: var(--3px); padding: 0 @tooltip-arrow-width; }- &.bottom { margin-top: var(--3px); padding: @tooltip-arrow-width 0; }- &.left { margin-left: var(--minus-3px); padding: 0 @tooltip-arrow-width; }+ &.in {+ opacity: @tooltip-opacity;+ }+ &.top { margin-top: var(--minus-3px); padding: @tooltip-arrow-width 0; }+ &.right { margin-left: var(--3px); padding: 0 @tooltip-arrow-width; }+ &.bottom { margin-top: var(--3px); padding: @tooltip-arrow-width 0; }+ &.left { margin-left: var(--minus-3px); padding: 0 @tooltip-arrow-width; }transition: none;}@@ -34,11 +36,11 @@// Arrows.tooltip-arrow {- position: absolute;- width: 0;- height: 0;- border-color: transparent;- border-style: solid;+ position: absolute;+ width: 0;+ height: 0;+ border-color: transparent;+ border-style: solid;}// Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1.tooltip {diff --git a/frontend/less/espo/bootstrap/utilities.less b/frontend/less/espo/bootstrap/utilities.lessindex 3a6909f2fa..559e6d298a 100644--- a/frontend/less/espo/bootstrap/utilities.less+++ b/frontend/less/espo/bootstrap/utilities.less@@ -39,9 +39,6 @@.invisible {visibility: hidden;}-.text-hide {- .text-hide();-}// Hide from screenreaders and browsersdiff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.lessindex a36862fa51..93fb61946e 100644--- a/frontend/less/espo/custom.less+++ b/frontend/less/espo/custom.less@@ -938,9 +938,9 @@ input.global-search-input {> .label-md {max-width: ~"calc(100%)";display: inline-block;- white-space: nowrap;- text-overflow: ellipsis;- overflow: hidden;++ .text-overflow();+vertical-align: top;// Fix the label making the list row higher.margin-top: calc(var(--1px) * -1);@@ -1378,9 +1378,8 @@ section {}.expanded-row {- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;+ .text-overflow();+margin-bottom: var(--2px);&:last-child {@@ -2595,9 +2594,7 @@ div[data-scope="ApiUser"] {}td.flotr-legend-label {- white-space: nowrap;- text-overflow: ellipsis;- overflow: hidden;+ .text-overflow();user-select: none;}diff --git a/frontend/less/espo/misc/summernote/elements.less b/frontend/less/espo/misc/summernote/elements.lessindex 871674634e..0778c737bb 100644--- a/frontend/less/espo/misc/summernote/elements.less+++ b/frontend/less/espo/misc/summernote/elements.less@@ -51,11 +51,6 @@border-top-left-radius: @topleft;.background-clip(padding-box);}-.opacity(@opacity: 0.5) {- opacity: @opacity;- @opperc: @opacity * 100;- filter: ~"alpha(opacity=@{opperc})";-}.transition-duration(@duration: 0.2s) {transition-duration: @duration;}@@ -65,18 +60,13 @@.rotation(@deg:5deg){.transform(rotate(@deg));}-.scale(@ratio:1.5){- .transform(scale(@ratio));-}+.transition(@duration:0.2s, @ease:ease-out) {transition: all @duration @ease;}.box-sizing(@sizing: border-box) {box-sizing: @sizing;}-.user-select(@argument: none) {- user-select: @argument;-}.columns(@colwidth: var(--256px), @colcount: 0, @colgap: var(--50px), @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: var(--1px)) {column-width: @colwidth;column-count: @colcount;@@ -85,9 +75,7 @@column-rule-style: @columnRuleStyle;column-rule-width: @columnRuleWidth;}-.translate(@x:0, @y:0) {- .transform(translate(@x, @y));-}+.background-clip(@argument: padding-box) {background-clip: @argument;}diff --git a/frontend/less/espo/misc/summernote/summernote.less b/frontend/less/espo/misc/summernote/summernote.lessindex 6578e7e487..19c30285bb 100644--- a/frontend/less/espo/misc/summernote/summernote.less+++ b/frontend/less/espo/misc/summernote/summernote.less@@ -396,7 +396,7 @@width: 100%;height: 100%;background-color: black;- .opacity(0.30)+ opacity: 0.30;}.note-control-handle {@@ -456,7 +456,7 @@background-color: black;font-size: var(--12px);.rounded(5px);- .opacity(0.7);+ opacity: 0.7;}}}diff --git a/frontend/less/espo/misc/timeline/timeline.less b/frontend/less/espo/misc/timeline/timeline.lessindex db68a2b69b..a04ddea147 100644--- a/frontend/less/espo/misc/timeline/timeline.less+++ b/frontend/less/espo/misc/timeline/timeline.less@@ -15,9 +15,7 @@.vis-content .vis-labelset .vis-label .vis-inner {max-width: var(--200px);- white-space: nowrap;- text-overflow: ellipsis;- overflow: hidden;+ .text-overflow();padding: var(--table-cell-padding);}