diff --git a/.gitignore b/.gitignore index 01d02aef..c0ea1c72 100644 --- a/.gitignore +++ b/.gitignore @@ -70,3 +70,4 @@ build/ dist/ static/js/modules/ static/js/utils.js +static/js/modals.js diff --git a/static/logo.svg b/static/logo.svg new file mode 100644 index 00000000..c33c1868 --- /dev/null +++ b/static/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/sass/_pattern_docs.scss b/static/sass/_pattern_docs.scss index 4133d64f..57041719 100644 --- a/static/sass/_pattern_docs.scss +++ b/static/sass/_pattern_docs.scss @@ -1,5 +1,5 @@ @mixin anbox-p-docs { - .l-docs { + .l-search { display: flex; flex-wrap: wrap; margin: 0 auto; diff --git a/static/sass/_pattern_footer.scss b/static/sass/_pattern_footer.scss new file mode 100644 index 00000000..594846d7 --- /dev/null +++ b/static/sass/_pattern_footer.scss @@ -0,0 +1,23 @@ +@mixin canonical-p-footer { + .p-footer { + @extend %vf-strip; + + background: $colors--dark-theme--background-alt; + color: $colors--dark-theme--text-default; + + .p-list__item--condensed { + @extend %vf-list-item; + + padding-bottom: 0; + padding-top: 0; + } + + a { + color: $color-link-dark; + + &:visited { + color: $color-link-visited-dark; + } + } + } +} diff --git a/static/sass/_pattern_navigation.scss b/static/sass/_pattern_navigation.scss index 5684952d..c0aa0fa0 100644 --- a/static/sass/_pattern_navigation.scss +++ b/static/sass/_pattern_navigation.scss @@ -1,32 +1,25 @@ @mixin anbox-p-navigation { - - .p-navigation__wrapper { - @media (max-width: $breakpoint-navigation-threshold) { - padding-left: 0; - padding-right: 0; - } - - @media (min-width: $breakpoint-navigation-threshold + 1) { - padding-left: map("$grid-gutter-widths", "large"); - padding-right: map("$grid-gutter-widths", "large"); - } - } - .p-navigation { - .p-navigation__banner { - background-color: $ubuntu-orange; - padding: 0 1rem; - } + &__row { + &-banner { + padding: 0 ($sph--small + $sph--large); - .p-navigation__logo { - font-weight: 400; - margin-right: 0; - } + @media only screen and (max-width: $breakpoint-small) { + padding-left: 1rem; + } + } + + &-logo { + font-weight: 400; + margin-right: 0; + } - .p-navigation__link a { - height: 100%; - padding-left: $spv--large; - padding-right: $spv--large; + &-toggle { + &--open, + &--close { + font-weight: 400; + } + } } } } diff --git a/static/sass/styles.scss b/static/sass/styles.scss index e27c2812..91ea1e7e 100644 --- a/static/sass/styles.scss +++ b/static/sass/styles.scss @@ -22,6 +22,7 @@ @import "pattern_navigation"; @import "pattern_strip"; @import "pattern_stream"; +@import "pattern_footer"; @include anbox-p-deployment-table; @include anbox-p-docs; @@ -30,6 +31,7 @@ @include anbox-p-navigation; @include anbox-p-strip; @include anbox-p-stream; +@include canonical-p-footer; // import additional styles @import "intl-tel-input"; @@ -38,15 +40,18 @@ bottom: auto; } -// Adjust logo width to secondary navigation -.p-navigation .p-navigation__banner { - padding-left: 0; - padding-right: 0; -} - @media (min-width: 975px) { #contact-modal.p-modal .p-modal__dialog { max-width: 875px; min-width: 875px; } } + +// TODO: to be removed when properly fixed on Vanilla side +// https://github.com/canonical/vanilla-framework/issues/4898 +@media screen and (min-width: $breakpoint-navigation-threshold) { + // align navigation items with grid in docs layout + .l-docs__subgrid .p-navigation__row { + padding-left: .5rem; + } +} diff --git a/templates/401.html b/templates/401.html index 928ff98e..43c35788 100644 --- a/templates/401.html +++ b/templates/401.html @@ -1,4 +1,4 @@ -{% extends '_layout.html' %} +{% extends 'base_layout.html' %} {% block title %}401: Not Authorised{% endblock %} diff --git a/templates/404.html b/templates/404.html index cc48c85d..d74226ac 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,4 +1,4 @@ -{% extends '_layout.html' %} +{% extends 'base_layout.html' %} {% block title %}404: Page not found{% endblock %} diff --git a/templates/500.html b/templates/500.html index dee08a36..bccc2e71 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,4 +1,4 @@ -{% extends '_layout.html' %} +{% extends 'base_layout.html' %} {% block title %}500: Server error{% endblock %} diff --git a/templates/_layout.html b/templates/base_layout.html similarity index 59% rename from templates/_layout.html rename to templates/base_layout.html index ad5cea18..d5325b62 100644 --- a/templates/_layout.html +++ b/templates/base_layout.html @@ -71,7 +71,8 @@ -
+ + -