Skip to content

Commit

Permalink
fix(Stylelint): Fix stylelint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenfitzpatrick committed Mar 2, 2018
1 parent f5823a4 commit 3228d45
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prebuild": "rimraf dist",
"build": "cross-env NODE_ENV=production webpack --env=prod",
"lint": "eslint src --ext .js --ext .jsx",
"stylelint": "stylelint src/**/*.scss src/styles/**/*.scss",
"stylelint": "stylelint src/components/**/*.scss src/styles/**/*.scss",
"start": "webpack-dev-server --hot --inline --progress --color --env=dev",
"test": "jest",
"test:watch": "npm run test -- --watch",
Expand Down
2 changes: 1 addition & 1 deletion src/components/auth/Auth.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.form-container {
width: 400px;
margin: 0 auto;
width: 400px;

> label:last-of-type {
margin-bottom: calc(var(--spacing) * 2);
Expand Down
10 changes: 5 additions & 5 deletions src/components/layout/Unauthorized.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
}

.auth__img {
background-image: url("https://res.cloudinary.com/ddw0ktdva/image/upload/c_scale,f_auto,fl_any_format.force_strip.progressive,q_auto,w_2590/v1519689991/richard-boyle-309541-unsplash.webp");
background-size: cover;
background-repeat: no-repeat;
background-image: url("https://res.cloudinary.com/ddw0ktdva/image/upload/c_scale,f_auto,fl_preserve_transparency.progressive,q_auto:best,w_1000/v1519689991/richard-boyle-309541-unsplash.jpg");
background-position: 50%;
mix-blend-mode: multiply;
background-repeat: no-repeat;
background-size: cover;
filter: grayscale(100%);
mix-blend-mode: multiply;
}

.auth__form {
min-height: 100%;
display: grid;
min-height: 100%;
place-items: center;
}
40 changes: 40 additions & 0 deletions src/styles/utils/_helpers.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* ------------------------------------ *\
#Useful Sass Helper Functions
\* ------------------------------------ */

/**
* Truncate text after certain length to ...
*/
@mixin truncate($maxLength) {
max-width: $maxLength;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

/**
* CSS Media Query Helper
*/
@mixin mq($width, $type: min) {
@if map-has-key($map: $breakpoints, $key: $width) {
$width: map-get($map: $breakpoints, $key: $width);

@media only screen and (#{$type}-width: $width) {
@content;
}
}
}

/**
* Psuedo Selector Helper
*/
@mixin psuedo($display: block, $pos: absolute, $content: '') {
content: $content;
display: $display;
position: $pos;
}

/* ------------------------------------ *\
$Flex Helpers
\* ------------------------------------ */

1 change: 1 addition & 0 deletions src/styles/variables/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
:root {
--primary-font: "Faune", sans-serif;
--future-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
--body-line-height: 1.5;
--body-font-size: 16px;
--spacing: 24px;
Expand Down

0 comments on commit 3228d45

Please sign in to comment.