mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
N°2847 - Add style for scrollbars throughout the whole application, not only the nav. menu
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
*/
|
||||
|
||||
$ibo-scrollbar--scrollbar-width: 8px !default;
|
||||
$ibo-scrollbar--scrollbar-track-background-color: $ibo-color-transparent !default;
|
||||
$ibo-scrollbar--scrollbar-thumb-background-color: $ibo-color-grey-300 !default;
|
||||
$ibo-scrollbar--scrollbar-thumb-border: none !default;
|
||||
$ibo-scrollbar--scrollbar-thumb-border-radius: $ibo-border-radius-500 !default;
|
||||
|
||||
$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;
|
||||
@@ -27,6 +33,12 @@ $ibo-content-block--border: 1px solid $ibo-color-grey-400 !default;
|
||||
|
||||
/* CSS variables */
|
||||
:root{
|
||||
--ibo-scrollbar--scrollbar-width: #{$ibo-scrollbar--scrollbar-width};
|
||||
--ibo-scrollbar--scrollbar-track-background-color: #{$ibo-scrollbar--scrollbar-track-background-color};
|
||||
--ibo-scrollbar--scrollbar-thumb-background-color: #{$ibo-scrollbar--scrollbar-thumb-background-color};
|
||||
--ibo-scrollbar--scrollbar-thumb-border: #{$ibo-scrollbar--scrollbar-thumb-border};
|
||||
--ibo-scrollbar--scrollbar-thumb-border-radius: #{$ibo-scrollbar--scrollbar-thumb-border-radius};
|
||||
|
||||
--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};
|
||||
@@ -39,6 +51,27 @@ $ibo-content-block--border: 1px solid $ibo-color-grey-400 !default;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Scrollbar reset */
|
||||
*{
|
||||
/* - For Firefox and future W3C specs. */
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--ibo-scrollbar--scrollbar-thumb-background-color) var(--ibo-scrollbar--scrollbar-track-background-color);
|
||||
|
||||
/* - For Chrome/Edge/Safari */
|
||||
&::-webkit-scrollbar {
|
||||
width: var(--ibo-scrollbar--scrollbar-width);
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: var(--ibo-scrollbar--scrollbar-track-background-color);
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: var(--ibo-scrollbar--scrollbar-thumb-background-color);
|
||||
border: var(--ibo-scrollbar--scrollbar-thumb-border);
|
||||
border-radius: var(--ibo-scrollbar--scrollbar-thumb-border-radius);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Base font size (used by all typographies) */
|
||||
html{
|
||||
font-size: 12px;
|
||||
|
||||
@@ -38,8 +38,6 @@ $ibo-navigation-menu--middle-part--elements-spacing: 20px !default;
|
||||
$ibo-navigation-menu--middle-part--scrollbar-width: 5px !default;
|
||||
$ibo-navigation-menu--middle-part--scrollbar-track-background-color: $ibo-color-transparent !default;
|
||||
$ibo-navigation-menu--middle-part--scrollbar-thumb-background-color: $ibo-color-grey-300 !default;
|
||||
$ibo-navigation-menu--middle-part--scrollbar-thumb-border: none !default;
|
||||
$ibo-navigation-menu--middle-part--scrollbar-thumb-border-radius: $ibo-border-radius-500 !default;
|
||||
|
||||
$ibo-navigation-menu--bottom-part--padding-top: 20px !default;
|
||||
$ibo-navigation-menu--bottom-part--padding-bottom: 16px !default;
|
||||
@@ -337,22 +335,22 @@ $ibo-navigation-menu--user-info--height--is-expanded: 100% !default;
|
||||
/* Only the middle part should have a variable size */
|
||||
overflow-y: auto;
|
||||
padding: $ibo-navigation-menu--middle-part--padding-top $ibo-navigation-menu--middle-part--padding-x $ibo-navigation-menu--middle-part--padding-bottom;
|
||||
|
||||
/* Scrollbar for Firefox and future W3C specs. */
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: $ibo-navigation-menu--middle-part--scrollbar-thumb-background-color $ibo-navigation-menu--middle-part--scrollbar-track-background-color;
|
||||
/* Scrollbar for Chrome/Edge/Safari */
|
||||
&::-webkit-scrollbar {
|
||||
width: $ibo-navigation-menu--middle-part--scrollbar-width;
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: $ibo-navigation-menu--middle-part--scrollbar-track-background-color;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: $ibo-navigation-menu--middle-part--scrollbar-thumb-background-color;
|
||||
}
|
||||
}
|
||||
/* Scrollbar for Chrome/Edge/Safari */
|
||||
.ibo-navigation-menu--middle-part::-webkit-scrollbar {
|
||||
width: $ibo-navigation-menu--middle-part--scrollbar-width;
|
||||
}
|
||||
.ibo-navigation-menu--middle-part::-webkit-scrollbar-track {
|
||||
background-color: $ibo-navigation-menu--middle-part--scrollbar-track-background-color;
|
||||
}
|
||||
.ibo-navigation-menu--middle-part::-webkit-scrollbar-thumb {
|
||||
background-color: $ibo-navigation-menu--middle-part--scrollbar-thumb-background-color;
|
||||
border: $ibo-navigation-menu--middle-part--scrollbar-thumb-border;
|
||||
border-radius: $ibo-navigation-menu--middle-part--scrollbar-thumb-border-radius;
|
||||
}
|
||||
|
||||
/* - Bottom part */
|
||||
.ibo-navigation-menu--bottom-part{
|
||||
z-index: 2; /* User picture must be above the middle part when expanded */
|
||||
|
||||
Reference in New Issue
Block a user