1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 10:52:17 -05:00

Make touchable areas of buttons larger

This commit is contained in:
Tankred Hase 2014-06-27 13:05:05 +02:00
parent 9373bee556
commit c1d9feb391
5 changed files with 37 additions and 14 deletions

View File

@ -104,8 +104,8 @@
font-size: $font-size-base; font-size: $font-size-base;
font-family: $font-family-icons; font-family: $font-family-icons;
line-height: 1; line-height: 1;
height: 2em; height: 2.5em;
width: 2em; width: 2.5em;
text-align: center; text-align: center;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@include respond-to(desktop) { @include respond-to(desktop) {
@ -127,7 +127,7 @@
&.active { &.active {
outline: 0; outline: 0;
top: 2px; top: 2px;
left: 2px; right: -2px;
} }
&:after { &:after {

View File

@ -39,7 +39,7 @@
display: block; display: block;
border: none; border: none;
background: none; background: none;
padding: 0; padding: 0 0 0 40px;
margin: 0; margin: 0;
color: $color-grey-dark; color: $color-grey-dark;
outline: none; outline: none;

View File

@ -12,6 +12,10 @@
flex-shrink: 0; flex-shrink: 0;
cursor: pointer; cursor: pointer;
padding: $padding-vertical $padding-horizontal; padding: $padding-vertical $padding-horizontal;
@include respond-to(mobile) {
padding: ($padding-vertical + 5px) $padding-horizontal;
}
&:before { &:before {
color: $color-blue; color: $color-blue;
font-size: $font-size-bigger; font-size: $font-size-bigger;
@ -27,20 +31,37 @@
vertical-align: middle; vertical-align: middle;
text-shadow: 0px 1px 1px $color-grey-lighter; text-shadow: 0px 1px 1px $color-grey-lighter;
} }
button {
float: right;
margin-top: -0.05em; // for perfect vertical alignment with headline
@include respond-to(desktop) {
display: none;
}
}
&.active { &.active {
background-color: darken($color-white, 10%); background-color: darken($color-white, 10%);
} }
} }
.compose {
position: absolute;
top: $padding-vertical;
right: $padding-horizontal;
margin-top: -0.05em; // for perfect vertical alignment with headline
padding-left: 40px;
&.active {
top: $padding-vertical + 2px;
right: $padding-horizontal - 2px;
}
@include respond-to(desktop) {
display: none;
}
button {
&:active,
&.active {
top: 0;
right: 0;
}
}
}
.search { .search {
flex-shrink: 0; flex-shrink: 0;
padding: 0 $padding-horizontal $padding-vertical $padding-horizontal; padding: 0 $padding-horizontal $padding-vertical $padding-horizontal;

View File

@ -50,7 +50,6 @@
.controls { .controls {
float: right; float: right;
margin: 0 15px 10px;
button { button {
margin-left: 7px; margin-left: 7px;

View File

@ -2,9 +2,12 @@
<!-- nav controll and section headline --> <!-- nav controll and section headline -->
<header data-icon="&#xe004;" wo-touch="state.nav.toggle(true); $event.stopPropagation()"> <header data-icon="&#xe004;" wo-touch="state.nav.toggle(true); $event.stopPropagation()">
<h2>{{state.nav.currentFolder.type}}</h2> <h2>{{state.nav.currentFolder.type}}</h2>
<button wo-touch="state.writer.write(); $event.stopPropagation()" class="btn-icon" title="New mail"></button>
</header> </header>
<div class="compose" wo-touch="state.writer.write(); $event.stopPropagation()">
<button class="btn-icon" title="New mail"></button>
</div>
<div class="search" data-icon="&#xe017;"> <div class="search" data-icon="&#xe017;">
<input class="input-text" type="text" ng-model="searchText" placeholder="Filter..." focus-me="state.mailList.searching"> <input class="input-text" type="text" ng-model="searchText" placeholder="Filter..." focus-me="state.mailList.searching">
</div> </div>