mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Fix delete button
This commit is contained in:
parent
41db07d68d
commit
bd6fccef04
@ -2175,6 +2175,11 @@ a.box:active {
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.control.is-grouped > .control {
|
||||||
|
flex-basis: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.control.is-grouped > .control:not(:last-child) {
|
.control.is-grouped > .control:not(:last-child) {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-right: 0.75rem;
|
margin-right: 0.75rem;
|
||||||
@ -2829,13 +2834,13 @@ a.box:active {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
height: 1.5em;
|
height: 20px;
|
||||||
outline: none;
|
outline: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
transform-origin: center center;
|
transform-origin: center center;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: 1.5em;
|
width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete:before, .delete:after {
|
.delete:before, .delete:after {
|
||||||
@ -2867,15 +2872,18 @@ a.box:active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.delete.is-small {
|
.delete.is-small {
|
||||||
font-size: 0.75rem;
|
height: 14px;
|
||||||
|
width: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete.is-medium {
|
.delete.is-medium {
|
||||||
font-size: 1.25rem;
|
height: 26px;
|
||||||
|
width: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete.is-large {
|
.delete.is-large {
|
||||||
font-size: 1.5rem;
|
height: 30px;
|
||||||
|
width: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
@ -3656,13 +3664,13 @@ a.box:active {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
height: 1.5em;
|
height: 20px;
|
||||||
outline: none;
|
outline: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
transform-origin: center center;
|
transform-origin: center center;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: 1.5em;
|
width: 20px;
|
||||||
background: none;
|
background: none;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -3700,15 +3708,18 @@ a.box:active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.modal-close.is-small {
|
.modal-close.is-small {
|
||||||
font-size: 0.75rem;
|
height: 14px;
|
||||||
|
width: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-close.is-medium {
|
.modal-close.is-medium {
|
||||||
font-size: 1.25rem;
|
height: 26px;
|
||||||
|
width: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-close.is-large {
|
.modal-close.is-large {
|
||||||
font-size: 1.5rem;
|
height: 30px;
|
||||||
|
width: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-card {
|
.modal-card {
|
||||||
|
@ -272,6 +272,8 @@ $input-radius: $radius !default
|
|||||||
display: flex
|
display: flex
|
||||||
justify-content: flex-start
|
justify-content: flex-start
|
||||||
& > .control
|
& > .control
|
||||||
|
flex-basis: 0
|
||||||
|
flex-shrink: 0
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
margin-right: 0.75rem
|
margin-right: 0.75rem
|
||||||
|
@ -26,3 +26,11 @@
|
|||||||
@return rgba(#000, 0.7)
|
@return rgba(#000, 0.7)
|
||||||
@else
|
@else
|
||||||
@return #fff
|
@return #fff
|
||||||
|
|
||||||
|
@function removeUnit($number)
|
||||||
|
@if type-of($number) == 'number' and not unitless($number)
|
||||||
|
@return $number / ($number * 0 + 1);
|
||||||
|
@return $number;
|
||||||
|
|
||||||
|
@function roundToEvenNumber($number)
|
||||||
|
@return floor($number / 2) * 2
|
||||||
|
@ -28,6 +28,11 @@
|
|||||||
top: 50%
|
top: 50%
|
||||||
|
|
||||||
=delete
|
=delete
|
||||||
|
// We need even pixel dimensions to ensure the delete cross can be perfectly centered
|
||||||
|
$dimension-small: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-small)) * 1px
|
||||||
|
$dimension-normal: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-normal)) * 1px
|
||||||
|
$dimension-medium: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-medium)) * 1px
|
||||||
|
$dimension-large: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-large)) * 1px
|
||||||
+unselectable
|
+unselectable
|
||||||
-moz-appearance: none
|
-moz-appearance: none
|
||||||
-webkit-appearance: none
|
-webkit-appearance: none
|
||||||
@ -37,13 +42,13 @@
|
|||||||
cursor: pointer
|
cursor: pointer
|
||||||
display: inline-block
|
display: inline-block
|
||||||
font-size: $size-normal
|
font-size: $size-normal
|
||||||
height: 1.5em
|
height: $dimension-normal
|
||||||
outline: none
|
outline: none
|
||||||
position: relative
|
position: relative
|
||||||
transform: rotate(45deg)
|
transform: rotate(45deg)
|
||||||
transform-origin: center center
|
transform-origin: center center
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
width: 1.5em
|
width: $dimension-normal
|
||||||
&:before,
|
&:before,
|
||||||
&:after
|
&:after
|
||||||
background-color: $white
|
background-color: $white
|
||||||
@ -66,11 +71,14 @@
|
|||||||
background-color: rgba($black, 0.4)
|
background-color: rgba($black, 0.4)
|
||||||
// Sizes
|
// Sizes
|
||||||
&.is-small
|
&.is-small
|
||||||
font-size: $size-small
|
height: $dimension-small
|
||||||
|
width: $dimension-small
|
||||||
&.is-medium
|
&.is-medium
|
||||||
font-size: $size-medium
|
height: $dimension-medium
|
||||||
|
width: $dimension-medium
|
||||||
&.is-large
|
&.is-large
|
||||||
font-size: $size-large
|
height: $dimension-large
|
||||||
|
width: $dimension-large
|
||||||
|
|
||||||
=fa($size, $dimensions)
|
=fa($size, $dimensions)
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
Loading…
Reference in New Issue
Block a user