Skip to content

Commit

Permalink
Add simple pxToRem converter
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Mar 15, 2018
1 parent a6e8136 commit 31ff246
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/galaxy/style/scss/galaxy_bootstrap/variables.scss
@@ -1,6 +1,10 @@
// Everything is derived from $base-color
// Caveat: currently only works for light colored backgrounds, scss provides functions (contrast) that could be used to improve this

@function pxToRem($px) {
@return #{$px/16px}rem;
}

// Base color -- Based on the Galaxy masthead color
$base-color-1: #2C3143;
$base-color-2: lighten($base-color-1,25%);
Expand Down Expand Up @@ -332,7 +336,7 @@ $grid-float-breakpoint: 0px;
// -------------------------

// Basics of a navbar
$navbar-height: 33px;
$navbar-height: pxToRem(33px);
$navbar-margin-bottom: $line-height-computed;
$navbar-default-color: #777;
$navbar-default-bg: $gray-lighter; // JT #f8f8f8;
Expand Down

0 comments on commit 31ff246

Please sign in to comment.