2015-05-01 15:52:48 +02:00
|
|
|
/// MailerUI.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
2014-11-25 22:09:55 +01:00
|
|
|
|
2017-05-18 21:31:38 +02:00
|
|
|
.sg-mailbox-list-item:not(.sg-selected) .md-menu {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-05-31 21:36:54 +02:00
|
|
|
.view-list {
|
|
|
|
// Overwrite style from list.scss to make some place for .sg-tile-icons
|
|
|
|
md-list-item._md-button-wrap > div.md-button:first-child {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2019-06-27 23:51:48 +02:00
|
|
|
|
|
|
|
.sg-tile-subject {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sg-message-thread > .md-button:before {
|
|
|
|
content: '';
|
|
|
|
width: $mg;
|
|
|
|
}
|
2021-06-07 21:03:39 +02:00
|
|
|
|
|
|
|
.sg-category-dot {
|
|
|
|
border-color: rgba(255, 255, 255, .9);
|
|
|
|
}
|
2016-05-31 21:36:54 +02:00
|
|
|
}
|
|
|
|
|
2015-12-22 03:14:39 +01:00
|
|
|
// Container for the linear progress bar of the quota
|
|
|
|
.sg-quota {
|
|
|
|
padding-bottom: $baseline-grid;
|
2016-01-08 22:34:13 +01:00
|
|
|
padding: 0 $baseline-grid*2 $baseline-grid $baseline-grid*2;
|
2015-12-22 03:14:39 +01:00
|
|
|
text-align: center;
|
2016-07-12 17:29:24 +02:00
|
|
|
md-progress-linear > .md-container {
|
2016-01-04 17:50:25 +01:00
|
|
|
height: 2px;
|
|
|
|
}
|
2015-12-22 03:14:39 +01:00
|
|
|
}
|
|
|
|
|
2020-07-24 15:46:16 +02:00
|
|
|
.sg-icon-star {
|
|
|
|
color: $colorYellow700;
|
|
|
|
}
|
|
|
|
|
2015-02-11 10:04:09 +01:00
|
|
|
// Message view header
|
|
|
|
// Could be made into a more generic component
|
|
|
|
// ----------------------------------------------------------------------------
|
2015-02-10 09:17:10 +01:00
|
|
|
.msg-header {
|
2015-02-11 10:04:09 +01:00
|
|
|
// padding-bottom: $mg; We should add a padding class to preserve genericity
|
2015-02-10 09:17:10 +01:00
|
|
|
}
|
2015-02-11 10:04:09 +01:00
|
|
|
|
2015-05-01 15:52:48 +02:00
|
|
|
[id="messagesList"] .sg-md-subheader {
|
2015-02-20 04:05:53 +01:00
|
|
|
transform: translateY(-100%); // Compensate the container top-margin
|
|
|
|
}
|
|
|
|
|
2015-05-08 18:06:52 +02:00
|
|
|
.unread {
|
2015-09-25 22:07:56 +02:00
|
|
|
.#{$md}-subhead,
|
2021-06-15 23:13:32 +02:00
|
|
|
.#{$md}-body,
|
|
|
|
.sg-tile-date {
|
2015-05-08 18:06:52 +02:00
|
|
|
font-weight: $sg-font-medium;
|
|
|
|
}
|
2021-06-15 23:13:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sg-skeleton {
|
|
|
|
background-color: inherit;
|
|
|
|
sg-avatar-image, .sg-category-dot-container, md-icon, .sg-tile-btn {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.md-icon-button, .sg-md-subhead, .sg-md-body {
|
|
|
|
color: $colorGrey300;
|
|
|
|
background-color: $colorGrey300;
|
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
.sg-md-subhead, .sg-md-body {
|
|
|
|
margin-bottom: 3px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
.sg-md-subhead {
|
|
|
|
height: 1.2rem;
|
|
|
|
width: 45%;
|
|
|
|
}
|
|
|
|
.sg-md-body {
|
|
|
|
height: 1rem;
|
|
|
|
width: 70%;
|
2015-05-08 18:06:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-11 10:04:09 +01:00
|
|
|
.msg-header-content {
|
2015-02-06 15:37:00 +01:00
|
|
|
display: flex;
|
2015-02-10 09:17:10 +01:00
|
|
|
flex-direction: column;
|
2015-05-01 15:52:48 +02:00
|
|
|
flex: 1 1 auto;
|
2015-02-10 09:17:10 +01:00
|
|
|
align-items: stretch;
|
|
|
|
justify-content: flex-start;
|
2015-08-27 19:37:47 +02:00
|
|
|
overflow: hidden;
|
|
|
|
[class|="sg-md-display"] {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2015-02-11 10:04:09 +01:00
|
|
|
}
|
2015-02-10 09:17:10 +01:00
|
|
|
|
2016-01-18 19:58:23 +01:00
|
|
|
.msg-recipients {
|
|
|
|
margin-bottom: $mg;
|
|
|
|
@include to(xs) {
|
|
|
|
padding-left: $mg;
|
|
|
|
padding-right: $mg;
|
|
|
|
}
|
2019-01-11 04:00:19 +01:00
|
|
|
md-chip {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2016-01-18 19:58:23 +01:00
|
|
|
}
|
|
|
|
|
2017-01-19 03:24:45 +01:00
|
|
|
// Vertical buttons in header area of mail composer dialog
|
|
|
|
.msg-header-buttons {
|
|
|
|
margin-right: -$baseline-grid;
|
|
|
|
}
|
|
|
|
|
2015-02-11 10:04:09 +01:00
|
|
|
.msg-body {
|
|
|
|
padding-top: $mg;
|
2015-02-06 15:37:00 +01:00
|
|
|
}
|
2015-02-11 10:04:09 +01:00
|
|
|
|
2015-02-06 15:37:00 +01:00
|
|
|
.msg-date {
|
2015-09-03 22:10:05 +02:00
|
|
|
font-size: $sg-font-size-2;
|
2015-12-04 21:00:58 +01:00
|
|
|
// text-align: right;
|
2015-09-03 22:10:05 +02:00
|
|
|
// margin-bottom: 10px;
|
|
|
|
// margin-bottom: ($mg/2);
|
2015-02-10 09:17:10 +01:00
|
|
|
}
|
2015-08-08 02:38:26 +02:00
|
|
|
|
2015-12-02 20:03:10 +01:00
|
|
|
md-sidenav {
|
2020-07-02 23:21:56 +02:00
|
|
|
md-list-item.sg-mailbox-list-item {
|
|
|
|
// Lower by half the left padding of list items to accomodate the expand/collapse button
|
|
|
|
padding-left: $bl;
|
|
|
|
.sg-item-name {
|
|
|
|
transform: translateX(-$bl);
|
|
|
|
margin-right: 0;
|
|
|
|
md-icon {
|
|
|
|
margin-right: $bl;
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-12-02 20:03:10 +01:00
|
|
|
md-checkbox {
|
|
|
|
&.sg-folder {
|
2020-07-02 23:21:56 +02:00
|
|
|
// Show checkbox as a collapsed/right arrow when unchecked and expanded/down arrow when checked
|
2016-07-12 17:29:24 +02:00
|
|
|
.md-container:after {
|
2015-12-02 20:03:10 +01:00
|
|
|
color: rgba(0,0,0,0.54);
|
|
|
|
font-family: 'Material Icons';
|
|
|
|
font-size: 24px;
|
2020-07-02 23:21:56 +02:00
|
|
|
content: "\e5df"; // arrow_right (collapsed folder)
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2015-12-02 20:03:10 +01:00
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
2015-09-30 22:17:05 +02:00
|
|
|
}
|
2016-07-12 17:29:24 +02:00
|
|
|
.md-icon {
|
2015-12-02 20:03:10 +01:00
|
|
|
border-width: 0;
|
|
|
|
}
|
|
|
|
&.md-checked {
|
2016-07-12 17:29:24 +02:00
|
|
|
.md-container:after {
|
2020-07-02 23:21:56 +02:00
|
|
|
content: "\e5c5"; // arrow_drop_down (expanded folder)
|
2015-12-02 20:03:10 +01:00
|
|
|
}
|
2016-07-12 17:29:24 +02:00
|
|
|
.md-icon {
|
2017-01-27 18:22:22 +01:00
|
|
|
background-color: initial !important;
|
2015-12-02 20:03:10 +01:00
|
|
|
&:after {
|
|
|
|
border-style: none;
|
|
|
|
}
|
2015-09-30 22:17:05 +02:00
|
|
|
}
|
|
|
|
}
|
2020-07-02 23:21:56 +02:00
|
|
|
// Hide the checkbox when disabled (no children)
|
2016-11-09 16:18:12 +01:00
|
|
|
&[disabled] {
|
|
|
|
.md-container {
|
|
|
|
width: 0;
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-30 22:17:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-12-02 20:03:10 +01:00
|
|
|
.msg-attachment-image,
|
|
|
|
.msg-attachment-link {
|
2015-12-07 22:41:06 +01:00
|
|
|
flex: 0 0 100%;
|
2016-02-05 18:04:26 +01:00
|
|
|
min-width: 0;
|
2016-01-21 20:58:10 +01:00
|
|
|
@include from(sm) {
|
2015-12-02 20:03:10 +01:00
|
|
|
flex: 0 0 50%;
|
2015-08-08 02:38:26 +02:00
|
|
|
}
|
2016-01-21 20:58:10 +01:00
|
|
|
@include from(md) {
|
2015-12-07 22:41:06 +01:00
|
|
|
flex: 0 0 33%;
|
2015-12-02 20:03:10 +01:00
|
|
|
}
|
2016-02-05 18:04:26 +01:00
|
|
|
[sg-zoomable-image] {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2016-01-21 20:58:10 +01:00
|
|
|
.md-card-image {
|
|
|
|
// Make sure the image stays proportional
|
2015-12-02 20:03:10 +01:00
|
|
|
max-width: 100%;
|
2016-01-21 20:58:10 +01:00
|
|
|
min-height: 100%;
|
|
|
|
height: auto;
|
2015-12-02 20:03:10 +01:00
|
|
|
}
|
|
|
|
}
|
2015-12-07 22:41:06 +01:00
|
|
|
.popup {
|
|
|
|
.msg-attachment-image,
|
|
|
|
.msg-attachment-link {
|
|
|
|
@include from(sm) {
|
|
|
|
flex: 0 0 50%;
|
|
|
|
}
|
|
|
|
@include from(md) {
|
|
|
|
flex: 0 0 33%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-08 18:02:34 +01:00
|
|
|
// Limit height of attachments card, format content-type labels
|
|
|
|
.msg-attachment-link,
|
|
|
|
.msg-attachment-image {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-09 22:01:59 +01:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-12-02 20:03:10 +01:00
|
|
|
|
|
|
|
// 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;
|
2015-08-08 02:38:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-08 18:02:34 +01:00
|
|
|
// Text or html message body
|
2015-08-08 02:38:26 +02:00
|
|
|
.msg-attachment-other {
|
|
|
|
flex: 0 0 100%;
|
|
|
|
max-width: 100%;
|
2021-02-08 18:02:34 +01:00
|
|
|
word-break: break-word;
|
2021-06-21 18:16:17 +02:00
|
|
|
md-card-content md-content {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
2015-08-08 02:38:26 +02:00
|
|
|
}
|
|
|
|
|
2017-05-29 20:03:59 +02:00
|
|
|
.sg-attachment-name {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
2015-12-02 20:03:10 +01:00
|
|
|
.sg-attachment-size {
|
|
|
|
@extend .md-caption;
|
|
|
|
padding-left: $baseline-grid;
|
|
|
|
color: $colorGrey800;
|
|
|
|
}
|
|
|
|
|
|
|
|
// sg-md title doesn't fit in message headers
|
2015-02-11 10:04:09 +01:00
|
|
|
.sg-md-title-msg {
|
|
|
|
@extend .sg-md-title;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: $line;
|
|
|
|
white-space: normal;
|
2015-03-26 14:58:09 +01:00
|
|
|
font-weight: $sg-font-regular;
|
2015-02-11 10:04:09 +01:00
|
|
|
}
|
2015-02-10 09:17:10 +01:00
|
|
|
|
2020-07-30 19:28:14 +02:00
|
|
|
.mailer_plaincontent {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2019-05-16 17:26:22 +02:00
|
|
|
.mailer_htmlcontent {
|
|
|
|
// Constrain absolute-positioned child elements to this element
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
// Force wrapping of pre elements in HTML content
|
|
|
|
pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
tab-size: 4;
|
|
|
|
}
|
2018-06-07 20:00:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
.sg-mail-editor {
|
|
|
|
.pseudo-input-container {
|
2020-04-30 17:46:33 +02:00
|
|
|
max-height: $baseline-grid * 4 * 6; // about 6 lines
|
2015-12-04 21:00:58 +01:00
|
|
|
overflow: hidden;
|
|
|
|
overflow-y: auto;
|
2015-12-11 21:11:53 +01:00
|
|
|
padding-bottom: 2px; // leave some space for the border
|
2015-12-04 21:00:58 +01:00
|
|
|
transition: $swift-ease-in;
|
|
|
|
&.ng-hide {
|
|
|
|
max-height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
md-chip-template {
|
|
|
|
md-icon[ng-click] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-19 03:24:45 +01:00
|
|
|
|
|
|
|
// Message body container of mail composer dialog
|
|
|
|
.sg-mail-editor-content {
|
2020-10-30 20:36:30 +01:00
|
|
|
margin-top: 0;
|
2017-01-19 03:24:45 +01:00
|
|
|
margin-bottom: 0;
|
2017-08-23 17:55:09 +02:00
|
|
|
.cke_chrome {
|
2020-08-18 22:04:21 +02:00
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
.cke_top {
|
|
|
|
top: 0;
|
2020-10-30 20:36:30 +01:00
|
|
|
position: sticky;
|
|
|
|
}
|
|
|
|
// Fix margin of toolbar collapser button
|
|
|
|
a.cke_toolbox_collapser {
|
|
|
|
margin: 4px 2px;
|
2017-08-23 17:55:09 +02:00
|
|
|
}
|
2017-01-19 03:24:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Attachments list in bottom actions section of mail composer dialog
|
2020-04-30 17:46:33 +02:00
|
|
|
md-dialog md-dialog-actions.sg-mail-editor-attachments {
|
2017-08-23 17:55:09 +02:00
|
|
|
border-top: 1px solid $colorGrayLighter;
|
|
|
|
overflow: auto;
|
|
|
|
max-height: 2 * $pitch; // = 128px (3 rows of chips)
|
|
|
|
md-chip {
|
|
|
|
max-width: 4 * $pitch; // = 256px
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
float: left;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
padding-right: 18px; // leave some space for the delete (x) button
|
|
|
|
}
|
|
|
|
.md-chips md-chip .md-chip-remove {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-04-30 17:46:33 +02:00
|
|
|
.msg-header-buttons .md-icon-button {
|
2017-08-23 17:55:09 +02:00
|
|
|
// Attachment button (file upload label)
|
|
|
|
// Lower margins to fit the md-actions max height (52px)
|
|
|
|
margin-bottom: $baseline-grid/2;
|
|
|
|
margin-top: $baseline-grid/2;
|
|
|
|
}
|
2017-01-19 03:24:45 +01:00
|
|
|
}
|
2018-06-28 15:44:33 +02:00
|
|
|
|
|
|
|
// Default styles for HTML parts
|
|
|
|
.SOGoHTMLMail-CSS-Delimiter p {
|
|
|
|
margin: 0 0 1em;
|
|
|
|
}
|