open-consul/website/source/assets/stylesheets/_home.scss
Samuel Lopes 5c5c568bf5 Make READ THE INTRODUCTION button on homepage clickable
The "call to action" button at the bottom of the homepage is currently unclickable, since it has a negative top margin and is thus "hidden" behind the bottom margin of the terminal div above it. I opted to remove the negative top margin and instead diminish the bottom margin of the terminal div. This approach ends up adding a bit more padding between the "DNS Query Interface" h2 and the marketing div above it, but I think overall the look is in-line with the aesthetics of the page.

I'm fairly unfamiliar with HTML / CSS, so if there is a better way to do what I've done, I'd love to hear it. I've tested this in Chrome and Safari.
2017-04-10 20:32:46 -05:00

216 lines
3.5 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-top: 80px;
padding: 0;
}
p {
font-family: $font-family-open-sans;
font-size: 16px;
letter-spacing: 0.01em;
line-height: 1.8;
margin: 0 0 10px;
}
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;
}
&.pink {
background: $consul-pink;
h2 {
color: $white;
}
p {
color: $white;
font-weight: $font-weight-bold;
}
span.callout {
background: $white;
color: $black;
}
}
&.pink-dark {
background: $consul-pink-dark;
h2 {
color: $white;
}
p {
color: $white;
font-weight: $font-weight-bold;
}
span.callout {
background: $white;
color: $black;
}
}
&.black {
background: $black;
h2 {
color: $white;
}
p {
color: $white;
font-weight: $font-weight-bold;
}
span.callout {
background: $white;
color: $black;
}
}
&#features {
.feature-icon {
text-align: center;
}
h2, svg {
padding-top: 50px;
}
svg {
margin-top: 20px;
}
}
&#cta {
padding: 0 0 50px 0;
text-align: center;
}
}
.terminal {
border: 1px solid $white;
background-color: $black;
box-sizing: border-box;
color: $white;
font-family: $font-family-monospace;
font-size: 14px;
line-height: 1.8;
margin: 20px auto auto auto;
padding: 10px 20px 20px 20px;
.terminal-content {
margin-top: 15px;
overflow-x: scroll;
width: 100%;
white-space: nowrap;
span {
display: block;
span {
display: inline;
}
&.text-pink {
color: lighten($consul-pink, 20%);
}
}
}
span.circle {
&:before {
content: '\25CF';
color: $white;
font-size: 20px;
line-height: 1;
height: 100%;
}
}
}
}