Skip to content

Commit

Permalink
use SF UI on El Capitan, minor alpha rounding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romannurik committed Jun 13, 2016
1 parent c0c78bd commit eeeb803
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ class MaterialColors {

if (value.alpha && value.alpha < 1 && largeTile) {
$('<span>')
.addClass(this.CLASS_NAMES.colorTileAlpha)
.text(`Alpha ${parseInt(value.alpha * 100)}%`)
.addClass(this.CLASS_NAMES.colorTileAlpha)
.text(`Alpha ${Math.round(value.alpha * 100)}%`)
.appendTo($colorTile);
}

Expand Down
9 changes: 6 additions & 3 deletions app/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ $colorWhiteTextDisabled: rgba(#fff, .5);
$colorTooltipBackground: #263238;
$colorTooltipText: #fff;

$fontStackMono: 'Roboto Mono', monospace;
$fontStackSansSerif: BlinkMacSystemFont, Roboto, sans-serif;

$thinBorderColor: rgba(#000, .12);

$hueIconWidth: 14px;
Expand All @@ -52,7 +55,7 @@ body {
height: 100%;
margin: 0;
overflow: hidden;
font-family: Roboto, sans-serif;
font-family: $fontStackSansSerif;
font-weight: 400;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -193,7 +196,7 @@ body {
margin-bottom: 8px;
outline: none;
font-size: 10px;
font-family: Roboto, sans-serif;
font-family: $fontStackSansSerif;
}

.search-help-text {
Expand Down Expand Up @@ -376,7 +379,7 @@ body {
}

.color-tile-hex {
font-family: 'Roboto Mono', monospace;
font-family: $fontStackMono;
}

.update-banner {
Expand Down

0 comments on commit eeeb803

Please sign in to comment.