mail/src/sass/views/_write.scss

169 lines
3.8 KiB
SCSS
Raw Normal View History

2013-09-18 16:05:51 -04:00
.view-write {
height: 100%;
2013-09-18 16:05:51 -04:00
margin: 0px;
padding: 0px;
2013-09-18 16:05:51 -04:00
color: $color-grey-dark;
2013-10-05 10:07:42 -04:00
overflow-y: hidden;
display: flex;
flex-direction: column;
2013-09-18 16:05:51 -04:00
@include respond-to(desktop) {
// this number depends on max-height set on .lightbox
height: 590px; // magic number
2013-09-18 16:05:51 -04:00
}
2014-06-17 11:39:28 -04:00
p[field] input {
border: 0;
outline: none;
2013-09-18 16:05:51 -04:00
}
.mail-addresses {
2014-04-22 07:03:54 -04:00
flex-shrink: 0;
margin-top: 10px;
p {
position: relative;
padding-left: 3em;
}
label {
position: absolute;
top: 0;
left: 0;
width: 3em;
}
.mail-addresses-more {
position: relative;
float: right;
margin: 0.4em 0;
z-index: 1;
button {
display: inline-block;
background: none;
padding: 0 0.5em;
margin: 0;
text-decoration: none;
color: $color-black;
transition: color 0.3s;
border: 0;
outline: 0;
&:hover,
&:focus {
color: $color-blue;
text-decoration: underline;
}
&.ng-animate {
transition: none;
}
}
}
2013-09-18 16:05:51 -04:00
}
.subject-box {
2014-04-22 07:03:54 -04:00
flex-shrink: 0;
2014-02-06 03:13:31 -05:00
position: relative;
margin: 20px 0 7px;
2014-02-06 03:13:31 -05:00
input[type=file] {
visibility: hidden;
width: 0;
height: 0;
2014-06-17 11:39:28 -04:00
position: absolute;
}
.input-text {
font-weight: bold;
width: 100%;
height: 40px;
padding-right: 10px + 5px + 30px;
2014-02-06 03:13:31 -05:00
}
.btn-attachment {
position: absolute;
2014-06-17 11:39:28 -04:00
top: 5px;
right: 5px;
padding: 0;
line-height: 30px;
width: 30px;
height: 30px;
font-size: 1em;
outline: 0;
2014-02-06 03:13:31 -05:00
2014-06-17 11:39:28 -04:00
&:before {
padding: 0;
}
2014-02-06 03:13:31 -05:00
&:active,
&.active {
2014-06-17 13:49:28 -04:00
top: 6px;
right: 4px;
2014-02-06 03:13:31 -05:00
}
}
2014-02-05 18:41:08 -05:00
}
.attachments-box {
2014-04-22 07:03:54 -04:00
flex-shrink: 0;
2014-02-05 18:41:08 -05:00
position: relative;
margin: 0 0 5px 0;
width: inherit;
border: 1px;
border-style: solid;
border-color: $color-grey-lighter;
min-height: em(44);
.attachment {
2014-02-06 03:13:31 -05:00
height: 32px;
border-radius: 16px;
2014-02-05 18:41:08 -05:00
vertical-align: middle;
margin: 5px 0 5px 5px;
padding: 5px 5px 5px 10px;
border: 1px;
border-style: solid;
border-color: $color-grey-lighter;
cursor: default;
2014-02-06 03:13:31 -05:00
display: inline-block;
2014-02-05 18:41:08 -05:00
span {
font-size: 14px;
color: $color-grey-input;
vertical-align: middle;
}
.close {
margin-left: 5px;
&:hover,
&:focus {
color: darken($color-grey, 10%);
cursor: pointer;
}
}
&:hover,
&:focus {
background-color: darken($color-white, 2%);
}
}
2013-09-18 16:05:51 -04:00
}
textarea {
margin-top: 13px;
2014-04-22 07:03:54 -04:00
flex-grow: 1;
width: 100%;
border: none;
outline: none;
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);
2013-09-18 16:05:51 -04:00
}
.send-control {
position: absolute;
bottom: 15px;
right: 15px;
2013-09-18 16:05:51 -04:00
}
}