237 lines
4.5 KiB
SCSS
237 lines
4.5 KiB
SCSS
/// MailerUI.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
|
|
|
// Container for the linear progress bar of the quota
|
|
.sg-quota {
|
|
padding-bottom: $baseline-grid;
|
|
padding: 0 $baseline-grid*2 $baseline-grid $baseline-grid*2;
|
|
text-align: center;
|
|
md-progress-linear > ._md-container {
|
|
height: 2px;
|
|
}
|
|
}
|
|
|
|
// Message view header
|
|
// Could be made into a more generic component
|
|
// ----------------------------------------------------------------------------
|
|
.msg-header {
|
|
// padding-bottom: $mg; We should add a padding class to preserve genericity
|
|
}
|
|
|
|
[id="messagesList"] .sg-md-subheader {
|
|
transform: translateY(-100%); // Compensate the container top-margin
|
|
}
|
|
|
|
.unread {
|
|
.#{$md}-subhead,
|
|
.#{$md}-body {
|
|
font-weight: $sg-font-medium;
|
|
}
|
|
.sg-tile-date {
|
|
color: sg-color($sogoBlue, 600);
|
|
}
|
|
}
|
|
|
|
.msg-header-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 auto;
|
|
align-items: stretch;
|
|
justify-content: flex-start;
|
|
overflow: hidden;
|
|
[class|="sg-md-display"] {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.msg-recipients {
|
|
margin-bottom: $mg;
|
|
@include to(xs) {
|
|
padding-left: $mg;
|
|
padding-right: $mg;
|
|
}
|
|
}
|
|
|
|
.msg-body {
|
|
padding-top: $mg;
|
|
}
|
|
|
|
.msg-date {
|
|
font-size: $sg-font-size-2;
|
|
// text-align: right;
|
|
// margin-bottom: 10px;
|
|
// margin-bottom: ($mg/2);
|
|
}
|
|
|
|
md-sidenav {
|
|
md-checkbox {
|
|
&.sg-folder {
|
|
// Show checkbox as a "closed" folder when unchecked and "opened" folder when checked
|
|
._md-container:after {
|
|
color: rgba(0,0,0,0.54);
|
|
font-family: 'Material Icons';
|
|
font-size: 24px;
|
|
content: "\e2c7";
|
|
top: -4px;
|
|
left: -2px;
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|
|
._md-icon {
|
|
border-width: 0;
|
|
}
|
|
&.md-checked {
|
|
._md-container:after {
|
|
content: "\e2c8";
|
|
}
|
|
._md-icon {
|
|
background-color: initial;
|
|
&:after {
|
|
border-style: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.sg-item-name {
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
}
|
|
.msg-attachment-image,
|
|
.msg-attachment-link {
|
|
flex: 0 0 100%;
|
|
min-width: 0;
|
|
@include from(sm) {
|
|
flex: 0 0 50%;
|
|
}
|
|
@include from(md) {
|
|
flex: 0 0 33%;
|
|
}
|
|
[sg-zoomable-image] {
|
|
width: 100%;
|
|
}
|
|
.md-card-image {
|
|
// Make sure the image stays proportional
|
|
max-width: 100%;
|
|
min-height: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
.popup {
|
|
.msg-attachment-image,
|
|
.msg-attachment-link {
|
|
@include from(sm) {
|
|
flex: 0 0 50%;
|
|
}
|
|
@include from(md) {
|
|
flex: 0 0 33%;
|
|
}
|
|
}
|
|
}
|
|
|
|
// The drop zone zone is only visibile when the user is dragging a file to the browser window
|
|
.sg-dropzone {
|
|
display: none;
|
|
}
|
|
.sg-over-dropzone {
|
|
.sg-dropzone {
|
|
background-color: white;
|
|
border: 4px dashed black;
|
|
bottom: 0px;
|
|
display: block;
|
|
flex: 1 1 auto;
|
|
left: 0px;
|
|
opacity: 0.6;
|
|
position: absolute;
|
|
right: 0px;
|
|
top: 0px;
|
|
z-index: $z-index-toolbar + 1;
|
|
&:hover {
|
|
opacity: 0.6;
|
|
}
|
|
md-icon {
|
|
color: black;
|
|
font-size: $sg-font-size-9;
|
|
}
|
|
}
|
|
}
|
|
|
|
// sgZoomableImage directive
|
|
.msg-attachment-image {
|
|
transition: flex-basis $swift-ease-out-duration $swift-ease-out-timing-function;
|
|
&.sg-zoom {
|
|
flex-basis: 100%;
|
|
order: -1;
|
|
}
|
|
&:not(.sg-zoom):hover md-card {
|
|
@extend .md-whiteframe-3dp;
|
|
}
|
|
[sg-zoomable-image] img {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.msg-attachment-other {
|
|
flex: 0 0 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.sg-attachment-size {
|
|
@extend .md-caption;
|
|
padding-left: $baseline-grid;
|
|
color: $colorGrey800;
|
|
}
|
|
|
|
// sg-md title doesn't fit in message headers
|
|
.sg-md-title-msg {
|
|
@extend .sg-md-title;
|
|
margin: 0;
|
|
margin-bottom: $line;
|
|
white-space: normal;
|
|
font-weight: $sg-font-regular;
|
|
}
|
|
|
|
.mailer_mailcontent {
|
|
md-card {
|
|
md-card-content {
|
|
padding: $baseline-grid;
|
|
p {
|
|
@extend .md-caption;
|
|
line-height: $sg-line-height-2;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
.sg-label-outline {
|
|
border-color: $colorGrey400;
|
|
color: $colorGrey600;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.sg-mail-editor {
|
|
.pseudo-input-container {
|
|
max-height: 400px;
|
|
overflow: hidden;
|
|
overflow-y: auto;
|
|
padding-bottom: 2px; // leave some space for the border
|
|
transition: $swift-ease-in;
|
|
&.ng-hide {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
md-dialog-content {
|
|
padding-bottom: 0;
|
|
padding-top: 0;
|
|
}
|
|
md-chip-template {
|
|
md-icon[ng-click] {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|