mirror of
https://github.com/jgthms/bulma
synced 2026-03-20 20:24:30 -07:00
Add only responsive classes, Remove test tiles, Remove section border, Add widescreen container
This commit is contained in:
14
CHANGELOG.md
14
CHANGELOG.md
@@ -2,11 +2,23 @@
|
|||||||
|
|
||||||
## 0.0.24
|
## 0.0.24
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* `is-mobile` for the navbar
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
* removed border between sections. Use `<hr class="is-marginless">` now
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
* restructured file structure
|
* restructured files
|
||||||
* added back `inline-flex` for controls and tags
|
* added back `inline-flex` for controls and tags
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
* test tiles
|
||||||
|
|
||||||
## 0.0.23
|
## 0.0.23
|
||||||
|
|
||||||
### BREAKING
|
### BREAKING
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
&.is-fluid
|
&.is-fluid
|
||||||
margin: 0 20px
|
margin: 0 20px
|
||||||
max-width: none
|
max-width: none
|
||||||
|
+widescreen
|
||||||
|
max-width: 1200px
|
||||||
|
|
||||||
.fa
|
.fa
|
||||||
font-size: 21px
|
font-size: 21px
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
display: none !important
|
display: none !important
|
||||||
|
|
||||||
.is-hidden-tablet
|
.is-hidden-tablet
|
||||||
+tablet
|
+tablet-only
|
||||||
display: none !important
|
display: none !important
|
||||||
|
|
||||||
.is-hidden-touch
|
.is-hidden-touch
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
display: none !important
|
display: none !important
|
||||||
|
|
||||||
.is-hidden-desktop
|
.is-hidden-desktop
|
||||||
+desktop
|
+desktop-only
|
||||||
display: none !important
|
display: none !important
|
||||||
|
|
||||||
// Other
|
// Other
|
||||||
|
|||||||
@@ -211,19 +211,6 @@
|
|||||||
&.is-desktop
|
&.is-desktop
|
||||||
display: flex
|
display: flex
|
||||||
|
|
||||||
.tilefiejsoif
|
|
||||||
flex: 1
|
|
||||||
// Modifiers
|
|
||||||
&.is-parent
|
|
||||||
padding: 10px
|
|
||||||
// Responsiveness
|
|
||||||
+tablet
|
|
||||||
// Sizes
|
|
||||||
@for $i from 1 through 12
|
|
||||||
&.is-#{$i}
|
|
||||||
flex: none
|
|
||||||
width: ($i / 12) * 100%
|
|
||||||
|
|
||||||
.tile
|
.tile
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
flex: 1
|
flex: 1
|
||||||
|
|||||||
@@ -34,16 +34,24 @@
|
|||||||
|
|
||||||
.navbar
|
.navbar
|
||||||
@extend .block
|
@extend .block
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
code
|
code
|
||||||
border-radius: $radius
|
border-radius: $radius
|
||||||
img
|
img
|
||||||
display: inline-block
|
display: inline-block
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
|
// Modifiers
|
||||||
|
&.is-mobile
|
||||||
|
display: flex
|
||||||
|
& > .navbar-item
|
||||||
|
&:not(:last-child)
|
||||||
|
margin-bottom: 0
|
||||||
|
&:not(.is-narrow)
|
||||||
|
flex: 1
|
||||||
// Responsiveness
|
// Responsiveness
|
||||||
+tablet
|
+tablet
|
||||||
align-items: center
|
|
||||||
display: flex
|
display: flex
|
||||||
justify-content: space-between
|
|
||||||
& > .navbar-item
|
& > .navbar-item
|
||||||
&:not(.is-narrow)
|
&:not(.is-narrow)
|
||||||
flex: 1
|
flex: 1
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
.section
|
.section
|
||||||
background: white
|
background: white
|
||||||
padding: 40px 20px
|
padding: 40px 20px
|
||||||
& + .section
|
|
||||||
border-top: 1px solid rgba($border, 0.5)
|
|
||||||
// Responsiveness
|
// Responsiveness
|
||||||
+desktop
|
+desktop
|
||||||
padding: 40px 0
|
padding: 40px 0
|
||||||
|
|||||||
@@ -78,6 +78,10 @@
|
|||||||
@media screen and (min-width: $tablet)
|
@media screen and (min-width: $tablet)
|
||||||
@content
|
@content
|
||||||
|
|
||||||
|
=tablet-only
|
||||||
|
@media screen and (min-width: $tablet) and (max-width: $desktop - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
=touch
|
=touch
|
||||||
@media screen and (max-width: $desktop - 1px)
|
@media screen and (max-width: $desktop - 1px)
|
||||||
@content
|
@content
|
||||||
@@ -86,6 +90,10 @@
|
|||||||
@media screen and (min-width: $desktop)
|
@media screen and (min-width: $desktop)
|
||||||
@content
|
@content
|
||||||
|
|
||||||
|
=desktop-only
|
||||||
|
@media screen and (min-width: $desktop) and (max-width: $widescreen - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
=widescreen
|
=widescreen
|
||||||
@media screen and (min-width: $widescreen)
|
@media screen and (min-width: $widescreen)
|
||||||
@content
|
@content
|
||||||
|
|||||||
Reference in New Issue
Block a user