83 lines
1.9 KiB
SCSS
83 lines
1.9 KiB
SCSS
/// toolbar.scss -*- Mode: text; 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 {
|
|
padding: $toolbar-padding 0;
|
|
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 initial;
|
|
// 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: flex-end;
|
|
justify-content: space-between;
|
|
&-1 {
|
|
order: 1;
|
|
max-width: $listView-width;
|
|
}
|
|
&-2 {
|
|
order: 2;
|
|
}
|
|
&-3,
|
|
&-last {
|
|
order: 3;
|
|
}
|
|
}
|
|
|
|
|