diff --git a/skins/elastic/styles/styles.less b/skins/elastic/styles/styles.less index 400c8b5a2..b76451dd4 100644 --- a/skins/elastic/styles/styles.less +++ b/skins/elastic/styles/styles.less @@ -179,36 +179,6 @@ html.iframe body { } -/* TODO: review when decided what css framework to use */ -table.propform { - width: 100%; - - .row { - margin-right: 0; /* without these the form is too wide causing horizontal scrollbar appearence */ - margin-left: 0; - } -} - -/* Some common icons for "iconized inputs" */ -.input-group-addon.icon { - - &:before { - &:extend(.font-icon-class); - margin: 0; - line-height: 1; - } - &.user:before { - content: @fa-var-user; - } - &.pass:before { - content: @fa-var-lock; - } - &.host:before { - content: @fa-var-home; - } -} - - /*** Widgets ***/ @import "widgets/buttons.less"; @@ -218,6 +188,7 @@ table.propform { @import "widgets/toolbar.less"; @import "widgets/searchbar.less"; @import "widgets/lists.less"; +@import "widgets/forms.less"; @import "widgets/messagebody.less"; @import "widgets/googiespell.less"; diff --git a/skins/elastic/styles/widgets/buttons.less b/skins/elastic/styles/widgets/buttons.less index 0a26a0147..dea7e7c4a 100644 --- a/skins/elastic/styles/widgets/buttons.less +++ b/skins/elastic/styles/widgets/buttons.less @@ -79,6 +79,9 @@ a.button.icon { &.back-list-button:before { content: @fa-var-arrow-left; } + &.remove:before { + content: @fa-var-close; + } &.dropdown:before { content: @fa-var-caret-down; font-size: 1em; diff --git a/skins/elastic/styles/widgets/forms.less b/skins/elastic/styles/widgets/forms.less new file mode 100644 index 000000000..ae893c559 --- /dev/null +++ b/skins/elastic/styles/widgets/forms.less @@ -0,0 +1,77 @@ +/*** Common form elements style ***/ + + +/* TODO: review when decided what css framework to use */ +table.propform { + width: 100%; + + .row { + margin-right: 0; /* without these the form is too wide causing horizontal scrollbar appearence */ + margin-left: 0; + } +} + +/* Some common icons for "iconized inputs" */ +.input-group-addon.icon { + + &:before { + &:extend(.font-icon-class); + margin: 0; + line-height: 1; + } + &.user:before { + content: @fa-var-user; + } + &.pass:before { + content: @fa-var-lock; + } + &.host:before { + content: @fa-var-home; + } +} + + +td.editfield { width: 99%; /* TODO */ } + + +/*** Smart recipient input field ***/ + +.recipient-input { + min-height: 2.4em; +/* padding: 0.2em 0.5em; */ + + .recipient { + border: 1px solid #ddd; /* TODO */ + background-color: #f4f4f4; /* TODO */ + border-radius: 0.25em; + padding: 0 0.25em; + margin-right: 0.2em; + display: inline-block; + white-space: nowrap; + } + + .name { + max-width: 25em; + display: inline-block; + line-height: 1.1; + padding: 0.25em; + vertical-align: middle; + overflow: hidden; + text-overflow: ellipsis; + } + + .email { + text-indent: -5000rem; + display: inline-block; + width: 0; + } + + a.button.icon:before { + font-size: 0.9em; + float: initial; + display: inline-block; + width: 1em; + margin: 0; + cursor: pointer; + } +} diff --git a/skins/elastic/templates/compose.html b/skins/elastic/templates/compose.html index f9f7b90cb..72e61c8cc 100644 --- a/skins/elastic/templates/compose.html +++ b/skins/elastic/templates/compose.html @@ -101,7 +101,7 @@