Skip to content

Commit

Permalink
[CLD-720]Add the utility class: mw-100, add max-width: 100% to .conta…
Browse files Browse the repository at this point in the history
…iner (#227) (#228)
  • Loading branch information
NghiaPham authored Jan 16, 2020
1 parent 040a953 commit ee33e7c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reapit/elements",
"version": "0.5.30",
"version": "0.5.33",
"description": "A collection of React components and utilities for building apps for Reapit Marketplace",
"main": "dist/index.js",
"umd:main": "dist/elements.umd.production.js",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default [
'*pin*',
'*absolute*',
'*relative*',
'*capitalize*'
'*capitalize*',
'mw-100'
]
// Uncomment this line if you want to see the CSS purified from the package
// rejected: true
Expand Down
4 changes: 4 additions & 0 deletions src/styles/base/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ $units: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;
}
}

.mw-100 {
max-width: 100%;
}

.flex {
display: flex;
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/vendor/bulma-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@

.container {
display: flex;
max-width: 100%;

&.is-column {
flex-direction: column;
Expand Down

0 comments on commit ee33e7c

Please sign in to comment.