mirror of
https://github.com/jgthms/bulma.git
synced 2025-01-09 15:44:25 +00:00
Fix nav overflow
This commit is contained in:
parent
3534149fa0
commit
59db507cf8
@ -4142,7 +4142,7 @@ input[type="submit"].button {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1986;
|
z-index: 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal.is-active {
|
.modal.is-active {
|
||||||
@ -4317,19 +4317,28 @@ a.nav-item.is-tab.is-active {
|
|||||||
|
|
||||||
.nav-left,
|
.nav-left,
|
||||||
.nav-right {
|
.nav-right {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
-webkit-box-align: stretch;
|
-webkit-box-align: stretch;
|
||||||
-ms-flex-align: stretch;
|
-ms-flex-align: stretch;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
-ms-flex-preferred-size: 0;
|
|
||||||
flex-basis: 0;
|
|
||||||
-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: 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1192px) {
|
||||||
|
.nav-left,
|
||||||
|
.nav-right {
|
||||||
|
-ms-flex-preferred-size: 0;
|
||||||
|
flex-basis: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-left {
|
.nav-left {
|
||||||
@ -4391,10 +4400,10 @@ a.nav-item.is-tab.is-active {
|
|||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 3.25rem;
|
height: 3.25rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 2;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav > .container {
|
.nav > .container {
|
||||||
@ -4799,6 +4808,7 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
|
@ -79,20 +79,26 @@ doc-subtab: nav
|
|||||||
Blog
|
Blog
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<span class="nav-item">
|
<div class="nav-item">
|
||||||
|
<div class="field is-grouped">
|
||||||
|
<p class="control">
|
||||||
<a class="button" >
|
<a class="button" >
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fa fa-twitter"></i>
|
<i class="fa fa-twitter"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>Tweet</span>
|
<span>Tweet</span>
|
||||||
</a>
|
</a>
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<a class="button is-primary">
|
<a class="button is-primary">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fa fa-download"></i>
|
<i class="fa fa-download"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>Download</span>
|
<span>Download</span>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
justify-content: center
|
justify-content: center
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
position: fixed
|
position: fixed
|
||||||
z-index: 1986
|
z-index: 20
|
||||||
// Modifiers
|
// Modifiers
|
||||||
&.is-active
|
&.is-active
|
||||||
display: flex
|
display: flex
|
||||||
|
@ -62,11 +62,15 @@ a.nav-item
|
|||||||
|
|
||||||
.nav-left,
|
.nav-left,
|
||||||
.nav-right
|
.nav-right
|
||||||
|
+overflow-touch
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
flex-basis: 0
|
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
|
max-width: 100%
|
||||||
|
overflow: auto
|
||||||
|
+widescreen
|
||||||
|
flex-basis: 0
|
||||||
|
|
||||||
.nav-left
|
.nav-left
|
||||||
justify-content: flex-start
|
justify-content: flex-start
|
||||||
@ -107,10 +111,10 @@ a.nav-item
|
|||||||
align-items: stretch
|
align-items: stretch
|
||||||
background-color: $white
|
background-color: $white
|
||||||
display: flex
|
display: flex
|
||||||
min-height: $nav-height
|
height: $nav-height
|
||||||
position: relative
|
position: relative
|
||||||
text-align: center
|
text-align: center
|
||||||
z-index: 2
|
z-index: 10
|
||||||
& > .container
|
& > .container
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
.tabs
|
.tabs
|
||||||
+block
|
+block
|
||||||
|
+overflow-touch
|
||||||
+unselectable
|
+unselectable
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
|
Loading…
Reference in New Issue
Block a user