Skip to content

Commit

Permalink
Merge pull request #1061 from pat270/lexiconcss-1060
Browse files Browse the repository at this point in the history
New: (Fixes #1060) SVG Icons added option to customize `$scale-lexico…
  • Loading branch information
jbalsas authored Jul 27, 2018
2 parents 071d066 + eaedb35 commit 1be8088
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/scss/lexicon-base/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
}

%scale-lexicon-icon {
height: 1em;
margin-top: -0.13em;
width: 1em;
height: $scale-lexicon-icon-size;
margin-top: $scale-lexicon-icon-margin-top;
width: $scale-lexicon-icon-size;
}

.scale-lexicon-icon.lexicon-icon,
Expand Down Expand Up @@ -176,15 +176,15 @@ a .icon-monospaced,

.icon-monospaced {
&.lexicon-icon {
padding: lx-icon-padding($icon-monospaced-size, $lexicon-icon-size);
padding: $icon-monospaced-lexicon-icon-padding;
}

.lexicon-icon {
display: block;

@include monospace($icon-monospaced-size);

padding: lx-icon-padding($icon-monospaced-size, $lexicon-icon-size);
padding: $icon-monospaced-lexicon-icon-padding;
}
}

Expand Down
10 changes: 7 additions & 3 deletions src/scss/lexicon-base/variables/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ $help-icon-default-bg: $input-group-addon-bg !default;
$help-icon-default-color: lx-color-by-lightness($text-color, $help-icon-default-bg) !default;
$help-icon-default-hover-color: lx-color-by-lightness($text-color, $help-icon-default-bg, "secondary") !default;

$icon-monospaced-size: 32px !default;

$lexicon-icon-size: 16px !default;

$lexicon-icon-lg-size: 128px !default;
$lexicon-icon-md-size: 32px !default;
$lexicon-icon-sm-size: 7px !default;
$lexicon-icon-sm-size: 7px !default;

$icon-monospaced-size: 32px !default;
$icon-monospaced-lexicon-icon-padding: lx-icon-padding($icon-monospaced-size, $lexicon-icon-size) !default;

$scale-lexicon-icon-margin-top: -0.13em !default;
$scale-lexicon-icon-size: 1em !default;

0 comments on commit 1be8088

Please sign in to comment.