sogo/UI/WebServerResources/scss/components/toolbar/toolbar.scss
2015-07-29 16:44:18 -04:00

89 lines
2 KiB
SCSS

/// toolbar.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
$toolbar-tools-height: 100%;
$toolbar-height: $pitch;
$toolbar-medium-tall-height: 88px !default;
$toolbar-tall-height: ($toolbar-height * 2);
$toolbar-indent-margin: $pitch;
$toolbar-padding: $mg;
@import 'extends';
// According to specs, there's no case where toolbars have no padding
// We overule angular-material way of implenting this by defining padding toolbars
// instead of toolbar-tools to prevent padding addition
// INFO: because we make intensive use of border-box box sizing model, horizontal paddings
// must be declare in containers with sg-padded
md-toolbar {
z-index: $z-index-toolbar;
// dirty fix to override angular-material botchy typography
font-size: 1em !important;
background-image: url("../img/felt-transp.png");
background-blend-mode: luminosity;
box-shadow: $whiteframe-shadow-z1;
}
.md-toolbar-tools {
padding: 0;
// dirty fix to override angular-material botchy typography
font-size: 1em !important;
}
// angular-material is overspecifying so we are
.md-toolbar-tools[layout-align="start start"] {
align-items: flex-start;
}
.md-toolbar-tools.md-toolbar-tools-top {
align-items: flex-start;
}
.md-toolbar-tools.md-toolbar-tools-bottom {
height: (5 * $line);
max-height: (5 * $line);
}
header {
flex-direction: row;
flex-wrap: nowrap;
align-items: stretch;
justify-content: space-between;
display: flex;
}
hgroup {
align-items: center;
flex: 1 1 auto;
&h3 {
margin-bottom: 0;
}
}
.toolbar-main .md-button {
color: inherit;
font-size: sg-size(headline);
}
.sg-toolbar-group {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
&-1 {
order: 1;
max-width: $listView-width;
}
&-2 {
order: 2;
}
&-3,
&-last {
order: 3;
}
}
.sg-toolbar-search {
background-color: sg-color($sogoPaper, 100);
color: rgba(0,0,0,0.54);
padding: $toolbar-padding 0;
md-icon {
color: rgba(0,0,0,0.54);
}
}