Commit a13bf9cb authored by Randall Leeds's avatar Randall Leeds

Make icons 30% larger

Requires some small tweaks around various places we have icons in
use. In fact, this actually eliminates a lot of the small tweaks
in favor of more flexible alignment.
parent 4a328f70
...@@ -104,7 +104,6 @@ html { ...@@ -104,7 +104,6 @@ html {
.close { .close {
cursor: pointer; cursor: pointer;
float: right; float: right;
line-height: 1.4;
opacity: .6; opacity: .6;
&:active, &:hover { &:active, &:hover {
opacity: 1; opacity: 1;
......
...@@ -179,13 +179,11 @@ ...@@ -179,13 +179,11 @@
float: right; float: right;
> * { > * {
float: left;
margin-left: 10px; margin-left: 10px;
} &:first-child {
> *:first-child {
margin-left: 0; margin-left: 0;
} }
}
} }
// Allows buttons to be positioned explicitly. // Allows buttons to be positioned explicitly.
...@@ -259,9 +257,7 @@ ...@@ -259,9 +257,7 @@
// Positions the icon nicely within the button. // Positions the icon nicely within the button.
.btn-icon { .btn-icon {
position: relative; vertical-align: middle;
top: 1px;
right: 3px;
} }
// Absolutely positions a message/icon to the left of a button. // Absolutely positions a message/icon to the left of a button.
...@@ -270,30 +266,21 @@ ...@@ -270,30 +266,21 @@
} }
.btn-message { .btn-message {
font-size: 13px;
font-style: italic; font-style: italic;
color: $gray-light; color: $gray-light;
margin-right: 6px; margin-right: .5em;
position: absolute; position: absolute;
right: 100%; right: 100%;
top: 50%; top: 0;
margin-top: -9px;
white-space: nowrap; white-space: nowrap;
} }
.btn-message-icon { .btn-message-icon {
display: inline-block; display: inline-block;
position: relative;
top: 0px;
background: $success-green; background: $success-green;
border-radius: 50%; border-radius: 50%;
color: #FFF; color: #FFF;
font-size: 12px; padding: 2px;
height: 20px;
line-height: 13px;
margin-left: 4px;
padding: 4px;
width: 20px;
} }
// Handles state transitions from "default" -> "loading" -> "success" // Handles state transitions from "default" -> "loading" -> "success"
...@@ -305,8 +292,8 @@ ...@@ -305,8 +292,8 @@
[status-button-state=success] .btn-message-success, [status-button-state=success] .btn-message-success,
[status-button-state=loading] .btn-message-loading { [status-button-state=loading] .btn-message-loading {
top: 50%;
left: auto; left: auto;
top: 0;
right: 100%; right: 100%;
} }
......
...@@ -193,6 +193,7 @@ $base-font-size: 14px; ...@@ -193,6 +193,7 @@ $base-font-size: 14px;
border: solid 1px $gray-lighter; border: solid 1px $gray-lighter;
border-radius: 4px; border-radius: 4px;
left: 0; left: 0;
font-size: 18px;
margin-top: 5px; margin-top: 5px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
...@@ -224,10 +225,13 @@ $base-font-size: 14px; ...@@ -224,10 +225,13 @@ $base-font-size: 14px;
@include single-transition(background-color, .25s, .25s); @include single-transition(background-color, .25s, .25s);
background: $white; background: $white;
color: $gray-light; color: $gray-light;
font-size: 18px;
line-height: 28px; line-height: 28px;
padding: 5px;
text-decoration: none; text-decoration: none;
height: 28px;
width: 28px;
position: absolute;
top: 0;
left: 0;
} }
a:active { a:active {
......
...@@ -13,5 +13,8 @@ ...@@ -13,5 +13,8 @@
@mixin icons { @mixin icons {
[class^="h-icon-"], [class*=" h-icon-"] { [class^="h-icon-"], [class*=" h-icon-"] {
@content; @content;
&:before {
font-size: 130%;
}
} }
} }
...@@ -18,13 +18,10 @@ ...@@ -18,13 +18,10 @@
@include icons { @include icons {
&.simple-search-icon { &.simple-search-icon {
float: left; line-height: inherit;
display: inline; position: absolute;
font-size: 1.1em; left: 0;
line-height: 2; top: 0;
margin-left: -100%;
position: relative;
right: 19 / 14 * 1em;
} }
} }
...@@ -36,9 +33,10 @@ ...@@ -36,9 +33,10 @@
float: left; float: left;
outline: none; outline: none;
color: $text-color; color: $text-color;
line-height: inherit;
width: 100%; width: 100%;
border: none !important; // Override base input styles. border: none !important; // Override base input styles.
padding: .4615em 0 0; padding: 0;
.simple-search-inactive &:not(:focus) { .simple-search-inactive &:not(:focus) {
border-color: #f3f3f3 !important; border-color: #f3f3f3 !important;
...@@ -46,27 +44,14 @@ ...@@ -46,27 +44,14 @@
} }
.simple-search-clear { .simple-search-clear {
@include icons {
position: absolute; position: absolute;
top: 50%; top: 0;
left: 50%; right: 0;
margin-top: -.5em;
margin-left: -.5em;
font-size: 0.85em;
}
float: left;
position: relative;
top: 6 / 13 * 1em;
margin-right: -1.33em;
padding: 0;
outline: none;
border: none; border: none;
background: none; background: none;
color: $gray; color: $gray;
width: 1.33em; line-height: inherit;
height: 1.33em; padding: 0;
@include box-shadow(none);
&:focus, &:hover, &:active:not([disabled]) { &:focus, &:hover, &:active:not([disabled]) {
color: $text-color; color: $text-color;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment