1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-19 08:52:25 +01:00

Updated deprecated division operators in sass

This commit is contained in:
Sylvain 2022-03-16 10:37:04 +01:00
parent b6b626ee5f
commit d1dddb7656
3 changed files with 15 additions and 10 deletions

View File

@ -8,6 +8,7 @@
- Updated @uirouter/angularjs to 1.0.30 - Updated @uirouter/angularjs to 1.0.30
- Updated bootstrap-sass to 3.4.3 - Updated bootstrap-sass to 3.4.3
- Removed unmaintained gem sidekiq-cron and replaced it with sidekiq-scheduler - Removed unmaintained gem sidekiq-cron and replaced it with sidekiq-scheduler
- Updated deprecated division operators in sass
- Fix a bug: a sentence was not linked to a translation key - Fix a bug: a sentence was not linked to a translation key
- Fix a bug: the version check may be scheduled at an invalid time - Fix a bug: the version check may be scheduled at an invalid time
- Fix a bug: the moment-timezone relied on an outdated version of moment with a case-sensitive locale file - Fix a bug: the moment-timezone relied on an outdated version of moment with a case-sensitive locale file

View File

@ -1,3 +1,5 @@
@use 'sass:math';
/*layout*/ /*layout*/
.header, .header,
.footer { .footer {
@ -286,8 +288,8 @@ body.container {
height: $header-md-height; height: $header-md-height;
.navbar-form { .navbar-form {
margin-top: floor(($header-md-height - 30) / 2); margin-top: floor(math.div($header-md-height - 30, 2));
margin-bottom: floor(($header-md-height - 30) / 2); margin-bottom: floor(math.div($header-md-height - 30, 2));
} }
} }

View File

@ -1,3 +1,5 @@
@use 'sass:math';
/*primary nav*/ /*primary nav*/
.navbar-header { .navbar-header {
position: relative; position: relative;
@ -42,7 +44,7 @@
.nav-primary { .nav-primary {
li { li {
> a > i { > a > i {
margin: floor(-($nav-primary-height - $line-height-computed) / 2) -10px; margin: floor(math.div(-($nav-primary-height - $line-height-computed), 2)) -10px;
line-height: $nav-primary-height; line-height: $nav-primary-height;
width: $nav-primary-height; width: $nav-primary-height;
float: left; float: left;
@ -61,7 +63,7 @@
ul.nav { ul.nav {
> li { > li {
> a { > a {
padding: floor(($nav-primary-height - $line-height-computed) / 2) 15px; padding: floor(math.div($nav-primary-height - $line-height-computed, 2)) 15px;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
@ -245,7 +247,7 @@
> .vbox > .header, > .vbox > .header,
> .vbox > .footer { > .vbox > .footer {
padding: 0 floor(($nav-xs-width - 30px) / 2); padding: 0 floor(math.div($nav-xs-width - 30px, 2));
} }
.hidden-nav-xs { .hidden-nav-xs {
@ -309,7 +311,7 @@
> li { > li {
> a { > a {
.header-md & { .header-md & {
padding: floor(($header-md-height - $line-height-computed) / 2 - 1); padding: floor(math.div($header-md-height - $line-height-computed, 2) - 1);
} }
} }
} }