Skip to content

Commit

Permalink
Extract @search-size to allow overriding in apps
Browse files Browse the repository at this point in the history
In some cases, overriding won't work if the variable is defined in the
very file it is used.

By moving the variable to the vars.less file, it is trivial for the app
to control the order of the overrides.
  • Loading branch information
gberaudo committed Jun 5, 2018
1 parent e9644df commit 681c776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions contribs/gmf/src/less/vars.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import "~bootstrap/less/variables.less";

@search-width: 6 * @map-tools-size;

@app-margin: 1rem;
@half-app-margin: 0.5rem;
@micro-app-margin: 0.2rem;
Expand Down
2 changes: 0 additions & 2 deletions contribs/gmf/src/search/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ gmf-search {
}
}

@search-width: 6 * @map-tools-size;

// Overrides for tablet devices and up
@media (min-width: @screen-sm-min) {
gmf-search {
Expand Down

0 comments on commit 681c776

Please sign in to comment.