mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-24 14:29:28 +00:00
- normalized toolbars in message viewer, contact viewer and contact editor; - lower width of sidenav on medium screens; - reworked display of message headers
108 lines
2.5 KiB
SCSS
108 lines
2.5 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;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
// 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;
|
|
// & > .sg-icon-button:first-child {
|
|
// padding-left: 0;
|
|
// }
|
|
&-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);
|
|
}
|
|
}
|