mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Fix main header
This commit is contained in:
@@ -36,6 +36,34 @@
|
|||||||
"name": "Sizes",
|
"name": "Sizes",
|
||||||
"path": "/documentation/columns/sizes"
|
"path": "/documentation/columns/sizes"
|
||||||
},
|
},
|
||||||
|
"layout": {
|
||||||
|
"name": "Layout",
|
||||||
|
"path": "/documentation/layout"
|
||||||
|
},
|
||||||
|
"layout-level": {
|
||||||
|
"name": "Level",
|
||||||
|
"path": "/documentation/layout/level"
|
||||||
|
},
|
||||||
|
"layout-media": {
|
||||||
|
"name": "Media Object",
|
||||||
|
"path": "/documentation/layout/media"
|
||||||
|
},
|
||||||
|
"layout-hero": {
|
||||||
|
"name": "Hero",
|
||||||
|
"path": "/documentation/layout/hero"
|
||||||
|
},
|
||||||
|
"layout-section": {
|
||||||
|
"name": "Section",
|
||||||
|
"path": "/documentation/layout/section"
|
||||||
|
},
|
||||||
|
"layout-footer": {
|
||||||
|
"name": "Footer",
|
||||||
|
"path": "/documentation/layout/footer"
|
||||||
|
},
|
||||||
|
"layout-tiles": {
|
||||||
|
"name": "Tiles",
|
||||||
|
"path": "/documentation/layout/tiles"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"name": "Form",
|
"name": "Form",
|
||||||
"path": "/documentation/form"
|
"path": "/documentation/form"
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside class="bd-side">
|
<aside class="bd-side">
|
||||||
{% if include.show_carbon %}
|
<!-- Empty on purpose -->
|
||||||
{% include carbon.html %}
|
|
||||||
{% endif %}
|
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -67,22 +67,27 @@ route: documentation
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<header class="bd-header">
|
<header class="bd-header">
|
||||||
<h1 class="title">
|
<div class="bd-header-titles">
|
||||||
{{ page.title }}
|
<h1 class="title">
|
||||||
</h1>
|
{{ page.title }}
|
||||||
<p class="subtitle is-4">
|
</h1>
|
||||||
{{ page.subtitle }}
|
<p class="subtitle is-4">
|
||||||
</p>
|
{{ page.subtitle }}
|
||||||
|
</p>
|
||||||
|
{% if page.meta %}
|
||||||
|
{%
|
||||||
|
include meta.html
|
||||||
|
colors=page.meta.colors
|
||||||
|
sizes=page.meta.sizes
|
||||||
|
variables=page.meta.variables
|
||||||
|
experimental=page.meta.experimental
|
||||||
|
%}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if page.meta %}
|
<div class="bd-header-carbon">
|
||||||
{%
|
{% include carbon.html %}
|
||||||
include meta.html
|
</div>
|
||||||
colors=page.meta.colors
|
|
||||||
sizes=page.meta.sizes
|
|
||||||
variables=page.meta.variables
|
|
||||||
experimental=page.meta.experimental
|
|
||||||
%}
|
|
||||||
{% endif %}
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="bd-content">
|
<div class="bd-content">
|
||||||
@@ -94,7 +99,7 @@ route: documentation
|
|||||||
|
|
||||||
<aside class="bd-side">
|
<aside class="bd-side">
|
||||||
{% unless page.hide_carbon %}
|
{% unless page.hide_carbon %}
|
||||||
{% include carbon.html %}
|
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ $carbon-poweredby-height: 20px
|
|||||||
margin-left: auto
|
margin-left: auto
|
||||||
margin-right: auto
|
margin-right: auto
|
||||||
max-width: $carbon-width
|
max-width: $carbon-width
|
||||||
min-height: 120px
|
min-height: $carbon-height
|
||||||
min-width: 280px
|
min-width: 280px
|
||||||
|
|
||||||
#carbon
|
#carbon
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
$main-spacing: 2.5rem
|
||||||
|
|
||||||
.bd-main
|
.bd-main
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
position: relative
|
position: relative
|
||||||
@@ -11,7 +13,7 @@
|
|||||||
.bd-breadcrumb
|
.bd-breadcrumb
|
||||||
display: flex
|
display: flex
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
margin-bottom: 2.5rem
|
margin-bottom: $main-spacing
|
||||||
.breadcrumb:not(:last-child)
|
.breadcrumb:not(:last-child)
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
|
|
||||||
@@ -32,11 +34,15 @@
|
|||||||
background-color: $background
|
background-color: $background
|
||||||
|
|
||||||
.bd-header
|
.bd-header
|
||||||
margin-bottom: 2.5rem
|
border-bottom: 2px solid $background
|
||||||
|
margin-bottom: $main-spacing
|
||||||
|
padding-bottom: $main-spacing
|
||||||
.subtitle
|
.subtitle
|
||||||
color: $text-light
|
color: $text-light
|
||||||
strong
|
strong
|
||||||
color: currentColor
|
color: currentColor
|
||||||
|
#meta
|
||||||
|
margin-top: -0.5rem
|
||||||
|
|
||||||
// Side
|
// Side
|
||||||
|
|
||||||
@@ -72,6 +78,16 @@
|
|||||||
overflow: hidden
|
overflow: hidden
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 1
|
flex-shrink: 1
|
||||||
|
.bd-header
|
||||||
|
display: flex
|
||||||
|
.bd-header-titles
|
||||||
|
flex-grow: 1
|
||||||
|
flex-shrink: 1
|
||||||
|
.bd-header-carbon
|
||||||
|
flex-grow: 0
|
||||||
|
flex-shrink: 0
|
||||||
|
margin-left: 1.5rem
|
||||||
|
width: $carbon-width
|
||||||
.bd-prev-next
|
.bd-prev-next
|
||||||
display: flex
|
display: flex
|
||||||
.bd-side
|
.bd-side
|
||||||
|
|||||||
@@ -9527,7 +9527,9 @@ label.panel-block:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bd-header {
|
.bd-header {
|
||||||
|
border-bottom: 2px solid whitesmoke;
|
||||||
margin-bottom: 2.5rem;
|
margin-bottom: 2.5rem;
|
||||||
|
padding-bottom: 2.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-header .subtitle {
|
.bd-header .subtitle {
|
||||||
@@ -9538,6 +9540,10 @@ label.panel-block:hover {
|
|||||||
color: currentColor;
|
color: currentColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bd-header #meta {
|
||||||
|
margin-top: -0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.bd-side,
|
.bd-side,
|
||||||
.bd-side-background {
|
.bd-side-background {
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
@@ -9578,6 +9584,19 @@ label.panel-block:hover {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
}
|
}
|
||||||
|
.bd-header {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.bd-header-titles {
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 1;
|
||||||
|
}
|
||||||
|
.bd-header-carbon {
|
||||||
|
flex-grow: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-left: 1.5rem;
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
.bd-prev-next {
|
.bd-prev-next {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@@ -9879,7 +9898,7 @@ svg {
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
min-height: 120px;
|
min-height: 100px;
|
||||||
min-width: 280px;
|
min-width: 280px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ layout: documentation
|
|||||||
hide_carbon: true
|
hide_carbon: true
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: container
|
doc-subtab: container
|
||||||
|
breadcrumb:
|
||||||
|
- home
|
||||||
|
- documentation
|
||||||
|
- layout
|
||||||
|
- layout-container
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture container_example %}
|
{% capture container_example %}
|
||||||
@@ -62,7 +67,7 @@ doc-subtab: container
|
|||||||
<p>The values <strong>960</strong>, <strong>1152</strong> and <strong>1344</strong> have been chosen because they are divisible by both <strong>12</strong> and <strong>16</strong>.</p>
|
<p>The values <strong>960</strong>, <strong>1152</strong> and <strong>1344</strong> have been chosen because they are divisible by both <strong>12</strong> and <strong>16</strong>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include layout/main-close.html show_carbon=true %}
|
{% include layout/main-close.html %}
|
||||||
|
|
||||||
<div class="bd-example is-fullwidth">
|
<div class="bd-example is-fullwidth">
|
||||||
{{container_example}}
|
{{container_example}}
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ layout: documentation
|
|||||||
hide_carbon: true
|
hide_carbon: true
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: footer
|
doc-subtab: footer
|
||||||
|
breadcrumb:
|
||||||
|
- home
|
||||||
|
- documentation
|
||||||
|
- layout
|
||||||
|
- layout-footer
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture footer_example %}
|
{% capture footer_example %}
|
||||||
@@ -21,7 +26,7 @@ doc-subtab: footer
|
|||||||
</footer>
|
</footer>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
{% include layout/main-close.html show_carbon=true %}
|
{% include layout/main-close.html %}
|
||||||
|
|
||||||
{% include snippet.html content=footer_example horizontal=true more=true fullwidth=true %}
|
{% include snippet.html content=footer_example horizontal=true more=true fullwidth=true %}
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,14 @@ layout: documentation
|
|||||||
hide_carbon: true
|
hide_carbon: true
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: hero
|
doc-subtab: hero
|
||||||
|
breadcrumb:
|
||||||
|
- home
|
||||||
|
- documentation
|
||||||
|
- layout
|
||||||
|
- layout-hero
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include layout/main-close.html show_carbon=true %}
|
{% include layout/main-close.html %}
|
||||||
|
|
||||||
<section class="section is-fullwidth">
|
<section class="section is-fullwidth">
|
||||||
<div class="bd-example">
|
<div class="bd-example">
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ subtitle: "A multi-purpose <strong>horizontal level</strong>, which can contain
|
|||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: level
|
doc-subtab: level
|
||||||
|
breadcrumb:
|
||||||
|
- home
|
||||||
|
- documentation
|
||||||
|
- layout
|
||||||
|
- layout-level
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture nav_example %}
|
{% capture nav_example %}
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ subtitle: "The famous <strong>media object</strong> prevalent in social media in
|
|||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: media-object
|
doc-subtab: media-object
|
||||||
|
breadcrumb:
|
||||||
|
- home
|
||||||
|
- documentation
|
||||||
|
- layout
|
||||||
|
- layout-media
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture media_example %}
|
{% capture media_example %}
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ subtitle: "A simple container to divide your page into <strong>sections</strong>
|
|||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: section
|
doc-subtab: section
|
||||||
|
breadcrumb:
|
||||||
|
- home
|
||||||
|
- documentation
|
||||||
|
- layout
|
||||||
|
- layout-section
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture section_example %}
|
{% capture section_example %}
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ subtitle: "A <strong>single tile</strong> element to build 2-dimensional Metro-l
|
|||||||
layout: documentation
|
layout: documentation
|
||||||
doc-tab: layout
|
doc-tab: layout
|
||||||
doc-subtab: tiles
|
doc-subtab: tiles
|
||||||
|
breadcrumb:
|
||||||
|
- home
|
||||||
|
- documentation
|
||||||
|
- layout
|
||||||
|
- layout-tiles
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture tile_empty %}
|
{% capture tile_empty %}
|
||||||
|
|||||||
Reference in New Issue
Block a user