mirror of
https://github.com/jgthms/bulma
synced 2026-03-22 05:04:28 -07:00
Fix rounded
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -85,6 +85,22 @@ doc-subtab: pagination
|
|||||||
</nav>
|
</nav>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
|
{% capture pagination_rounded_example %}
|
||||||
|
<nav class="pagination is-rounded" role="navigation" aria-label="pagination">
|
||||||
|
<a class="pagination-previous">Previous</a>
|
||||||
|
<a class="pagination-next">Next page</a>
|
||||||
|
<ul class="pagination-list">
|
||||||
|
<li><a class="pagination-link" aria-label="Goto page 1">1</a></li>
|
||||||
|
<li><span class="pagination-ellipsis">…</span></li>
|
||||||
|
<li><a class="pagination-link" aria-label="Goto page 45">45</a></li>
|
||||||
|
<li><a class="pagination-link is-current" aria-label="Page 46" aria-current="page">46</a></li>
|
||||||
|
<li><a class="pagination-link" aria-label="Goto page 47">47</a></li>
|
||||||
|
<li><span class="pagination-ellipsis">…</span></li>
|
||||||
|
<li><a class="pagination-link" aria-label="Goto page 86">86</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{% endcapture %}
|
||||||
|
|
||||||
{% capture pagination_small_example %}
|
{% capture pagination_small_example %}
|
||||||
<nav class="pagination is-small" role="navigation" aria-label="pagination">
|
<nav class="pagination is-small" role="navigation" aria-label="pagination">
|
||||||
<a class="pagination-previous">Previous</a>
|
<a class="pagination-previous">Previous</a>
|
||||||
@@ -193,6 +209,16 @@ doc-subtab: pagination
|
|||||||
|
|
||||||
{% include snippet.html content=pagination_right_example horizontal=true more=true %}
|
{% include snippet.html content=pagination_right_example horizontal=true more=true %}
|
||||||
|
|
||||||
|
{% include anchor.html name="Styles" %}
|
||||||
|
|
||||||
|
{% include elements/new-tag.html version="0.6.2" %}
|
||||||
|
|
||||||
|
<p class="content">
|
||||||
|
Add the <code>is-rounded</code> modifier to have rounded pagination items.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{% include snippet.html content=pagination_rounded_example horizontal=true more=true %}
|
||||||
|
|
||||||
{% include anchor.html name="Sizes" %}
|
{% include anchor.html name="Sizes" %}
|
||||||
|
|
||||||
<p class="content">
|
<p class="content">
|
||||||
|
|||||||
@@ -96,10 +96,12 @@ $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-rounded
|
||||||
|
border-radius: $radius-rounded
|
||||||
|
padding-left: 1em
|
||||||
|
padding-right: 1em
|
||||||
&.is-static
|
&.is-static
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
border-color: transparent
|
border-color: transparent
|
||||||
@@ -153,6 +155,10 @@ $help-size: $size-small !default
|
|||||||
right: 1.125em
|
right: 1.125em
|
||||||
top: 50%
|
top: 50%
|
||||||
z-index: 4
|
z-index: 4
|
||||||
|
&.is-rounded
|
||||||
|
select
|
||||||
|
border-radius: $radius-rounded
|
||||||
|
padding-left: 1em
|
||||||
select
|
select
|
||||||
+input
|
+input
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
@@ -171,8 +177,6 @@ $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
|
||||||
@@ -311,17 +315,19 @@ $help-size: $size-small !default
|
|||||||
border-width: 0 1px 1px
|
border-width: 0 1px 1px
|
||||||
&.is-right
|
&.is-right
|
||||||
.file-cta
|
.file-cta
|
||||||
border-radius: 0 $file-radius $file-radius 0
|
&:not(.is-rounded)
|
||||||
|
border-radius: 0 $file-radius $file-radius 0
|
||||||
&.is-rounded
|
&.is-rounded
|
||||||
border-top-right-radius: $radius-rounded
|
|
||||||
border-bottom-right-radius: $radius-rounded
|
border-bottom-right-radius: $radius-rounded
|
||||||
|
border-top-right-radius: $radius-rounded
|
||||||
.file-name
|
.file-name
|
||||||
border-radius: $file-radius 0 0 $file-radius
|
|
||||||
border-width: 1px 0 1px 1px
|
border-width: 1px 0 1px 1px
|
||||||
order: -1
|
order: -1
|
||||||
|
&:not(.is-rounded)
|
||||||
|
border-radius: $file-radius 0 0 $file-radius
|
||||||
&.is-rounded
|
&.is-rounded
|
||||||
border-top-left-radius: $radius-rounded
|
|
||||||
border-bottom-left-radius: $radius-rounded
|
border-bottom-left-radius: $radius-rounded
|
||||||
|
border-top-left-radius: $radius-rounded
|
||||||
&.is-fullwidth
|
&.is-fullwidth
|
||||||
.file-label
|
.file-label
|
||||||
width: 100%
|
width: 100%
|
||||||
@@ -432,21 +438,27 @@ $help-size: $size-small !default
|
|||||||
&:first-child
|
&:first-child
|
||||||
.button,
|
.button,
|
||||||
.input,
|
.input,
|
||||||
.select select
|
.select
|
||||||
border-bottom-left-radius: $input-radius
|
&:not(.is-rounded)
|
||||||
border-top-left-radius: $input-radius
|
select
|
||||||
|
border-bottom-left-radius: $input-radius
|
||||||
|
border-top-left-radius: $input-radius
|
||||||
&.is-rounded
|
&.is-rounded
|
||||||
border-bottom-left-radius: $radius-rounded
|
select
|
||||||
border-top-left-radius: $radius-rounded
|
border-bottom-left-radius: $radius-rounded
|
||||||
|
border-top-left-radius: $radius-rounded
|
||||||
&:last-child
|
&:last-child
|
||||||
.button,
|
.button,
|
||||||
.input,
|
.input,
|
||||||
.select select
|
.select
|
||||||
border-bottom-right-radius: $input-radius
|
&:not(.is-rounded)
|
||||||
border-top-right-radius: $input-radius
|
select
|
||||||
|
border-bottom-right-radius: $input-radius
|
||||||
|
border-top-right-radius: $input-radius
|
||||||
&.is-rounded
|
&.is-rounded
|
||||||
border-bottom-right-radius: $radius-rounded
|
select
|
||||||
border-top-right-radius: $radius-rounded
|
border-bottom-right-radius: $radius-rounded
|
||||||
|
border-top-right-radius: $radius-rounded
|
||||||
.button,
|
.button,
|
||||||
.input,
|
.input,
|
||||||
.select select
|
.select select
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$dimensions: 16 24 32 48 64 96 128 256 512 !default
|
$dimensions: 16 24 32 48 64 96 128 !default
|
||||||
|
|
||||||
.image
|
.image
|
||||||
display: block
|
display: block
|
||||||
|
|||||||
Reference in New Issue
Block a user