mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-27 22:24:12 +01:00
- Navigation menu: Change scrollbar color to something more visible - Navigation menu: Close drawer when filter focused and "Escape" key hit - Top bar: Fix element's ID in its standard delivery - Top bar: Fix drawers opening under the top bar but above the main content - iTopWebPage: Add AddUiBlock() method to easily add a layout/component in the page - iTopWebPage: Fix Header/Footer parts (formerly North/South Panels) and Banner part - WebPage: Handle duplicate stylesheets (like it was already doing for JS scripts)
74 lines
2.1 KiB
SCSS
74 lines
2.1 KiB
SCSS
/*!
|
|
* 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-body-text-color: $ibo-color-grey-900 !default;
|
|
$ibo-body-background-color: $ibo-color-white-200 !default;
|
|
|
|
$ibo-page-container--elements-padding-x: 48px !default;
|
|
$ibo-page-content--padding-top: 24px !default;
|
|
$ibo-page-content--padding-bottom: 24px !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};
|
|
}
|
|
|
|
/* Layout */
|
|
html{
|
|
height: 100vh;
|
|
}
|
|
body{
|
|
display: flex;
|
|
height: 100vh;
|
|
color: var(--ibo-body-text-color);
|
|
background-color: var(--ibo-body-background-color);
|
|
@extend %ibo-font-ral-nor-100;
|
|
}
|
|
#ibo-navigation-menu{
|
|
z-index: 20;
|
|
}
|
|
#ibo-page-container{
|
|
position: relative; /* To avoid having its descendants with "z-index" over siblings of self */
|
|
z-index: 10;
|
|
height: 100%;
|
|
overflow: auto;
|
|
flex-grow: 1;
|
|
|
|
#ibo-top-bar,
|
|
#ibo-page-content{
|
|
/* Align both elements content for a slicker touch */
|
|
padding-left: $ibo-page-container--elements-padding-x;
|
|
padding-right: $ibo-page-container--elements-padding-x;
|
|
}
|
|
#ibo-top-container{
|
|
z-index: 20;
|
|
position: sticky;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
#ibo-page-content{
|
|
position: relative; /* To avoid having its descendants with "z-index" over siblings of self */
|
|
z-index: 10;
|
|
padding-top: $ibo-page-content--padding-top;
|
|
padding-bottom: $ibo-page-content--padding-bottom;
|
|
}
|
|
}
|