opensearch-docs-cn/_sass/custom/custom.scss

1768 lines
36 KiB
SCSS
Executable File

@import "../../assets/fonts/open-sans/webfont.css";
@import "../../assets/fonts/open-sans-condensed/webfont.css";
@import "../../assets/fonts/noto-serif/webfont.css";
@import "../../assets/fonts/fira-mono/webfont.css";
@import "../color_schemes/opensearch.scss";
@import "../font-awesome";
// Font Family Mixins
@mixin serif {
font-family: "Noto Serif", 'Iowan Old Style', 'Apple Garamond', 'Baskerville', 'Times New Roman', serif;
}
@mixin sans-serif {
font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
}
@mixin monospace {
font-family: "Fira Mono", Consolas, Menlo, Monaco, "Courier New", Courier, monospace;
font-variant-ligatures: no-common-ligatures; // disables the common ligatures only
text-rendering: optimizeSpeed; // for Safari 7.x
}
@mixin heading-sans-serif {
font-family: "Open Sans Condensed", Impact, "Franklin Gothic Bold", sans-serif;
}
// Font Sizing Mixin (http://css-tricks.com/snippets/css/less-mixin-for-rem-font-sizing/)
@mixin font-size ( $size: 16, $important: false ) {
@if $important {
font-size: $size + px !important;
font-size: $size/16 + rem !important;
}
@else {
font-size: $size + px;
font-size: $size/16 + rem;
}
}
@mixin header-level4($color: $primary-open-sky-s3) {
color: $color;
font-family: 'Open Sans';
font-size: 15px;
font-style: normal;
font-weight: 600;
line-height: 24px;
letter-spacing: 4.5px;
text-transform: uppercase;
}
@mixin header-level5($color: $primary-open-sky-s3) {
color: $color;
font-family: 'Open Sans';
font-size: 15px;
font-style: normal;
font-weight: 600;
line-height: 24px;
}
@mixin header-level6($color: $primary-open-sky-s2) {
color: $color;
font-family: 'Open Sans';
font-size: 15px;
font-style: normal;
font-weight: 700;
line-height: 24px;
}
@mixin bottom-border-underline($color: $primary-pacific-blue) {
padding-top: 10px;
padding-bottom: 10px;
border-bottom: 2px solid $color;
}
@mixin body-text($color: #000) {
color: $color;
font-family: 'Open Sans';
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: 48px;
}
body {
@include sans-serif;
}
code {
@include monospace;
font-size: 0.8rem;
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}
.site-nav {
padding-top: 0;
position: sticky;
top: 0;
max-height: 100vh;
overflow-x: hidden;
min-width: 14rem;
padding-right: 1px;
padding-left: 1px;
padding-bottom: 1px;
}
nav#site-nav > .nav-list:nth-of-type(1) {
padding-top: 2px;
}
nav#site-nav > .nav-list,
nav#site-nav > .version-wrapper {
width: 264px;
position: relative;
box-sizing: border-box;
left: -21px;
}
nav#site-nav > .version-wrapper {
left: -36px;
}
.nav-list {
margin-top: 1px;
}
.nav-category {
text-align: start;
display: block;
}
.main-content {
ol {
> li {
&:before {
color: $grey-dk-100;
}
}
}
ul {
> li {
&:before {
color: $grey-dk-100;
}
}
}
h1, h2, h3, h4, h5, h6 {
@include heading-sans-serif;
font-weight: 700;
margin-top: 2.4rem;
margin-bottom: 0.8rem;
a {
text-decoration: none;
}
}
h4 {
font-size: 14px !important;
}
.highlight {
line-height: 1.4;
}
}
.site-title {
@include mq(md) {
padding-top: 1rem;
padding-bottom: 0.6rem;
padding-left: $sp-5;
}
}
.site-footer {
display: none;
@include mq(lg) {
display: block;
}
}
.external-arrow {
position: relative;
top: 0.125rem;
left: 0.25rem;
}
.panel {
border-radius: $border-radius;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
}
.td-custom {
@extend td;
&:first-of-type {
border-left: $border $border-color;
}
}
img {
@extend .panel;
}
.no-border {
border: none;
box-shadow: none;
}
.inline-icon {
@extend .no-border;
height: 1.2rem;
vertical-align: middle;
}
.img-border {
border: 1px solid $grey-lt-300;
}
// Note, tip, important, and warning blocks
%callout {
border: 1px solid $grey-lt-300;
border-radius: 5px;
margin: 1rem 0;
padding: 1rem;
position: relative;
}
.note {
@extend %callout;
border-left: 5px solid $blue-300;
}
.tip {
@extend %callout;
border-left: 5px solid $green-100;
}
.important {
@extend %callout;
border-left: 5px solid $yellow-000;
}
.warning {
@extend %callout;
border-left: 5px solid $red-100;
}
// Labels
.label,
.label-blue {
background-color: $blue-300;
}
.label-green {
background-color: $green-300;
}
.label-purple {
background-color: $purple-200;
}
.label-red {
background-color: $red-100;
}
.label-yellow {
color: $grey-dk-300;
background-color: $yellow-000;
}
// Buttons
.btn-primary {
@include btn-color($white, $btn-primary-color);
}
.btn-purple {
@include btn-color($white, $purple-200);
}
.btn-blue {
@include btn-color($white, $blue-300);
}
.btn-green {
@include btn-color($white, $green-300);
}
@mixin btn-default {
color: $blue-100;
background-color: white;
font-size: 0.9rem;
font-weight: 510;
border-width: 1px;
border-style: solid;
border-radius: 5px;
box-shadow: 1px 1px $grey-lt-300;
cursor: pointer;
}
@mixin elt-disabled {
color: mix(black, $base-button-color, 40%);
border-color: $base-button-color;
cursor: default;
background-color: mix(white, $base-button-color, 50%);
box-shadow: none;
}
.btn-general {
@include btn-default;
border-color: $blue-100;
padding: 0.5rem 1rem;
margin-left: 0.4rem;
margin-right: 0.4rem;
&:hover {
&:not([disabled]) {
background-color: $blue-lt-100;
box-shadow: 1px 2px 4px $grey-lt-300;
transform: translateY(-1px);
text-decoration: underline;
text-underline-offset: 2px;
}
&:active {
transform: translateY(1px);
}
}
&:disabled {
@include elt-disabled;
}
}
// Back to top button
.top-link {
display: block;
width: 2.5rem;
height: 2.5rem;
color: $blue-dk-100;
background-color: white;
border-width:2px;
border-style:solid;
border-color: $grey-lt-300;
border-radius: 10px;
box-shadow: 1px 1px 1px $grey-lt-300;
padding: 0.2rem;
position: fixed;
bottom: 30px;
right: 16px;
z-index: 999;
svg {
transform: rotate(-90deg);
}
&:hover {
border-color: $blue-dk-100;
background-color: $sidebar-color;
color: $blue-100;
}
}
.copy-button-wrap {
background-color: $sidebar-color;
padding: 0.25rem 2rem 0.5rem 2rem;
margin-bottom: 0.75rem;
display: flex;
justify-content: flex-end;
}
// Copy code button
.copy-button {
@extend .btn-general;
background-color: $sidebar-color;
display: inline;
}
// Copy as curl button
.copy-curl-button {
@extend .copy-button;
}
.send-button {
@extend .btn-general;
}
// Feedback question
.feedback-header {
@extend %toc-font;
letter-spacing: 0.08em;
margin: 1rem 0;
}
.feedback-text-header {
text-align: left;
font-size: 0.8rem;
font-weight: 500;
margin-top: 1rem;
}
.feedback-radio-div {
display: flex;
justify-content: space-between;
}
// hide the browser-rendered radio button
.feedback-radio-div input[type="radio"] {
display: none;
}
.feedback-radio {
@include btn-default;
border-color: $grey-lt-100;
margin: 0;
padding: 0.5rem 1.2rem;
border-color: $grey-lt-100;
&:hover {
&:not([disabled]) {
background-color: mix(white, $blue-lt-000, 50%);
box-shadow: 1px 2px 4px $grey-lt-300;
}
}
}
.feedback-radio-div input[type="radio"]:checked+label {
border-color: $blue-100;
background-color: $blue-lt-100;
box-shadow: inset 1px 1px 3px $blue-dk-100;
}
.feedback-radio-div input[type="radio"]:disabled+label {
@include elt-disabled;
}
// Feedback text area
textarea {
@extend .panel, .img-border;
width: 100%;
height: 5rem;
color: $grey-dk-300;
background-color: mix(white, $grey-lt-000, 50%);
font-size: 0.9rem;
resize: vertical;
&:focus {
outline: none;
border: 1px solid $blue-100;
background-color: white;
}
&:disabled {
@include elt-disabled;
}
}
.num-chars {
margin-bottom: 0.5rem;
text-align: left;
color: mix(white, $grey-dk-300, 40%);
}
.hidden {
visibility: hidden;
}
// Tables
th,
td {
border-bottom: $border rgba($table-border-color, 0.5);
border-left: $border $table-border-color;
}
thead {
th {
border-bottom: 1px solid $table-border-color;
}
}
td {
pre {
margin-bottom: 0;
}
}
// Keeps labels high and tight next to headers
h1 + p.label, h1 + p.label + p.label,
h2 + p.label, h2 + p.label + p.label,
h3 + p.label, h3 + p.label + p.label,
h4 + p.label, h4 + p.label + p.label,
h5 + p.label, h5 + p.label + p.label,
h6 + p.label, h6 + p.label + p.label {
margin: -20px 0 0 0;
}
p.label {
a {
color: inherit;
background-image: none;
&:hover { background-image: none; }
}
}
.os-banner {
@extend .panel;
display: flex;
flex-direction: column;
justify-content: space-between;
color: white;
background: linear-gradient(to right, $blue-dk-300, $blue-dk-200 80%); // fallback if image is not rendered
}
.banner-head {
@extend .panel;
background-size: cover;
}
.banner-text-div {
margin: 1rem 1rem 0 1.5rem;
padding: 0 1.5rem;
border-style: none none none solid;
border-color: $blue-lt-300;
border-width: 4px;
border-radius: 1px;
max-width: 47rem;
@include mq(sm) {
margin: 2rem 4rem 0 4rem;
}
}
.banner-text-header {
font-size: 2rem;
font-weight: 700;
@include mq(sm) {
font-size: 2.5rem;
}
}
.banner-text-description {
font-size: 1rem;
font-weight: 500;
}
.btn-contribute {
@extend .btn-general;
margin-bottom: 2rem;
margin-right: 4rem;
float: right;
color: $blue-dk-300;
box-shadow: 2px 3px 5px #000000;
&:hover {
box-shadow: 2px 3px 5px $blue-dk-300 !important;
}
}
.btn-contribute span {
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}
// Modifies margins in xl layout to support TOC
.side-bar {
@include mq(lg) {
width: $nav-width;
}
}
.main {
flex-grow: 1;
@include mq(lg) {
}
@media screen and (min-width: 1004px) {
max-width: calc(100% - #{$nav-width + $top-button-margin});
}
@media screen and (max-width: 1003px) {
box-sizing: border-box;
max-width: 100%;
}
@include mq(xl) {
max-width: calc(min(#{$max-content-width + $toc-width + $top-button-margin}, calc(100% - (#{$nav-width + $top-button-margin}))));
}
}
// Adds TOC to right hand side in xl layout
.main-content-wrap {
max-width: 100%;
min-width: 0;
padding-left: 0;
padding-right: 0;
box-sizing: border-box;
@media screen and (max-width: 1003px) {
padding-left: 20px;
}
}
.toc-wrap {
display: none;
@include mq(xl) {
display: block;
padding: 2rem 0;
}
}
.sticky-wrap {
@include mq(xl) {
z-index: 1;
position: sticky;
top: 2rem;
width: $toc-width;
}
}
.toc {
@include mq(xl) {
max-height: calc(100vh - 4rem);
overflow: auto;
}
}
%toc-font {
@include heading-sans-serif;
text-transform: uppercase;
font-weight: bold;
letter-spacing: 0.1em;
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 14px !important;
}
.toc-list {
&:before {
content: "On this page";
@extend %toc-font;
}
border: 1px solid $border-color;
font-size: 14px;
list-style-type: none;
background-color: $sidebar-color;
padding: $sp-6 $sp-4;
margin-left: $sp-4;
margin-right: $sp-8;
margin-bottom: 0;
overflow: auto;
}
.toc-item {
padding-top: .25rem;
padding-bottom: .25rem;
}
.div-feedback {
@extend .table-wrapper;
width: calc(#{$toc-width} - 4rem);
text-align: center;
margin-top: 3rem;
margin-left: $sp-4;
margin-right: $sp-8;
padding-left: 1rem;
padding-right: 1rem;
display: block;
}
/* Website Header & Footer */
$logo_width: 170px;
$attention-light: #4fb3e3;
$attention: #00a3e0; //formerly $green-medium, open sky
$attention-dark: #0082b3; //formerly $green-medium-dark, open sky, tent 1
$core: #0053b8; //pacific blue
$warning-light: #ffc460; //golden poppy, tint 2
$warning: #ffb81c; //golden poppy
$warning-dark: #cc9316; //golden poppy, shade 1
$background-darkest: #D9E1E2;
$background-darker: #f5f7f7; //SF Fog, tint 1
$background-lightest: #fff; //pure white
$line: #ccd3d6; //sf fog, shade 1
$line-lighter: #f6f8f8; // sf fog, tint 1
$highlight: #b9d9eb; //pacific sky, formerly $green-very-light
$highlight-lighter: #c7dfee;
$highlight-lightest: #f4f8fb;
$accent: #2cd5c4; //seafoam mint, formerly $green-light
$accent-dark: #003b5c; //deep blue sea, formerly $green-dark, $green-dark-text unused
$accent-light: #7b96a9; //deep blue sea, tint 2
$text: #002a3a; //midnight sky
$text-visited: #1d3c4b; //midnight sky, tint 1
$text-hover: #4c636f; //midnight sky, tint 2
$text-light: #647782; //midnight sky, tint 3
$text-light-darker: #4c636f; //midnight sky, tint 2
$text-light-darkest: #1d3c4b; //midnight sky, tint 1
$text-link-alternate: #0053b8; //pacific blue
$text-link-alternate-lighter: #137cc1; //pacific blue tint 1
$text-link-alternate-darker: #00529e;
@mixin respond-min($width) {
@media screen and (min-width: $width) {
@content;
}
}
// Boilerplate Helper mixins (https://github.com/h5bp/html5-boilerplate/blob/v4.1.0/doc/css.md)
@mixin visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
@mixin clearfix {
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
}
// Green Link Mixin
@mixin link-alternate { //todo make non-colour oriented
color: $text-link-alternate;
text-decoration: none;
&:visited {
color: $text-link-alternate;
}
&:hover,
&:active,
&:focus {
color: $text-link-alternate-lighter;
text-decoration: none;
}
}
@mixin stripes {
background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
background-image: -moz-linear-gradient(-45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
background-image: linear-gradient(135deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
}
@mixin warning-stripes {
background-color: $warning;
background-image: linear-gradient(135deg, $warning-light 25%, transparent 25%, transparent 50%, $warning-light 50%, $warning-light 75%, transparent 75%, transparent);
}
html {
background: $accent-dark;
}
body {
@include sans-serif;
@include font-size(16);
background: linear-gradient(to right, #F5F7F7 100%, transparent 100%);;
color: $text;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
.layout-secondary,
[role="complementary"] {
@include sans-serif; // reverse font style on sidebar and secondary areas
}
}
main {
display: flex;
flex-flow: row nowrap;
align-content: stretch;
height: 100%;
position: relative;
justify-content: space-between;
@include mq(lg) {
background: linear-gradient(to right, $sidebar-color $nav-width, transparent $nav-width);
}
@include mq(xl) {
background: linear-gradient(to right, $sidebar-color calc((100% - #{$nav-width + $max-content-width }) / 2 + 2 * #{$top-button-margin} ), transparent calc((100% - #{$nav-width + $max-content-width }) / 2 + 2 * #{$top-button-margin} ));
}
.side-bar {
@include sans-serif;
position: static;
height: auto;
}
.main {
margin-left: 0;
display: flex;
flex-flow: row nowrap;
overflow: hidden;
@include mq(xl) {
overflow: visible;
}
}
}
.container {
box-sizing: content-box;
@include mq(xs) {
padding: 0 calc(#{$top-button-margin} + 1rem);
&.footer-container {
padding: 0;
}
}
@include mq(md) {
margin: 0 auto;
max-width: 1440px;
}
&.sidebar-right {
.mdzr-boxshadow & {
box-shadow: -1200px 0 0 0px $background-lightest;
}
}
@media screen and (min-width: 740px) and (max-width: 1045px) {
padding: 0 20px;
}
@media screen and (max-width: 739px) {
padding: 0;
}
}
.toc,
.breadcrumb-nav {
@include sans-serif;
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}
.main-content {
h1, h2, h3, h4, h5, h6 {
a {
@include link-alternate;
}
}
h2 {
@include font-size(24, true);
}
}
.btn {
@include sans-serif;
@include font-size(16);
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}
//
// Top banner header navigation menu.
//
$header-banner-min-width: 1019px;
$header-banner-mobile-breakpoint: 1018px;
$header-logo-max-left: 80px;
$header-navigation-max-right: 40px;
$max-container: 1440px;
$light-theme-navigation-background: rgba(0, 163, 224, 0.05);
$primary-pacific-blue-s2: #004381;
$primary-open-sky-s3: #003551;
$primary-pacific-sky-t2: #DCEBF4;
$primary-pacific-sky-t3: #F4F8FB;
$primary-open-sky-s2: #006D97;
$primary-deep-blue-sea-s3: #001E30;
$primary-open-sky-t3: #E1F0F9;
$primary-deep-blue-sea-t1: #2C5E7A;
$primary-open-sky-t1: #4FB3E3;
$primary-open-sky-t2: #9BCFED;
$footer-3-column-min: 835px;
$footer-2-column-max: 834px;
$footer-2-column-min: 701px;
$footer-1-column-max:700px;
@mixin gradient-deep-blue-sea {
background: linear-gradient(180deg, #016BA7 0%, #011C2D 97.92%);
}
[role="banner"] {
// Includes global navigation, logo, and tagline at top of document
@include clearfix;
background: $light-theme-navigation-background;
overflow: hidden;
margin: 0;
padding: 10px 0 6px;
position: relative;
z-index: 0;
.container {
@include mq(md) {
position: relative;
}
@media screen and (max-width: 1200px) {
padding-right: 10px;
}
}
.meta {
@include font-size(13);
color: $attention;
font-weight: 700;
width: auto;
float: left;
margin: 8px 0 0 10px;
display: none;
@include respond-min(1150px) {
float: left;
width: 200px;
display: block;
}
}
.logo {
font-size: 35px;
@include sans-serif;
color: $background-lightest;
display: block;
float: left;
font-weight: 700;
margin: 10px 0 10px 10px;
overflow: hidden;
text-decoration: none;
text-indent: 100%;
height: 36px;
position: relative;
// NOTE: The min() call is wrapped in a calc() call to workaround the
// outdated SASS compiler that has an issue mixing the percentage with pixels,
// and will not interpolate the variable for 1019px either because of the error
// which is why the constant value as a "magic number" is present.
// left: calc(min(80px, 100% - 1019px));
@media screen and (max-width: 1339px) {
left: 0;
}
svg {
position: absolute;
top: 1px;
left: 1px
}
@include respond-min($header-banner-min-width) {
margin-left: 0;
}
}
.menu-button {
font-size: 35px;
color: $primary-deep-blue-sea-t1;
cursor: pointer;
display: block;
float: right;
height: 45px;
line-height: 48px;
margin: 4px 10px;
text-align: center;
text-decoration: none;
width: 45px;
> .icon {
&:nth-of-type(1) {
width: 30px;
height: 35px;
}
&:nth-of-type(2) {
width: 27.5px;
height: 35px;
}
}
> i {
position: relative;
top: -1px;
&:nth-of-type(1) {
display: inline-block;
}
&:nth-of-type(2) {
display: none;
}
}
@include respond-min($header-banner-min-width) {
display: none;
}
&:active {
color: $attention;
}
span {
@include visuallyhidden;
}
&.active {
> i {
&:nth-of-type(1) {
display: none;
}
&:nth-of-type(2) {
display: inline-block;
}
}
}
}
.nav-menu-on {
@media screen and (max-width: $header-banner-mobile-breakpoint) {
height: 0;
}
overflow: hidden;
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
@include respond-min($header-banner-min-width) {
// turn off animations if on a desktop width
max-height: none;
height: auto;
-webkit-transition: none;
transition: none;
}
&.active {
@include respond-min($header-banner-min-width) {
overflow-y: scroll;
}
@media screen and (max-width: $header-banner-mobile-breakpoint) {
height: calc(100vh - 65px);
overflow-y: auto;
> .nested-nav {
@include clearfix;
height: auto;
clear: both;
}
}
}
}
[role="navigation"] {
@media screen and (max-width: $header-banner-mobile-breakpoint) {
background: $primary-open-sky-s3;
}
width: 100%;
@include respond-min($header-banner-min-width) {
width: auto;
float: right;
}
ul {
margin: 0;
padding: 0;
}
li {
@include sans-serif;
@include font-size(13);
display: block;
font-weight: 700;
line-height: 16px;
text-align: left;
text-transform: uppercase;
margin: 0 10px;
@include respond-min($header-banner-min-width) {
margin: 0;
border: 0;
float: left;
text-align: left;
}
&.active a {
color: $attention;
}
}
a {
color: $background-lightest;
display: block;
text-decoration: none;
}
a:not([class]) {
background-image: unset;
}
.nav-primary {
@include respond-min($header-banner-min-width) {
position: absolute;
right: 0;
top: 45px;
}
}
}
}
[role="banner"] [role="navigation"] {
margin-top: 17px;
margin-right: 10px;
@media screen and (max-width: 1339px) {
margin-right: 0;
}
li {
color: $primary-open-sky-s3;
text-transform: none;
@media screen and (min-width: 1250px) {
margin-right: 20px;
}
@media screen and (min-width: 1150px) and (max-width: 1249px) {
margin-right: 10px;
}
margin-right: 5px;
}
li a {
display: inline;
@include header-level6($primary-open-sky-s3);
}
.nested-nav a.in-category,
.nested-nav a:hover {
color: $primary-open-sky-s2;
text-decoration: underline;
text-decoration-color: $primary-open-sky-s2;
text-decoration-thickness: 2px;
text-underline-offset: 6px;
}
}
[role=banner] [role=navigation] li.landing-page-redesign--nav--search {
display: inline-flex;
align-items: flex-start;
@media screen and (max-width: $header-banner-mobile-breakpoint) {
display: flex;
width: calc(100% - 20px);
padding: 15px 10px;
height: 60px;
box-sizing: content-box;
}
>.landing-page-redesign--nav-search--field-with-results {
display: inline-flex;
align-items: flex-start;
min-width: 200px;
justify-content: stretch;
@media screen and (min-width: $header-banner-min-width) {
position: relative;
top: -20px;
}
@media screen and (max-width: $header-banner-mobile-breakpoint) {
display: flex;
width: 100%;
position: relative;
z-index: 11;
}
>.landing-page-redesign--nav-search--field-with-results--field {
flex-basis: 100%;
flex-grow: 1;
flex-shrink: 1;
>.landing-page-redesign--nav-search--field-with-results--field--wrapper {
position: relative;
>.search {
>.search-input-wrap {
>.search-input {
padding-left: 9.6px;
padding-right: 6px;
transition: padding-right linear 200ms;
border-radius: 6px;
background-color: $primary-pacific-sky-t2;
@include header-level6($primary-open-sky-s2);
box-sizing: border-box;
&::placeholder {
@include header-level6($primary-open-sky-s2);
}
@media screen and (max-width: $header-banner-mobile-breakpoint) {
height: 60px;
padding-top: 0;
padding-bottom: 0;
font-size: 18px;
}
@media screen and (min-width: $header-banner-min-width) {
height: 45px;
position: relative;
border: none;
padding-bottom: 17px;
padding-top: 1em;
}
}
>.search-spinner {
display: none;
font-weight: 700;
outline: 0;
user-select: none;
position: absolute;
padding-right: 9.6px;
height: 100%;
right: 0;
left: auto;
top: 13.5px;
@media screen and (max-width: $header-banner-mobile-breakpoint) {
top: 21px;
}
}
>.search-label {
right: 4px;
top: 2px;
padding-left: 0;
padding-right: 0;
transition: right linear 200ms;
@media screen and (max-width: $header-banner-mobile-breakpoint) {
width: 25px;
height: 26px;
top: 17px;
}
}
}
}
}
}
}
}
.search-active [role=banner] [role=navigation] li.landing-page-redesign--nav--search {
>.landing-page-redesign--nav-search--field-with-results {
@media screen and (min-width: $header-banner-min-width) {
top: -10px;
}
}
}
body {
padding-bottom: 0;
}
[role="contentinfo"] {
// Global Footer at bottom of page
@include clearfix;
@include sans-serif;
position: relative;
background: $attention;
clear: both;
margin-top: 0px;
& * {
box-sizing: content-box;
}
.container {
overflow: hidden;
}
.subfooter {
@include clearfix;
padding: 0;
@include gradient-deep-blue-sea;
.subfooter--flex-wrapper {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: flex-start;
.subfooter--columns-wrapper {
flex-basis: 1265px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
padding-bottom: 60px;
> .subfooter--columns-wrapper--column {
box-sizing: border-box;
@media screen and (min-width: $footer-3-column-min) {
flex-basis: 33%;
max-width: 350px;
padding-left: 80px;
}
@media screen and (max-width: $footer-2-column-max) and (min-width: $footer-2-column-min) {
&:nth-of-type(1) {
flex-basis: 50%;
padding-left: 40px;
}
&:nth-of-type(2) {
flex-basis: 50%;
padding-left: 40px;
}
&:nth-of-type(3) {
flex-basis: 100%;
padding-left: 40px;
}
}
@media screen and (max-width: $footer-1-column-max) {
flex-basis: 100%;
padding-left: 10px;
padding-bottom: 80px;
}
> h4 {
@include header-level4($white);
margin-top: 35px;
margin-bottom: 20px;
&.opensearch-more-important {
font-size: 15px !important; // Sorry, but the base theme uses !important.
}
}
> ul {
list-style-type: none;
margin: 0;
padding: 0;
> li {
@media screen and (max-width: $footer-1-column-max) {
@include body-text($white);
}
@media screen and (min-width: $footer-2-column-min) {
@include header-level5($white);
}
}
}
}
}
}
.col {
&:first-child {
h2 {
border-top: 0;
}
}
@include mq(md) {
float: left;
margin-bottom: -999px;
padding: 0 3% 999px 0;
width: 23%;
}
&:first-child {
margin-left: 0;
padding-left: 0;
}
&.last-child {
margin-right: 0;
padding-right: 0;
}
}
}
h2 {
@include heading-sans-serif;
@include font-size(16, true);
border-top: 1px solid $line;
color: $background-lightest;
font-weight: 700;
margin-top: 20px;
padding: 30px 0 10px;
@include respond-min(46.25rem) {
border: none;
margin-top: 0;
}
}
ul {
font-size: 14px;
font-weight: 400;
list-style: none;
margin: 15px 0 0 0;
padding: 0 0 30px;
li {
margin: 10px 0 0;
padding: 0;
}
a {
color: $white;
text-decoration: none;
background: none;
&:hover,
&:active,
&:focus {
text-decoration: underline;
background: none;
}
}
}
.footer {
background: $primary-deep-blue-sea-s3;
padding: 10px 0 30px;
color: #d9d9d9;
.footer--flex-wrapper {
box-sizing: border-box;
.footer--legal-rows-wrapper {
text-align: left;
margin: auto;
max-width: 1265px;
display: flex;
flex-direction: column;
align-items: flex-start;
row-gap: 24px;
box-sizing: border-box;
@media screen and (min-width: $footer-3-column-min) {
padding-left: 80px;
}
@media screen and (min-width: $footer-2-column-min) and (max-width: $footer-2-column-max) {
padding-left: 40px;
}
@media screen and (max-width: $footer-1-column-max) {
padding-left: 20px;
}
> .footer--legal-rows-wrapper--row {
flex-basis: 60px;
font-size: 15px;
line-height: 24px;
a:not([class]) {
color: $primary-open-sky-t1;
background-image: none;
}
a {
color: $primary-open-sky-t1;
text-decoration: underline;
&:hover {
color: $primary-pacific-sky-t3;
}
&:visited {
color: $primary-open-sky-t2;
}
}
svg > path {
fill: $primary-pacific-sky-t3;
}
@media screen and (max-width: $footer-1-column-max) {
> .footer--legal-rows-wrapper--row--logo__desktop {
display: none;
}
> .footer--legal-rows-wrapper--row--logo__mobile {
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
> svg {
height: auto;
}
}
}
@media screen and (min-width: $footer-2-column-min) {
> .footer--legal-rows-wrapper--row--logo__mobile {
display: none;
}
> .footer--legal-rows-wrapper--row--logo__desktop {
display: block;
}
}
box-sizing: border-box;
&:nth-of-type(1) {
width: 100%;
box-sizing: border-box;
}
&:nth-of-type(2) {
padding-right: $top-button-margin;
}
}
}
}
a, svg {
color: $accent-light;
}
svg {
float: left;
height: 50px;
padding-top: 40px;
padding-right: 30px;
}
.copyright {
float: left;
@include font-size(12);
margin: 20px 0 0 10px;
@include respond-min(46.25rem) {
max-width: 80%;
padding-top: 30px;
margin: 0;
}
}
.logo {
margin-right: 0;
margin-top: 28px;
.mdzr-svg & {
background-position: left center;
margin-right: 0;
margin-top: 20px;
}
}
}
.logo {
@include font-size(40);
@include sans-serif;
color: $accent-dark;
display: block;
font-weight: 700;
height: 50px;
margin: 10px;
overflow: hidden;
text-decoration: none;
text-indent: 100%;
width: 142px;
@include mq(md) {
float: left;
margin: 20px 90px 0 0;
}
}
.thanks {
@include font-size(12);
color: $attention-dark;
margin: 0;
padding: 0;
@include mq(md) {
border: none;
}
li {
@include clearfix;
margin: 0;
padding: 17px 10px 11px;
display: block;
clear: both;
@include mq(md) {
background: none;
float: left;
clear: none;
padding: 0 3% 0 0;
width: 30%;
&.design {
span.ampersand, a {
display: inline-block;
vertical-align: top;
&.threespot {
clear: both;
}
&.ampersand {
position: relative;
top: 6px;
margin: 0 6px;
line-height: 36px;
}
}
}
}
span.ampersand {
line-height: 24px;
}
}
span {
display: block;
height: 24px;
line-height: 36px;
padding-right: 12px;
white-space: nowrap;
}
a {
display: block;
height: 33px;
overflow: hidden;
text-indent: -200px;
width: 94px;
@include mq(md) {
clear: both;
margin-top: 5px;
}
}
}
}
.visuallyhidden {
@include visuallyhidden;
}
.clearfix, .group-container {
@include clearfix;
}
@media screen and (max-width: ($content-width - 1)) {
[role="banner"] .nav-menu-on .small-nav {
li {
line-height: 1.5em;
font-size: 1em;
}
li + li:before {
display: none;
}
}
main {
flex-flow: column nowrap;
}
}
.copy-banner {
background: $background-darkest;
padding: 1px 10px;
display: none;
@include mq(md) {
display: block;
}
h1 {
@include sans-serif;
@include font-size(24, true);
color: $core;
font-weight: 300;
line-height: 1.3;
padding: 1px 0 6px;
margin: .45em 0 .35em;
letter-spacing: -1px;
@include mq(md) {
@include font-size(32, true);
margin: .35em 0 .35em;
color: $highlight;
padding: 1px 0 6px;
}
a {
font-weight: 300;
background: none;
color: $text-link-alternate;
&:hover, :active {
background: none;
}
}
}
.container {
display: flex;
flex-flow: row nowrap;
align-items: center;
}
}
.site-header {
background: #D9E1E2;
font-weight: 300;
line-height: 1.3;
@include font-size(24);
@include mq(md) {
display: none;
}
a {
padding: 12.8px 10px 14.8px;
&:hover {
background: none;
}
}
.icon {
margin-left: 5px;
}
}
#main-header {
display: none;
&.nav-open {
&~ .side-bar .site-header {
background: none;
}
&~ .copy-banner {
background: #F5F7F7;
display: block;
& h1 {
display: none;
}
& .search {
display: block;
}
}
}
}
.site-nav.nav-open {
padding-top: .5rem;
@include mq(md) {
padding-top: 2rem;
}
}
.label {
@include sans-serif;
}
.banner-alert {
@include sans-serif;
@include warning-stripes;
/* To match the website */
font-size: 1.125rem;
text-decoration-thickness: 0.5px;
text-underline-offset: 1px;
a {
color: $text;
&:active,
&:focus,
&:hover {
color: $text-hover;
}
&:active,
&:hover {
outline: 0;
}
&:not([class]) {
text-decoration: underline;
background: none;
}
}
}
.version-wrapper {
text-align: center;
position: sticky;
top: 0;
z-index: 9999999;
background-color: $sidebar-color;
}
version-selector {
z-index: 1;
font-size: .9rem;
margin: 1.5rem 3px;
--normal-bg: linear-gradient(#{lighten($blue-300, 5%)}, #{darken($blue-300, 2%)});
--hover-bg: linear-gradient(#{lighten($blue-300, 2%)}, #{darken($blue-300, 4%)});
--link-color: #{$blue-300};
}
@import "./_custom-search.scss";
@import "../_nested-nav.scss";