Merge pull request #318 from jgthms/fix/docs-mobile

Fix docs mobile version
This commit is contained in:
Jeremy Thomas 2016-09-24 18:58:44 +01:00 committed by GitHub
commit 9c59780e3c
8 changed files with 63 additions and 40 deletions

View File

@ -1,5 +1,11 @@
# Bulma Changelog # Bulma Changelog
## 0.2.1
* Fix: container flex
* Fix: nav-item flex
* Fix: media-number flex
## 0.2.0 ## 0.2.0
* Added: new branding * Added: new branding

View File

@ -75,6 +75,7 @@
.title.is-2 a { .title.is-2 a {
color: #242424; color: #242424;
padding-left: 60px; padding-left: 60px;
position: relative;
} }
.title.is-2 a:hover { .title.is-2 a:hover {

View File

@ -4,7 +4,6 @@
@import "../sass/utilities/mixins.sass" @import "../sass/utilities/mixins.sass"
// Override // Override
.button .button
+tablet +tablet
small small
@ -25,13 +24,15 @@ body.page-grid .column > .notification
margin-left: 10px margin-left: 10px
// Additional // Additional
svg
max-height: 100%
max-width: 100%
$carbon-space: 15px $carbon-space: 15px
#carbon #carbon
max-width: 340px max-width: 340px
min-height: 100px + ($carbon-space * 2) min-height: 100px + ($carbon-space * 2)
min-width: 300px
padding: $carbon-space padding: $carbon-space
+tablet +tablet
margin-left: auto margin-left: auto
@ -137,7 +138,7 @@ $curve: cubic-bezier(0, 0.71, 0.29, 1)
animation-fill-mode: both animation-fill-mode: both
animation-name: floatUp animation-name: floatUp
animation-timing-function: $curve animation-timing-function: $curve
border-radius: 20px border-radius: 24px
display: inline-block display: inline-block
height: 240px height: 240px
margin-bottom: 40px margin-bottom: 40px
@ -173,9 +174,9 @@ $curve: cubic-bezier(0, 0.71, 0.29, 1)
fill: $turquoise fill: $turquoise
+mobile +mobile
border-radius: 10px border-radius: 16px
height: 120px height: 160px
width: 120px width: 160px
#bulma #bulma
animation: slideDown 500ms both animation: slideDown 500ms both
@ -232,7 +233,7 @@ html.route-index #carbon
#social #social
align-items: center align-items: center
display: flex display: flex
height: 20px flex-wrap: wrap
margin-bottom: 1em margin-bottom: 1em
justify-content: center justify-content: center
a a
@ -240,8 +241,9 @@ html.route-index #carbon
font-size: 11px font-size: 11px
height: 20px height: 20px
line-height: 20px line-height: 20px
iframe:last-child margin: 5px
margin-left: 10px iframe
margin: 5px
#images #images
tr tr

View File

@ -3415,6 +3415,16 @@ a.box:active {
} }
} }
.media-number,
.media-left,
.media-right {
-webkit-box-flex: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.media-number { .media-number {
background-color: whitesmoke; background-color: whitesmoke;
border-radius: 290486px; border-radius: 290486px;
@ -3422,24 +3432,13 @@ a.box:active {
font-size: 18px; font-size: 18px;
height: 32px; height: 32px;
line-height: 24px; line-height: 24px;
margin-right: 10px;
min-width: 32px; min-width: 32px;
padding: 4px 8px; padding: 4px 8px;
text-align: center; text-align: center;
vertical-align: top; vertical-align: top;
} }
@media screen and (max-width: 768px) {
.media-number {
margin-bottom: 10px;
}
}
@media screen and (min-width: 769px) {
.media-number {
margin-right: 10px;
}
}
.media-left { .media-left {
margin-right: 10px; margin-right: 10px;
} }
@ -3998,6 +3997,11 @@ a.box:active {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-flex: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-box-pack: center; -webkit-box-pack: center;
-ms-flex-pack: center; -ms-flex-pack: center;
justify-content: center; justify-content: center;
@ -6708,8 +6712,8 @@ a.panel-block:hover {
-webkit-box-flex: 1; -webkit-box-flex: 1;
-ms-flex-positive: 1; -ms-flex-positive: 1;
flex-grow: 1; flex-grow: 1;
-ms-flex-negative: 0; -ms-flex-negative: 1;
flex-shrink: 0; flex-shrink: 1;
} }
@keyframes spin-around { @keyframes spin-around {
@ -6792,10 +6796,14 @@ body.page-grid .column > .notification {
} }
} }
svg {
max-height: 100%;
max-width: 100%;
}
#carbon { #carbon {
max-width: 340px; max-width: 340px;
min-height: 130px; min-height: 130px;
min-width: 300px;
padding: 15px; padding: 15px;
} }
@ -7041,7 +7049,7 @@ body.page-grid .column > .notification {
animation-name: floatUp; animation-name: floatUp;
-webkit-animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1); -webkit-animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1);
animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1); animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1);
border-radius: 20px; border-radius: 24px;
display: inline-block; display: inline-block;
height: 240px; height: 240px;
margin-bottom: 40px; margin-bottom: 40px;
@ -7106,9 +7114,9 @@ body.page-grid .column > .notification {
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#b { #b {
border-radius: 10px; border-radius: 16px;
height: 120px; height: 160px;
width: 120px; width: 160px;
} }
} }
@ -7195,7 +7203,8 @@ html.route-index #carbon {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
height: 20px; -ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-bottom: 1em; margin-bottom: 1em;
-webkit-box-pack: center; -webkit-box-pack: center;
-ms-flex-pack: center; -ms-flex-pack: center;
@ -7207,10 +7216,11 @@ html.route-index #carbon {
font-size: 11px; font-size: 11px;
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
margin: 5px;
} }
#social iframe:last-child { #social iframe {
margin-left: 10px; margin: 5px;
} }
#images tr td:nth-child(2) { #images tr td:nth-child(2) {

View File

@ -405,10 +405,10 @@ route: index
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container has-text-centered">
<h3 class="title is-2"> <h3 class="title is-2">
<span class="icon is-large">
<i class="fa fa-arrows-v"></i>
</span>
<a href="{{ site.baseurl }}/documentation/layout/hero/"> <a href="{{ site.baseurl }}/documentation/layout/hero/">
<span class="icon is-large">
<i class="fa fa-arrows-v"></i>
</span>
Easy <strong>vertical centering</strong> in <strong>fullscreen</strong> Easy <strong>vertical centering</strong> in <strong>fullscreen</strong>
</a> </a>
</h3> </h3>

View File

@ -1,6 +1,12 @@
@import "../utilities/mixins.sass" @import "../utilities/mixins.sass"
@import "../utilities/variables.sass" @import "../utilities/variables.sass"
.media-number,
.media-left,
.media-right
flex-grow: 0
flex-shrink: 0
.media-number .media-number
background-color: $background background-color: $background
border-radius: 290486px border-radius: 290486px
@ -8,15 +14,11 @@
font-size: $size-medium font-size: $size-medium
height: 32px height: 32px
line-height: 24px line-height: 24px
margin-right: 10px
min-width: 32px min-width: 32px
padding: 4px 8px padding: 4px 8px
text-align: center text-align: center
vertical-align: top vertical-align: top
// Responsiveness
+mobile
margin-bottom: 10px
+tablet
margin-right: 10px
.media-left .media-left
margin-right: 10px margin-right: 10px

View File

@ -14,6 +14,8 @@ $nav-height: 50px !default
.nav-item .nav-item
align-items: center align-items: center
display: flex display: flex
flex-grow: 0
flex-shrink: 0
justify-content: center justify-content: center
padding: 10px padding: 10px
a a

View File

@ -148,4 +148,4 @@
display: flex display: flex
& > .container & > .container
flex-grow: 1 flex-grow: 1
flex-shrink: 0 flex-shrink: 1