mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Fix flex shrink
This commit is contained in:
@@ -14,7 +14,7 @@ url: "http://bulma.io"
|
|||||||
# Variables
|
# Variables
|
||||||
|
|
||||||
baseurl: ""
|
baseurl: ""
|
||||||
cssurl: "/styles/bulma-website.css"
|
cssurl: "/css/bulma-docs.css"
|
||||||
documentation: "/documentation/overview/start/"
|
documentation: "/documentation/overview/start/"
|
||||||
download: "https://github.com/jgthms/bulma/archive/0.1.2.zip"
|
download: "https://github.com/jgthms/bulma/archive/0.1.2.zip"
|
||||||
github: "https://github.com/jgthms/bulma"
|
github: "https://github.com/jgthms/bulma"
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -27,12 +27,16 @@
|
|||||||
"postcss-cli": "^2.5.1"
|
"postcss-cli": "^2.5.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"autoprefix": "postcss --use autoprefixer --output css/bulma.css css/bulma.css",
|
"build": "npm run build-clean && npm run build-sass && npm run build-autoprefix",
|
||||||
"build": "npm run clean && npm run build-sass && npm run autoprefix",
|
"build-autoprefix": "postcss --use autoprefixer --output css/bulma.css css/bulma.css",
|
||||||
|
"build-clean": "rm -rf css",
|
||||||
"build-sass": "node-sass --output-style expanded --source-map true --output css/ bulma.sass --outFile css/bulma.css",
|
"build-sass": "node-sass --output-style expanded --source-map true --output css/ bulma.sass --outFile css/bulma.css",
|
||||||
"clean": "rm -rf css",
|
"docs": "npm run docs-sass && npm run docs-autoprefix",
|
||||||
|
"docs-autoprefix": "postcss --use autoprefixer --output docs/css/bulma-docs.css docs/css/bulma-docs.css",
|
||||||
|
"docs-sass": "node-sass --output-style expanded --output docs/css/ docs/bulma-docs.sass --outFile docs/css/bulma-docs.css",
|
||||||
"pre-push": "npm run build && git add css && git commit --amend --no-edit",
|
"pre-push": "npm run build && git add css && git commit --amend --no-edit",
|
||||||
"start": "npm run build-sass -- --watch"
|
"start": "npm run build-sass -- --watch",
|
||||||
|
"start-docs": "npm run docs-sass -- --watch"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"css",
|
"css",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
.media-content
|
.media-content
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 0
|
flex-shrink: 1
|
||||||
text-align: left
|
text-align: left
|
||||||
|
|
||||||
.media
|
.media
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
.modal-card
|
.modal-card
|
||||||
@extend .modal-content
|
@extend .modal-content
|
||||||
background-color: $white
|
|
||||||
border-radius: $radius-large
|
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
max-height: calc(100vh - 40px)
|
max-height: calc(100vh - 40px)
|
||||||
@@ -44,6 +42,8 @@
|
|||||||
|
|
||||||
.modal-card-head
|
.modal-card-head
|
||||||
border-bottom: 1px solid $border
|
border-bottom: 1px solid $border
|
||||||
|
border-top-left-radius: $radius-large
|
||||||
|
border-top-right-radius: $radius-large
|
||||||
|
|
||||||
.modal-card-title
|
.modal-card-title
|
||||||
color: $text-strong
|
color: $text-strong
|
||||||
@@ -53,14 +53,17 @@
|
|||||||
line-height: 1
|
line-height: 1
|
||||||
|
|
||||||
.modal-card-foot
|
.modal-card-foot
|
||||||
|
border-bottom-left-radius: $radius-large
|
||||||
|
border-bottom-right-radius: $radius-large
|
||||||
border-top: 1px solid $border
|
border-top: 1px solid $border
|
||||||
.button
|
.button
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-right: 10px
|
margin-right: 10px
|
||||||
|
|
||||||
.modal-card-body
|
.modal-card-body
|
||||||
|
background-color: $white
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 0
|
flex-shrink: 1
|
||||||
overflow: auto
|
overflow: auto
|
||||||
padding: 20px
|
padding: 20px
|
||||||
|
|
||||||
|
|||||||
@@ -127,6 +127,7 @@
|
|||||||
+mobile
|
+mobile
|
||||||
margin-bottom: 5px
|
margin-bottom: 5px
|
||||||
+tablet
|
+tablet
|
||||||
|
flex-basis: 0
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
margin-right: 20px
|
margin-right: 20px
|
||||||
@@ -247,8 +248,9 @@
|
|||||||
display: flex
|
display: flex
|
||||||
& > .control
|
& > .control
|
||||||
display: flex
|
display: flex
|
||||||
|
flex-basis: 0
|
||||||
flex-grow: 5
|
flex-grow: 5
|
||||||
flex-shrink: 0
|
flex-shrink: 1
|
||||||
&.is-loading
|
&.is-loading
|
||||||
&:after
|
&:after
|
||||||
@extend .loader
|
@extend .loader
|
||||||
|
|||||||
Reference in New Issue
Block a user