open-vault/website/pages/style.css
Bryce Kalow 55e195f161
website: upgrades dependencies (#12670)
* upgrades deps and gets it building

* remove unneeded css file

* fix: hide intended elements in print (#12710)

* upgrade deps to latest

Co-authored-by: Zachary Shilton <4624598+zchsh@users.noreply.github.com>
2021-10-07 11:23:19 -04:00

79 lines
1.9 KiB
CSS

/* Global Component Styles */
@import '~@hashicorp/mktg-global-styles/style.css';
:root {
--highlight-color: var(--brand-link);
}
/* Local Components */
@import '../components/footer/style.css';
@import '../components/use-case-cta-section/style.css';
/* Pages */
@import './not-found/style.css';
@import './use-cases/style.css';
/* Print Styles */
@import './print.css';
/*
* 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);
}
/*
* Layout Styles
*
* Note: this is possibly debt we want to replace.
* ref: https://app.asana.com/0/1100423001970639/1200768863236365/f
*/
.g-section-block section {
padding-top: 96px;
padding-bottom: 96px;
& > .g-section-header + *,
& > .g-grid-container > .g-section-header + * {
margin-top: 72px;
}
&:not(.no-section-spacing) > * + *,
&:not(.g-featured-slider-section) > .g-grid-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-grid-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;
}