Use nested rules in less files

pull/5742/merge
Aleksander Machniak 8 years ago
parent bb2b7e001c
commit 056b08fce0

@ -57,106 +57,97 @@ body > #layout {
flex-wrap: nowrap; flex-wrap: nowrap;
height: 100%; height: 100%;
width: 100%; width: 100%;
}
body > #layout > div.sidebar,
body > #layout > div.list {
display: flex;
flex-grow: 2;
flex-direction: column;
min-width: 300px;
max-width: 30%;
border-right: 1px solid @layout-border-color;
}
body > #layout > div.content {
display: flex;
flex-grow: 6;
flex-direction: column;
min-width: 50%;
background-color: @layout-content-background-color;
}
body > #layout > div.sidebar {
min-width: 220px;
background-color: @layout-sidebar-background-color;
}
body > #layout > div.list {
min-width: 300px;
background-color: @layout-list-background-color;
}
body > #layout > div.menu {
width: @taskmenu-width;
background-color: @taskmenu-background-color;
}
body > #layout > div.menu a,
body > #layout > div.menu a:before {
display: block;
width: @taskmenu-width;
}
#layout > div.content > iframe,
#layout > div.content > .content,
#layout > div.content > .content > iframe {
height: 100%;
width: 100%;
overflow: auto;
border: 0;
flex: 1;
}
#layout > div > .scroller {
flex: 1;
}
#layout > .content.only > .scroller { & > div {
overflow: auto; &.sidebar,
} &.list {
display: flex;
#layout > div > .header, flex-grow: 2;
#layout > div > .footer { flex-direction: column;
background-color: @layout-header-background-color; min-width: 300px;
font-size: 1.2em; max-width: 30%;
font-weight: bold; border-right: 1px solid @layout-border-color;
line-height: 2.5em; }
height: 2.5em;
padding: 0 0.25em; &.content {
margin: 0; display: flex;
position: relative; /* for absolute positioning of searchbar */ flex-grow: 6;
overflow: hidden; flex-direction: column;
white-space: nowrap; min-width: 50%;
display: flex; background-color: @layout-content-background-color;
flex-direction: row;
flex-wrap: nowrap; & > iframe,
} & > .content,
#layout > div > .header { & > .content > iframe {
border-bottom: 1px solid #ddd; height: 100%;
} width: 100%;
#layout > div > .footer { overflow: auto;
border-top: 1px solid #ddd; border: 0;
} flex: 1;
}
#layout > div > .header > .header-title { }
flex: 1;
overflow: hidden; &.sidebar {
text-overflow: ellipsis; min-width: 220px;
} background-color: @layout-sidebar-background-color;
}
#taskmenu .special-buttons {
position: absolute; &.list {
bottom: 0; min-width: 300px;
left: 0; background-color: @layout-list-background-color;
} }
#taskmenu .special-buttons a { &.menu {
color: @taskmenu-special-button-color; width: @taskmenu-width;
} background-color: @taskmenu-background-color;
#taskmenu .action-buttons a { a,
color: @taskmenu-action-button-color; a:before {
display: block;
width: @taskmenu-width;
}
}
& > .scroller {
flex: 1;
}
& > .content.only > .scroller {
overflow: auto;
}
& > .header,
& > .footer {
background-color: @layout-header-background-color;
font-size: 1.2em;
font-weight: bold;
line-height: 2.5em;
height: 2.5em;
padding: 0 0.25em;
margin: 0;
position: relative; /* for absolute positioning of searchbar */
overflow: hidden;
white-space: nowrap;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
& > .header {
border-bottom: 1px solid #ddd;
.header-title {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
}
}
& > .footer {
border-top: 1px solid #ddd;
}
}
} }
@ -190,7 +181,7 @@ body > #layout > div.menu a:before {
} }
@media screen and (max-width: @screen-width-small) { @media screen and (max-width: @screen-width-small) {
#layout > div > .header > .toolbar:not(.searchbar), body > #layout > div > .header > .toolbar:not(.searchbar),
body > #layout > div:not(.selected) { body > #layout > div:not(.selected) {
display: none; display: none;
} }
@ -226,9 +217,6 @@ body > #layout > div.menu a:before {
display: inline-block; display: inline-block;
width: 100px; width: 100px;
} }
#taskmenu .special-buttons {
position: relative;
}
} }
@media screen and (max-width: @screen-width-mini) { @media screen and (max-width: @screen-width-mini) {

@ -115,6 +115,11 @@ button, input, select, textarea {
} }
} }
.animated-icon-class {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
/*** Common UI elements ***/ /*** Common UI elements ***/
@ -129,12 +134,14 @@ div.popover-content > .ui.popup {
display: block !important; display: block !important;
} }
body.iframe .formcontent { body.iframe {
padding: 1em; .formcontent {
} padding: 1em;
}
body.iframe .formbuttons { .formbuttons {
padding: 0 1em 1em 1em; padding: 0 1em 1em 1em;
}
} }
.ui-dialog iframe { .ui-dialog iframe {
@ -174,10 +181,10 @@ body.iframe .formbuttons {
#folder-selector { #folder-selector {
overflow-y: auto; overflow-y: auto;
}
#folder-selector li a.virtual { li a.virtual {
opacity: .2; opacity: .2;
}
} }

@ -1,94 +1,96 @@
/* Attachments list */ /* Attachments list */
.attachmentslist li:before { .attachmentslist li {
&:extend(.font-icon-class); &:before {
content: @fa-var-file-o; &:extend(.font-icon-class);
} content: @fa-var-file-o;
}
.attachmentslist li.txt:before,
.attachmentslist li.text:before { &.txt:before,
content: @fa-var-file-text-o; &.text:before {
} content: @fa-var-file-text-o;
}
.attachmentslist li.pdf:before {
content: @fa-var-file-pdf-o; &.pdf:before {
} content: @fa-var-file-pdf-o;
}
.attachmentslist li.odt:before,
.attachmentslist li.doc:before, &.odt:before,
.attachmentslist li.docx:before, &.doc:before,
.attachmentslist li.msword:before { &.docx:before,
content: @fa-var-file-word-o; &.msword:before {
} content: @fa-var-file-word-o;
}
.attachmentslist li.ods:before,
.attachmentslist li.xls:before, &.ods:before,
.attachmentslist li.xlsx:before, &.xls:before,
.attachmentslist li.msexcel:before { &.xlsx:before,
content: @fa-var-file-excel-o; &.msexcel:before {
} content: @fa-var-file-excel-o;
}
.attachmentslist li.rar:before,
.attachmentslist li.zip:before, &.rar:before,
.attachmentslist li.gz:before { &.zip:before,
content: @fa-var-file-zip-o; &.gz:before {
} content: @fa-var-file-zip-o;
}
.attachmentslist li.image:before,
.attachmentslist li.jpg:before, &.image:before,
.attachmentslist li.jpeg:before, &.jpg:before,
.attachmentslist li.png:before { &.jpeg:before,
content: @fa-var-file-image-o; &.png:before {
} content: @fa-var-file-image-o;
}
.attachmentslist li.mp3:before,
.attachmentslist li.audio:before { &.mp3:before,
content: @fa-var-file-audio-o; &.audio:before {
} content: @fa-var-file-audio-o;
}
.attachmentslist li.m4p:before,
.attachmentslist li.video:before { &.m4p:before,
content: @fa-var-file-video-o; &.video:before {
} content: @fa-var-file-video-o;
}
.attachmentslist li.ics:before,
.attachmentslist li.calendar:before { &.ics:before,
/* TODO */ &.calendar:before {
} /* TODO */
}
.attachmentslist li.vcard:before {
content: @fa-var-vcard; &.vcard:before {
} content: @fa-var-vcard;
}
.attachmentslist li.html:before {
content: @fa-var-file-code-o; &.html:before {
} content: @fa-var-file-code-o;
}
.attachmentslist li.eml:before,
.attachmentslist li.rfc822:before { &.eml:before,
/* TODO */ &.rfc822:before {
} /* TODO */
}
.attachmentslist li.odp:before,
.attachmentslist li.otp:before, &.odp:before,
.attachmentslist li.ppt:before, &.otp:before,
.attachmentslist li.pptx:before, &.ppt:before,
.attachmentslist li.ppsx:before, &.pptx:before,
.attachmentslist li.vnd.mspowerpoint:before { &.ppsx:before,
content: @fa-var-file-powerpoint-o; &.vnd.mspowerpoint:before {
} content: @fa-var-file-powerpoint-o;
}
.attachmentslist li.sig:before,
.attachmentslist li.pgp-signature:before, &.sig:before,
.attachmentslist li.pkcs7-signature:before { &.pgp-signature:before,
/* TODO */ &.pkcs7-signature:before {
} /* TODO */
}
.attachmentslist li.application.asc:before {
/* TODO */ &.application.asc:before {
} /* TODO */
}
.attachmentslist li.application.pgp-keys:before {
/* TODO */ &.application.pgp-keys:before {
/* TODO */
}
} }

@ -1,53 +1,58 @@
/*** Folders list widget ***/ /*** Folders list widget ***/
.folderlist li.mailbox .unreadcount { .folderlist {
position: absolute; li {
top: 0; &.mailbox {
right: 0; .unreadcount {
min-width: 2em; position: absolute;
line-height: 1.4em; top: 0;
margin: 0.5em 0.2em; right: 0;
padding: 0 0.3em; min-width: 2em;
background: /* todo */ #1e70bf; line-height: 1.4em;
border-radius: 0.4em; margin: 0.5em 0.2em;
color: @badge-font-color; padding: 0 0.3em;
text-align: center; background: /* todo */ #1e70bf;
font-weight: bold; border-radius: 0.4em;
} color: @badge-font-color;
text-align: center;
font-weight: bold;
}
.folderlist li.mailbox.selected > a .unreadcount { &.selected > a .unreadcount {
background: /* todo */; background: /* todo */;
} }
.folderlist li.mailbox.recent > a .unreadcount { &.recent > a .unreadcount {
background: /* todo */; background: /* todo */;
} }
}
/* icons */ a:before {
&:extend(.font-icon-class);
content: @fa-var-folder-o;
}
.folderlist li a:before { &.inbox a:before {
&:extend(.font-icon-class); content: @fa-var-inbox;
content: @fa-var-folder-o; }
} &.trash a:before {
.folderlist li.inbox a:before { content: @fa-var-trash;
content: @fa-var-inbox; }
} &.trash.empty a:before {
.folderlist li.trash a:before { content: @fa-var-trash-o;
content: @fa-var-trash; }
} &.drafts a:before {
.folderlist li.trash.empty a:before { content: @fa-var-edit;
content: @fa-var-trash-o; }
} &.sent a:before {
.folderlist li.drafts a:before { content: @fa-var-paper-plane;
content: @fa-var-edit; }
} &.junk a:before {
.folderlist li.sent a:before { content: @fa-var-recycle;
content: @fa-var-paper-plane; }
} &.archive a:before {
.folderlist li.junk a:before { content: @fa-var-archive;
content: @fa-var-recycle; }
} }
.folderlist li.archive a:before {
content: @fa-var-archive;
} }

@ -1,83 +1,176 @@
/*** List and treelist widgets ***/ /*** List and treelist widgets ***/
.listing {
tbody td,
li {
display: block;
border-bottom: 1px solid #f4f4f4;
cursor: default;
font-weight: normal;
}
tbody td,
li a {
display: block;
text-decoration: none;
cursor: default;
padding: 0 0.5em;
white-space: nowrap;
vertical-align: middle;
line-height: 2.4em;
color: @list-color;
}
tbody td {
display: table-cell;
outline: none;
}
li.selected,
tr.selected td {
color: @list-selected-color;
background-color: @list-selected-color-background;
}
td.selection {
padding: 0 1em;
width: 3em;
text-align: center;
}
td.selection > input {
vertical-align: middle;
}
}
table.listing { table.listing {
width: 100%; width: 100%;
table-layout: fixed; table-layout: fixed;
} }
.listing tbody td,
.listing li {
display: block;
border-bottom: 1px solid #f4f4f4;
cursor: default;
font-weight: normal;
}
.listing tbody td,
.listing li a {
display: block;
text-decoration: none;
cursor: default;
padding: 0 0.5em;
white-space: nowrap;
vertical-align: middle;
line-height: 2.4em;
color: @list-color;
}
.listing tbody td {
display: table-cell;
outline: none;
}
.listing li.selected,
.listing tr.selected td {
color: @list-selected-color;
background-color: @list-selected-color-background;
}
.listing td.selection {
padding: 0 1em;
width: 3em;
text-align: center;
}
.listing td.selection > input {
vertical-align: middle;
}
ul.listing { ul.listing {
display: block; display: block;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
}
ul.listing li { li {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
position: relative; position: relative;
}
ul.listing li ul { ul {
border-top: 1px solid #f4f4f4; border-top: 1px solid #f4f4f4;
padding-left: 1.5em; padding-left: 1.5em;
}
ul.listing li ul li:last-child { li:last-child {
border-bottom: none; border-bottom: none;
} }
}
ul.listing li input[type=checkbox] { input[type=checkbox] {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0.2em; right: 0.2em;
height: 2.4em; height: 2.4em;
vertical-align: middle; vertical-align: middle;
}
}
} }
/* icons */
.listing.iconized li {
a:before {
&:extend(.font-icon-class);
}
&.preferences > a:before {
content: @fa-var-sliders;
}
&.folders > a:before {
content: @fa-var-folder;
}
&.responses > a:before {
content: @fa-var-comment;
}
&.identities > a:before {
content: @fa-var-at;
}
&.password > a:before {
content: @fa-var-lock;
}
&.addressbook a:before {
content: @fa-var-book;
}
&.contactgroup a:before {
content: @fa-var-group;
}
&.contactsearch a:before {
content: @fa-var-search;
}
&.filter > a:before {
content: @fa-var-filter;
}
&.enigma.keys > a:before {
content: @fa-var-key;
}
/* autocomplete popup */
& > i:before {
&:extend(.font-icon-class);
content: @fa-var-user;
}
&.group > i:before {
content: @fa-var-group;
}
}
.listing.iconized tr {
td:before {
&:extend(.font-icon-class);
}
&.contact.person td.name:before {
content: @fa-var-user;
}
&.general > td.section:before {
content: @fa-var-desktop;
}
&.mailbox > td.section:before {
content: @fa-var-envelope-o;
}
&.mailview > td.section:before {
content: @fa-var-inbox;
}
&.compose > td.section:before {
content: @fa-var-paper-plane;
}
&.addressbook > td.section:before {
content: @fa-var-user;
}
&.folders > td.section:before {
content: @fa-var-folder-o;
}
&.server > td.section:before {
content: @fa-var-server;
}
&.enigma > td.section:before {
content: @fa-var-lock;
}
}
/* selecatable list: e.g. spellcheck language selection */
.listing.iconized.selectable li {
a:before {
&:extend(.font-icon-class);
content: "";
}
a.selected:before {
content: @fa-var-check;
}
}
ul.treelist li div.treetoggle { ul.treelist li div.treetoggle {
position: absolute; position: absolute;
top: 1.2em; top: 1.2em;
@ -86,99 +179,17 @@ ul.treelist li div.treetoggle {
height: 0.8em; height: 0.8em;
line-height: 0.8em; line-height: 0.8em;
cursor: pointer; cursor: pointer;
}
/* icons */
.listing.iconized tr td:before,
.listing.iconized li a:before,
.listing.iconized li > i:before,
ul.treelist li div.treetoggle:before {
&:extend(.font-icon-class);
}
.listing.iconized li.preferences > a:before {
content: @fa-var-sliders;
}
.listing.iconized li.folders > a:before {
content: @fa-var-folder;
}
.listing.iconized li.responses > a:before {
content: @fa-var-comment;
}
.listing.iconized li.identities > a:before {
content: @fa-var-at;
}
.listing.iconized li.password > a:before {
content: @fa-var-lock;
}
.listing.iconized li.addressbook a:before {
content: @fa-var-book;
}
.listing.iconized li.contactgroup a:before {
content: @fa-var-group;
}
.listing.iconized li.contactsearch a:before {
content: @fa-var-search;
}
.listing.iconized tr.contact.person td.name:before {
content: @fa-var-user;
}
.listing.iconized tr.general > td.section:before {
content: @fa-var-desktop;
}
.listing.iconized tr.mailbox > td.section:before {
content: @fa-var-envelope-o;
}
.listing.iconized tr.mailview > td.section:before {
content: @fa-var-inbox;
}
.listing.iconized tr.compose > td.section:before {
content: @fa-var-paper-plane;
}
.listing.iconized tr.addressbook > td.section:before {
content: @fa-var-user;
}
.listing.iconized tr.folders > td.section:before {
content: @fa-var-folder-o;
}
.listing.iconized tr.server > td.section:before {
content: @fa-var-server;
}
.listing.iconized li.filter > a:before {
content: @fa-var-filter;
}
.listing.iconized li.enigma.keys > a:before {
content: @fa-var-key;
}
.listing.iconized tr.enigma > td.section:before {
content: @fa-var-lock;
}
/* autocomplete popup */
.listing.iconized li > i:before {
content: @fa-var-user;
}
.listing.iconized li.group > i:before {
content: @fa-var-group;
}
/* selecatable list: spellcheck language selection */
.listing.iconized.selectable li a:before {
content: "";
}
.listing.iconized.selectable li a.selected:before {
content: @fa-var-check;
}
ul.treelist li div.treetoggle:before {
content: @fa-var-plus-square-o;
font-size: 0.8em;
width: 0.8em;
height: 0.8em;
background-color: white;
}
ul.treelist li div.treetoggle.expanded:before { &:before {
content: @fa-var-minus-square-o; &:extend(.font-icon-class);
content: @fa-var-plus-square-o;
font-size: 0.8em;
width: 0.8em;
height: 0.8em;
background-color: white;
}
&.expanded:before {
content: @fa-var-minus-square-o;
}
} }

@ -6,69 +6,73 @@ table.fixedcopy {
display: none; display: none;
} }
.messagelist td { .messagelist {
border-left: 0; td {
width: 2em; border-left: 0;
vertical-align: top; width: 2em;
} vertical-align: top;
}
.messagelist td.subject {
width: 99%; td.subject {
white-space: wrap; width: 99%;
position: relative; /* for span.date positioning in Firefox */ white-space: wrap;
} position: relative; /* for span.date positioning in Firefox */
.messagelist td.threads { span {
vertical-align: bottom; line-height: 2em;
}
&.date {
.messagelist td.subject span { right: 2px;
line-height: 2em; top: 3px;
} position: absolute;
color: #666; /* TODO */
.messagelist td.subject span.date { }
right: 2px;
top: 3px; &.fromto {
position: absolute; padding-left: 1.5em;
color: #666; /* TODO */ display: block;
} margin-right: 10em;
overflow: hidden;
.messagelist td.subject span.fromto { text-overflow: ellipsis;
padding-left: 1.5em; color: #666; /* TODO */
display: block; }
margin-right: 10em;
overflow: hidden; &.subject {
text-overflow: ellipsis; clear: both;
color: #666; /* TODO */ display: block;
} font-size: 1em;
overflow: hidden;
.messagelist tr.flagged td.subject span.date, text-overflow: ellipsis;
.messagelist tr.flagged td.subject span.fromto { }
color: #ff5c33; /* TODO */ }
} }
.messagelist tr.deleted td.subject span.date, td.threads {
.messagelist tr.deleted td.subject span.fromto { vertical-align: bottom;
color: #ccc; /* TODO */ }
}
td.flags {
.messagelist td.subject span.subject { span {
clear: both; width: 20px;
display: block; height: 20px;
font-size: 1em; display: block;
overflow: hidden; margin-left: 1px;
text-overflow: ellipsis;
} &.flag {
cursor: pointer;
.messagelist td.flags span { }
width: 20px; }
height: 20px; }
display: block;
margin-left: 1px; tr.flagged td.subject span.date,
} tr.flagged td.subject span.fromto {
color: #ff5c33; /* TODO */
.messagelist td.flags span.flag { }
cursor: pointer;
tr.deleted td.subject span.date,
tr.deleted td.subject span.fromto {
color: #ccc; /* TODO */
}
} }
@ -82,45 +86,52 @@ table.fixedcopy {
&:extend(.font-icon-class); &:extend(.font-icon-class);
} }
.messagelist tr.thread td.threads div:before { .messagelist {
content: @fa-var-caret-square-o-right; tr.thread td.threads div:before {
} content: @fa-var-caret-square-o-right;
.messagelist tr.thread.expanded td.threads div:before { }
content: @fa-var-caret-square-o-down; tr.thread.expanded td.threads div:before {
} content: @fa-var-caret-square-o-down;
.messagelist td.subject span.msgicon.status:before { }
content: @fa-var-circle-o; td.subject span.msgicon.status:before {
} content: @fa-var-circle-o;
.messagelist tr.unread td.subject span.msgicon.status:before { }
content: @fa-var-circle; tr.unread td.subject span.msgicon.status:before {
} content: @fa-var-circle;
.messagelist td.subject span.msgicon.unreadchildren:before { }
content: @fa-var-dot-circle-o; td.subject span.msgicon.unreadchildren:before {
} content: @fa-var-dot-circle-o;
.messagelist tr.deleted td.subject span.msgicon.status:before { }
content: @fa-var-ban; td.subject span.msgicon.status.replied:before {
} content: @fa-var-mail-reply;
.messagelist td.subject span.msgicon.status.replied:before { }
content: @fa-var-mail-reply; td.subject span.msgicon.status.forwarded:before {
} content: @fa-var-mail-forward;
.messagelist td.subject span.msgicon.status.forwarded:before { }
content: @fa-var-mail-forward; td.subject span.msgicon.status.replied.forwarded:before {
} content: @fa-var-mail-forward; /* TODO */
.messagelist td.subject span.msgicon.status.replied.forwarded:before { }
content: @fa-var-mail-forward; /* TODO */ tr.deleted td.subject span.msgicon.status:before {
} content: @fa-var-ban;
.messagelist span.attachment span:before { }
content: @fa-var-paperclip;
} span.attachment span {
.messagelist span.attachment span.report:before { &:before {
content: @fa-var-file-text-o; content: @fa-var-paperclip;
} }
.messagelist span.attachment span.encrypted:before { &.report:before {
content: @fa-var-lock; content: @fa-var-file-text-o;
} }
.messagelist span.flagged:before { &.encrypted:before {
content: @fa-var-flag; content: @fa-var-lock;
} }
.messagelist tr:hover span.unflagged:before { }
content: @fa-var-flag-o;
span.flagged:before {
content: @fa-var-flag;
}
tr:hover span.unflagged:before {
content: @fa-var-flag-o;
}
} }

@ -9,20 +9,22 @@
height: auto; height: auto;
max-height: 85%; max-height: 85%;
overflow-y: auto; overflow-y: auto;
}
#messagestack div.voice { div {
position: absolute; &.voice {
top: -1000px; position: absolute;
} top: -1000px;
}
#messagestack div i.icon { i.icon {
font-size: 2em !important; font-size: 2em !important;
} }
#messagestack div a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
}
}
} }
.ui.alert { .ui.alert {
@ -31,29 +33,25 @@
opacity: 0.95; opacity: 0.95;
float: left; float: left;
width: 100%; width: 100%;
padding-left: 0.75em; padding: 0.75em;
}
.ui.alert > i.icon:before { & > i.icon:before {
&:extend(.font-icon-class); &:extend(.font-icon-class);
height: 1em; content: @fa-var-info-circle;
width: 1em; }
line-height: 1em;
content: @fa-var-info-circle;
}
.ui.alert.loading > i.icon:before { &.loading > i.icon:before {
content: @fa-var-circle-o-notch; content: @fa-var-circle-o-notch;
-webkit-animation: fa-spin 2s infinite linear; .animated-icon-class;
animation: fa-spin 2s infinite linear; }
}
.ui.alert.alert-warning > i.icon:before { &.alert-warning > i.icon:before {
content: @fa-var-warning; content: @fa-var-warning;
} }
.ui.alert.alert-danger > i.icon:before { &.alert-danger > i.icon:before {
content: @fa-var-exclamation-circle; content: @fa-var-exclamation-circle;
}
} }

@ -9,39 +9,39 @@
z-index: 10; z-index: 10;
top: 0; top: 0;
right: 0; right: 0;
}
.searchbar > * {
height: 2.5em;
}
.searchbar > form,
.searchbar > a.button.options,
.searchbar > a.button.reset {
display: none;
width: 1%;
}
.searchbar > form,
.searchbar > form > input {
width: 98%;
}
.searchbar input {
border: none;
border-bottom: 1px solid #ddd;
background: transparent;
line-height: 1;
}
.searchbar > a.button.search.active {
color: @searchbar-icon-active-color;
}
.searchbar > a.button.reset:before {
content: @fa-var-remove;
}
.searchbar > a.button.options:before { & > * {
content: @fa-var-angle-down; height: 2.5em;
}
& > form,
& > a.button.options,
& > a.button.reset {
display: none;
width: 1%;
}
& > form,
& > form > input {
width: 98%;
}
input {
border: none;
border-bottom: 1px solid #ddd;
background: transparent;
line-height: 1;
}
& > a {
&.button.search.active {
color: @searchbar-icon-active-color;
}
&.button.reset:before {
content: @fa-var-remove;
}
&.button.options:before {
content: @fa-var-angle-down;
}
}
} }

@ -1,49 +1,68 @@
/*** Common UI elements ***/ /*** Common UI elements ***/
#taskmenu a { #taskmenu {
text-decoration: none; a {
padding: 0.4em 0; text-decoration: none;
} padding: 0.4em 0;
}
#taskmenu a.button, a.button {
#taskmenu a.button:before { display: block;
display: block; width: 60px;
width: 60px; text-align: center;
text-align: center;
}
/* Icons */ &:before {
&:extend(.font-icon-class);
font-size: 1.5em;
margin-bottom: 0.1em;
}
#taskmenu a.button:before { &.mail:before {
&:extend(.font-icon-class); content: @fa-var-envelope;
font-size: 1.5em; }
margin-bottom: 0.1em; &.addressbook:before {
} content: @fa-var-user;
}
&.settings:before {
content: @fa-var-cog;
}
&.help:before {
content: @fa-var-life-bouy;
}
&.logout:before {
content: @fa-var-power-off;
}
&.about:before {
content: @fa-var-question;
}
&.logout:hover {
color: @taskmenu-logout-button-hover-color;
}
&.refresh:before {
content: @fa-var-refresh;
}
&.compose:before {
content: @fa-var-edit;
}
}
#taskmenu a.button.mail:before { .special-buttons {
content: @fa-var-envelope; position: absolute;
} bottom: 0;
#taskmenu a.button.addressbook:before { left: 0;
content: @fa-var-user;
} @media screen and (max-width: @screen-width-xs) {
#taskmenu a.button.settings:before { position: relative;
content: @fa-var-cog; }
}
#taskmenu a.button.help:before { a {
content: @fa-var-life-bouy; color: @taskmenu-special-button-color;
} }
#taskmenu a.button.logout:before { }
content: @fa-var-power-off;
} .action-buttons {
#taskmenu a.button.about:before { a {
content: @fa-var-question; color: @taskmenu-action-button-color;
} }
#taskmenu a.button.logout:hover { }
color: @taskmenu-logout-button-hover-color;
}
#taskmenu a.button.refresh:before {
content: @fa-var-refresh;
}
#taskmenu a.button.compose:before {
content: @fa-var-edit;
} }

Loading…
Cancel
Save