sogo/UI/WebServerResources/scss/views/_view.scss

99 lines
2.2 KiB
SCSS
Raw Normal View History

///
/// @filename _views.scss
/// @project SOGo
/// @version 3.alpha
/// @module views
///
///
@import 'LoginUI.scss';
@import 'MailerUI.scss';
@import 'ContactsUI.scss';
2015-02-12 03:54:06 +01:00
@import 'MessageEditorUI';
@import 'SchedulerUI';
.view[layout=row] {
2015-01-26 03:30:27 +01:00
max-height: 100%;
}
2015-03-26 14:58:09 +01:00
// We make intensive use of the list/detail view pattern, here are some base
// definitions for this
// ----------------------------------------------------------------------------
// Variables
$listView-width: grid-step(6) !global;
$detailView-width: grid-step(8) !global;
//[id="messagesList"] {
// flex: 0 0 $listView-width;
//
//}
//
//[id ="contactsList"] {
// flex: 0 1 $listView-width;
// min-width: ($listView-width - ($pitch * 2));
//}
.view-list {
min-width: ($listView-width - ($pitch * 2));
2015-03-26 14:58:09 +01:00
@include at(md){
@include flex-col(md, 7, 1, 1);
}
@include from(lg) {
@include flex-col(lg, 6, 1, 0);
}
@include to(sm) {
width: 100%;
min-width: 100%;
}
}
.view-detail {
2015-03-26 14:58:09 +01:00
position: relative;
z-index: $z-index-view;
2015-03-28 02:13:39 +01:00
background-color: $background-base-color;
2015-03-26 14:58:09 +01:00
@include from(lg) {
@include flex-col(lg, 8, 2, 1);
margin: 0 auto $mg auto;
}
2015-03-26 14:58:09 +01:00
@include at(md) {
@include flex-col(md, 9);
margin: 0;
}
@include to(sm) {
width: 100%;
min-width: 100%;
2015-03-27 22:08:53 +01:00
transform: translateX(-100%) scale(1);
filter: opacity(1);
transform-origin: 50% 50%;
transition: all 0.5s $swift-ease-in-out-timing-function;
&.sg-close {
2015-03-27 22:08:53 +01:00
transition: all 0.35s $swift-ease-in-out-timing-function;
transition-delay: 0.15s;
transform: translateX(-100%) scale(0);
//transform: translateX(-200%);
&.ng-enter {
2015-03-27 22:08:53 +01:00
transform: translateX(-100%) scale(0);
}
}
&.ng-enter {
2015-03-27 22:08:53 +01:00
transform: translateX(-100%) scale(0);
//transform: translateX(0);
}
&.ng-enter.ng-enter-active,
&.ng-leave {
2015-03-27 22:08:53 +01:00
transform: translateX(-100%) scale(1);
filter: opacity(1);
2015-03-27 22:08:53 +01:00
//transform: translateX(-100%);
2015-03-26 14:58:09 +01:00
}
&.ng-leave.ng.leave-active {
2015-03-27 22:08:53 +01:00
transform: translateX(-100%) scale(0);
filter: opacity(1);
2015-03-27 22:08:53 +01:00
//transform: translateX(-200%);
}
2015-03-26 14:58:09 +01:00
[class *= md-whiteframe-] {
box-shadow: none;
}
}
2015-03-26 14:58:09 +01:00
}