N°2847 - Improve SCSS files structure

- Refactor some mixins into helpers
- CSS3 variables set via SCSS variables are now using "interpolation" (#{$my-var} instead of just $my-var) to be compatible with more SCSS compiler
- Overloading some Bulma variables such as font-family
This commit is contained in:
Molkobain
2020-07-16 14:01:03 +02:00
parent fab58d503b
commit f5df442e8b
16 changed files with 369 additions and 134 deletions

View File

@@ -16,6 +16,16 @@
* You should have received a copy of the GNU Affero General Public License
*/
$ibo-hyperlink-color: $ibo-color-primary-500 !default;
$ibo-hyperlink-color--on-hover: $ibo-color-primary-600 !default;
$ibo-hyperlink-color--on-active: $ibo-color-primary-700 !default;
:root{
--ibo-hyperlink-color: #{$ibo-hyperlink-color};
--ibo-hyperlink-color--on-hover: #{$ibo-hyperlink-color--on-hover};
--ibo-hyperlink-color--on-active: #{$ibo-hyperlink-color--on-active};
}
*,
*::before,
*::after{
@@ -24,4 +34,21 @@
html{
font-size: 12px;
}
a{
color: var(--ibo-hyperlink-color);
text-decoration: none;
&:hover,
&:active,
&:visited{
text-decoration: none;
}
&:hover{
color: var(--ibo-hyperlink-color--on-hover);
}
&:active{
color: var(--ibo-hyperlink-color--on-active);
}
}

View File

@@ -16,5 +16,5 @@
* You should have received a copy of the GNU Affero General Public License
*/
@import "nav-menu";
@import "navigation-menu";
@import "top-bar";

View File

@@ -1,59 +0,0 @@
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
/* SCSS variables (can be overloaded) */
$ibo-nav-menu-height: 100% !default;
$ibo-nav-menu-padding-x: 16px !default;
$ibo-nav-menu-padding-y: 16px !default;
$ibo-nav-menu-width-collapsed: 60px !default;
$ibo-nav-menu-width-expanded: 310px !default;
$ibo-nav-menu--head-background-color: $ibo-color-blue-grey-900 !default;
$ibo-nav-menu--head-text-color: $ibo-color-grey-300 !default;
$ibo-nav-menu--top-group-spacing: 20px !default;
$ibo-nav-menu--middle-group-spacing: 28px !default;
/* CSS variables (can be changed directly from the browser) */
:root {
--ibo-nav-menu-height: $ibo-nav-menu-height;
--ibo-nav-menu-padding-x: $ibo-nav-menu-padding-x;
--ibo-nav-menu-padding-y: $ibo-nav-menu-padding-y;
--ibo-nav-menu-width-collapsed: $ibo-nav-menu-width-collapsed;
--ibo-nav-menu-width-expanded: $ibo-nav-menu-width-expanded;
--ibo-nav-menu--head-background-color: $ibo-nav-menu--head-background-color;
--ibo-nav-menu--head-text-color: $ibo-nav-menu--head-text-color;
--ibo-nav-menu-top-group-spacing: $ibo-nav-menu--top-group-spacing;
--ibo-nav-menu-middle-group-spacing: $ibo-nav-menu--middle-group-spacing;
}
.ibo-nav-menu{
position: relative;
overflow-y: auto;
.ibo-nav-menu--head,
.ibo-nav-menu--body{
height: var(--ibo-nav-menu-height);
}
.ibo-nav-menu--head{
background-color: var(--ibo-nav-menu--head-background-color);
}
}

View File

@@ -24,10 +24,10 @@ $ibo-top-bar-background-color: $ibo-color-white-100 !default;
/* CSS variables (can be changed directly from the browser) */
:root{
--ibo-top-bar-padding-left: $ibo-top-bar-padding-left;
--ibo-top-bar-padding-right: $ibo-top-bar-padding-right;
--ibo-top-bar-padding-y: $ibo-top-bar-padding-y;
--ibo-top-bar-background-color: $ibo-top-bar-background-color;
--ibo-top-bar-padding-left: #{$ibo-top-bar-padding-left};
--ibo-top-bar-padding-right: #{$ibo-top-bar-padding-right};
--ibo-top-bar-padding-y: #{$ibo-top-bar-padding-y};
--ibo-top-bar-background-color: #{$ibo-top-bar-background-color};
}
.ibo-top-bar{
display: flex;

View File

@@ -22,8 +22,8 @@ $ibo-body-background-color: $ibo-color-white-200 !default;
/* CSS variables (can be changed directly from the browser) */
:root{
--ibo-body-text-color: $ibo-body-text-color;
--ibo-body-background-color: $ibo-body-background-color;
--ibo-body-text-color: #{$ibo-body-text-color};
--ibo-body-background-color: #{$ibo-body-background-color};
}
/* Layout */
@@ -35,7 +35,10 @@ body{
height: 100%;
color: var(--ibo-body-text-color);
background-color: var(--ibo-body-background-color);
@include ibo-font-ral-nor-100;
@extend %ibo-font-ral-nor-100;
}
#ibo-navigation-menu{
z-index: 1;
}
#ibo-page-container{
position: relative;

View File

@@ -17,5 +17,7 @@
*/
@import "variables/color";
@import "variables/border-radius";
@import "variables/typography";
@import "mixins/typography";
@import "mixins/all";
@import "helpers/all";

View File

@@ -0,0 +1,21 @@
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
@import "typography";
@import "elevation";
@import "misc";

View File

@@ -0,0 +1,33 @@
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
%ibo-elevation-100{
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.12);
}
%ibo-elevation-200{
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.15);
}
%ibo-elevation-300{
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.10), 0 10px 20px rgba(0, 0, 0, 0.15);
}
%ibo-elevation-400{
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05), 0 15px 25px rgba(0, 0, 0, 0.15);
}
%ibo-elevation-500{
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.20);
}

View File

@@ -0,0 +1,46 @@
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
%ibo-centered-content{
display: flex;
justify-content: center;
align-items: center;
}
%ibo-text-truncated-with-ellipsis{
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
}
%ibo-medallion{
position: relative;
border-radius: var(--ibo-border-radius-full);
border: 2px solid var(--ibo-color-grey-300);
overflow: hidden;
@extend %ibo-centered-content;
> *{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-position: center;
background-size: contain;
background-color: var(--ibo-color-grey-500);
}
}

View File

@@ -29,232 +29,232 @@
900 Black (Heavy)
950 Extra Black (Ultra Black)
*/
@mixin ibo-font-ral-nor-50 {
%ibo-font-ral-nor-50 {
font-size: $ibo-font-size-50;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-100 {
%ibo-font-ral-nor-100 {
font-size: $ibo-font-size-100;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-150 {
%ibo-font-ral-nor-150 {
font-size: $ibo-font-size-150;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-200 {
%ibo-font-ral-nor-200 {
font-size: $ibo-font-size-200;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-250 {
%ibo-font-ral-nor-250 {
font-size: $ibo-font-size-250;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-300 {
%ibo-font-ral-nor-300 {
font-size: $ibo-font-size-300;
font-family:" Raleway";
font-weight: 400;
}
@mixin ibo-font-ral-nor-350 {
%ibo-font-ral-nor-350 {
font-size: $ibo-font-size-350;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-400 {
%ibo-font-ral-nor-400 {
font-size: $ibo-font-size-400;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-450 {
%ibo-font-ral-nor-450 {
font-size: $ibo-font-size-450;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-500 {
%ibo-font-ral-nor-500 {
font-size: $ibo-font-size-500;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-nor-550 {
%ibo-font-ral-nor-550 {
font-size: $ibo-font-size-550;
font-family: "Monorale";
font-weight: 400;
}
@mixin ibo-font-ral-med-50 {
%ibo-font-ral-med-50 {
font-size: $ibo-font-size-50;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-100 {
%ibo-font-ral-med-100 {
font-size: $ibo-font-size-100;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-150 {
%ibo-font-ral-med-150 {
font-size: $ibo-font-size-150;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-200 {
%ibo-font-ral-med-200 {
font-size: $ibo-font-size-200;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-250 {
%ibo-font-ral-med-250 {
font-size: $ibo-font-size-250;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-300 {
%ibo-font-ral-med-300 {
font-size: $ibo-font-size-300;
font-family:" Raleway";
font-weight: 500;
}
@mixin ibo-font-ral-med-350 {
%ibo-font-ral-med-350 {
font-size: $ibo-font-size-350;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-400 {
%ibo-font-ral-med-400 {
font-size: $ibo-font-size-400;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-450 {
%ibo-font-ral-med-450 {
font-size: $ibo-font-size-450;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-500 {
%ibo-font-ral-med-500 {
font-size: $ibo-font-size-500;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-med-550 {
%ibo-font-ral-med-550 {
font-size: $ibo-font-size-550;
font-family: "Monorale";
font-weight: 500;
}
@mixin ibo-font-ral-bol-50 {
%ibo-font-ral-bol-50 {
font-size: $ibo-font-size-50;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-100 {
%ibo-font-ral-bol-100 {
font-size: $ibo-font-size-100;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-150 {
%ibo-font-ral-bol-150 {
font-size: $ibo-font-size-150;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-200 {
%ibo-font-ral-bol-200 {
font-size: $ibo-font-size-200;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-250 {
%ibo-font-ral-bol-250 {
font-size: $ibo-font-size-250;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-300 {
%ibo-font-ral-bol-300 {
font-size: $ibo-font-size-300;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-350 {
%ibo-font-ral-bol-350 {
font-size: $ibo-font-size-350;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-400 {
%ibo-font-ral-bol-400 {
font-size: $ibo-font-size-400;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-450 {
%ibo-font-ral-bol-450 {
font-size: $ibo-font-size-450;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-500 {
%ibo-font-ral-bol-500 {
font-size: $ibo-font-size-500;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-bol-550 {
%ibo-font-ral-bol-550 {
font-size: $ibo-font-size-550;
font-family: "Monorale";
font-weight: 700;
}
@mixin ibo-font-ral-ita-50 {
%ibo-font-ral-ita-50 {
font-size: $ibo-font-size-50;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-100 {
%ibo-font-ral-ita-100 {
font-size: $ibo-font-size-100;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-150 {
%ibo-font-ral-ita-150 {
font-size: $ibo-font-size-150;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-200 {
%ibo-font-ral-ita-200 {
font-size: $ibo-font-size-200;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-250 {
%ibo-font-ral-ita-250 {
font-size: $ibo-font-size-250;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-300 {
%ibo-font-ral-ita-300 {
font-size: $ibo-font-size-300;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-350 {
%ibo-font-ral-ita-350 {
font-size: $ibo-font-size-350;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-400 {
%ibo-font-ral-ita-400 {
font-size: $ibo-font-size-400;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-450 {
%ibo-font-ral-ita-450 {
font-size: $ibo-font-size-450;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-500 {
%ibo-font-ral-ita-500 {
font-size: $ibo-font-size-500;
font-family: "Monorale";
font-weight: 400;
font-style: italic;
}
@mixin ibo-font-ral-ita-550 {
%ibo-font-ral-ita-550 {
font-size: $ibo-font-size-550;
font-family: "Monorale";
font-weight: 400;

View File

@@ -0,0 +1,18 @@
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/

View File

@@ -0,0 +1,33 @@
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software !default; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY !default; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
$ibo-border-radius-100: 1px !default;
$ibo-border-radius-300: 3px !default;
$ibo-border-radius-500: 5px !default;
$ibo-border-radius-700: 10px !default;
$ibo-border-radius-900: 16px !default;
$ibo-border-radius-full: 100% !default;
:root{
--ibo-border-radius-100: #{$ibo-border-radius-100};
--ibo-border-radius-300: #{$ibo-border-radius-300};
--ibo-border-radius-500: #{$ibo-border-radius-500};
--ibo-border-radius-700: #{$ibo-border-radius-700};
--ibo-border-radius-900: #{$ibo-border-radius-900};
--ibo-border-radius-full: #{$ibo-border-radius-full};
}

View File

@@ -16,7 +16,7 @@
* You should have received a copy of the GNU Affero General Public License
*/
/* Color styles */
/* Color palettes */
$ibo-color-white-100: hsla(0, 0%, 100%, 1) !default;
$ibo-color-white-200: hsla(0, 0%, 94.9%, 1) !default;
$ibo-color-transparent: hsla(0, 0%, 100%, 0) !default;
@@ -62,16 +62,6 @@ $ibo-color-green-700: hsla(92, 47.9%, 42.2%, 1) !default;
$ibo-color-green-800: hsla(95, 49.5%, 36.5%, 1) !default;
$ibo-color-green-900: hsla(103, 55.6%, 26.5%, 1) !default;
$ibo-color-primary-100: hsla(40, 100%, 97.1%, 1) !default;
$ibo-color-primary-200: hsla(39, 96.4%, 89%, 1) !default;
$ibo-color-primary-300: hsla(38, 93.2%, 76.9%, 1) !default;
$ibo-color-primary-400: hsla(33, 89.9%, 64.9%, 1) !default;
$ibo-color-primary-500: hsla(28, 82.9%, 51.8%, 1) !default;
$ibo-color-primary-600: hsla(24, 74.7%, 49.6%, 1) !default;
$ibo-color-primary-700: hsla(20, 70.7%, 44.1%, 1) !default;
$ibo-color-primary-800: hsla(16, 65.1%, 37.1%, 1) !default;
$ibo-color-primary-900: hsla(14, 60.8%, 30%, 1) !default;
$ibo-color-blue-grey-100: hsla(198, 15.7%, 83.7%, 1) !default;
$ibo-color-blue-grey-200: hsla(200, 15.3%, 73.1%, 1) !default;
$ibo-color-blue-grey-300: hsla(200, 15.6%, 62.4%, 1) !default;
@@ -101,3 +91,103 @@ $ibo-color-cyan-600: hsla(187, 100%, 37.8%, 1) !default;
$ibo-color-cyan-700: hsla(186, 100%, 32.7%, 1) !default;
$ibo-color-cyan-800: hsla(185, 100%, 28%, 1) !default;
$ibo-color-cyan-900: hsla(182, 100%, 19.6%, 1) !default;
:root{
--ibo-color-white-100: #{$ibo-color-white-100};
--ibo-color-white-200: #{$ibo-color-white-200};
--ibo-color-transparent: #{$ibo-color-transparent};
--ibo-color-grey-50: #{$ibo-color-grey-50};
--ibo-color-grey-100: #{$ibo-color-grey-100};
--ibo-color-grey-200: #{$ibo-color-grey-200};
--ibo-color-grey-300: #{$ibo-color-grey-300};
--ibo-color-grey-400: #{$ibo-color-grey-400};
--ibo-color-grey-500: #{$ibo-color-grey-500};
--ibo-color-grey-600: #{$ibo-color-grey-600};
--ibo-color-grey-700: #{$ibo-color-grey-700};
--ibo-color-grey-800: #{$ibo-color-grey-800};
--ibo-color-grey-900: #{$ibo-color-grey-900};
--ibo-color-red-100: #{$ibo-color-red-100};
--ibo-color-red-200: #{$ibo-color-red-200};
--ibo-color-red-300: #{$ibo-color-red-300};
--ibo-color-red-400: #{$ibo-color-red-400};
--ibo-color-red-500: #{$ibo-color-red-500};
--ibo-color-red-600: #{$ibo-color-red-600};
--ibo-color-red-700: #{$ibo-color-red-700};
--ibo-color-red-800: #{$ibo-color-red-800};
--ibo-color-red-900: #{$ibo-color-red-900};
--ibo-color-orange-100: #{$ibo-color-orange-100};
--ibo-color-orange-200: #{$ibo-color-orange-200};
--ibo-color-orange-300: #{$ibo-color-orange-300};
--ibo-color-orange-400: #{$ibo-color-orange-400};
--ibo-color-orange-500: #{$ibo-color-orange-500};
--ibo-color-orange-600: #{$ibo-color-orange-600};
--ibo-color-orange-700: #{$ibo-color-orange-700};
--ibo-color-orange-800: #{$ibo-color-orange-800};
--ibo-color-orange-900: #{$ibo-color-orange-900};
--ibo-color-green-100: #{$ibo-color-green-100};
--ibo-color-green-200: #{$ibo-color-green-200};
--ibo-color-green-300: #{$ibo-color-green-300};
--ibo-color-green-400: #{$ibo-color-green-400};
--ibo-color-green-500: #{$ibo-color-green-500};
--ibo-color-green-600: #{$ibo-color-green-600};
--ibo-color-green-700: #{$ibo-color-green-700};
--ibo-color-green-800: #{$ibo-color-green-800};
--ibo-color-green-900: #{$ibo-color-green-900};
--ibo-color-blue-grey-100: #{$ibo-color-blue-grey-100};
--ibo-color-blue-grey-200: #{$ibo-color-blue-grey-200};
--ibo-color-blue-grey-300: #{$ibo-color-blue-grey-300};
--ibo-color-blue-grey-400: #{$ibo-color-blue-grey-400};
--ibo-color-blue-grey-500: #{$ibo-color-blue-grey-500};
--ibo-color-blue-grey-600: #{$ibo-color-blue-grey-600};
--ibo-color-blue-grey-700: #{$ibo-color-blue-grey-700};
--ibo-color-blue-grey-800: #{$ibo-color-blue-grey-800};
--ibo-color-blue-grey-900: #{$ibo-color-blue-grey-900};
--ibo-color-blue-100: #{$ibo-color-blue-100};
--ibo-color-blue-200: #{$ibo-color-blue-200};
--ibo-color-blue-300: #{$ibo-color-blue-300};
--ibo-color-blue-400: #{$ibo-color-blue-400};
--ibo-color-blue-500: #{$ibo-color-blue-500};
--ibo-color-blue-600: #{$ibo-color-blue-600};
--ibo-color-blue-700: #{$ibo-color-blue-700};
--ibo-color-blue-800: #{$ibo-color-blue-800};
--ibo-color-blue-900: #{$ibo-color-blue-900};
--ibo-color-cyan-100: #{$ibo-color-cyan-100};
--ibo-color-cyan-200: #{$ibo-color-cyan-200};
--ibo-color-cyan-300: #{$ibo-color-cyan-300};
--ibo-color-cyan-400: #{$ibo-color-cyan-400};
--ibo-color-cyan-500: #{$ibo-color-cyan-500};
--ibo-color-cyan-600: #{$ibo-color-cyan-600};
--ibo-color-cyan-700: #{$ibo-color-cyan-700};
--ibo-color-cyan-800: #{$ibo-color-cyan-800};
--ibo-color-cyan-900: #{$ibo-color-cyan-900};
}
/* Semantic palettes */
$ibo-color-primary-100: hsla(40, 100%, 97.1%, 1) !default;
$ibo-color-primary-200: hsla(39, 96.4%, 89%, 1) !default;
$ibo-color-primary-300: hsla(38, 93.2%, 76.9%, 1) !default;
$ibo-color-primary-400: hsla(33, 89.9%, 64.9%, 1) !default;
$ibo-color-primary-500: hsla(28, 82.9%, 51.8%, 1) !default;
$ibo-color-primary-600: hsla(24, 74.7%, 49.6%, 1) !default;
$ibo-color-primary-700: hsla(20, 70.7%, 44.1%, 1) !default;
$ibo-color-primary-800: hsla(16, 65.1%, 37.1%, 1) !default;
$ibo-color-primary-900: hsla(14, 60.8%, 30%, 1) !default;
:root{
--ibo-color-primary-100: #{$ibo-color-primary-100};
--ibo-color-primary-200: #{$ibo-color-primary-200};
--ibo-color-primary-300: #{$ibo-color-primary-300};
--ibo-color-primary-400: #{$ibo-color-primary-400};
--ibo-color-primary-500: #{$ibo-color-primary-500};
--ibo-color-primary-600: #{$ibo-color-primary-600};
--ibo-color-primary-700: #{$ibo-color-primary-700};
--ibo-color-primary-800: #{$ibo-color-primary-800};
--ibo-color-primary-900: #{$ibo-color-primary-900};
}

View File

@@ -17,14 +17,14 @@
*/
/* Base size: html font-size 12px */
$ibo-font-size-50: 0.83rem !default;
$ibo-font-size-100: 1rem !default;
$ibo-font-size-150: 1.17rem !default;
$ibo-font-size-200: 1.33rem !default;
$ibo-font-size-250: 1.5rem !default;
$ibo-font-size-300: 1.67rem !default;
$ibo-font-size-350: 1.83rem !default;
$ibo-font-size-400: 2rem !default;
$ibo-font-size-450: 2.5rem !default;
$ibo-font-size-500: 3rem !default;
$ibo-font-size-550: 4rem !default;
$ibo-font-size-50: 0.83rem !default; /* 10px */
$ibo-font-size-100: 1rem !default; /* 12px */
$ibo-font-size-150: 1.17rem !default; /* 14px */
$ibo-font-size-200: 1.33rem !default; /* 16px */
$ibo-font-size-250: 1.5rem !default; /* 18px */
$ibo-font-size-300: 1.67rem !default; /* 20px */
$ibo-font-size-350: 1.83rem !default; /* 22px */
$ibo-font-size-400: 2rem !default; /* 24px */
$ibo-font-size-450: 2.5rem !default; /* 30px */
$ibo-font-size-500: 3rem !default; /* 36px */
$ibo-font-size-550: 4rem !default; /* 48px */

View File

@@ -16,3 +16,5 @@
* You should have received a copy of the GNU Affero General Public License
*/
@import "bulma-variables-overload";
@import "../../../lib/bulma-scss/bulma";

View File

@@ -0,0 +1,19 @@
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
$family-sans-serif: "Monorale";