Browse Source

Improved .right .btn

pull/29/head
Evan Theurer 12 years ago
parent
commit
f0b3a96848
  1. 60
      src/styles/components/_bar.scss

60
src/styles/components/_bar.scss

@ -33,16 +33,12 @@
@include box-shadow(0 2px 10px 0 $componentfg3); @include box-shadow(0 2px 10px 0 $componentfg3);
@include touch-callout(none); @include touch-callout(none);
@include user-select(none); @include user-select(none);
> .left { .left {
bottom: 0; bottom: 0;
left: 0; left: 0;
top: 0; top: 0;
padding-left: 12px; padding-left: 12px;
position: absolute; position: absolute;
// TODO(theurere): cleanup
> *, #bar > .right > * {
vertical-align: middle;
}
} }
.logo { .logo {
background: url(../img/logo-small.png) no-repeat; background: url(../img/logo-small.png) no-repeat;
@ -53,58 +49,58 @@
height: 32px; height: 32px;
text-align: left; text-align: left;
width: 90px; width: 90px;
> span { vertical-align: middle;
span {
font-style: italic; font-style: italic;
left: 38px; left: 38px;
position: relative; position: relative;
top: 26px; top: 26px;
} }
> span a { span a {
color: $dgrey; color: $dgrey;
} }
} }
} }
#bar { #bar .right {
> .right { bottom: 1px;
bottom: 1px; padding-right: 8px;
padding-right: 8px; position: absolute;
position: absolute; right: 0;
right: 0; top: 1px;
top: 1px; .btn {
.btn { background: transparent;
background: transparent; border-color: transparent;
border-color: transparent; color: $grey3;
color: $grey3; display: inline-block;
display: inline-block; font: 24px/40px $font-sans-serif;
font: 24px/40px $font-sans-serif; height: 42px;
height: 42px; margin-left: -4px;
margin-left: -4px; padding: 0;
padding: 0; text-align: center;
text-align: center; width: 42px;
width: 42px; vertical-align: middle;
} &:focus {
.btn:focus {
border: none; border: none;
@include box-shadow(0);
outline: none; outline: none;
@include box-shadow(0);
} }
.btn:hover { &:hover {
background-color: none; background-color: none;
border-color: #ccc; border-color: #ccc;
color: $grey4; color: $grey4;
} }
.btn.active { &.active {
background-color: none; background-color: none;
border-color: #ccc; border-color: #ccc;
color: $grey4; color: $grey4;
} }
.btn.active.amutebtn { &.active.amutebtn {
background-color: $red; background-color: $red;
border-color: $red; border-color: $red;
color: white; color: white;
} }
.btn.active.aenablebtn { &.active.aenablebtn {
background-color: $actioncolor1; background-color: $actioncolor1;
border-color: $actioncolor1; border-color: $actioncolor1;
color: white; color: white;

Loading…
Cancel
Save