mirror of
https://github.com/jgthms/bulma
synced 2026-03-24 05:49:35 -07:00
Add card header, Add button group, Add menu
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
## 0.0.17
|
## 0.0.17
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
* `.control.is-inline` for horizontal forms
|
* `.control.is-inline` for horizontal forms
|
||||||
|
|
||||||
|
### Updated
|
||||||
|
|
||||||
|
* `.control.is-grouped` renamed to `.control.has-addons`
|
||||||
|
|||||||
@@ -2,19 +2,22 @@
|
|||||||
align-items: stretch
|
align-items: stretch
|
||||||
box-shadow: 0 1px 2px rgba(black, 0.1)
|
box-shadow: 0 1px 2px rgba(black, 0.1)
|
||||||
display: flex
|
display: flex
|
||||||
min-height: 36px
|
min-height: 40px
|
||||||
|
|
||||||
.card-header-title
|
.card-header-title
|
||||||
align-items: center
|
align-items: flex-start
|
||||||
color: $text-strong
|
color: $text-strong
|
||||||
display: flex
|
display: flex
|
||||||
flex: 1
|
flex: 1
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
padding: 0 10px
|
padding: 10px
|
||||||
|
|
||||||
.card-header-icon
|
.card-header-icon
|
||||||
+fa(14px, 36px)
|
align-items: center
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
width: 40px
|
||||||
|
|
||||||
.card-image
|
.card-image
|
||||||
display: block
|
display: block
|
||||||
@@ -27,11 +30,18 @@
|
|||||||
|
|
||||||
.card-footer
|
.card-footer
|
||||||
background: $background
|
background: $background
|
||||||
|
border-top: 1px solid $border
|
||||||
|
align-items: stretch
|
||||||
|
display: flex
|
||||||
|
|
||||||
|
.card-footer-item
|
||||||
align-items: center
|
align-items: center
|
||||||
display: flex
|
display: flex
|
||||||
font-size: $size-small
|
flex: 1
|
||||||
justify-content: center
|
justify-content: center
|
||||||
padding: 10px
|
padding: 10px
|
||||||
|
&:not(:last-child)
|
||||||
|
border-right: 1px solid $border
|
||||||
|
|
||||||
.card
|
.card
|
||||||
background: white
|
background: white
|
||||||
@@ -43,3 +53,5 @@
|
|||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
&.is-rounded
|
&.is-rounded
|
||||||
border-radius: 5px
|
border-radius: 5px
|
||||||
|
&.is-fullwidth
|
||||||
|
width: 100%
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
border-radius: 2px
|
border-radius: 2px
|
||||||
color: $text
|
color: $text
|
||||||
display: block
|
display: block
|
||||||
padding: 4px 8px
|
padding: 5px 10px
|
||||||
&:hover
|
&:hover
|
||||||
background: $background
|
background: $background
|
||||||
color: $link
|
color: $link
|
||||||
@@ -17,15 +17,14 @@
|
|||||||
color: $link-invert
|
color: $link-invert
|
||||||
li ul
|
li ul
|
||||||
border-left: 1px solid $border
|
border-left: 1px solid $border
|
||||||
margin: 8px
|
margin: 10px
|
||||||
padding-left: 8px
|
padding-left: 10px
|
||||||
|
|
||||||
.menu-label
|
.menu-label
|
||||||
color: $text-light
|
color: $text-light
|
||||||
font-size: $size-small
|
font-size: $size-small
|
||||||
letter-spacing: 1px
|
letter-spacing: 1px
|
||||||
margin-bottom: 5px
|
margin-bottom: 5px
|
||||||
padding-left: 8px
|
|
||||||
text-transform: uppercase
|
text-transform: uppercase
|
||||||
&:not(:first-child)
|
&:not(:first-child)
|
||||||
margin-top: 20px
|
margin-top: 20px
|
||||||
|
|||||||
@@ -26,10 +26,8 @@
|
|||||||
font-size: $size-small
|
font-size: $size-small
|
||||||
line-height: 1
|
line-height: 1
|
||||||
margin-top: 5px
|
margin-top: 5px
|
||||||
.fa
|
.icon.is-small
|
||||||
line-height: 24px
|
margin: 4px 0
|
||||||
margin: 0 -2px
|
|
||||||
width: 24px
|
|
||||||
&:hover
|
&:hover
|
||||||
color: $control-hover
|
color: $control-hover
|
||||||
&:active
|
&:active
|
||||||
@@ -71,10 +69,14 @@
|
|||||||
border-color: transparent transparent $color-invert $color-invert !important
|
border-color: transparent transparent $color-invert $color-invert !important
|
||||||
&.is-small
|
&.is-small
|
||||||
+button-small
|
+button-small
|
||||||
|
.icon.is-small
|
||||||
|
margin: 0
|
||||||
&.is-medium
|
&.is-medium
|
||||||
+button-medium
|
+button-medium
|
||||||
&.is-large
|
&.is-large
|
||||||
+button-large
|
+button-large
|
||||||
|
.icon.is-medium
|
||||||
|
margin: -4px 0px -4px -4px
|
||||||
&.is-fullwidth
|
&.is-fullwidth
|
||||||
display: block
|
display: block
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|||||||
@@ -172,6 +172,10 @@
|
|||||||
border-color: $control-hover-border
|
border-color: $control-hover-border
|
||||||
&::ms-expand
|
&::ms-expand
|
||||||
display: none
|
display: none
|
||||||
|
&.is-fullwidth
|
||||||
|
width: 100%
|
||||||
|
select
|
||||||
|
width: 100%
|
||||||
&:after
|
&:after
|
||||||
+arrow($link)
|
+arrow($link)
|
||||||
margin-top: -6px
|
margin-top: -6px
|
||||||
@@ -193,12 +197,6 @@
|
|||||||
padding-top: 7px
|
padding-top: 7px
|
||||||
text-align: right
|
text-align: right
|
||||||
|
|
||||||
.control-element
|
|
||||||
display: flex
|
|
||||||
flex: 5
|
|
||||||
.input:not(:last-child)
|
|
||||||
margin-right: 10px
|
|
||||||
|
|
||||||
.control
|
.control
|
||||||
position: relative
|
position: relative
|
||||||
text-align: left
|
text-align: left
|
||||||
@@ -223,7 +221,7 @@
|
|||||||
padding-left: 32px
|
padding-left: 32px
|
||||||
&:focus + .fa
|
&:focus + .fa
|
||||||
color: $control-active
|
color: $control-active
|
||||||
&.is-grouped
|
&.has-addons
|
||||||
display: flex
|
display: flex
|
||||||
.input,
|
.input,
|
||||||
.button,
|
.button,
|
||||||
@@ -243,7 +241,7 @@
|
|||||||
border-radius: 0 $radius $radius 0
|
border-radius: 0 $radius $radius 0
|
||||||
&.is-centered
|
&.is-centered
|
||||||
justify-content: center
|
justify-content: center
|
||||||
&.is-horizontal
|
&.is-grouped
|
||||||
display: flex
|
display: flex
|
||||||
& > .button,
|
& > .button,
|
||||||
& > .input,
|
& > .input,
|
||||||
@@ -252,5 +250,8 @@
|
|||||||
margin-right: 10px
|
margin-right: 10px
|
||||||
& > .input
|
& > .input
|
||||||
flex: 1
|
flex: 1
|
||||||
&.is-inline
|
&.is-horizontal
|
||||||
display: flex
|
display: flex
|
||||||
|
& > .control
|
||||||
|
display: flex
|
||||||
|
flex: 5
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
font-size: inherit
|
font-size: inherit
|
||||||
line-height: inherit
|
line-height: inherit
|
||||||
&.is-small
|
&.is-small
|
||||||
+fa(14px, 20px)
|
+fa(14px, 16px)
|
||||||
&.is-medium
|
&.is-medium
|
||||||
+fa(28px, 32px)
|
+fa(28px, 32px)
|
||||||
&.is-large
|
&.is-large
|
||||||
|
|||||||
Reference in New Issue
Block a user