-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update required NodeJS version to 10, remove bower dependencies and u…
…pdate all npm dependencies, fixes #55
- Loading branch information
Showing
66 changed files
with
14,184 additions
and
14,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"plugins": ["lodash"], | ||
"presets": ["env", "react"] | ||
"presets": ["@babel/env", "@babel/react"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 7, | ||
"sourceType": "module", | ||
"ecmaFeatures": { "jsx": true } | ||
}, | ||
"extends" : ["airbnb"], | ||
"extends" : ["@visionappscz/eslint-config-visionapps"], | ||
"env": { | ||
"browser": true, | ||
"jest": true | ||
}, | ||
"rules": { | ||
"comma-dangle": ["error", { | ||
"arrays": "always-multiline", | ||
"objects": "always-multiline", | ||
"imports": "always-multiline", | ||
"exports": "always-multiline", | ||
"functions": "never" | ||
}], | ||
"object-curly-spacing": [2, "always"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Caret | ||
// | ||
// Draws an arrow using only CSS properties. | ||
// | ||
// Example: | ||
// .dropdown-handle { | ||
// .caret(); | ||
// } | ||
// | ||
// .next { | ||
// .caret-right(#fff, 1.2em, 1em); | ||
// } | ||
|
||
|
||
.caret(@color: #000, @width: 1em, @height: @width) { | ||
content: ''; | ||
display: inline-block; | ||
width: 0; | ||
height: 0; | ||
vertical-align: top; | ||
border-style: solid; | ||
border-color: transparent; | ||
border-width: (@height / 2) (@width / 2); | ||
border-top-color: @color | ||
} | ||
|
||
.caret-up(@color: #000, @width: 1em, @height: @width) { | ||
.caret(@color, @width, @height); | ||
border-top-color: transparent; | ||
border-bottom-color: @color; | ||
} | ||
|
||
.caret-right(@color: #000, @width: 1em, @height: @width) { | ||
.caret(@color, @width, @height); | ||
border-top-color: transparent; | ||
border-left-color: @color; | ||
} | ||
|
||
.caret-left(@color: #000, @width: 1em, @height: @width) { | ||
.caret(@color, @width, @height); | ||
border-top-color: transparent; | ||
border-right-color: @color; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// | ||
// Grid | ||
// | ||
// Inspired by http://www.barrelny.com/blog/text-align-justify-and-rwd | ||
// | ||
// Creates a justified grid of inline blocks. | ||
// Requires definition of grid cells (and optional spacers). | ||
// | ||
// Example: | ||
// .gallery { | ||
// .grid(20%); | ||
// } | ||
// | ||
// Default column sets can also be applied. | ||
// | ||
// Example: | ||
// .gallery { | ||
// .grid(); | ||
// .grid-cols-5(); | ||
// } | ||
// | ||
// jQuery filter using this technique: | ||
// http://mixitup.io/ | ||
|
||
|
||
// The grid | ||
.grid(@grid-item-width: 22%, @root-font-size: 16px, @line-height: 1.5) { | ||
display: block; | ||
margin: 0; | ||
padding: 0; | ||
font-size: 0.1px; // avoid unwanted spacing | ||
line-height: 1; | ||
text-align: justify; | ||
list-style: none; // remove list bullets | ||
|
||
// Add line break to enable justifying of the last line | ||
&:after { | ||
content: ''; | ||
width: 100%; | ||
display: inline-block; | ||
} | ||
|
||
// Grid cells | ||
> * { | ||
width: @grid-item-width; | ||
display: inline-block; | ||
vertical-align: top; | ||
font-size: @root-font-size; // fallback | ||
font-size: 1rem; | ||
line-height: @line-height; | ||
text-align: left; | ||
} | ||
} | ||
|
||
// Grid columns | ||
.grid-cols-2() { | ||
> * { | ||
width: 48.8%; | ||
margin-bottom: 1em; | ||
} | ||
} | ||
|
||
.grid-cols-4() { | ||
> * { | ||
width: 24%; | ||
margin-bottom: 1em; | ||
} | ||
} | ||
|
||
.grid-cols-5() { | ||
> * { | ||
width: 19.1%; | ||
margin-bottom: 1em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.