mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Add modal card, Add display responsive utilities
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
# Bulma Changelog
|
# Bulma Changelog
|
||||||
|
|
||||||
|
## 0.0.26
|
||||||
|
|
||||||
|
* Added: `.modal-card`
|
||||||
|
* Added: display responsive utilites
|
||||||
|
|
||||||
## 0.0.25
|
## 0.0.25
|
||||||
|
|
||||||
* Added: `utilities/controls.sass` and `elements/form.sass`
|
* Added: `utilities/controls.sass` and `elements/form.sass`
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ html
|
|||||||
overflow-x: hidden
|
overflow-x: hidden
|
||||||
overflow-y: scroll
|
overflow-y: scroll
|
||||||
text-rendering: optimizeLegibility
|
text-rendering: optimizeLegibility
|
||||||
// Modifiers
|
|
||||||
&.has-modal
|
|
||||||
overflow: hidden
|
|
||||||
|
|
||||||
article,
|
article,
|
||||||
aside,
|
aside,
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
|
|||||||
.is-#{$display}-widescreen
|
.is-#{$display}-widescreen
|
||||||
+widescreen
|
+widescreen
|
||||||
display: #{$display} !important
|
display: #{$display} !important
|
||||||
|
|
||||||
// Float
|
// Float
|
||||||
|
|
||||||
.is-clearfix
|
.is-clearfix
|
||||||
@@ -37,6 +38,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
|
|||||||
.is-pulled-right
|
.is-pulled-right
|
||||||
float: right
|
float: right
|
||||||
|
|
||||||
|
// Overflow
|
||||||
|
|
||||||
|
.is-clipped
|
||||||
|
overflow: hidden !important
|
||||||
|
|
||||||
// Overlay
|
// Overlay
|
||||||
|
|
||||||
.is-overlay
|
.is-overlay
|
||||||
|
|||||||
@@ -23,6 +23,45 @@
|
|||||||
top: 20px
|
top: 20px
|
||||||
width: 40px
|
width: 40px
|
||||||
|
|
||||||
|
.modal-card
|
||||||
|
@extend .modal-content
|
||||||
|
background: $white
|
||||||
|
border-radius: 5px
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
max-height: calc(100vh - 40px)
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
|
.modal-card-head,
|
||||||
|
.modal-card-foot
|
||||||
|
align-items: center
|
||||||
|
background: $background
|
||||||
|
display: flex
|
||||||
|
flex-shrink: 0
|
||||||
|
justify-content: flex-start
|
||||||
|
padding: 20px
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
.modal-card-head
|
||||||
|
border-bottom: 1px solid $border
|
||||||
|
|
||||||
|
.modal-card-title
|
||||||
|
color: $text-strong
|
||||||
|
flex: 1
|
||||||
|
font-size: $size-4
|
||||||
|
line-height: 1
|
||||||
|
|
||||||
|
.modal-card-foot
|
||||||
|
border-top: 1px solid $border
|
||||||
|
.button
|
||||||
|
&:not(:last-child)
|
||||||
|
margin-right: 10px
|
||||||
|
|
||||||
|
.modal-card-body
|
||||||
|
flex: 1
|
||||||
|
overflow: auto
|
||||||
|
padding: 20px
|
||||||
|
|
||||||
.modal
|
.modal
|
||||||
+overlay
|
+overlay
|
||||||
align-items: center
|
align-items: center
|
||||||
|
|||||||
Reference in New Issue
Block a user