mirror of
https://github.com/jgthms/bulma.git
synced 2025-01-09 15:44:25 +00:00
Add link button
This commit is contained in:
parent
7675f7b522
commit
2a5e1149fe
@ -2,8 +2,12 @@
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* `.control.is-inline` for horizontal forms
|
* `.pagination`
|
||||||
|
* `.control.is-horizontal` for horizontal forms
|
||||||
|
* `.help` for controls
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
|
* `.button` needs an `.icon` now
|
||||||
* `.control.is-grouped` renamed to `.control.has-addons`
|
* `.control.is-grouped` renamed to `.control.has-addons`
|
||||||
|
* `.control.is-inline` renamed to `.control.is-grouped`
|
||||||
|
@ -67,6 +67,14 @@
|
|||||||
background: rgba(black, 0.05)
|
background: rgba(black, 0.05)
|
||||||
&.is-loading:after
|
&.is-loading:after
|
||||||
border-color: transparent transparent $color-invert $color-invert !important
|
border-color: transparent transparent $color-invert $color-invert !important
|
||||||
|
&.is-link
|
||||||
|
border-color: transparent
|
||||||
|
color: $text
|
||||||
|
text-decoration: underline
|
||||||
|
&:hover,
|
||||||
|
&:focus
|
||||||
|
background: $border
|
||||||
|
color: $text-strong
|
||||||
&.is-small
|
&.is-small
|
||||||
+button-small
|
+button-small
|
||||||
.icon.is-small
|
.icon.is-small
|
||||||
|
@ -31,10 +31,8 @@
|
|||||||
+control
|
+control
|
||||||
@each $name, $pair in $colors
|
@each $name, $pair in $colors
|
||||||
$color: nth($pair, 1)
|
$color: nth($pair, 1)
|
||||||
$color-invert: nth($pair, 2)
|
|
||||||
&.is-#{$name}
|
&.is-#{$name}
|
||||||
border-color: $color
|
border-color: $color
|
||||||
color: $color
|
|
||||||
|
|
||||||
=control-small
|
=control-small
|
||||||
border-radius: 2px
|
border-radius: 2px
|
||||||
@ -188,14 +186,29 @@
|
|||||||
.label
|
.label
|
||||||
color: $text-strong
|
color: $text-strong
|
||||||
display: block
|
display: block
|
||||||
|
font-weight: bold
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 5px
|
margin-bottom: 5px
|
||||||
|
|
||||||
|
.help
|
||||||
|
display: block
|
||||||
|
font-size: $size-small
|
||||||
|
margin-top: 5px
|
||||||
|
@each $name, $pair in $colors
|
||||||
|
$color: nth($pair, 1)
|
||||||
|
&.is-#{$name}
|
||||||
|
color: $color
|
||||||
|
|
||||||
|
// Containers
|
||||||
|
|
||||||
.control-label
|
.control-label
|
||||||
flex: 1
|
+mobile
|
||||||
margin-right: 20px
|
margin-bottom: 5px
|
||||||
padding-top: 7px
|
+tablet
|
||||||
text-align: right
|
flex: 1
|
||||||
|
margin-right: 20px
|
||||||
|
padding-top: 7px
|
||||||
|
text-align: right
|
||||||
|
|
||||||
.control
|
.control
|
||||||
position: relative
|
position: relative
|
||||||
@ -210,17 +223,25 @@
|
|||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
&.has-icon
|
&.has-icon
|
||||||
& > .fa
|
& > .fa
|
||||||
+fa(14px, 20px)
|
+fa(14px, 16px)
|
||||||
color: $text-light
|
color: $text-light
|
||||||
left: 6px
|
|
||||||
pointer-events: none
|
pointer-events: none
|
||||||
position: absolute
|
position: absolute
|
||||||
top: 6px
|
top: 8px
|
||||||
z-index: 4
|
z-index: 4
|
||||||
.input
|
.input
|
||||||
padding-left: 32px
|
|
||||||
&:focus + .fa
|
&:focus + .fa
|
||||||
color: $control-active
|
color: $text-strong
|
||||||
|
&:not(.has-icon-right)
|
||||||
|
& > .fa
|
||||||
|
left: 8px
|
||||||
|
.input
|
||||||
|
padding-left: 32px
|
||||||
|
&.has-icon-right
|
||||||
|
& > .fa
|
||||||
|
right: 8px
|
||||||
|
.input
|
||||||
|
padding-right: 32px
|
||||||
&.has-addons
|
&.has-addons
|
||||||
display: flex
|
display: flex
|
||||||
.input,
|
.input,
|
||||||
@ -251,7 +272,8 @@
|
|||||||
& > .input
|
& > .input
|
||||||
flex: 1
|
flex: 1
|
||||||
&.is-horizontal
|
&.is-horizontal
|
||||||
display: flex
|
+tablet
|
||||||
& > .control
|
|
||||||
display: flex
|
display: flex
|
||||||
flex: 5
|
& > .control
|
||||||
|
display: flex
|
||||||
|
flex: 5
|
||||||
|
Loading…
Reference in New Issue
Block a user