Mailspring/internal_packages/composer/stylesheets/composer.less
Ben Gotow d6336dae08 Squashed commit of deeply broken branch
commit d1c455515e04424d429c87a07aff248a4a767f23
Merge: 72e5536 512f8db
Author: Ben Gotow <bengotow@gmail.com>
Date:   Thu Feb 19 18:42:29 2015 -0800

    Merge sheet and flexbox components, fonts, and more

    Conflicts:
    	static/workspace-view.less

commit 72e553652f5b26a96155c51e04db46baafb916be
Author: Ben Gotow <bengotow@gmail.com>
Date:   Wed Feb 18 12:33:08 2015 -0800

    Start transitioning to a better set of ui-variables (from bootstrap)

commit ed22fb7fe1c6544af44fae69b83e7e63965ddf4d
Author: Ben Gotow <bengotow@gmail.com>
Date:   Wed Feb 18 11:55:58 2015 -0800

    I hate CSS

commit 512f8db414ceef74712c9d63ba5a67b44cf778c4
Author: Ben Gotow <bengotow@gmail.com>
Date:   Mon Feb 16 10:10:44 2015 -0800

    Initial work on top toolbar

commit c2d7a0e0a2f6f6ebe254cca24ad0735336d57b70
Author: Ben Gotow <bengotow@gmail.com>
Date:   Thu Feb 12 18:47:26 2015 -0800

    New UI Prototype interaction / stores for sheets
2015-03-03 09:49:15 -08:00

272 lines
5.5 KiB
Text

// The ui-variables file is provided by base themes provided by Atom.
//
// See https://github.com/atom/atom-dark-ui/blob/master/stylesheets/ui-variables.less
// for a full listing of what's available.
@import "ui-variables";
@import "ui-mixins";
@import "buttons";
.composer-full-window {
width: 100%;
height: 100%;
.composer-outer-wrap {
width: 100%;
height: 100%;
}
.composer-inner-wrap {
.compose-body {
margin-bottom: 0;
position: relative;
.contenteditable-container {
position: absolute;
width: 100%;
min-height: 100%;
div[contenteditable] {
// Ensure that the contentEditable always fills the window,
// but leaves room for the quoted text marker at the bottom.
min-height: calc(~"100% - 30px");
}
}
}
}
}
.toolbar {
@padding: 0.5em;
.btn {
background: transparent;
font-size: 16px;
height: auto;
border-radius: 0;
padding: @padding*0.75 @padding;
margin: 0;
color: rgba(255,255,255, 0.6);
box-shadow: none;
&:first-child {
padding-left: 1.5*@padding;
}
&:last-child {
padding-right: 1.5*@padding;
}
&:hover, &:active {
color: rgba(255,255,255, 1);
background: transparent;
}
}
.preview-btn-icon {
position: relative;
top: 1px;
padding: 0 @padding;
}
}
.composer-inner-wrap {
height: 100%;
display: flex;
flex-flow: column;
padding-bottom: 57px;
position: relative;
a:hover {
cursor: pointer;
}
.floating-toolbar {
z-index: 10;
position: absolute;
background: @background-color-accent;
border-radius: 2px;
color: @text-color-inverse;
.toolbar-pointer {
content: " ";
position: absolute;
width: 0;
height: 0;
top: -13px;
left: 50%;
margin-left: -6px;
border: 7px solid transparent;
border-bottom-color: @background-color-accent;
border-bottom-width: 6px;
}
.floating-toolbar-input {
display: inline;
width: auto;
color: @text-color-inverse;
position: relative;
top: 1px;
}
}
.composer-header {
padding: 11px 15px 5px 15px;
.composer-title {
display: inline-block;
font-weight:@headings-font-weight;
}
.composer-header-actions {
float: right;
color: @text-color-subtle;
font-size: @minor-font-size;
}
.header-action {
padding-left: 1em;
&:hover {
color: @text-color-link;
cursor: pointer;
}
}
}
input, textarea, div[contenteditable] {
position: relative;
z-index: 1;
display: block;
background: inherit;
width: 100%;
resize: none;
border: none;
}
.compose-toolbar-wrap {
display: inline-block;
> button {
margin-left: 5px;
}
}
.compose-toolbar {
display: none;
box-shadow: @standard-shadow;
padding: 1px 1px 2px 1px;
position: absolute;
background: white;
z-index: 2;
bottom: 48px;
margin-left: -37.5px;
}
[disabled] {
background: rgba(0, 0, 0, 0.2);
}
.btn-send {
.btn-variant(@action-color);
margin-right: 15px;
}
.compose-participants-wrap {
padding: 5px 15px 0 15px;
}
.compose-subject-wrap {
margin: 9px 15px 0 15px;
input {
font-size: @major-font-size;
height:30px;
}
}
.compose-body {
flex: 1;
display: flex;
cursor: text;
overflow: auto;
position: relative;
.quoted-text-control {
position: absolute;
bottom: 10px;
left: 15px;
margin: 0;
}
div[contenteditable] {
min-height: 150px;
padding: 0.7em 15px 0 15px;
margin-bottom: 37px;
}
.contenteditable-container {
width: 100%;
}
}
.compose-field {
border-bottom: 1px solid @border-color-divider;
}
.compose-footer {
padding: 10px 15px;
background: @background-color-accent;
position: absolute;
width: 100%;
bottom: 0;
text-align: left;
.btn-icon {
position: relative;
top: 2px;
margin-right:0;
color:rgba(255,255,255, 0.6);
box-shadow:none;
&:hover,&:active {
background-color:transparent;
color:rgba(255,255,255, 1);
}
}
}
// TODO FIXME DRY From stylesheets/message-list.less
.attachments-area {
padding: 0px 15px 0px 15px;
border-top: 1px solid @border-color-divider;
.attachment-file-wrap {
padding-top: 5px;
&.pending, &.started, &.progress {
color: @text-color-subtle;
.attachment-file-actions { visibility: visible; }
.attachment-file-and-name:hover { cursor: default; color: @text-color-subtle; }
}
&.completed, &.success {
color: @text-color-success; // Success state
.attachment-file-actions { visibility: hidden; }
.attachment-file-and-name:hover { cursor: default; color: @text-color-success; }
.attachment-upload-progress { background: @background-color-success; }
}
&.aborted, &.failed {
color: @text-color-error;
.attachment-file-actions { visibility: hidden; }
.attachment-file-and-name:hover { cursor: default; color: @text-color-error; }
.attachment-upload-progress { background: @background-color-error; }
}
}
.attachment-file-actions {
margin-left: 0.4em;
}
}
}
#new-compose-button {
order: 1;
background: @background-color-accent;
padding: 10px 15px 13px 15px;
text-align: center;
.btn-compose {
.btn-variant(@action-color);
}
}