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:
parent
9373bee556
commit
c1d9feb391
@ -104,8 +104,8 @@
|
||||
font-size: $font-size-base;
|
||||
font-family: $font-family-icons;
|
||||
line-height: 1;
|
||||
height: 2em;
|
||||
width: 2em;
|
||||
height: 2.5em;
|
||||
width: 2.5em;
|
||||
text-align: center;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
@include respond-to(desktop) {
|
||||
@ -127,7 +127,7 @@
|
||||
&.active {
|
||||
outline: 0;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
right: -2px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
|
@ -39,7 +39,7 @@
|
||||
display: block;
|
||||
border: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
padding: 0 0 0 40px;
|
||||
margin: 0;
|
||||
color: $color-grey-dark;
|
||||
outline: none;
|
||||
|
@ -12,6 +12,10 @@
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
padding: $padding-vertical $padding-horizontal;
|
||||
@include respond-to(mobile) {
|
||||
padding: ($padding-vertical + 5px) $padding-horizontal;
|
||||
}
|
||||
|
||||
&:before {
|
||||
color: $color-blue;
|
||||
font-size: $font-size-bigger;
|
||||
@ -27,20 +31,37 @@
|
||||
vertical-align: middle;
|
||||
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 {
|
||||
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 {
|
||||
flex-shrink: 0;
|
||||
padding: 0 $padding-horizontal $padding-vertical $padding-horizontal;
|
||||
|
@ -50,7 +50,6 @@
|
||||
|
||||
.controls {
|
||||
float: right;
|
||||
margin: 0 15px 10px;
|
||||
|
||||
button {
|
||||
margin-left: 7px;
|
||||
|
@ -2,9 +2,12 @@
|
||||
<!-- nav controll and section headline -->
|
||||
<header data-icon="" wo-touch="state.nav.toggle(true); $event.stopPropagation()">
|
||||
<h2>{{state.nav.currentFolder.type}}</h2>
|
||||
<button wo-touch="state.writer.write(); $event.stopPropagation()" class="btn-icon" title="New mail"></button>
|
||||
</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="">
|
||||
<input class="input-text" type="text" ng-model="searchText" placeholder="Filter..." focus-me="state.mailList.searching">
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user