407 lines
9.5 KiB
CSS
407 lines
9.5 KiB
CSS
/* Global Component Styles */
|
|
@import '~@hashicorp/react-global-styles/style.css';
|
|
@import '~@hashicorp/react-global-styles/code-highlighting.css';
|
|
@import '~@hashicorp/react-global-styles/custom-properties/color.css';
|
|
@import '~@hashicorp/react-global-styles/custom-properties/font.css';
|
|
@import '~@hashicorp/react-global-styles/_temporary-to-remove/layout.css';
|
|
@import '~@hashicorp/react-global-styles/_temporary-to-remove/tables.css';
|
|
@import '~@hashicorp/react-alert-banner/dist/style.css';
|
|
|
|
:root {
|
|
--highlight-color: var(--nomad);
|
|
}
|
|
|
|
/* Global Transpiled Components */
|
|
@import '~@hashicorp/react-mega-nav/style.css';
|
|
@import '~@hashicorp/react-newsletter-signup-form/dist/style.css';
|
|
@import '~@hashicorp/react-text-input/dist/style.css';
|
|
@import '~@hashicorp/react-button/dist/style.css';
|
|
@import '~@hashicorp/react-footer/dist/style.css';
|
|
@import '~@hashicorp/react-use-cases/dist/style.css';
|
|
@import '~@hashicorp/react-consent-manager/dist/style.css';
|
|
@import '~@hashicorp/react-checkbox-input/dist/style.css';
|
|
@import '~@hashicorp/react-hero/dist/style.css';
|
|
@import '~@hashicorp/react-section-header/dist/style.css';
|
|
@import '~@hashicorp/react-logo-grid/dist/style.css';
|
|
@import '~@hashicorp/react-product-downloader/dist/style.css';
|
|
@import '~@hashicorp/react-vertical-text-block-list/dist/style.css';
|
|
@import '~@hashicorp/react-docs-sidenav/dist/style.css';
|
|
@import '~@hashicorp/react-content/dist/style.css';
|
|
@import '~@hashicorp/react-subnav/dist/style.css';
|
|
@import '~@hashicorp/react-text-and-content/dist/style.css';
|
|
@import '~@hashicorp/react-code-block/dist/style.css';
|
|
@import '~@hashicorp/react-consent-manager/dist/style.css';
|
|
@import '~@hashicorp/react-alert/dist/style.css';
|
|
@import '~@hashicorp/react-call-to-action/dist/style.css';
|
|
@import '~@hashicorp/react-text-split/dist/style.css';
|
|
@import '~@hashicorp/react-text-split-with-code/dist/style.css';
|
|
@import '~@hashicorp/react-docs-page/dist/style.css';
|
|
|
|
/* Local Components */
|
|
@import '../components/placement-table/style.css';
|
|
@import '../components/case-study-carousel/style.css';
|
|
@import '../components/features-list/style.css';
|
|
@import '../components/enterprise-info/style.css';
|
|
@import '../components/mini-cta/style.css';
|
|
@import '../components/homepage-hero/style.css';
|
|
@import '../components/featured-slider/style.css';
|
|
@import '../components/featured-slider-section/style.css';
|
|
@import '../components/learn-nomad/style.css';
|
|
@import '../components/basic-hero/style.css';
|
|
|
|
/* Local Pages */
|
|
@import './home/style.css';
|
|
@import './downloads/style.css';
|
|
@import './security/style.css';
|
|
@import './resources/style.css';
|
|
@import '../layouts/use-cases/style.css';
|
|
|
|
/* Print Styles */
|
|
@import './print.css';
|
|
|
|
/* Layout Styles */
|
|
.g-section-block section {
|
|
padding-top: 96px;
|
|
padding-bottom: 96px;
|
|
}
|
|
|
|
.g-section-block section > .g-section-header + *,
|
|
.g-section-block section > .g-container > .g-section-header + * {
|
|
margin-top: 72px;
|
|
}
|
|
|
|
.g-section-block section > * + *,
|
|
.g-section-block section > .g-container > * + * {
|
|
margin-top: 96px;
|
|
}
|
|
|
|
.g-section-block .button-container {
|
|
display: -webkit-box;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
-webkit-box-pack: center;
|
|
justify-content: center;
|
|
margin: auto -8px -16px;
|
|
}
|
|
|
|
.g-section-block section > * + .button-container,
|
|
.g-section-block section > .g-container > * + .button-container {
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.g-section-block .button-container > * {
|
|
margin: auto 8px 16px;
|
|
}
|
|
|
|
.g-section-block.theme-black-background-white-text {
|
|
background: var(--gray-1);
|
|
color: white;
|
|
}
|
|
|
|
/*
|
|
* About this selector:
|
|
* `.g-subnav ~ *` finds all elements after the navigation.
|
|
* `:target` finds the active permalink on the page.
|
|
*
|
|
* About this style:
|
|
* `scroll-margin-top` adjusts the vertical scroll of a permalink.
|
|
* `64px` adjusts the scroll to account for the navigation.
|
|
* `0.5em` further adjusts the scroll to give the permalink breathing room.
|
|
*
|
|
* See: https://developer.mozilla.org/en-US/docs/Web/CSS/:target
|
|
* See: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-top
|
|
*/
|
|
.g-subnav ~ * :target {
|
|
scroll-margin-top: calc(64px + 0.5em);
|
|
}
|
|
|
|
/* Web Fonts */
|
|
@font-face {
|
|
font-family: 'klavika-web';
|
|
src: url('/fonts/klavika/medium.woff2') format('woff2'),
|
|
url('/fonts/klavika/medium.woff') format('woff');
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Display Font (Gilmer) */
|
|
@font-face {
|
|
font-family: 'gilmer-web';
|
|
src: url('/fonts/gilmer/light.woff2') format('woff2'),
|
|
url('/fonts/gilmer/light.woff') format('woff');
|
|
font-weight: 300;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'gilmer-web';
|
|
src: url('/fonts/gilmer/regular.woff2') format('woff2'),
|
|
url('/fonts/gilmer/regular.woff') format('woff');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'gilmer-web';
|
|
src: url('/fonts/gilmer/medium.woff2') format('woff2'),
|
|
url('/fonts/gilmer/medium.woff') format('woff');
|
|
font-weight: 500;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'gilmer-web';
|
|
src: url('/fonts/gilmer/bold.woff2') format('woff2'),
|
|
url('/fonts/gilmer/bold.woff') format('woff');
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Body Font (Metro) */
|
|
@font-face {
|
|
font-family: 'metro-web';
|
|
src: url('/fonts/metro-sans/book.woff2') format('woff2'),
|
|
url('/fonts/metro-sans/book.woff') format('woff');
|
|
font-weight: 300;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'metro-web';
|
|
src: url('/fonts/metro-sans/regular.woff2') format('woff2'),
|
|
url('/fonts/metro-sans/regular.woff') format('woff');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'metro-web';
|
|
src: url('/fonts/metro-sans/semi-bold.woff2') format('woff2'),
|
|
url('/fonts/metro-sans/semi-bold.woff') format('woff');
|
|
font-weight: 600;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'metro-web';
|
|
src: url('/fonts/metro-sans/bold.woff2') format('woff2'),
|
|
url('/fonts/metro-sans/bold.woff') format('woff');
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Code Font (Deja Vu) */
|
|
@font-face {
|
|
font-family: 'dejavu-sans-mono-web';
|
|
src: url('/fonts/dejavu/mono.woff2') format('woff2'),
|
|
url('/fonts/dejavu/mono.woff') format('woff');
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* TEMPORARY - prism stylesheet */
|
|
|
|
/**
|
|
* xonokai theme for JavaScript, CSS and HTML
|
|
* based on: https://github.com/MoOx/sass-prism-theme-base by Maxime Thirouin ~ MoOx --> http://moox.fr/ , which is Loosely based on Monokai textmate theme by http://www.monokai.nl/
|
|
* license: MIT; http://moox.mit-license.org/
|
|
*/
|
|
code[class*='language-'],
|
|
pre[class*='language-'] {
|
|
-moz-tab-size: 2;
|
|
-o-tab-size: 2;
|
|
tab-size: 2;
|
|
-webkit-hyphens: none;
|
|
-moz-hyphens: none;
|
|
-ms-hyphens: none;
|
|
hyphens: none;
|
|
white-space: pre;
|
|
white-space: pre-wrap;
|
|
word-wrap: normal;
|
|
font-family: Menlo, Monaco, 'Courier New', monospace;
|
|
font-size: 14px;
|
|
color: #76d9e6;
|
|
text-shadow: none;
|
|
}
|
|
|
|
pre > code[class*='language-'] {
|
|
font-size: 1em;
|
|
}
|
|
|
|
pre[class*='language-'],
|
|
:not(pre) > code[class*='language-'] {
|
|
background: #262930;
|
|
}
|
|
|
|
pre[class*='language-'] {
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
border: 1px solid #e1e1e8;
|
|
overflow: auto;
|
|
position: relative;
|
|
}
|
|
|
|
pre[class*='language-'] code {
|
|
white-space: pre;
|
|
display: block;
|
|
}
|
|
|
|
:not(pre) > code[class*='language-'] {
|
|
padding: 0.15em 0.2em 0.05em;
|
|
border-radius: 0.3em;
|
|
border: 0.13em solid #7a6652;
|
|
box-shadow: 1px 1px 0.3em -0.1em #000 inset;
|
|
}
|
|
|
|
.token.namespace {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: #6f705e;
|
|
}
|
|
|
|
.token.operator,
|
|
.token.boolean,
|
|
.token.number {
|
|
color: #a77afe;
|
|
}
|
|
|
|
.token.attr-name,
|
|
.token.string {
|
|
color: #e6d06c;
|
|
}
|
|
|
|
.token.entity,
|
|
.token.url,
|
|
.language-css .token.string,
|
|
.style .token.string {
|
|
color: #e6d06c;
|
|
}
|
|
|
|
.token.selector,
|
|
.token.inserted {
|
|
color: #a6e22d;
|
|
}
|
|
|
|
.token.atrule,
|
|
.token.attr-value,
|
|
.token.keyword,
|
|
.token.important,
|
|
.token.deleted {
|
|
color: #ef3b7d;
|
|
}
|
|
|
|
.token.regex,
|
|
.token.statement {
|
|
color: #76d9e6;
|
|
}
|
|
|
|
.token.placeholder,
|
|
.token.variable {
|
|
color: #fff;
|
|
}
|
|
|
|
.token.important,
|
|
.token.statement,
|
|
.token.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.punctuation {
|
|
color: #bebec5;
|
|
}
|
|
|
|
.token.entity {
|
|
cursor: help;
|
|
}
|
|
|
|
.token.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
code.language-markup {
|
|
color: #f9f9f9;
|
|
}
|
|
|
|
code.language-markup .token.tag {
|
|
color: #ef3b7d;
|
|
}
|
|
|
|
code.language-markup .token.attr-name {
|
|
color: #a6e22d;
|
|
}
|
|
|
|
code.language-markup .token.attr-value {
|
|
color: #e6d06c;
|
|
}
|
|
|
|
code.language-markup .token.style,
|
|
code.language-markup .token.script {
|
|
color: #76d9e6;
|
|
}
|
|
|
|
code.language-markup .token.script .token.keyword {
|
|
color: #76d9e6;
|
|
}
|
|
|
|
code.language-json .operator {
|
|
color: white;
|
|
}
|
|
|
|
code.language-json .property {
|
|
color: #ef3b7d;
|
|
}
|
|
|
|
/* Line highlight plugin */
|
|
pre[class*='language-'][data-line] {
|
|
position: relative;
|
|
padding: 1em 0 1em 3em;
|
|
}
|
|
|
|
pre[data-line] .line-highlight {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 0;
|
|
margin-top: 1em;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
pointer-events: none;
|
|
line-height: inherit;
|
|
white-space: pre;
|
|
}
|
|
|
|
pre[data-line] .line-highlight:before,
|
|
pre[data-line] .line-highlight[data-end]:after {
|
|
content: attr(data-start);
|
|
position: absolute;
|
|
top: 0.4em;
|
|
left: 0.6em;
|
|
min-width: 1em;
|
|
padding: 0.2em 0.5em;
|
|
background-color: rgba(255, 255, 255, 0.4);
|
|
color: black;
|
|
font: bold 65%/1 sans-serif;
|
|
height: 1em;
|
|
line-height: 1em;
|
|
text-align: center;
|
|
border-radius: 999px;
|
|
text-shadow: none;
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
pre[data-line] .line-highlight[data-end]:after {
|
|
content: attr(data-end);
|
|
top: auto;
|
|
bottom: 0.4em;
|
|
}
|
|
|
|
/* overrides */
|
|
|
|
.g-content pre code {
|
|
background: none;
|
|
}
|