is-rounded (#1323)

* is-rounded

* padding
This commit is contained in:
Oleksii Potiekhin 2017-12-04 14:21:38 +01:00 committed by Jeremy Thomas
parent f97f0d7df9
commit 61938a39e9
10 changed files with 49 additions and 10 deletions

View File

@ -33,6 +33,14 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($black, 0.2)
font-size: $size-medium font-size: $size-medium
&.is-large &.is-large
font-size: $size-large font-size: $size-large
&.is-rounded
.pagination-previous,
.pagination-next
padding-left: 1em
padding-right: 1em
border-radius: $radius-rounded
.pagination-link
border-radius: $radius-rounded
.pagination, .pagination,
.pagination-list .pagination-list
@ -52,8 +60,8 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($black, 0.2)
padding-right: 0.5em padding-right: 0.5em
justify-content: center justify-content: center
margin: 0.25rem margin: 0.25rem
text-align: center text-align: center
.pagination-previous, .pagination-previous,
.pagination-next, .pagination-next,
.pagination-link .pagination-link

View File

@ -122,8 +122,16 @@ $tabs-toggle-link-active-color: $link-invert !default
margin-left: -#{$tabs-toggle-link-border-width} margin-left: -#{$tabs-toggle-link-border-width}
&:first-child a &:first-child a
border-radius: $tabs-toggle-link-radius 0 0 $tabs-toggle-link-radius border-radius: $tabs-toggle-link-radius 0 0 $tabs-toggle-link-radius
&.is-rounded
border-top-left-radius: $radius-rounded
border-bottom-left-radius: $radius-rounded
padding-left: 1.25em
&:last-child a &:last-child a
border-radius: 0 $tabs-toggle-link-radius $tabs-toggle-link-radius 0 border-radius: 0 $tabs-toggle-link-radius $tabs-toggle-link-radius 0
&.is-rounded
border-top-right-radius: $radius-rounded
border-bottom-right-radius: $radius-rounded
padding-right: 1.25em
&.is-active &.is-active
a a
background-color: $tabs-toggle-link-active-background-color background-color: $tabs-toggle-link-active-background-color

View File

@ -199,6 +199,10 @@ $button-static-border-color: $grey-lighter !default
color: $button-static-color color: $button-static-color
box-shadow: none box-shadow: none
pointer-events: none pointer-events: none
&.is-rounded
border-radius: $radius-rounded
padding-left: 1em
padding-right: 1em
.buttons .buttons
align-items: center align-items: center

View File

@ -70,8 +70,6 @@ $help-size: $size-small !default
box-shadow: $input-shadow box-shadow: $input-shadow
max-width: 100% max-width: 100%
width: 100% width: 100%
&[type="search"]
border-radius: 290486px
&[readonly] &[readonly]
box-shadow: none box-shadow: none
// Colors // Colors
@ -98,6 +96,8 @@ $help-size: $size-small !default
&.is-inline &.is-inline
display: inline display: inline
width: auto width: auto
&.is-rounded
border-radius: $radius-rounded
.input .input
&.is-static &.is-static
@ -171,6 +171,8 @@ $help-size: $size-small !default
padding: 0 padding: 0
option option
padding: 0.5em 1em padding: 0.5em 1em
&.is-rounded
border-radius: $radius-rounded
// States // States
&:hover &:hover
&::after &::after
@ -310,10 +312,16 @@ $help-size: $size-small !default
&.is-right &.is-right
.file-cta .file-cta
border-radius: 0 $file-radius $file-radius 0 border-radius: 0 $file-radius $file-radius 0
&.is-rounded
border-top-right-radius: $radius-rounded
border-bottom-right-radius: $radius-rounded
.file-name .file-name
border-radius: $file-radius 0 0 $file-radius border-radius: $file-radius 0 0 $file-radius
border-width: 1px 0 1px 1px border-width: 1px 0 1px 1px
order: -1 order: -1
&.is-rounded
border-top-left-radius: $radius-rounded
border-bottom-left-radius: $radius-rounded
&.is-fullwidth &.is-fullwidth
.file-label .file-label
width: 100% width: 100%
@ -358,6 +366,8 @@ $help-size: $size-small !default
padding-left: 1em padding-left: 1em
padding-right: 1em padding-right: 1em
white-space: nowrap white-space: nowrap
&.is-rounded
border-radius: $radius-rounded
.file-cta .file-cta
background-color: $file-cta-background-color background-color: $file-cta-background-color
@ -425,12 +435,18 @@ $help-size: $size-small !default
.select select .select select
border-bottom-left-radius: $input-radius border-bottom-left-radius: $input-radius
border-top-left-radius: $input-radius border-top-left-radius: $input-radius
&.is-rounded
border-bottom-left-radius: $radius-rounded
border-top-left-radius: $radius-rounded
&:last-child &:last-child
.button, .button,
.input, .input,
.select select .select select
border-bottom-right-radius: $input-radius border-bottom-right-radius: $input-radius
border-top-right-radius: $input-radius border-top-right-radius: $input-radius
&.is-rounded
border-bottom-right-radius: $radius-rounded
border-top-right-radius: $radius-rounded
.button, .button,
.input, .input,
.select select .select select

View File

@ -1,4 +1,4 @@
$dimensions: 16 24 32 48 64 96 128 !default $dimensions: 16 24 32 48 64 96 128 256 512 !default
.image .image
display: block display: block
@ -7,6 +7,8 @@ $dimensions: 16 24 32 48 64 96 128 !default
display: block display: block
height: auto height: auto
width: 100% width: 100%
&.is-rounded
border-radius: $radius-rounded
// Ratio // Ratio
&.is-square, &.is-square,
&.is-1by1, &.is-1by1,

View File

@ -27,7 +27,7 @@
.number .number
align-items: center align-items: center
background-color: $background background-color: $background
border-radius: 290486px border-radius: $radius-rounded
display: inline-flex display: inline-flex
font-size: $size-medium font-size: $size-medium
height: 2em height: 2em

View File

@ -6,7 +6,7 @@ $progress-value-background-color: $text !default
-moz-appearance: none -moz-appearance: none
-webkit-appearance: none -webkit-appearance: none
border: none border: none
border-radius: 290486px border-radius: $radius-rounded
display: block display: block
height: $size-normal height: $size-normal
overflow: hidden overflow: hidden

View File

@ -104,7 +104,7 @@ $tag-delete-margin: 1px !default
&:active &:active
background-color: darken($tag-background-color, 10%) background-color: darken($tag-background-color, 10%)
&.is-rounded &.is-rounded
border-radius: 290486px border-radius: $radius-rounded
a.tag a.tag
&:hover &:hover

View File

@ -62,4 +62,5 @@ $easing: ease-out !default
$radius-small: 2px !default $radius-small: 2px !default
$radius: 3px !default $radius: 3px !default
$radius-large: 5px !default $radius-large: 5px !default
$radius-rounded: 290486px !default
$speed: 86ms !default $speed: 86ms !default

View File

@ -38,7 +38,7 @@
-webkit-appearance: none -webkit-appearance: none
background-color: rgba($black, 0.2) background-color: rgba($black, 0.2)
border: none border: none
border-radius: 290486px border-radius: $radius-rounded
cursor: pointer cursor: pointer
display: inline-block display: inline-block
flex-grow: 0 flex-grow: 0
@ -144,7 +144,7 @@
=loader =loader
animation: spinAround 500ms infinite linear animation: spinAround 500ms infinite linear
border: 2px solid $border border: 2px solid $border
border-radius: 290486px border-radius: $radius-rounded
border-right-color: transparent border-right-color: transparent
border-top-color: transparent border-top-color: transparent
content: "" content: ""