mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Fix grid
This commit is contained in:
parent
db6380b9fb
commit
b8b3733d99
@ -10,7 +10,7 @@ route: blog
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-4">
|
<div class="column is-4">
|
||||||
<p class="subtitle4">
|
<p class="subtitle">
|
||||||
{{ post.date | date_to_string }}
|
{{ post.date | date_to_string }}
|
||||||
</p>
|
</p>
|
||||||
<h2 class="title">
|
<h2 class="title">
|
||||||
|
@ -2385,6 +2385,15 @@ a.box:active {
|
|||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notification code,
|
||||||
|
.notification pre {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification pre code {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.notification .delete {
|
.notification .delete {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0.5em;
|
right: 0.5em;
|
||||||
@ -3628,6 +3637,15 @@ a.box:active {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message-body code,
|
||||||
|
.message-body pre {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-body pre code {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-background {
|
.modal-background {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -4496,7 +4514,7 @@ label.panel-block:hover {
|
|||||||
flex-basis: 0;
|
flex-basis: 0;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
padding: 10px;
|
padding: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.columns.is-mobile > .column.is-narrow {
|
.columns.is-mobile > .column.is-narrow {
|
||||||
@ -5178,17 +5196,17 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.columns {
|
.columns {
|
||||||
margin-left: -10px;
|
margin-left: -0.75rem;
|
||||||
margin-right: -10px;
|
margin-right: -0.75rem;
|
||||||
margin-top: -10px;
|
margin-top: -0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.columns:last-child {
|
.columns:last-child {
|
||||||
margin-bottom: -10px;
|
margin-bottom: -0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.columns:not(:last-child) {
|
.columns:not(:last-child) {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.columns.is-centered {
|
.columns.is-centered {
|
||||||
@ -5206,7 +5224,7 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.columns.is-gapless:not(:last-child) {
|
.columns.is-gapless:not(:last-child) {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.columns.is-gapless > .column {
|
.columns.is-gapless > .column {
|
||||||
@ -5220,7 +5238,7 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
.columns.is-grid > .column {
|
.columns.is-grid > .column {
|
||||||
max-width: 33.3333%;
|
max-width: 33.3333%;
|
||||||
padding: 10px;
|
padding: 0.75rem;
|
||||||
width: 33.3333%;
|
width: 33.3333%;
|
||||||
}
|
}
|
||||||
.columns.is-grid > .column + .column {
|
.columns.is-grid > .column + .column {
|
||||||
@ -5262,17 +5280,17 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tile.is-ancestor {
|
.tile.is-ancestor {
|
||||||
margin-left: -10px;
|
margin-left: -0.75rem;
|
||||||
margin-right: -10px;
|
margin-right: -0.75rem;
|
||||||
margin-top: -10px;
|
margin-top: -0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile.is-ancestor:last-child {
|
.tile.is-ancestor:last-child {
|
||||||
margin-bottom: -10px;
|
margin-bottom: -0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile.is-ancestor:not(:last-child) {
|
.tile.is-ancestor:not(:last-child) {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile.is-child {
|
.tile.is-child {
|
||||||
@ -5280,7 +5298,7 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tile.is-parent {
|
.tile.is-parent {
|
||||||
padding: 10px;
|
padding: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile.is-vertical {
|
.tile.is-vertical {
|
||||||
@ -5288,7 +5306,7 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tile.is-vertical > .tile.is-child:not(:last-child) {
|
.tile.is-vertical > .tile.is-child:not(:last-child) {
|
||||||
margin-bottom: 20px !important;
|
margin-bottom: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 769px) {
|
@media screen and (min-width: 769px) {
|
||||||
|
@ -47,3 +47,8 @@
|
|||||||
padding: 1em 1.25em
|
padding: 1em 1.25em
|
||||||
strong
|
strong
|
||||||
color: inherit
|
color: inherit
|
||||||
|
code,
|
||||||
|
pre
|
||||||
|
background: $white
|
||||||
|
pre code
|
||||||
|
background: transparent
|
||||||
|
@ -4,6 +4,11 @@
|
|||||||
border-radius: $radius
|
border-radius: $radius
|
||||||
padding: 1.25rem 2.5rem 1.25rem 1.5rem
|
padding: 1.25rem 2.5rem 1.25rem 1.5rem
|
||||||
position: relative
|
position: relative
|
||||||
|
code,
|
||||||
|
pre
|
||||||
|
background: $white
|
||||||
|
pre code
|
||||||
|
background: transparent
|
||||||
.delete
|
.delete
|
||||||
position: absolute
|
position: absolute
|
||||||
right: 0.5em
|
right: 0.5em
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
flex-basis: 0
|
flex-basis: 0
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 1
|
flex-shrink: 1
|
||||||
padding: 10px
|
padding: 0.75rem
|
||||||
.columns.is-mobile > &.is-narrow
|
.columns.is-mobile > &.is-narrow
|
||||||
flex: none
|
flex: none
|
||||||
.columns.is-mobile > &.is-full
|
.columns.is-mobile > &.is-full
|
||||||
@ -204,13 +204,13 @@
|
|||||||
margin-left: ($i / 12) * 100%
|
margin-left: ($i / 12) * 100%
|
||||||
|
|
||||||
.columns
|
.columns
|
||||||
margin-left: -10px
|
margin-left: -0.75rem
|
||||||
margin-right: -10px
|
margin-right: -0.75rem
|
||||||
margin-top: -10px
|
margin-top: -0.75rem
|
||||||
&:last-child
|
&:last-child
|
||||||
margin-bottom: -10px
|
margin-bottom: -0.75rem
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 10px
|
margin-bottom: 0.75rem
|
||||||
// Modifiers
|
// Modifiers
|
||||||
&.is-centered
|
&.is-centered
|
||||||
justify-content: center
|
justify-content: center
|
||||||
@ -221,7 +221,7 @@
|
|||||||
&:last-child
|
&:last-child
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 20px
|
margin-bottom: 1.5rem
|
||||||
& > .column
|
& > .column
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
@ -231,7 +231,7 @@
|
|||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
& > .column
|
& > .column
|
||||||
max-width: 33.3333%
|
max-width: 33.3333%
|
||||||
padding: 10px
|
padding: 0.75rem
|
||||||
width: 33.3333%
|
width: 33.3333%
|
||||||
& + .column
|
& + .column
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
|
@ -7,21 +7,21 @@
|
|||||||
min-height: min-content
|
min-height: min-content
|
||||||
// Modifiers
|
// Modifiers
|
||||||
&.is-ancestor
|
&.is-ancestor
|
||||||
margin-left: -10px
|
margin-left: -0.75rem
|
||||||
margin-right: -10px
|
margin-right: -0.75rem
|
||||||
margin-top: -10px
|
margin-top: -0.75rem
|
||||||
&:last-child
|
&:last-child
|
||||||
margin-bottom: -10px
|
margin-bottom: -0.75rem
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 10px
|
margin-bottom: 0.75rem
|
||||||
&.is-child
|
&.is-child
|
||||||
margin: 0 !important
|
margin: 0 !important
|
||||||
&.is-parent
|
&.is-parent
|
||||||
padding: 10px
|
padding: 0.75rem
|
||||||
&.is-vertical
|
&.is-vertical
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
& > .tile.is-child:not(:last-child)
|
& > .tile.is-child:not(:last-child)
|
||||||
margin-bottom: 20px !important
|
margin-bottom: 1.5rem !important
|
||||||
// Responsiveness
|
// Responsiveness
|
||||||
+tablet
|
+tablet
|
||||||
&:not(.is-child)
|
&:not(.is-child)
|
||||||
|
Loading…
Reference in New Issue
Block a user