open-nomad/website/source/assets/stylesheets/_home.scss

291 lines
4.8 KiB
SCSS
Executable file

#page-home {
// Override the main header
#header {
background: $home-header-background-color;
.navbar-toggle {
.icon-bar {
border: 1px solid $home-header-link-color;
}
}
.navbar-brand {
a {
svg.logo {
@extend svg.logo.color;
}
}
}
ul.nav {
li {
a {
color: $home-header-link-color;
&:hover, &:focus, &:active {
background-color: transparent;
color: $home-header-link-color-hover;
svg {
fill: $home-header-link-color-hover;
}
}
svg {
fill: $home-header-link-color;
}
}
}
}
}
header {
.hero {
margin: 140px auto 160px auto;
text-align: center;
.button {
margin: 5px;
@media (max-width: 768px) {
display: block;
margin-top: 10px;
text-align: center;
}
}
svg {
max-width: 90%;
}
}
}
section {
background: $white;
padding: 100px 0;
}
section.marketing {
h2 {
font-family: $font-family-klavika;
font-size: 36px;
font-weight: $font-weight-bold;
line-height: 1.25;
letter-spacing: -0.02em;
margin: 20px 0 10px 0;
padding: 0;
text-transform: uppercase;
}
h3 {
color: $black;
font-size: 20px;
font-weight: $font-weight-bold;;
line-height: 1.2;
margin: 50px 0 15px 0;
text-transform: uppercase;
}
p {
font-family: $font-family-open-sans;
font-size: 16px;
letter-spacing: 0.01em;
line-height: 1.5;
margin: 0 0 10px;
&.lead {
font-size: 20px;
margin: 30px 0 30px 0;
}
}
span.callout {
background: $black;
color: $white;
display: inline-block;
font-family: $font-family-klavika;
font-size: 18px;
font-weight: $font-weight-bold;
line-height: 1;
margin: 0;
padding: 5px;
letter-spacing: 0.05em;
text-transform: uppercase;
}
&.green {
background: $nomad-green;
h2, h3 {
color: $white;
}
p {
color: $white;
font-weight: $font-weight-reg;
}
a {
border-bottom: 1px solid $white;
color: $white;
&:hover,
&:active {
border-bottom: none;
text-decoration: none;
}
}
span.callout {
background: $white;
color: $nomad-green;
}
}
&.gray {
background: #EDEDED;
h2, h3 {
color: $black;
}
p {
color: $black;
font-weight: $font-weight-reg;
}
span.callout {
background: $white;
color: $black;
}
}
&.black {
background: $black;
h2, h3 {
color: $white;
}
p {
color: $white;
font-weight: $font-weight-reg;
}
a {
border-bottom: 1px solid $white;
color: $white;
&:hover,
&:active {
border-bottom: none;
text-decoration: none;
}
}
span.callout {
background: $white;
color: $black;
}
}
&#hybrid-multi-cloud {
svg {
display: block;
margin: 15px auto;
max-height: 115px;
padding: 0;
}
}
&#flexible-workloads {
svg {
display: block;
margin: 15px auto;
max-height: 100px;
padding: 0;
}
}
&#simplify {
svg {
display: block;
max-height: 150px;
margin: 0 auto;
padding: 0;
}
@media(max-width: $screen-sm) {
svg {
margin: 60px auto;
}
}
}
&#binpacking {
svg {
display: block;
margin: 60px auto;
max-height: 300px;
padding: 0;
}
}
}
.terminal {
border: 1px solid $white;
background: $black;
box-sizing: border-box;
color: $white;
font-family: $font-family-monospace;
font-size: 15px;
line-height: 1.8;
margin: 20px auto auto auto;
padding: 10px 20px 20px 20px;
.terminal-content {
background: $black;
margin-top: 5px;
overflow-x: auto;
width: 100%;
white-space: nowrap;
span {
display: block;
span {
display: inline;
}
&.pre {
white-space: pre;
}
&.text-bold {
font-weight: bold;
}
&.text-green {
color: lighten($nomad-green, 20%);
}
&.text-blue {
color: #71A4F5;
}
&.text-orange {
color: #F5BF49;
}
}
}
span.circle {
svg {
height: 12px;
width: 12px;
}
}
}
}