styles/styles.css (215 lines of code) (raw):
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
:root {
/* custom properties */
--primary-body-text: #666;
--primary-font: "Lato", sans-serif;
--page-max-width: 1280px;
/* colors */
--link-color: #c91235;
--link-hover-color: #ab0e26;
--background-color: #fff;
--overlay-background-color: #eee;
--highlight-background-color: #f5f5f5;
--text-color: #000;
--text-color-white: #fff;
--footer-background-color: #2c2a29;
--footer-text-color: #999;
--footer-border-color: #444;
--footer-contact-text-color: #ccc;
/* fonts */
--body-font-family: var(--primary-font);
--heading-font-family: var(--body-font-family);
/* body sizes */
--body-font-size-m: 1rem;
/* TODO are these needed? */
--body-font-size-s: 18px;
--body-font-size-xs: 16px;
/* heading sizes */
--heading-font-size-xxl: 2.5rem;
--heading-font-size-xl: 2.125rem;
--heading-font-size-l: 1.5rem;
--heading-font-size-m: 1.3rem;
--heading-font-size-s: 1.312rem;
--heading-font-size-xs: 1.125rem;
/* nav height */
--nav-height: 82px;
}
@media (width >= 768px) {
:root {
--heading-font-size-xxl: 3.125rem;
--heading-font-size-xl: 2.5rem;
}
}
@media (width >= 1200px) {
:root {
--nav-height: 101px;
}
}
* {
box-sizing: border-box;
}
body {
background-color: var(--background-color);
color: var(--primary-body-text);
display: none;
font-family: var(--body-font-family);
font-size: var(--body-font-size-m);
font-weight: 400;
line-height: 1.5;
margin: 0;
}
body.appear {
display: block;
}
header {
height: var(--nav-height);
}
h1, h2, h3,
h4, h5, h6 {
color: var(--text-color);
font-family: var(--heading-font-family);
font-weight: 400;
line-height: 1.3;
margin-bottom: 20px;
margin-top: 0;
scroll-margin: calc(var(--nav-height) + 1em);
}
h1 {
font-size: var(--heading-font-size-xxl);
font-weight: 300;
line-height: 1.2;
}
@media (width >= 768px) {
h1 {
margin-bottom: 30px;
}
}
h2 {
font-size: var(--heading-font-size-xl);
line-height: 1.2;
}
@media (width >= 768px) {
h2 {
margin-bottom: 30px;
}
}
h3 {
font-size: var(--heading-font-size-l);
}
h4 {
font-size: var(--heading-font-size-m);
}
h5 {
font-size: var(--heading-font-size-s);
}
h6 {
font-size: var(--heading-font-size-xs);
font-weight: 600;
line-height: 1.6;
margin-bottom: 15px;
}
p, dl, ol, ul, pre, blockquote {
margin: 0;
}
hr {
margin-top: 1.5em;
margin-bottom: 1.5em;
border: 0;
border-bottom: 1px solid var(--overlay-background-color);
}
a:any-link {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* buttons */
a.button:any-link, button {
font-size: 14px;
font-family: var(--body-font-family);
display: inline-block;
box-sizing: border-box;
text-decoration: none;
border: 2px solid transparent;
padding: 15px 30px;
text-align: center;
font-style: normal;
font-weight: 600;
cursor: pointer;
color: var(--text-color-white);
background-color: var(--link-color);
margin: 16px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 5px;
text-transform: uppercase;
}
a.button:hover, a.button:focus, button:hover, button:focus {
background-color: var(--link-hover-color);
cursor: pointer;
}
button:disabled, button:disabled:hover {
background-color: var(--overlay-background-color);
cursor: unset;
}
a.button.secondary, button.secondary {
background-color: unset;
border: 2px solid currentcolor;
color: var(--text-color)
}
main input {
font-size: 1.25rem;
width: 100%;
max-width: 50rem;
display: block;
margin-bottom: 1rem;
padding: 0.75rem 0.6rem;
border-radius: 0.25rem;
box-sizing: border-box;
border: 1px solid var(--text-color);
color: var(--text-color);
background-color: var(--background-color);
}
main input:hover {
border: 1px solid var(--text-color);
}
main img {
max-width: 100%;
width: auto;
height: auto;
}
.icon {
display: inline-block;
height: 24px;
width: 24px;
}
.icon svg {
height: 100%;
width: 100%;
}
/* section styling */
main .section {
padding-bottom: 60px;
padding-top: 45px;
}
main .section > * {
max-width: var(--page-max-width);
width: 100%;
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
@media (width >= 768px) {
main .section > * {
padding-left: 20px;
padding-right: 20px;
}
}
@media (width >= 1200px) {
main .section > * {
padding-left: 55px;
padding-right: 55px;
}
}
main .section.highlight {
background-color: var(--highlight-background-color);
}
strong {
color: var(--text-color);
}
p + h2 {
margin-top: 30px;
}