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

106 lines
2.5 KiB
SCSS
Raw Normal View History

2015-05-20 15:31:53 +02:00
/// toolbar.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
//$toolbar-tools-height: 100%;
2015-03-28 02:13:39 +01:00
$toolbar-height: $pitch;
//$toolbar-medium-tall-height: 88px !default;
2015-03-28 02:13:39 +01:00
$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 {
z-index: $z-index-toolbar;
// dirty fix to override angular-material botchy typography
font-size: 1em !important;
}
// Colors transition when changing folder in dialogs
md-dialog {
md-toolbar,
md-toolbar .md-input,
md-toolbar md-input-container.md-input-has-value label,
md-toolbar md-input-container label:not(.md-no-float),
md-toolbar md-icon {
transition: background-color $swift-ease-out-duration $swift-ease-out-timing-function,
color $swift-ease-out-duration $swift-ease-out-timing-function;
}
}
2015-03-28 02:13:39 +01:00
.md-toolbar-tools {
//padding: 0;
// dirty fix to override angular-material botchy typography
font-size: 1em !important;
2015-03-28 02:13:39 +01:00
}
md-toolbar,
.md-toolbar-tools {
// Animate the first icon button of a "secondary" toolbar
&.sg-toolbar-secondary {
> .md-toolbar-tools > .sg-icon-button:first-child,
> .sg-icon-button:first-child {
transition: $swift-ease-in;
transform: translateX(0px);
}
&.ng-hide > .md-toolbar-tools > .sg-icon-button:first-child,
&.ng-hide > .sg-icon-button:first-child {
transform: translateX(-$touch-zone-width);
}
}
}
.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;
&h3 {
margin-bottom: 0;
}
}
.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;
}
2015-03-28 02:13:39 +01:00
&-3,
&-last {
order: 3;
}
}
2015-09-14 20:57:16 +02:00
.sg-folder-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1 1 auto;
}
.sg-toolbar-search {
padding: $toolbar-padding 0;
}