mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
SCSS: Replace font global redefinition with more accurate overloads (only size, only weight, ...) to simplify styles inheritance
This commit is contained in:
@@ -77,7 +77,7 @@ $ibo-alert-colors: (
|
||||
border-radius: $ibo-alert--border-radius;
|
||||
overflow: hidden; /* To force highlight color to be cropped by the border radius */
|
||||
|
||||
@extend %ibo-font-ral-med-150;
|
||||
@extend %ibo-font-size-150;
|
||||
|
||||
&::before {
|
||||
display: block;
|
||||
@@ -93,7 +93,7 @@ $ibo-alert-colors: (
|
||||
.ibo-alert--title {
|
||||
cursor: pointer;
|
||||
|
||||
@extend %ibo-font-ral-bol-150;
|
||||
@extend %ibo-font-weight-700;
|
||||
}
|
||||
|
||||
&.ibo-is-opened {
|
||||
|
||||
@@ -37,7 +37,7 @@ $ibo-breadcrumbs--item-separator--text-color: $ibo-color-grey-500 !default;
|
||||
}
|
||||
.ibo-breadcrumbs--item{
|
||||
color: $ibo-breadcrumbs--item--text-color;
|
||||
@extend %ibo-font-ral-nor-100;
|
||||
@extend %ibo-font-ral-med-100;
|
||||
|
||||
&:not(:last-child){
|
||||
&::after{
|
||||
@@ -59,7 +59,7 @@ $ibo-breadcrumbs--item-separator--text-color: $ibo-color-grey-500 !default;
|
||||
}
|
||||
.ibo-breadcrumbs--item-icon{
|
||||
margin-right: $ibo-breadcrumbs--item-icon--margin-x;
|
||||
@extend %ibo-font-ral-nor-150;
|
||||
@extend %ibo-font-size-150;
|
||||
transition: all 0.1s linear;
|
||||
|
||||
> span{
|
||||
|
||||
@@ -84,7 +84,7 @@ $ibo-collapsible-section--body--border-color: $ibo-color-grey-400 !default;
|
||||
|
||||
.ibo-collapsible-section--title {
|
||||
color: $ibo-collapsible-section--title--color;
|
||||
@extend %ibo-font-ral-med-250;
|
||||
@extend %ibo-font-size-250;
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ $ibo-fieldsorter--selected--background-color: $ibo-color-blue-200 !default;
|
||||
padding: $ibo-datatable--toolbar--padding-y $ibo-datatable--toolbar--padding-x;
|
||||
|
||||
color: $ibo-datatable--toolbar--text-color;
|
||||
@extend %ibo-font-ral-med-100;
|
||||
@extend %ibo-font-size-100;
|
||||
|
||||
/* Above the table */
|
||||
&:first-child {
|
||||
|
||||
@@ -10,8 +10,6 @@ $ibo-field-badge--border-radius: $ibo-border-radius-300 !default;
|
||||
$ibo-field-badge--label--spacing-x: 0.5rem !default;
|
||||
|
||||
.ibo-field-badge {
|
||||
@extend %ibo-font-ral-med-100;
|
||||
|
||||
margin: $ibo-field-badge--margin;
|
||||
padding: $ibo-field-badge--padding;
|
||||
border-radius: $ibo-field-badge--border-radius;
|
||||
|
||||
@@ -31,7 +31,7 @@ $ibo-field--value-decoration--spacing-x: 0.5rem !default;
|
||||
|
||||
/* SCSS rules */
|
||||
.ibo-field {
|
||||
@extend %ibo-font-ral-nor-150;
|
||||
@extend %ibo-font-size-150;
|
||||
|
||||
/* Avoid value to overflow from its container with very long strings (typically URLs) */
|
||||
/* Note: Some types of attribute must be excluding as it can alter their rendering */
|
||||
@@ -113,7 +113,7 @@ $ibo-field--value-decoration--spacing-x: 0.5rem !default;
|
||||
|
||||
@extend %ibo-hyperlink-inherited-colors;
|
||||
@extend %ibo-fully-centered-content;
|
||||
@extend %ibo-font-ral-nor-100;
|
||||
@extend %ibo-font-size-100;
|
||||
|
||||
&:hover {
|
||||
background-color: $ibo-field--fullscreen-toggler--background-color--on-hover;
|
||||
@@ -124,6 +124,7 @@ $ibo-field--value-decoration--spacing-x: 0.5rem !default;
|
||||
min-width: 100px;
|
||||
max-width: 145px;
|
||||
width: 30%;
|
||||
@extend %ibo-font-weight-600;
|
||||
|
||||
> .ibo-has-description {
|
||||
&::after {
|
||||
@@ -182,7 +183,7 @@ $ibo-field--value-decoration--spacing-x: 0.5rem !default;
|
||||
.object-ref-icon, .object-ref-icon-disabled {
|
||||
&.text_decoration {
|
||||
margin-right: $ibo-field--value-decoration--spacing-x;
|
||||
@extend %ibo-font-ral-nor-100;
|
||||
@extend %ibo-font-size-100;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,5 +24,5 @@ $ibo-fieldset--legend--border-bottom-style: solid !default;
|
||||
padding-bottom: $ibo-fieldset--legend--padding-bottom;
|
||||
border-bottom: $ibo-fieldset--legend--border-bottom-size $ibo-fieldset--legend--border-bottom-style $ibo-fieldset--legend--border-bottom-color;
|
||||
|
||||
@extend %ibo-font-ral-med-250;
|
||||
@extend %ibo-font-size-250;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ $ibo-input-file-select--file-name-margin-left: 10px !default;
|
||||
|
||||
.ibo-input-file-select--file-name {
|
||||
margin-left: $ibo-input-file-select--file-name-margin-left;
|
||||
@extend %ibo-font-ral-med-150;
|
||||
@extend %ibo-font-size-150;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ $ibo-global-search--compartment--placeholder-hint--text-color: $ibo-color-grey-7
|
||||
padding: $ibo-global-search--drawer--padding-y $ibo-global-search--drawer--padding-x;
|
||||
background-color: $ibo-global-search--drawer--background-color;
|
||||
box-shadow: none;
|
||||
@extend %ibo-font-ral-nor-100;
|
||||
@extend %ibo-font-size-100;
|
||||
}
|
||||
.ibo-global-search--compartment-title{
|
||||
margin-bottom: $ibo-global-search--compartment-title--margin-bottom;
|
||||
|
||||
@@ -79,11 +79,9 @@ img.ibo-navigation-menu--notifications--item--image:not([src=""]) ~ i.ibo-naviga
|
||||
align-items: center;
|
||||
float: right;
|
||||
align-self: center;
|
||||
@extend %ibo-font-ral-nor-100;
|
||||
margin-left: $ibo-navigation-menu--notifications--item--bottom-text--margin-left;
|
||||
}
|
||||
.ibo-navigation-menu--notifications--item--content{
|
||||
@extend %ibo-font-ral-nor-150;
|
||||
padding: $ibo-navigation-menu--notifications--item--content--padding-y $ibo-navigation-menu--notifications--item--content--padding-x;
|
||||
img{
|
||||
max-height: $ibo-navigation-menu--notifications--item--content--img--max-height;
|
||||
@@ -108,7 +106,7 @@ img.ibo-navigation-menu--notifications--item--image:not([src=""]) ~ i.ibo-naviga
|
||||
margin-right: $ibo-navigation-menu--notifications-show-all-multiple--ibo-popover-menu--indicator--margin-right;
|
||||
}
|
||||
.ibo-navigation-menu--notifications-show-all-multiple--counter{
|
||||
@extend %ibo-font-ral-bol-200;
|
||||
@extend %ibo-font-weight-600;
|
||||
}
|
||||
}
|
||||
.ibo-navigation-menu--notifications-dismiss-all--icon{
|
||||
|
||||
@@ -207,13 +207,13 @@ $ibo-panel-colors: (
|
||||
.ibo-panel--title {
|
||||
display: inline-block;
|
||||
color: $ibo-panel--title--color;
|
||||
@extend %ibo-font-ral-med-350;
|
||||
@extend %ibo-font-size-350;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.ibo-panel--subtitle {
|
||||
display: flex;
|
||||
@extend %ibo-font-ral-med-150;
|
||||
@extend %ibo-font-size-150;
|
||||
color: $ibo-panel--subtitle--color;
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ $ibo-panel-colors: (
|
||||
border-radius: $ibo-panel--body--border-radius;
|
||||
overflow: hidden; /* To force highlight color to be cropped by the border radius */
|
||||
|
||||
@extend %ibo-font-ral-nor-200;
|
||||
@extend %ibo-font-size-150;
|
||||
}
|
||||
|
||||
.ibo-panel--collapsible-toggler {
|
||||
|
||||
@@ -170,7 +170,7 @@ $ibo-quick-create--compartment--placeholder-hint--text-color: $ibo-color-grey-70
|
||||
padding: $ibo-quick-create--drawer--padding-y $ibo-quick-create--drawer--padding-x;
|
||||
background-color: $ibo-quick-create--drawer--background-color;
|
||||
box-shadow: none;
|
||||
@extend %ibo-font-ral-nor-100;
|
||||
@extend %ibo-font-size-100;
|
||||
}
|
||||
.ibo-quick-create--compartment-title{
|
||||
margin-top: $ibo-quick-create--compartment-title--margin-top;
|
||||
|
||||
@@ -829,7 +829,7 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
||||
|
||||
|
||||
.sf_results_placeholder {
|
||||
@extend %ibo-font-ral-med-150;
|
||||
@extend %ibo-font-size-150;
|
||||
margin-top: 24px;
|
||||
text-align: center;
|
||||
|
||||
@@ -855,7 +855,7 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
||||
}
|
||||
}
|
||||
.ibo-criterion-area{
|
||||
@extend %ibo-font-ral-med-100;
|
||||
@extend %ibo-font-size-100;
|
||||
}
|
||||
#ibo-main-content .search_form_handler .sf_criterion_area{
|
||||
padding: 0;
|
||||
|
||||
@@ -51,7 +51,7 @@ $ibo-title--icon-background--size--must-zoomout: 66.67% !default;
|
||||
}
|
||||
|
||||
.ibo-title--for-object-details {
|
||||
@extend %ibo-font-ral-med-300;
|
||||
@extend %ibo-font-size-300;
|
||||
}
|
||||
|
||||
.ibo-title--subtitle {
|
||||
@@ -68,7 +68,7 @@ $ibo-title--icon-background--size--must-zoomout: 66.67% !default;
|
||||
padding-top: 2em;
|
||||
}
|
||||
.ibo-title-for-dashlet--title {
|
||||
@extend %ibo-font-ral-nor-350;
|
||||
@extend %ibo-font-size-350;
|
||||
}
|
||||
|
||||
.ibo-title-for-dashlet--content{
|
||||
|
||||
@@ -74,7 +74,7 @@ $ibo-dashlet-badge--action-icon--margin-right: 6px !default;
|
||||
}
|
||||
.ibo-dashlet-badge--action-create{
|
||||
@extend %ibo-baseline-centered-content;
|
||||
@extend %ibo-font-ral-med-150;
|
||||
@extend %ibo-font-size-150;
|
||||
}
|
||||
.ibo-dashlet-badge--action-create-icon{
|
||||
margin-right: $ibo-dashlet-badge--action-icon--margin-right;
|
||||
|
||||
@@ -18,5 +18,5 @@ $ibo-dashlet-header-dynamic--count--margin-right: 10px !default;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-dynamic--label {
|
||||
@extend %ibo-font-ral-med-100;
|
||||
@extend %ibo-font-size-100;
|
||||
}
|
||||
@@ -41,7 +41,7 @@ $ibo-dashlet-header-static--body--separator-after--left: calc(100% + #{$ibo-dash
|
||||
margin-left: $ibo-dashlet-header-static--body--margin-left;
|
||||
|
||||
color: $ibo-dashlet-header-static--body--text-color;
|
||||
@extend %ibo-font-ral-med-350;
|
||||
@extend %ibo-font-size-350;
|
||||
|
||||
&::before,
|
||||
&::after{
|
||||
|
||||
@@ -35,7 +35,6 @@ $ibo-popover-menu--item--icon--padding-right: 5px !default;
|
||||
.ibo-popover-menu--item{
|
||||
padding: $ibo-popover-menu--item--padding-y $ibo-popover-menu--item--padding-right $ibo-popover-menu--item--padding-y $ibo-popover-menu--item--padding-left;
|
||||
color: $ibo-popover-menu--item--text-color;
|
||||
@extend %ibo-font-ral-nor-150;
|
||||
|
||||
a {
|
||||
color: $ibo-popover-menu--item--text-color;
|
||||
|
||||
@@ -64,7 +64,7 @@ $ibo-top-bar--quick-actions--margin-right: $ibo-top-bar--elements-spacing !defau
|
||||
}
|
||||
|
||||
.ibo-top-bar--toolbar-dashboard-title {
|
||||
@extend %ibo-font-ral-med-250;
|
||||
@extend %ibo-font-size-250;
|
||||
}
|
||||
|
||||
.ibo-top-bar--toolbar-dashboard-menu-toggler {
|
||||
|
||||
@@ -159,7 +159,7 @@ $ibo-activity-panel--load-more-entries--border: $ibo-content-block--border !defa
|
||||
|
||||
border-radius: $ibo-activity-entry--medallion--border-radius;
|
||||
|
||||
@extend %ibo-font-ral-nor-150;
|
||||
@extend %ibo-font-size-150;
|
||||
|
||||
&.ibo-has-image{
|
||||
background-color: $ibo-activity-entry--medallion--has-image--background-color;
|
||||
@@ -227,7 +227,7 @@ $ibo-activity-panel--load-more-entries--border: $ibo-content-block--border !defa
|
||||
text-align: left;
|
||||
color: $ibo-activity-entry--sub-information--text-color;
|
||||
|
||||
@extend %ibo-font-ral-nor-50;
|
||||
@extend %ibo-font-size-50;
|
||||
}
|
||||
|
||||
.ibo-activity-entry--author-name {
|
||||
|
||||
@@ -224,7 +224,7 @@ $ibo-activity-panel--open-icon--margin-left: 0.75rem !default;
|
||||
.ibo-activity-panel--tab-title-draft-indicator{
|
||||
display: none;
|
||||
margin-left: $ibo-activity-panel--tab-title-draft-indicator--margin-x;
|
||||
@extend %ibo-font-ral-nor-50;
|
||||
@extend %ibo-font-size-50;
|
||||
}
|
||||
.ibo-activity-panel--tab-title-text{
|
||||
max-width: $ibo-activity-panel--tab-title-text--max-width;
|
||||
|
||||
@@ -49,20 +49,20 @@ $ibo-dashboard-editor--delete-dashlet-icon--z-index: 21 !default;
|
||||
td{
|
||||
margin-bottom: 14px;
|
||||
.ibo-field{
|
||||
@extend %ibo-font-ral-med-100;
|
||||
@extend %ibo-font-size-100;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.ibo-dashboard-editor--properties-title{
|
||||
padding-bottom: $ibo-dashboard-editor--properties-title--padding-bottom;
|
||||
@extend %ibo-font-ral-med-250;
|
||||
@extend %ibo-font-size-250;
|
||||
}
|
||||
.ibo-dashboard-editor--properties-subtitle,
|
||||
.ibo-dashboard--available-dashlet--title,
|
||||
.ibo-dashlet--properties--title{
|
||||
@extend .ibo-fieldset-legend;
|
||||
@extend %ibo-font-ral-med-150;
|
||||
@extend %ibo-font-size-150;
|
||||
}
|
||||
|
||||
.ibo-dashboard-editor--layout-list {
|
||||
|
||||
@@ -57,7 +57,7 @@ $ibo-tab--temporary-remote-content--button--hover--color: $ibo-color-grey-200 !d
|
||||
height: $ibo-tab-container--tabs-list--height;
|
||||
|
||||
background-color: $ibo-tab-container--tabs-list--background-color;
|
||||
@extend %ibo-font-ral-nor-150;
|
||||
@extend %ibo-font-size-150;
|
||||
}
|
||||
|
||||
.ibo-tab-container--tab-header {
|
||||
@@ -71,7 +71,7 @@ $ibo-tab--temporary-remote-content--button--hover--color: $ibo-color-grey-200 !d
|
||||
}
|
||||
|
||||
&.ui-tabs-active {
|
||||
@extend %ibo-font-ral-bol-150;
|
||||
@extend %ibo-font-weight-700;
|
||||
color: $ibo-tab-container--tab-header--text-color--is-active;
|
||||
}
|
||||
}
|
||||
@@ -154,7 +154,7 @@ $ibo-tab--temporary-remote-content--button--hover--color: $ibo-color-grey-200 !d
|
||||
margin-left: $ibo-tab-container--tab-container--label--span--margin-left;
|
||||
color: $ibo-tab-container--tab-container--label--text-color;
|
||||
|
||||
@extend %ibo-font-ral-med-250;
|
||||
@extend %ibo-font-size-250;
|
||||
}
|
||||
|
||||
> span::before,
|
||||
@@ -207,7 +207,7 @@ $ibo-tab--temporary-remote-content--button--hover--color: $ibo-color-grey-200 !d
|
||||
width: 100%;
|
||||
|
||||
cursor: pointer;
|
||||
@extend %ibo-font-ral-med-300;
|
||||
@extend %ibo-font-size-300;
|
||||
|
||||
background-color: transparent;
|
||||
color: $ibo-tab--temporary-remote-content--button--color;
|
||||
|
||||
2
css/backoffice/vendors/_ckeditor.scss
vendored
2
css/backoffice/vendors/_ckeditor.scss
vendored
@@ -78,6 +78,6 @@ ul.cke_autocomplete_panel{
|
||||
}
|
||||
.ibo-vendors-ckeditor--autocomplete-item-title{
|
||||
color: $ibo-vendors-ckeditor--autocomplete-item-title--text-color;
|
||||
@extend %ibo-font-ral-bol-100;
|
||||
@extend %ibo-font-weight-700;
|
||||
}
|
||||
}
|
||||
4
css/backoffice/vendors/_datatables.scss
vendored
4
css/backoffice/vendors/_datatables.scss
vendored
@@ -59,7 +59,7 @@ $ibo-vendors-datatables--row-highlight--colors:(
|
||||
height: $ibo-vendors-datatables--pagination-button--min-size;
|
||||
border-radius: $ibo-vendors-datatables--pagination-button--border-radius;
|
||||
|
||||
@extend %ibo-font-ral-med-100;
|
||||
@extend %ibo-font-size-100;
|
||||
@extend %ibo-hyperlink-inherited-colors;
|
||||
|
||||
&:hover {
|
||||
@@ -74,7 +74,7 @@ $ibo-vendors-datatables--row-highlight--colors:(
|
||||
|
||||
&.previous,
|
||||
&.next {
|
||||
@extend %ibo-font-ral-med-200;
|
||||
@extend %ibo-font-size-200;
|
||||
}
|
||||
|
||||
&.current {
|
||||
|
||||
Reference in New Issue
Block a user