Skip to content

Commit

Permalink
Merge pull request #60 from EmmanuelDemey/lerna
Browse files Browse the repository at this point in the history
Lerna
  • Loading branch information
NicoLaval authored Aug 12, 2019
2 parents a99040e + 0f093b3 commit 26d9be9
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
dist

# dependencies
node_modules

# styles
*.css
!packages/**/*.css


# storybook building files
Expand Down
4 changes: 3 additions & 1 deletion packages/bauhaus-library/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ module.exports = {
// ],

// A map from regular expressions to module names that allow to stub out resources with a single module
// moduleNameMapper: {},
moduleNameMapper: {
"\\.(css|less|sass|scss)$": "<rootDir>/src/config/css.stub.js"
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
Expand Down
29 changes: 29 additions & 0 deletions packages/bauhaus-library/src/back-to-top/back-to-top.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.sticky-top span {
text-transform: uppercase;
font-weight: 700;
}

a.sticky-top {
display: block;
font-size: 12px;
font-size: 1.2rem;
position: fixed;
bottom: 0;
right: 0;
text-decoration: none;
background-color: #044173;
padding: 5px 8px 8px 8px;
display: none;
margin: 0;
padding: 10px;
width: 60px;
line-height: 18px;
text-align: center;
color: white;
}

a.sticky-top a:hover,
a.sticky-top a:active,
a.sticky-top a:focus {
color: white;
}
1 change: 1 addition & 0 deletions packages/bauhaus-library/src/back-to-top/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useContext } from "react";
import I18NContext from "../i18n-provider";
import "./back-to-top.css";

window.onload = function() {
document.addEventListener(
Expand Down
1 change: 1 addition & 0 deletions packages/bauhaus-library/src/config/css.stub.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};

0 comments on commit 26d9be9

Please sign in to comment.