Skip to content

Commit

Permalink
Swap url path concatination for interpolation, sass-lint hates da plus
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenBW committed May 24, 2017
1 parent a28262c commit 5edde0b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
3 changes: 1 addition & 2 deletions client/app/layouts/_application.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Product overrides of Boostrap & Patternfly variables
$modal-about-pf-bg-color: #083c5a
// sets background color of 'About' modal
Expand All @@ -8,7 +7,7 @@ $modal-about-pf-bg-color: #083c5a
.about-modal-pf
background-color: $modal-about-pf-bg-color
background-image: url($imgBasePath + 'images/bg-modal-about-pf.png')
background-image: url('#{$img-base-path}images/bg-modal-about-pf.png')

// @font-face
// font-family: 'FontAwesome'
Expand Down
2 changes: 1 addition & 1 deletion client/app/layouts/_navigation.sass
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.navbar-pf-vertical
background-color: $app-color-dark-blue-gray
background-image: url($imgBasePath + 'images/bg-navbar.png')
background-image: url('#{$img-base-path}images/bg-navbar.png')
background-repeat: no-repeat
background-size: auto 100%

Expand Down
12 changes: 6 additions & 6 deletions client/app/states/login/_login.sass
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
@import '_bem-support/index'

+block(login-pf)
background-color: $app-color-deep-blue
height: calc(100vh)
margin-bottom: -38px
margin-top: -60px

+element(img)
+modifier(top)
left: 0
top: 0
+modifier(bottom)
bottom: 0
position: fixed
right: 0
bottom: 0


background-color: $app-color-deep-blue
height: calc(100vh)
margin-bottom: -38px
margin-top: -60px

.container
background-color: transparent

Expand Down
2 changes: 1 addition & 1 deletion client/assets/sass/styles.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Global constants
$imgBasePath: '/' !default
$img-base-path: '/'

@import 'patternfly'

Expand Down
6 changes: 3 additions & 3 deletions config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module.exports = {
use: ExtractTextWebpackPlugin.extract({
fallback: 'style-loader',
allChunks: true,
loader: [
use: [
'css-loader?importLoaders=1&sourceMap=true',
'postcss-loader',
],
Expand All @@ -129,12 +129,12 @@ module.exports = {
use: ExtractTextWebpackPlugin.extract({
fallback: 'style-loader',
allChunks: true,
loader: [
use: [
'css-loader?importLoaders=1&sourceMap=true',
{
loader: 'sass-loader',
options: {
data: `$imgBasePath: ${appBasePath}`,
data: `$img-base-path: ${appBasePath}`,
sourceMap: true,
includePaths: [
`${root}/assets/sass`,
Expand Down

0 comments on commit 5edde0b

Please sign in to comment.