diff --git a/docs/_includes/header.html b/docs/_includes/header.html index de6a9c92..90ecc04f 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -1,11 +1,7 @@ - - {% if page.route == 'index' %} - - {% else %} - - {% endif %} + + @@ -43,7 +39,7 @@ Blog - {% if page.route == 'index' %} + {% if page.route != 'nothing' %} - - - {% include header.html %} - - + + {% include header.html %} + + diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index 0af8607f..5202ac16 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -94,7 +94,7 @@ th { } html { - background-color: whitesmoke; + background-color: white; font-size: 14px; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -3714,6 +3714,13 @@ a.nav-item.is-tab.is-active { padding-bottom: calc(0.5rem - 3px); } +@media screen and (min-width: 1000px) { + .nav-item a.is-brand, + a.nav-item.is-brand { + padding-left: 0; + } +} + @media screen and (max-width: 768px) { .nav-menu { background-color: white; @@ -3792,33 +3799,10 @@ a.nav-item.is-tab.is-active { width: 100%; } -.nav > .container > .nav-left > .nav-item:first-child:not(.is-tab) { - padding-left: 0; -} - -.nav > .container > .nav-right > .nav-item:last-child:not(.is-tab) { - padding-right: 0; -} - -.container > .nav > .nav-left > .nav-item:first-child:not(.is-tab) { - padding-left: 0; -} - -.container > .nav > .nav-right > .nav-item:last-child:not(.is-tab) { - padding-right: 0; -} - .nav.has-shadow { box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1); } -@media screen and (max-width: 999px) { - .nav > .container > .nav-left > .nav-item.is-brand:first-child, - .container > .nav > .nav-left > .nav-item.is-brand:first-child { - padding-left: 1.5rem; - } -} - .pagination, .pagination-list { align-items: center; diff --git a/docs/documentation/components/nav.html b/docs/documentation/components/nav.html index 10d99f60..7497fe0f 100644 --- a/docs/documentation/components/nav.html +++ b/docs/documentation/components/nav.html @@ -24,6 +24,9 @@ doc-subtab: nav nav-center nav-right + + Each nav item needs to be wrapped in a nav-item element. + For responsiveness, 2 additional classes are available: @@ -33,41 +36,45 @@ doc-subtab: nav - +{% capture nav_example %} - + - + - + + + + + - + Home - + Documentation - + Blog @@ -78,7 +85,7 @@ doc-subtab: nav Tweet - + @@ -87,63 +94,14 @@ doc-subtab: nav +{% endcapture %} + + +{{nav_example}} {% highlight html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Home - - - Documentation - - - Blog - - - - - - - - Tweet - - - - - - Download - - - - - +{{nav_example}} {% endhighlight %} diff --git a/docs/documentation/overview/variables.html b/docs/documentation/overview/variables.html index fea681cf..a901d7be 100644 --- a/docs/documentation/overview/variables.html +++ b/docs/documentation/overview/variables.html @@ -40,7 +40,7 @@ doc-subtab: variables Generated variables where variables are calculated from the values set in the previous file. For example, you can have: - $body-background: $grey-lighter: the page's main background is the lighter grey + $body-background: $white: the page's main background $link: $primary: the links use the primary color $family-primary: $family-sans-serif: the primary font family is the sans-serif one diff --git a/docs/images/bulma-logo.png b/docs/images/bulma-logo.png new file mode 100644 index 00000000..a016c2b5 Binary files /dev/null and b/docs/images/bulma-logo.png differ diff --git a/sass/components/nav.sass b/sass/components/nav.sass index 12e35946..0ca444a5 100644 --- a/sass/components/nav.sass +++ b/sass/components/nav.sass @@ -54,6 +54,10 @@ a.nav-item border-bottom: 3px solid $primary color: $primary padding-bottom: calc(0.5rem - 3px) + // Responsiveness + +desktop + &.is-brand + padding-left: 0 // Containers @@ -120,26 +124,6 @@ a.nav-item display: flex min-height: $nav-height width: 100% - & > .nav-left - & > .nav-item:first-child:not(.is-tab) - padding-left: 0 - & > .nav-right - & > .nav-item:last-child:not(.is-tab) - padding-right: 0 - .container > & - & > .nav-left - & > .nav-item:first-child:not(.is-tab) - padding-left: 0 - & > .nav-right - & > .nav-item:last-child:not(.is-tab) - padding-right: 0 // Modifiers &.has-shadow box-shadow: 0 2px 3px rgba($black, 0.1) - // Responsiveness - +touch - & > .container, - .container > & - & > .nav-left - & > .nav-item.is-brand:first-child - padding-left: 1.5rem diff --git a/sass/utilities/variables.sass b/sass/utilities/variables.sass index effd8f42..4c272923 100644 --- a/sass/utilities/variables.sass +++ b/sass/utilities/variables.sass @@ -85,8 +85,6 @@ $light-invert: $dark !default $dark-invert: $light !default // General colors -$body-background: $white-ter !default - $background: $white-ter !default $border: $grey-lighter !default
nav-center
nav-right
+ Each nav item needs to be wrapped in a nav-item element. +
nav-item
For responsiveness, 2 additional classes are available:
$body-background: $grey-lighter
$body-background: $white
$link: $primary
$family-primary: $family-sans-serif