Skip to content
Snippets Groups Projects
mail.scss 9.93 KiB
Newer Older
.loading {
	position: absolute;
	left: 50%;
.emptycontent {
	padding-top: 30vh;
	margin-top: 0px;
}
.emptycontent > h2 {
	padding-top: 20px;
.container {
	position: relative;
	width: 100%;
	height: 100%;
}

Christoph Wurst's avatar
Christoph Wurst committed
.folders .ui-droppable-active {
	background-color: rgb(240, 240, 240);
}

.folder.no-select {
	cursor: not-allowed;
}
/* ACCOUNT FORM */
#account-form {
	top: 15%;
	margin: 0 auto;
	padding-top: 30px;
Thomas Müller's avatar
Thomas Müller committed
}
#mail-settings {
	#account-form {
		margin: 0;
		padding-top: 0;
	}
}
@media only screen and (max-height: 400px) {
	#account-form #emptycontent {
		margin-top: 0px;
	}
}
@media only screen and (min-height: 401px) and (max-height: 600px) {
	#account-form #emptycontent {
		margin-top: 2vh;
	}
}
@media only screen and (min-height: 601px) {
	#account-form #emptycontent {
	text-align: center;
	position: relative;
	width: 300%;
	left: -100%;
	margin-bottom: 20px;
Thomas Müller's avatar
Thomas Müller committed
}
	width: 100%;
	box-sizing: border-box;
}
#account-form .toggle-manual-mode {
	background-position: right;
	padding-right: 16px;
	margin-left: 6px;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
	opacity: .3;
}

#setup-imap-ssl-mode,
#setup-smtp-ssl-mode {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	background-color: transparent;
	border: none;
#connect-loading {
	position: absolute;
	top: 206px;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	height: 30px;
Thomas Müller's avatar
Thomas Müller committed
}
/* app navigation */

/* do not display empty folders in the sidebar */
.app-navigation .empty {
Thomas Müller's avatar
Thomas Müller committed

.app-navigation .navigation-account:not(:first-child) {
/* do not overlap collapse icon with special use icon */
.app-navigation .special-inbox .collapse,
.app-navigation .special-drafts .collapse,
.app-navigation .special-sent .collapse,
.app-navigation .special-trash .collapse {
.app-navigation .special-inbox:hover .collapse,
.app-navigation .special-inbox:focus .collapse,
.app-navigation .special-drafts:hover .collapse,
.app-navigation .special-drafts:focus .collapse,
.app-navigation .special-sent:hover .collapse,
.app-navigation .special-sent:focus .collapse,
.app-navigation .special-trash:hover .collapse,
.app-navigation .special-trash:focus .collapse {
#accounts-list li.collapse-folders a {
	color: var(--color-text-maxcontrast);
}
Damien's avatar
Damien committed
#mail-messages #emptycontent.emptycontent-search {
	position: static;
}
Damien's avatar
Damien committed
#mail-messages #emptycontent.emptycontent-search h2 {
Damien's avatar
Damien committed
#mail-messages #emptycontent {
.mail-account-email {
	opacity: .5;
	margin: initial;
	font-size: 100%;
	white-space: nowrap;
.mail-account-email:first-child {
	display: none;
.account-toggle-collapse {
	opacity: .5;
}

.mailaccount-list li {
	padding: 10px 0;
.mailaccount-list .mail-account-name {
	display: inline-block;
	width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
}
Steffen Lindner's avatar
Steffen Lindner committed
.mailaccount-list .actions {
Jan-Christoph Borchardt's avatar
Jan-Christoph Borchardt committed
	display: inline-flex;
	position: absolute;
	right: 0;
	min-height: 16px;
	min-width: 16px;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";
	opacity: .25;
}
.mailaccount-list .actions:hover,
.mailaccount-list .actions:focus {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	opacity: .5;
Damien's avatar
Damien committed
#mail-messages {
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	border-right: 1px solid var(--color-border);
	position: sticky;
	background: -moz-radial-gradient(top, ellipse cover, var(--color-main-background), rgba(255,255,255,0) 70%);
	background: -webkit-radial-gradient(top, ellipse cover, var(--color-main-background),rgba(255,255,255,0) 70%);
	background: radial-gradient(ellipse at top, var(--color-main-background),rgba(255,255,255,0) 70%);
.app-navigation .msg.success {
	color: #fff;
	background-color: var(--color-success);
	padding: 3px;
}
.app-navigation .msg.error {
	color: #fff;
	background-color: var(--color-error);
skjnldsv's avatar
skjnldsv committed
/* autocomplete list */
.ui-autocomplete .ui-menu-item a.mail-recipient-autocomplete {
	margin: 0px;
	font-weight: normal !important;
skjnldsv's avatar
skjnldsv committed
	display: flex;
	align-content: center;
	align-items: center;
skjnldsv's avatar
skjnldsv committed
}
.ui-autocomplete .ui-menu-item a.mail-recipient-autocomplete span {
	margin-left: 10px;
}
.ui-autocomplete {
	padding-left: 16px !important;
	border-radius: 0 !important;
	border-left: none;
	border-right: none;
	z-index: 1000;
skjnldsv's avatar
skjnldsv committed

.icon-starred[data-starred="false"]:hover {
GretaD's avatar
GretaD committed
	background-image: var(--icon-star-dark-fc0) !important;
.icon-starred[data-starred="false"]:not(:hover) {
	background-image: var(--icon-star-000) !important;
.unread {
	font-weight: bold;
/* make sure subfolders of unread folders are not bolded as well */
.unread ul {
	font-weight: normal;
}
	background-size: 16px;
	display: inline-block;
	position: absolute;
}
/* only show star on hover of row */
.star.icon-star {
	display: none;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}
.star.icon-star:hover,
.star.icon-star:focus {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	opacity: 1;
.icon-add {
	display: inline-block;
	vertical-align: text-top;
}
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
	opacity: .6;
/* compose (handling mailto links) */
.compose {
	width: 60%;
	margin: 0 auto;
/* settings */
.mailaccount-list .mail-account-name {
	display: inline-block;
	width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mailaccount-list .actions {
	opacity: .5;
}
GretaD's avatar
GretaD committed
@include icon-black-white('inbox', 'mail', 1);
@include icon-black-white('important', 'mail', 1);

Thomas Müller's avatar
Thomas Müller committed
.icon-flagged {
	@include icon-color('star', 'mail', $color-black);
GretaD's avatar
GretaD committed
@include icon-black-white('drafts', 'mail', 1);
@include icon-black-white('sent', 'mail', 1);
@include icon-black-white('archive', 'mail', 1);
@include icon-black-white('junk', 'mail', 1);
@include icon-black-white('trash', 'mail', 1);
@include icon-black-white('reply', 'mail', 1);
@include icon-black-white('reply-all', 'mail', 1);
@include icon-black-white('forward', 'mail', 1);

// FIXES for core apps.scss

		> .navigation-account > li,
		> .navigation-account > .folders > li,
		> .navigation-account > .folders > li > .folders > .folders > li {
			display: inline-flex;
			flex-wrap: wrap;
			order: 1;
			flex-shrink: 0;

			/* Pinned-to-bottom entries */
			&.pinned {
				order: 2;
				&.first-pinned {
					margin-top: auto !important;
				}
			}

			> a,
			> .app-navigation-entry-deleted {
				/* Ugly hack for overriding the main entry link */
				padding-left: 44px !important;
			}
			> .app-navigation-entry-edit {
				/* Ugly hack for overriding the main entry link */
				/* align the input correctly with the link text
				   44px-6px padding for the input */
				padding-left: 38px !important;
			}

			&:focus,
			&:hover,
			&.active,
			a.selected {
				&,
				> a {
					opacity: 1;
					box-shadow: inset 2px 0 $color-primary;
				}
			}

			/* align loader */
			&.icon-loading-small:after {
				left: 22px;
				top: 22px;
			}

			/* hide and animate deletion/collapse of subitems */
			&.deleted,
			&.collapsible:not(.open) {
					opacity: 0;
					max-height: 0;
					/* bezier override the hide/slow effect due to the 2000 max-height */
					transition: max-height 1000ms cubic-bezier(0, 1, 0, 1),
								opacity 250ms ease-in-out;
				}
			}

			/* Second level nesting for lists */
			> ul {
				flex: 1 0 100%;
				padding-left: 62px;
				width: inherit;
				transition: max-height 2000ms ease-in-out,
							opacity 250ms ease-in-out;
				max-height: 9999px;
				opacity: 1;
				> li {
					display: inline-flex;
					flex-wrap: wrap;
					&:focus,
					&:hover,
					&.active,
					a.selected {
						&,
						> a {
							opacity: 1;
						}
					}

					/* align loader */
					&.icon-loading-small:after {
						left: -10px;
					}

					/* Submenu fix for icon */
					> a[class*='icon-'],
					> a[style*='background-image'],
					.app-navigation-entry-bullet {
						margin-left: -32px; /* 44px padding - 12px padding */
					}

					/* Submenu fix for bullet */
					> .app-navigation-entry-bullet {
						left: -32px;/* 44px padding - 12px padding */
					}
				}
			}
		}
		/* Menu and submenu */
		> .navigation-account > li,
		> .navigation-account > .folders > li,
		> .navigation-account > .folders > li > .folders > .folders > li {
			position: relative;
			width: 100%;
			box-sizing: border-box;
			/* hide icons if loading */
			&.icon-loading-small {
				> a,
				> .app-navigation-entry-bullet {
					background: none !important;
				}
			}
			/* Main entry link */
			> a {
				background-size: 16px 16px;
				background-position: 14px center;
				background-repeat: no-repeat;
				display: block;
				justify-content: space-between;
				line-height: 44px;
				min-height: 44px;
				padding: 0 12px;
				overflow: hidden;
				box-sizing: border-box;
				white-space: nowrap;
				text-overflow: ellipsis;
				opacity: .57;
				flex: 1 1 0;
				z-index: 100; /* above the bullet */
				/* TODO: forbid using img as icon in menu? */
				&:first-child img {
				    margin-right: 11px;
				    width: 16px;
				    margin-left: -30px;
				}
			}

			/* Bullet icon */
			> .app-navigation-entry-bullet {
				position: absolute;
				display: block;
				margin: 16px;
				width: 12px;
				height: 12px;
				border: none;
				border-radius: 50%;
				cursor: pointer;
			}

			/* popover fix the flex positionning of the li parent */
			> .app-navigation-entry-menu {
				top: 44px;
			}
	.collapsible > .collapse {
		z-index: 500;
	}