mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Add documentation tabs
This commit is contained in:
parent
fcaea076bd
commit
5a478857a8
@ -17,7 +17,7 @@
|
|||||||
"path": "/documentation/overview"
|
"path": "/documentation/overview"
|
||||||
},
|
},
|
||||||
"overview-start": {
|
"overview-start": {
|
||||||
"name": "Getting started",
|
"name": "Start",
|
||||||
"subtitle": "You only need <strong>1 CSS file</strong> to use Bulma",
|
"subtitle": "You only need <strong>1 CSS file</strong> to use Bulma",
|
||||||
"color": "danger",
|
"color": "danger",
|
||||||
"icon": "rocket",
|
"icon": "rocket",
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"path": "/documentation/overview/customize"
|
"path": "/documentation/overview/customize"
|
||||||
},
|
},
|
||||||
"overview-classes": {
|
"overview-classes": {
|
||||||
"name": "CSS Classes",
|
"name": "Classes",
|
||||||
"subtitle": "Bulma is simply a <strong>collection</strong> of CSS classes. Write the HTML code you want.",
|
"subtitle": "Bulma is simply a <strong>collection</strong> of CSS classes. Write the HTML code you want.",
|
||||||
"color": "link",
|
"color": "link",
|
||||||
"icon_brand": "true",
|
"icon_brand": "true",
|
||||||
|
@ -61,6 +61,25 @@ route: documentation
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
{% if page.hide_tabs %}
|
||||||
|
<hr style="margin: 0 0 3rem;">
|
||||||
|
{% else %}
|
||||||
|
<nav class="bd-tabs">
|
||||||
|
<div class="tabs">
|
||||||
|
<ul>
|
||||||
|
{% for link_id in category_links %}
|
||||||
|
{% assign link = site.data.links.by_id[link_id] %}
|
||||||
|
<li {% if link_id == current_link_id %}class="is-active"{% endif %}>
|
||||||
|
<a href="{{ site.url }}{{ link.path }}">
|
||||||
|
{{ link.name }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="bd-content">
|
<div class="bd-content">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,9 +45,7 @@
|
|||||||
margin-left: auto
|
margin-left: auto
|
||||||
|
|
||||||
.bd-header
|
.bd-header
|
||||||
border-bottom: 2px solid $background
|
|
||||||
margin-bottom: $main-spacing
|
margin-bottom: $main-spacing
|
||||||
padding-bottom: $main-spacing
|
|
||||||
.subtitle
|
.subtitle
|
||||||
color: $text-light
|
color: $text-light
|
||||||
strong
|
strong
|
||||||
@ -55,6 +53,22 @@
|
|||||||
#meta
|
#meta
|
||||||
margin-top: -0.5rem
|
margin-top: -0.5rem
|
||||||
|
|
||||||
|
.bd-tabs
|
||||||
|
margin-bottom: $main-spacing
|
||||||
|
.tabs
|
||||||
|
overflow: visible
|
||||||
|
ul,
|
||||||
|
a
|
||||||
|
border-bottom-color: $white-ter
|
||||||
|
border-bottom-width: 2px
|
||||||
|
ul
|
||||||
|
flex-wrap: wrap
|
||||||
|
max-width: 100%
|
||||||
|
a
|
||||||
|
margin-bottom: -2px
|
||||||
|
li:not(.is-active) a:hover
|
||||||
|
border-bottom-color: $border
|
||||||
|
|
||||||
.bd-content
|
.bd-content
|
||||||
hr:first-child
|
hr:first-child
|
||||||
display: none
|
display: none
|
||||||
@ -195,7 +209,7 @@
|
|||||||
.bd-header
|
.bd-header
|
||||||
align-items: center
|
align-items: center
|
||||||
display: flex
|
display: flex
|
||||||
min-height: 130px
|
min-height: 140px
|
||||||
.bd-header-titles
|
.bd-header-titles
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 1
|
flex-shrink: 1
|
||||||
|
@ -22,7 +22,7 @@ $carbon-width: 300px
|
|||||||
$carbon-height: 100px
|
$carbon-height: 100px
|
||||||
$main-spacing: 3rem
|
$main-spacing: 3rem
|
||||||
$intro-width: 1080px
|
$intro-width: 1080px
|
||||||
$sidebar-width: 14rem
|
$sidebar-width: 10.5rem
|
||||||
|
|
||||||
@import "../bulma"
|
@import "../bulma"
|
||||||
|
|
||||||
|
@ -10246,9 +10246,7 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bd-header {
|
.bd-header {
|
||||||
border-bottom: 2px solid whitesmoke;
|
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
padding-bottom: 3rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-header .subtitle {
|
.bd-header .subtitle {
|
||||||
@ -10263,6 +10261,33 @@ label.panel-block:hover {
|
|||||||
margin-top: -0.5rem;
|
margin-top: -0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bd-tabs {
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-tabs .tabs {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-tabs .tabs ul,
|
||||||
|
.bd-tabs .tabs a {
|
||||||
|
border-bottom-color: whitesmoke;
|
||||||
|
border-bottom-width: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-tabs .tabs ul {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-tabs .tabs a {
|
||||||
|
margin-bottom: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bd-tabs .tabs li:not(.is-active) a:hover {
|
||||||
|
border-bottom-color: #dbdbdb;
|
||||||
|
}
|
||||||
|
|
||||||
.bd-content hr:first-child {
|
.bd-content hr:first-child {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -10370,7 +10395,7 @@ label.panel-block:hover {
|
|||||||
|
|
||||||
.bd-anchors {
|
.bd-anchors {
|
||||||
display: none;
|
display: none;
|
||||||
max-width: 14rem;
|
max-width: 10.5rem;
|
||||||
padding-top: calc(1.5rem - 1px);
|
padding-top: calc(1.5rem - 1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -10429,7 +10454,7 @@ label.panel-block:hover {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
.bd-side {
|
.bd-side {
|
||||||
flex: 0 0 calc(14rem + 1.5rem);
|
flex: 0 0 calc(10.5rem + 1.5rem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -10447,7 +10472,7 @@ label.panel-block:hover {
|
|||||||
.bd-header {
|
.bd-header {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 130px;
|
min-height: 140px;
|
||||||
}
|
}
|
||||||
.bd-header-titles {
|
.bd-header-titles {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
2
docs/css/bulma-docs.min.css
vendored
2
docs/css/bulma-docs.min.css
vendored
File diff suppressed because one or more lines are too long
@ -2,6 +2,7 @@
|
|||||||
title: Columns
|
title: Columns
|
||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: columns
|
doc-tab: columns
|
||||||
|
hide_tabs: true
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
- home
|
- home
|
||||||
- documentation
|
- documentation
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
title: Components
|
title: Components
|
||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: components
|
doc-tab: components
|
||||||
|
hide_tabs: true
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
- home
|
- home
|
||||||
- documentation
|
- documentation
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
title: Elements
|
title: Elements
|
||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: elements
|
doc-tab: elements
|
||||||
|
hide_tabs: true
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
- home
|
- home
|
||||||
- documentation
|
- documentation
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
title: Form
|
title: Form
|
||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: form
|
doc-tab: form
|
||||||
|
hide_tabs: true
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
- home
|
- home
|
||||||
- documentation
|
- documentation
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
title: Layout
|
title: Layout
|
||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
|
hide_tabs: true
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
- home
|
- home
|
||||||
- documentation
|
- documentation
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
title: Modifiers
|
title: Modifiers
|
||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: modifiers
|
doc-tab: modifiers
|
||||||
|
hide_tabs: true
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
- home
|
- home
|
||||||
- documentation
|
- documentation
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
title: Overview
|
title: Overview
|
||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: overview
|
doc-tab: overview
|
||||||
|
hide_tabs: true
|
||||||
breadcrumb:
|
breadcrumb:
|
||||||
- home
|
- home
|
||||||
- documentation
|
- documentation
|
||||||
|
Loading…
Reference in New Issue
Block a user