Use globalVars strategy to do v2-specific styling.

This commit is contained in:
Paulo Reis 2018-02-05 16:20:33 +00:00
parent ed5f31b248
commit 3c3bb0a892
3 changed files with 4 additions and 3 deletions

View file

@ -150,6 +150,8 @@ module.exports = (grunt) ->
sourceMap: true
sourceMapFilename: "public/stylesheets/style.css.map"
sourceMapBasepath: "public/stylesheets"
globalVars:
'is-overleaf': false
files:
"public/stylesheets/style.css": "public/stylesheets/style.less"
ol:
@ -157,6 +159,8 @@ module.exports = (grunt) ->
sourceMap: true
sourceMapFilename: "public/stylesheets/ol-style.css.map"
sourceMapBasepath: "public/stylesheets"
globalVars:
'is-overleaf': true
files:
"public/stylesheets/ol-style.css": "public/stylesheets/ol-style.less"

View file

@ -799,7 +799,6 @@
// Custom
@is-overleaf : false;
@header-height : 68px;
@footer-height : 50px;

View file

@ -1,7 +1,5 @@
@import "./_common-variables.less";
@is-overleaf: true;
@font-family-sans-serif: "Lato", sans-serif;
@header-height: 68px;