2014-09-23 09:41:37 -04:00
|
|
|
.write {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
@include respond-to(md) {
|
2014-11-05 10:03:48 -05:00
|
|
|
height: 590px; // magic number: chosen to look good
|
2014-09-23 09:41:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Header components
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
|
|
|
.mail-addresses {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > .attachments {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&__subject {
|
|
|
|
position: relative;
|
|
|
|
margin-top: 1.3em;
|
|
|
|
|
|
|
|
input[type=file] {
|
|
|
|
position: absolute;
|
|
|
|
visibility: hidden;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
.input-text {
|
|
|
|
width: 100%;
|
|
|
|
height: 40px;
|
|
|
|
padding-right: 10px + 5px + 30px;
|
|
|
|
}
|
|
|
|
.btn {
|
|
|
|
position: absolute;
|
|
|
|
top: 5px;
|
|
|
|
right: 5px;
|
|
|
|
padding: 0;
|
|
|
|
line-height: 30px;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
font-size: 1em;
|
|
|
|
outline: 0;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Content components
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 100%;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
2014-11-12 12:08:59 -05:00
|
|
|
resize: none;
|
2014-09-23 09:41:37 -04:00
|
|
|
color: $color-grey-dark;
|
|
|
|
line-height: 1.5em;
|
|
|
|
overflow-y: auto;
|
|
|
|
// allow scrolling on iOS
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
// put layer on GPU
|
|
|
|
transform: translatez(0);
|
|
|
|
}
|
|
|
|
}
|