/// MailerUI.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*- .sg-mailbox-list-item:not(.sg-selected) .md-menu { display: none; } .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; } } // 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; } } // Vertical buttons in header area of mail composer dialog .msg-header-buttons { margin-right: -$baseline-grid; } .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"; // folder top: -4px; left: 0px; width: 1em; height: 1em; } .md-icon { border-width: 0; } &.md-checked { .md-container:after { content: "\e2c8"; // folder open } .md-icon { background-color: initial !important; &:after { border-style: none; } } } // Hide the label (which contains an icon) if the checkbox is enabled .. .md-label { display: none; } // .. but show the label and hide the checkbox when disabled (no children) &[disabled] { .md-container { width: 0; &:after { content: ''; } } .md-label { display: inline-block; margin-left: 0; } } } } .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-name { word-break: break-word; } .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; } } } } } // Force wrapping of pre elements in HTML content .mailer_htmlcontent pre { white-space: pre-wrap; word-wrap: break-word; tab-size: 4; } .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-chip-template { md-icon[ng-click] { cursor: pointer; } } } // Message body container of mail composer dialog .sg-mail-editor-content { margin-bottom: 0; .cke_chrome { border-bottom: 0; } } // Attachments list in bottom actions section of mail composer dialog md-dialog .md-actions.sg-mail-editor-attachments { 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; } .md-icon-button { // 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; } }