docs/css/main.scss

444 lines
6.9 KiB
SCSS

---
---
@import "normalize";
/*** GRID ***/
@import "gridlex";
/* Make the bottom padding smaller for grid rows */
[class~="col"],
[class*="col-"],
[class*="col_"] {
padding-bottom: 15px;
}
/*** Vars ***/
@import "vars";
/* Add *-gt-hidden */
@media (min-width: $lg-width) {
[class*="lg-gt-hidden"] {
display: none;
}
}
@media (min-width: $md-width) {
[class*="md-gt-hidden"] {
display: none;
}
}
@media (min-width: $sm-width) {
[class*="sm-gt-hidden"] {
display: none;
}
}
@media (min-width: $xs-width) {
[class*="xs-gt-hidden"] {
display: none;
}
}
@font-face {
font-family: $body-font;
src: url({{"/fonts/Avenir-Roman.woff"|relative_url}}) format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: $header-font;
src: url({{"/fonts/Avenir-Black.woff"|relative_url}}) format("woff");
font-weight: 900;
font-style: normal;
}
@font-face {
font-family: $header-font;
src: url({{"/fonts/Avenir-Heavy.woff"|relative_url}}) format("woff");
font-weight: normal;
font-style: normal;
}
h1,
h2,
h3,
h4 {
font-family: $header-font;
font-weight: normal;
}
h1 {
font-size: 48px;
line-height: 1.04;
}
h2 {
font-size: 32px;
line-height: 1.72;
}
h3 {
font-size: 24px;
line-height: 1.46;
}
h4 {
font-size: 20px;
line-height: 0.83;
}
p {
font-size: 20px;
line-height: 1.5;
}
button {
color: white;
border: 1px solid white;
border-radius: 20px;
padding: 12px 25px 10px 25px;
font-size: 14px;
background-color: transparent;
cursor: pointer;
&.grey {
color: $dark-text;
border-color: $dark-text;
}
}
html,
body {
height: 100%;
min-width: 320px;
}
body {
font-family: $body-font;
}
#header,
#content > div,
#footer {
overflow: auto;
& > div {
max-width: $page-width;
margin: 0 auto;
padding: 0 $page-padding;
box-sizing: border-box;
@media (max-width: $sm-width) {
padding: 0 $page-padding-small;
}
}
}
#header {
background-color: $dark-background-color;
clear: both;
$header-padding: 30px;
padding: $header-padding 0;
$header-height: 34px;
font-family: $body-font;
font-size: 16px;
& > div {
display: -ms-flexbox;
display: flex;
}
.logo,
.logo a,
.logo a img {
display: block;
}
.logo img {
height: $header-height;
}
.hamburger-controls {
position: absolute;
right: 30px;
top: 40px;
display: none;
cursor: pointer;
width: 16px;
height: 16px;
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
transition: 0.5s ease-in-out;
span {
display: block;
position: absolute;
height: 2px;
width: 14px;
background: #ffffff;
border-radius: 1px;
opacity: 1;
left: 0;
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
transition: 0.25s ease-in-out;
margin: 0 1px;
}
span:nth-child(1) {
top: 1px;
-webkit-transform-origin: left center;
transform-origin: left center;
}
span:nth-child(2) {
top: 7px;
-webkit-transform-origin: left center;
transform-origin: left center;
}
span:nth-child(3) {
top: 13px;
-webkit-transform-origin: left center;
transform-origin: left center;
}
body.menu-open & {
span:nth-child(1) {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
top: 2px;
left: 2px;
}
span:nth-child(2) {
width: 0%;
opacity: 0;
}
span:nth-child(3) {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
top: 12px;
left: 2px;
}
}
}
.links {
text-align: right;
-ms-flex: 1;
flex: 1;
padding-left: 0;
margin: 0;
display: -ms-flexbox;
display: flex;
-ms-flex-pack: end;
justify-content: flex-end;
-ms-flex-align: center;
align-items: center;
li {
display: inline;
margin-right: 40px;
@media (max-width: $md-width) {
margin-right: 15px;
img {
display: none;
}
}
&:last-child {
margin-right: 0;
}
img {
vertical-align: middle;
position: relative;
top: -2px;
margin-right: 8px;
}
}
a {
text-decoration: none;
color: $blue;
font-size: 14px;
font-weight: 900;
&:visited {
color: $blue;
}
}
}
@media (max-width: $sm-width) {
.hamburger-controls {
display: block;
}
.links {
display: none;
position: absolute;
background-color: $dark-background-color;
left: 0;
right: 0;
top: #{$header-padding + $header-padding + $header-height};
bottom: 0;
padding-left: 60px;
text-align: left;
.menu-open & {
display: block;
}
li {
display: block;
margin: 0;
line-height: 50px;
}
a {
font-size: 18px;
}
}
}
}
.menu-open {
#content {
display: none;
}
}
#footer {
background-color: $dark-background-color;
color: white;
font-size: 14px;
.menu-open & {
display: none;
}
.footer-main {
display: -ms-flexbox;
display: flex;
padding: 50px 40px !important;
height: 129px;
}
.main {
line-height: 31px;
-ms-flex: 1;
flex: 1;
.logo {
line-height: 0;
display: inline-block;
vertical-align: middle;
margin-right: 15px;
img {
width: 134px;
position: relative;
top: -2px;
}
}
}
.links {
line-height: 31px;
text-align: right;
a {
color: $blue;
text-decoration: none;
margin-right: 30px;
&:last-child {
margin-right: 0;
}
@media (max-width: $lg-width) {
margin-right: 20px;
}
}
}
.lf-copyright {
padding: 0 40px 50px !important;
text-align: center;
max-width: 800px;
p {
font-size: 12px;
line-height: 18px;
margin: 10px 0 0 0;
&:first-of-type {
margin: 0;
}
}
a {
color: $blue;
&:visited,
&:focus,
&:active {
color: $blue;
}
&:hover{
text-decoration: none;
}
}
}
}
/* Crossplane survey banner */
#surveyBanner {
height: 75px;
display: flex;
display: -ms-flexbox;
justify-content: center;
-ms-flex-pack: center;
flex-direction: column;
-ms-flex-direction: column;
background: #96ffe0;
& > div {
text-align: center;
display: flex;
display: -ms-flexbox;
width: 100%;
justify-content: center;
-ms-flex-pack: center;
flex-direction: row;
-ms-flex-direction: row;
}
span {
font-weight: 900;
}
a {
margin-left: 15px;
color: #000;
}
@media (max-width: $md-width) {
height: 100px;
padding: 0 15px;
& > div {
flex-direction: column;
-ms-flex-direction: column;
}
span {
margin-bottom: 7px;
}
}
}