1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-31 07:00:17 -05:00

transition to red buttons in writer for all elements when receiver insecure

This commit is contained in:
Tankred Hase 2014-02-28 13:50:00 +01:00
parent 396906ffd8
commit 441562285c
4 changed files with 7 additions and 11 deletions

View File

@ -105,6 +105,7 @@ define(function(require) {
// set display to insecure while fetching keys
recipient.key = undefined;
recipient.secure = false;
$scope.checkSendStatus();
// verify email address
if (!util.validateEmailAddress(recipient.address)) {
@ -466,7 +467,8 @@ define(function(require) {
ngModule.directive('attachmentBtn', function() {
return function(scope, elm) {
elm.on('click', function() {
elm.on('click touchstart', function(e) {
e.preventDefault();
document.querySelector('#attachment-input').click();
});
};

View File

@ -32,7 +32,7 @@
background-image: none;
box-shadow: none;
top: 1px;
left: 1px;
right: -1px;
}
&.disabled,

View File

@ -70,14 +70,8 @@
right: 0;
padding: em(7.5) em(7.5) em(4) em(7.5);
margin: em(5);
outline: none;
color: $color-grey-lightest;
background-color: $color-blue;
&:hover,
&:focus {
background-color: lighten($color-blue, 10%);
}
font-size: 1em;
outline: 0;
&:active,
&.active {

View File

@ -26,7 +26,7 @@
<input ng-model="subject" class="subject" spellcheck="true" tabindex="2" placeholder="Subject" ng-change="updatePreview()">
</div><!--/.subject-line-->
<input id="attachment-input" type="file" multiple attachment-input>
<button class="btn-attachment" attachment-btn>
<button class="btn btn-attachment" ng-class="{'btn-primary': sendBtnSecure === false}" attachment-btn>
<div data-icon="&#xe003;"></div>
</button><!--/.btn-attachment-->
</div><!--/.subject-box-->