2015-04-29 20:18:51 +02:00
|
|
|
/// _view.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
2015-04-10 21:37:00 +02:00
|
|
|
|
2015-02-22 22:48:27 +01:00
|
|
|
@import 'LoginUI.scss';
|
2015-01-29 17:09:31 +01:00
|
|
|
@import 'MailerUI.scss';
|
2015-02-20 04:05:53 +01:00
|
|
|
@import 'ContactsUI.scss';
|
2015-02-12 03:54:06 +01:00
|
|
|
@import 'MessageEditorUI';
|
2015-03-30 21:11:20 +02:00
|
|
|
@import 'SchedulerUI';
|
2016-06-14 20:10:17 +02:00
|
|
|
@import 'PreferencesUI';
|
2015-10-09 22:10:39 +02:00
|
|
|
@import 'AdministrationUI';
|
2015-01-29 17:09:31 +01:00
|
|
|
|
2015-08-25 16:24:34 +02:00
|
|
|
.view[layout=row],
|
|
|
|
.view.layout-row {
|
2015-01-26 03:30:27 +01:00
|
|
|
max-height: 100%;
|
2015-03-25 21:46:06 +01:00
|
|
|
}
|
2015-03-26 14:58:09 +01:00
|
|
|
|
2017-01-16 22:30:24 +01:00
|
|
|
.view-main {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2016-01-18 18:15:38 +01:00
|
|
|
body {
|
|
|
|
&.popup {
|
|
|
|
.viewer {
|
2015-12-07 22:41:06 +01:00
|
|
|
width: 100%;
|
2016-01-18 18:15:38 +01:00
|
|
|
}
|
|
|
|
.view-detail {
|
|
|
|
max-width: 100%;
|
|
|
|
@include from(sm) {
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
.sg-face, .sg-back {
|
|
|
|
> md-card {
|
2015-12-07 22:41:06 +01:00
|
|
|
height: 100%;
|
2016-01-18 18:15:38 +01:00
|
|
|
md-card-content {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2015-12-07 22:41:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-04 23:31:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-25 21:46:06 +01:00
|
|
|
// We make intensive use of the list/detail view pattern, here are some base
|
|
|
|
// definitions for this
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// Variables
|
2017-02-02 03:32:16 +01:00
|
|
|
//$listView-width: grid-step(6) !global;
|
2016-02-25 16:57:32 +01:00
|
|
|
//$detailView-width: grid-step(8) !global;
|
2015-03-25 21:46:06 +01:00
|
|
|
|
2015-03-28 06:24:31 +01:00
|
|
|
[class|="view"] {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-03-25 22:00:53 +01:00
|
|
|
.view-list {
|
|
|
|
min-width: ($listView-width - ($pitch * 2));
|
2016-11-10 22:03:00 +01:00
|
|
|
transition: $swift-ease-out;
|
|
|
|
z-index: ($z-index-view - 1);
|
2015-12-14 16:39:10 +01:00
|
|
|
|
2016-04-01 22:05:55 +02:00
|
|
|
// With Material, when a button inside a md-list uses the class md-secondary, it is moved inside a container
|
|
|
|
// on the right side of the list item. Since we define the avatar as the secondary button, we must move it to
|
|
|
|
// the left side of the list item.
|
2015-12-14 16:39:10 +01:00
|
|
|
.md-with-secondary {
|
2016-07-12 17:29:24 +02:00
|
|
|
.md-list-item-inner {
|
2016-04-21 19:40:47 +02:00
|
|
|
order: 2;
|
2016-04-01 22:05:55 +02:00
|
|
|
padding-left: $baseline-grid;
|
2015-12-14 16:39:10 +01:00
|
|
|
}
|
2016-07-12 17:29:24 +02:00
|
|
|
.md-secondary-container {
|
2016-04-21 19:40:47 +02:00
|
|
|
order: 1; // move secondary container to the left
|
2016-04-01 22:05:55 +02:00
|
|
|
}
|
|
|
|
.md-secondary {
|
|
|
|
margin: 0;
|
2015-12-14 16:39:10 +01:00
|
|
|
padding: 0;
|
2016-04-21 19:40:47 +02:00
|
|
|
text-align: left;
|
2015-11-25 17:15:31 +01:00
|
|
|
}
|
|
|
|
}
|
2015-12-14 16:39:10 +01:00
|
|
|
|
2016-01-18 18:15:38 +01:00
|
|
|
@include to(xs) {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
2016-08-10 15:51:25 +02:00
|
|
|
@include at(sm) {
|
2016-02-25 16:57:32 +01:00
|
|
|
@include flex-col($breakpoint: sm, $nb: 6, $grow: 1, $shrink: 1);
|
2015-04-01 00:33:14 +02:00
|
|
|
min-width: ($pitch * 3);
|
2015-03-26 14:58:09 +01:00
|
|
|
}
|
2015-11-30 20:13:15 +01:00
|
|
|
@include from(md) {
|
2016-02-25 16:57:32 +01:00
|
|
|
@include flex-col($breakpoint: md, $nb: 6, $grow: 1, $shrink: 0);
|
2015-03-26 14:58:09 +01:00
|
|
|
}
|
2015-03-25 21:46:06 +01:00
|
|
|
}
|
|
|
|
|
2016-11-10 22:03:00 +01:00
|
|
|
.view-list--close {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
|
|
|
|
@include at(sm) {
|
2017-02-02 03:32:16 +01:00
|
|
|
$colWidth: col-width($breakpoint: sm, $nb: 6);
|
|
|
|
margin-right: $colWidth * -1;
|
2016-11-10 22:03:00 +01:00
|
|
|
}
|
|
|
|
@include from(md) {
|
2017-02-02 03:32:16 +01:00
|
|
|
$colWidth: col-width($breakpoint: md, $nb: 6);
|
|
|
|
margin-right: $colWidth * -1;
|
2016-11-10 22:03:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-25 21:46:06 +01:00
|
|
|
.view-detail {
|
2016-11-10 22:03:00 +01:00
|
|
|
flex: 1 1 auto;
|
|
|
|
margin: 0;
|
2015-09-03 22:10:05 +02:00
|
|
|
overflow: hidden;
|
2016-11-10 22:03:00 +01:00
|
|
|
z-index: $z-index-view;
|
2015-12-07 22:41:06 +01:00
|
|
|
|
2016-01-21 20:58:10 +01:00
|
|
|
.sg-face, .sg-back {
|
|
|
|
> md-card {
|
2016-01-27 16:28:40 +01:00
|
|
|
// Make sure the card is visible and its content scrollable
|
2016-01-21 20:58:10 +01:00
|
|
|
overflow: hidden;
|
2016-08-10 15:51:25 +02:00
|
|
|
//min-width: 100%;
|
2016-01-21 20:58:10 +01:00
|
|
|
min-height: 0;
|
|
|
|
}
|
2015-11-30 20:13:15 +01:00
|
|
|
}
|
2016-03-08 19:20:34 +01:00
|
|
|
md-card {
|
|
|
|
background-color: white;
|
|
|
|
}
|
2015-11-30 20:13:15 +01:00
|
|
|
|
2015-08-27 19:37:47 +02:00
|
|
|
// On small screens, the view slides from the right and takes all screen place.
|
|
|
|
// Expected Display Steps:
|
|
|
|
// 1. The class sg-close is used when there's no selection
|
|
|
|
// 2. An list item is selected (ui-router state changes):
|
|
|
|
// a. sg-close is removed from view-detail
|
|
|
|
// b. view-detail (transparent) slides over view-list
|
|
|
|
// c. viewer is inserted into the DOM and slides inside view-detail
|
|
|
|
// 3. An list item is closed (ui-router state changes):
|
|
|
|
// a. viewer slides out of view-detail and is removed from the DOM
|
|
|
|
// b. view-detail (transparent) slides outside view-list
|
|
|
|
// c. sg-close is added to view-detail
|
2015-11-30 20:13:15 +01:00
|
|
|
@include to(xs) {
|
2015-08-27 19:37:47 +02:00
|
|
|
background-color: transparent !important;
|
2015-03-30 05:21:14 +02:00
|
|
|
position: absolute;
|
2015-09-03 22:10:05 +02:00
|
|
|
//top: $toolbar-tall-height;
|
|
|
|
top: 0;
|
2015-08-26 23:28:03 +02:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2015-09-03 22:10:05 +02:00
|
|
|
z-index: ($z-index-toolbar + 1);
|
2015-08-27 19:37:47 +02:00
|
|
|
transform: translateX(0);
|
|
|
|
transition: $swift-ease-in-out;
|
2016-01-18 18:15:38 +01:00
|
|
|
//transition: transform $swift-ease-in-out-duration $swift-ease-in-out-timing-function;
|
2015-03-26 19:39:44 +01:00
|
|
|
&.sg-close {
|
2016-01-18 18:15:38 +01:00
|
|
|
display: none;
|
2015-08-26 23:28:03 +02:00
|
|
|
transform: translateX(100%);
|
2015-03-31 16:50:05 +02:00
|
|
|
}
|
2016-01-18 18:15:38 +01:00
|
|
|
&.ng-leave {
|
|
|
|
display: block;
|
|
|
|
transform: translateX(0);
|
|
|
|
&.ng-leave-active {
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
2015-03-26 19:39:44 +01:00
|
|
|
}
|
2015-03-31 16:50:05 +02:00
|
|
|
&.ng-enter {
|
2016-01-18 18:15:38 +01:00
|
|
|
display: block;
|
2015-08-26 23:28:03 +02:00
|
|
|
transform: translateX(100%);
|
|
|
|
&.ng-enter-active {
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
2015-03-25 21:46:06 +01:00
|
|
|
}
|
2015-08-27 19:37:47 +02:00
|
|
|
.viewer {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2015-09-03 22:10:05 +02:00
|
|
|
overflow-x: hidden;
|
2015-08-27 19:37:47 +02:00
|
|
|
}
|
2015-12-04 21:00:58 +01:00
|
|
|
md-card {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-03-25 21:46:06 +01:00
|
|
|
}
|
2015-12-04 21:00:58 +01:00
|
|
|
|
2016-01-18 18:15:38 +01:00
|
|
|
// No animation on medium to large screens
|
|
|
|
@include from(sm) {
|
|
|
|
.md-static {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
.viewer {
|
|
|
|
position: absolute;
|
|
|
|
top: $toolbar-height;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow-y: auto;
|
|
|
|
// transform: translate3d(0, 0, 0);
|
|
|
|
// transition: all 0.5s $swift-ease-in-out-timing-function;
|
|
|
|
// &.ng-enter {
|
|
|
|
// transform: translate(-105%, 0);
|
|
|
|
// &.ng-enter-active {
|
|
|
|
// transform: translate(0, 0);
|
|
|
|
// transition-delay: 0.5s;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// &.ng-leave {
|
|
|
|
// transition-delay: 0;
|
|
|
|
// transition-duration: 0.1s;
|
|
|
|
// transform: translate(0, 0);
|
|
|
|
// &.ng-leave-active {
|
|
|
|
// transition-delay: 0.1s;
|
|
|
|
// transition-duration: 0.4s;
|
|
|
|
// transform: translate(-105%, 100%);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
// Flippable view card, used to show raw source of cards and messages
|
|
|
|
perspective: 1000px;
|
|
|
|
.sg-reversible {
|
|
|
|
transform-style: preserve-3d;
|
|
|
|
transition: transform 0.5s;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
&.sg-flip {
|
|
|
|
transform: rotateY( 180deg );
|
|
|
|
}
|
|
|
|
.sg-face, .sg-back {
|
|
|
|
backface-visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.sg-face {
|
|
|
|
transform: rotateY( 0deg );
|
|
|
|
}
|
|
|
|
.sg-back {
|
|
|
|
transform: rotateY( 180deg );
|
|
|
|
}
|
|
|
|
}
|
2016-11-10 22:03:00 +01:00
|
|
|
}
|