sogo/UI/WebServerResources/scss/components/toolbar/toolbar.scss

74 lines
1.5 KiB
SCSS
Raw Normal View History

2015-03-28 02:13:39 +01:00
$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;
2015-02-04 03:22:12 +01:00
@import 'extends';
2015-03-28 02:13:39 +01:00
// 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
2015-02-06 01:16:49 +01:00
md-toolbar {
2015-03-28 02:13:39 +01:00
padding: $toolbar-padding 0;
2015-02-06 01:16:49 +01:00
box-shadow: none;
2015-03-08 22:09:20 +01:00
font-size: initial;
}
2015-03-28 02:13:39 +01:00
.md-toolbar-tools {
padding: 0 initial;
}
// 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 {
2015-03-28 02:13:39 +01:00
align-items: flex-start;
}
.md-toolbar-tools.md-toolbar-tools-bottom {
height: (5 * $line);
max-height: (5 * $line);
}
header {
flex-direction: row;
2015-02-24 03:33:47 +01:00
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;
2015-03-04 00:40:48 +01:00
align-items: flex-end;
justify-content: space-between;
&-1 {
order: 1;
max-width: $listView-width;
}
&-2 {
order: 2;
}
2015-03-28 02:13:39 +01:00
&-3,
&-last {
order: 3;
}
}