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/toolbar.less

378 lines
8.1 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
7 years ago
* by keeping credits to the original authors in the README.md file.
* See http://creativecommons.org/licenses/by-sa/3.0/ for details.
*/
/*** Toolbar widget ***/
.toolbar {
&.listing a,
a {
text-decoration: none;
cursor: pointer !important; /* TODO: re-consider .listing class use on toolbar */
color: @color-toolbar-button;
}
a.button {
padding: 0 .3em;
display: inline-block;
border: 0 !important;
&:before {
&:extend(.font-icon-class);
display: inline;
float: none;
}
&.reply:before {
content: @fa-var-mail-reply;
}
&.reply-all:before {
content: @fa-var-mail-reply-all;
}
&.forward:before {
content: @fa-var-mail-forward;
}
&.delete:before {
content: @fa-var-trash-o;
}
&.markmessage:before {
content: @fa-var-tag;
}
&.more:before {
content: @fa-var-ellipsis-h;
}
&.dropdown:before {
content: @fa-var-caret-down;
}
&.settings:before {
content: @fa-var-cog;
}
&.move:before {
content: @fa-var-arrows;
}
&.print:before {
content: @fa-var-print;
}
&.search:before {
content: @fa-var-search;
}
&.upload:before,
&.import:before {
content: @fa-var-upload;
}
&.download:before,
&.export:before {
content: @fa-var-download;
}
&.compose:before {
content: @fa-var-edit;
}
&.archive:before {
content: @fa-var-archive;
}
&.enigma:before,
&.encrypt:before {
content: @fa-var-lock;
}
&.firstpage:before {
content: @fa-var-fast-backward;
}
&.prevpage:before {
content: @fa-var-backward;
}
&.nextpage:before {
content: @fa-var-forward;
}
&.lastpage:before {
content: @fa-var-fast-forward;
}
&.send:before {
content: @fa-var-paper-plane;
}
&.back:before {
content: @fa-var-arrow-left;
}
&.closewin:before {
content: @fa-var-window-close;
}
&.save:before {
content: @fa-var-floppy-o;
}
&.attach:before {
content: @fa-var-paperclip;
}
&.spellcheck:before {
content: @fa-var-magic; /* TODO */
}
&.signature:before {
content: @fa-var-at; /* TODO */
}
&.responses:before {
content: @fa-var-comment;
}
}
.dropbutton {
a.button.dropdown {
7 years ago
font-size: 75%;
span.inner {
display: none;
}
}
}
& > .spacer {
display: inline-block;
width: 1.2em;
}
}
#layout > .sidebar,
#layout > .list {
7 years ago
span.inner {
display: none;
}
}
.header {
a.button {
color: @color-font;
}
.buttons {
display: block;
button {
display: block;
float: left;
cursor: pointer;
color: @color-toolbar-button;
background-color: transparent;
border: 0;
padding: 0;
height: @layout-touch-header-height;
line-height: @layout-touch-header-height;
width: 2.5em;
&:before {
font-size: 1.75rem;
}
}
}
}
.popupmenu.toolbar.listing {
a.button:before {
display: inline-block;
}
.dropbutton {
display: flex;
a.button:first-child {
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
a.button.dropdown {
font-size: 100%;
cursor: pointer;
&:before {
content: @fa-var-angle-right;
margin-left: .5em;
margin-right: 0;
}
span.inner {
display: none;
}
}
}
.spacer {
height: 1px;
display: block;
}
li:last-child {
border: 0;
}
}
.toolbarmenu li {
&.separator {
/* TODO: all separator properties */
line-height: 1.5em;
font-size: .75em;
padding: 0 .5rem;
color: #888;
label {
margin: 0; /* Unsets Bootstrap label margin, bug? */
}
}
a {
opacity: .5;
&.active {
opacity: 1;
&:hover {
color: @color-toolbarmenu-hover;
background-color: @color-toolbarmenu-hover-background;
}
}
}
&:last-child {
border-bottom: none;
}
a:before {
&:extend(.font-icon-class);
}
a.print:before {
content: @fa-var-print;
}
a.copy:before {
content: @fa-var-copy;
}
a.move:before {
content: @fa-var-arrows;
}
a.source:before {
content: @fa-var-flask;
}
a.download:before {
content: @fa-var-download;
}
a.extwin:before {
content: @fa-var-external-link;
}
a.edit:before {
content: @fa-var-edit; /* TODO: edit.asnew */
}
8 years ago
a.rename:before {
content: @fa-var-pencil; /* TODO: better icon? */
}
a.read:before {
content: @fa-var-star-o;
}
a.unread:before {
content: @fa-var-star;
}
a.flag:before {
content: @fa-var-flag;
}
a.unflag:before {
content: @fa-var-flag-o;
}
a.filterlink:before {
content: @fa-var-filter;
}
a.reply.list:before,
a.reply.all:before {
content: @fa-var-mail-reply-all;
}
a.forward:before,
a.forward.bounce:before,
a.forward.attachment:before,
a.forward.inline:before {
content: @fa-var-mail-forward;
}
a.download.mbox:before,
a.download.eml:before,
a.download.maildir:before {
content: @fa-var-download;
}
7 years ago
a.export.selection:before,
a.export.all:before {
content: @fa-var-download;
}
}
@media screen and (min-width: (@screen-width-small + 1px)) {
ul.toolbar {
margin: 0;
flex: 1;
text-align: right;
7 years ago
font-size: 1rem;
a.button {
height: @layout-header-height;
min-width: 3.5rem;
max-width: 6rem;
padding: .45rem;
text-align: center;
text-overflow: ellipsis;
overflow-x: hidden;
line-height: 1.5;
&:before {
margin: 0;
line-height: 1.75;
}
&:not(.disabled):focus,
&:not(.disabled):hover {
background-color: @color-toolbar-button-background-hover;
outline: 0;
}
7 years ago
}
7 years ago
a span.inner {
font-size: 90%;
}
&.listing.iconized li a:before {
height: 1.75rem;
float: none;
display: block;
width: auto;
}
.dropbutton {
height: @layout-header-height;
display: inline-block;
&:hover {
background-color: @color-toolbar-button-background-hover;
7 years ago
}
a.button.dropdown {
min-width: 1.1rem;
padding: 0 .3rem;
&:hover {
background-color: darken(@color-toolbar-button-background-hover, 5%);
7 years ago
}
&:before {
height: @layout-header-height;
line-height: 4.2;
}
}
}
}
ul.toolbar > li {
display: inline-block;
}
7 years ago
ul.toolbar.listing li {
border: 0;
}
}