sogo/UI/WebServerResources/scss/components/sidenav/sidenav.scss
Francis Lachapelle 11e7af3450 Adopt theming system of Angular Material
The SASS has been simplified so that different themes can be applied by
only using the $mdThemingProvider serivce.

The resulting design is more "Materialized" and less prone to the
future changes of Angular Material.
2015-09-09 16:35:09 -04:00

48 lines
1.4 KiB
SCSS

/// sidenav.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
@import "extends";
$sidenav-default-width: (4 * $pitch);
$sidenav-min-space: $pitch;
//$sidenav-right-width: (8 * $pitch);
md-sidenav {
&.md-locked-open {
@include from(lg) {
@include flex-col(lg, 4, 1, 0)
}
}
}
// MAIN SIDENAV, actually to the left
// ----------------------------------------------------------------------------
// Mailboxes tree
$i: 1;
@while $i < 12 {
.sg-child-level-#{$i} { padding-left: $mg * $i; }
$i: $i + 1;
}
// This hack is so BAD I am ashame putting it in the shame file
// -----------------------------------------------------------
// Folder tree's controler function are very intricate, the way
// elements are marked as 'active reminds me of good old time JQuery
// There must be a more straigthforward, angular-way to swap classes
// selection, but I don't wan't to mess in that script.
// Here's the hack : on selection I use the parent > child selector to
// change the definition of the icon's class. Yes, this means that
// md-icon-folder:before as the value of md-icon-folder-open:before,
// and this is wrong !
.sg-active i.md-icon-folder:before {
@extend .md-icon-folder-open:before;
}
.md-sidenav-left {
md-list-item {
.md-button {
transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function;
}
}
}