mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Add navbar-tabs component
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'basics' %}is-active{% endif %}" href="{{ site.url }}/documentation/columns/basics/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'basics' %}is-active{% endif %}" href="{{ site.url }}/documentation/columns/basics/">
|
||||||
Basics
|
Basics
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'breadcrumb' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/breadcrumb/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'breadcrumb' %}is-active{% endif %}" href="{{ site.url }}/documentation/components/breadcrumb/">
|
||||||
Breadcrumb
|
Breadcrumb
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'box' %}is-active{% endif %}" href="{{ site.url }}/documentation/elements/box/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'box' %}is-active{% endif %}" href="{{ site.url }}/documentation/elements/box/">
|
||||||
Box
|
Box
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'general' %}is-active{% endif %}" href="{{ site.url }}/documentation/form/general/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'general' %}is-active{% endif %}" href="{{ site.url }}/documentation/form/general/">
|
||||||
General
|
General
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'columns' %}is-active{% endif %}" href="{{ site.url }}/documentation/grid/columns/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'columns' %}is-active{% endif %}" href="{{ site.url }}/documentation/grid/columns/">
|
||||||
Columns
|
Columns
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'container' %}is-active{% endif %}" href="{{ site.url }}/documentation/layout/container/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'container' %}is-active{% endif %}" href="{{ site.url }}/documentation/layout/container/">
|
||||||
Container
|
Container
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'syntax' %}is-active{% endif %}" href="{{ site.url }}/documentation/modifiers/syntax/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'syntax' %}is-active{% endif %}" href="{{ site.url }}/documentation/modifiers/syntax/">
|
||||||
Syntax
|
Syntax
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar has-shadow">
|
<nav class="navbar has-shadow">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-tabs">
|
||||||
<a class="navbar-item is-tab {% if page.doc-subtab == 'start' %}is-active{% endif %}" href="{{ site.url }}/documentation/overview/start/">
|
<a class="navbar-item is-tab {% if page.doc-subtab == 'start' %}is-active{% endif %}" href="{{ site.url }}/documentation/overview/start/">
|
||||||
Start
|
Start
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -45,13 +45,16 @@ $navbar-divider-background-color: $border !default
|
|||||||
&.has-shadow
|
&.has-shadow
|
||||||
box-shadow: 0 2px 3px rgba($black, 0.1)
|
box-shadow: 0 2px 3px rgba($black, 0.1)
|
||||||
|
|
||||||
.navbar-brand
|
.navbar-brand,
|
||||||
+overflow-touch
|
.navbar-tabs
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
display: flex
|
display: flex
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
max-width: 100vw
|
|
||||||
min-height: $navbar-height
|
min-height: $navbar-height
|
||||||
|
|
||||||
|
.navbar-tabs
|
||||||
|
+overflow-touch
|
||||||
|
max-width: 100vw
|
||||||
overflow-x: auto
|
overflow-x: auto
|
||||||
overflow-y: hidden
|
overflow-y: hidden
|
||||||
|
|
||||||
@@ -124,7 +127,8 @@ a.navbar-item,
|
|||||||
+touch
|
+touch
|
||||||
.navbar > .container
|
.navbar > .container
|
||||||
display: block
|
display: block
|
||||||
.navbar-brand
|
.navbar-brand,
|
||||||
|
.navbar-tabs
|
||||||
.navbar-item
|
.navbar-item
|
||||||
align-items: center
|
align-items: center
|
||||||
display: flex
|
display: flex
|
||||||
@@ -235,8 +239,10 @@ a.navbar-item,
|
|||||||
.navbar-divider
|
.navbar-divider
|
||||||
display: block
|
display: block
|
||||||
.container > .navbar
|
.container > .navbar
|
||||||
margin-left: -1rem
|
.navbar-brand
|
||||||
margin-right: -1rem
|
margin-left: -1rem
|
||||||
|
.navbar-menu
|
||||||
|
margin-right: -1rem
|
||||||
// Hover/Active states
|
// Hover/Active states
|
||||||
a.navbar-item,
|
a.navbar-item,
|
||||||
.navbar-link
|
.navbar-link
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
$container-offset: 60px !default
|
|
||||||
|
|
||||||
.container
|
.container
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
position: relative
|
position: relative
|
||||||
+from($desktop + $container-offset)
|
+from($desktop)
|
||||||
max-width: $desktop - (2 * $gap)
|
max-width: $desktop - (2 * $gap)
|
||||||
width: $desktop - (2 * $gap)
|
width: $desktop - (2 * $gap)
|
||||||
&.is-fluid
|
&.is-fluid
|
||||||
@@ -11,17 +9,17 @@ $container-offset: 60px !default
|
|||||||
margin-right: $gap
|
margin-right: $gap
|
||||||
max-width: none
|
max-width: none
|
||||||
width: auto
|
width: auto
|
||||||
+until($widescreen + $container-offset)
|
+until($widescreen)
|
||||||
&.is-widescreen
|
&.is-widescreen
|
||||||
max-width: $widescreen - (2 * $gap)
|
max-width: $widescreen - (2 * $gap)
|
||||||
width: auto
|
width: auto
|
||||||
+until($fullhd + $container-offset)
|
+until($fullhd)
|
||||||
&.is-fullhd
|
&.is-fullhd
|
||||||
max-width: $fullhd - (2 * $gap)
|
max-width: $fullhd - (2 * $gap)
|
||||||
width: auto
|
width: auto
|
||||||
+from($widescreen + $container-offset)
|
+from($widescreen)
|
||||||
max-width: $widescreen - (2 * $gap)
|
max-width: $widescreen - (2 * $gap)
|
||||||
width: $widescreen - (2 * $gap)
|
width: $widescreen - (2 * $gap)
|
||||||
+from($fullhd + $container-offset)
|
+from($fullhd)
|
||||||
max-width: $fullhd - (2 * $gap)
|
max-width: $fullhd - (2 * $gap)
|
||||||
width: $fullhd - (2 * $gap)
|
width: $fullhd - (2 * $gap)
|
||||||
@@ -44,8 +44,8 @@ $weight-bold: 700 !default
|
|||||||
|
|
||||||
// Responsiveness
|
// Responsiveness
|
||||||
|
|
||||||
// The container gap, which acts as the offset for breakpoints
|
// The container horizontal gap, which acts as the offset for breakpoints
|
||||||
$gap: 24px !default
|
$gap: 32px !default
|
||||||
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
||||||
$tablet: 769px !default
|
$tablet: 769px !default
|
||||||
// 960px container + 3rem
|
// 960px container + 3rem
|
||||||
|
|||||||
Reference in New Issue
Block a user