You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
roundcubemail/skins/elastic/styles/widgets/messages.less

179 lines
3.8 KiB
Plaintext

/**
* Roundcube webmail styles for the Elastic skin
*
* Copyright (c) 2017, The Roundcube Dev Team
*
* The contents are subject to the Creative Commons Attribution-ShareAlike
* License. It is allowed to copy, distribute, transmit and to adapt the work
* by keeping credits to the original authors in the README.md file.
* See http://creativecommons.org/licenses/by-sa/3.0/ for details.
*/
/*** UI Messages ***/
#messagestack {
position: absolute;
bottom: .5em;
right: .7em;
z-index: 102; // needs to be above .ui-widget-overlay
width: 320px;
height: auto;
max-height: 85%;
@media screen and (max-width: @screen-width-xs) {
left: 0;
right: 0;
bottom: 0;
width: auto;
}
div {
&.voice {
position: absolute;
top: -1000px;
}
i.icon {
font-size: 1.5em !important;
}
a:hover {
text-decoration: underline;
cursor: pointer;
}
}
}
// .boxwarning/.boxerror/.boxinformation classes are converted to .ui.alert in bootstrap_init()
.ui.alert {
margin: 0;
opacity: .95;
float: left;
width: 100%;
padding: .75em;
color: @color-message;
border: 1px solid @color-message-border;
// box-shadow: 1px 1px 2px @color-message-shadow;
background-color: @color-message-background;
display: flex;
align-items: center;
@media screen and (max-width: @screen-width-xs) {
box-shadow: none;
border: 0;
border-top: 2px solid #fff;
border-radius: 0;
min-height: 4.2rem;
}
@media screen and (min-width: (@screen-width-xs + 1px)) {
&:not(:last-child) {
margin-bottom: .2rem;
}
}
span {
margin: auto 0;
}
&.loading {
color: @color-message-loading;
}
& > i.icon {
line-height: 1;
color: @color-message-information;
margin: auto 0;
}
& > i.icon:before {
&:extend(.font-icon-class);
content: @fa-var-info-circle;
margin-right: .6rem;
width: 1em;
}
&.loading > i.icon:before {
content: @fa-var-circle-notch;
.animated-icon-class;
color: @color-message-loading;
}
&.alert-success > i.icon:before {
content: @fa-var-check-circle;
color: @color-message-success;
}
&.alert-warning > i.icon:before {
content: @fa-var-exclamation-triangle;
color: @color-message-warning;
}
&.alert-danger > i.icon:before {
content: @fa-var-exclamation-circle;
color: @color-message-error;
}
&.vcardattachment > i.icon:before {
content: @fa-var-address-card; // vcard_attachments plugin
}
// This works with following structure: <i> <span> [button].
// <span> here is a one-line text, and button can be anything but <span>.
&.aligned-buttons {
display: flex;
span {
.overflow-ellipsis;
flex: 1;
white-space: nowrap;
line-height: 2.6;
}
}
a:not(.btn) {
color: @color-message-link;
font-weight: normal;
}
h3 {
font-weight: bold;
font-size: 1.2rem;
}
p {
margin: 1rem 0;
}
&.boxerror,
&.boxinformation,
&.boxwarning {
float: none;
border-radius: 0;
box-shadow: none;
border: none;
padding: .5em;
i.icon {
font-size: 1.5em !important;
}
& + :not(.boxwarning) {
margin-top: 1rem;
}
}
&.boxerror {
background-color: @color-message-error-background;
}
&.boxinformation {
background-color: @color-message-information-background;
}
&.boxwarning {
background-color: @color-message-warning-background;
}
}