inspec/www/source/stylesheets/_nav.scss
Christoph Hartmann 4641978716 Update InSpec website (#2681)
* New styles

* Fundamental styles for home page

* Legal pages

* Community page, downloads page, tutorials page

* Docs page

* Content toggle and github badge

* Add code - highlighter

* Copy button

* Sliding content animation

* fix particle animatino on downloads page

* Scroll-to-top button

* docs sidebar links

* innocent comments on resources

* Fancy code animation

* Small update to diamond

* whatever slider

* Slider styles

* initial selection if no sliders are there

* add netifly config

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>

* inspec for provisioners

* fix incorrect text on aws ssm

* fix layout javascript

post-rebase

* resource grouping in docs

* introduce groups in docs/resources

* fix minor spelling issues and move download button in new features section

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>

* pass linting

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-02-17 07:44:42 -08:00

190 lines
2.8 KiB
SCSS

#main-nav {
position: fixed;
top: 0;
z-index: 1000;
width: 100%;
background: $color_white;
@include nav-large {
position: fixed;
z-index: 100;
width: $side-nav-width;
}
&.is-fixed-bottom {
@include nav-large {
top: auto !important;
position: absolute;
}
@media screen and (min-width: 640px) and (max-width: 879px) {
bottom: 156px;
}
@media screen and (min-width: 880px) {
bottom: 141px;
}
}
}
.main-nav--logo {
display: inline-block;
width: 130px;
float: left;
}
.main-nav--links {
@extend .no-bullet;
@include nav-small {
display: none;
}
.sidebar-layout-docs & {
max-height: calc(100vh - 64px);
overflow-y: scroll;
@include nav-large {
max-height: calc(100vh - 107px);
}
}
}
.main-nav--link-icon {
position: absolute;
top: 13px;
left: $side-nav-padding-small;
font-size: 0.9em;
@include nav-large {
left: $side-nav-padding-large;
}
@include nav-large {
margin-left: 34px;
}
}
#main-nav-ctas {
background: $color_white;
padding-left: $percent_sm;
padding-right: $percent_sm;
@include nav-small {
padding-left: .9375rem;
padding-right: .9375rem;
box-shadow: initial;
}
.main-nav--link-text {
margin-left: 6px;
}
@include nav-large {
position: fixed;
z-index: 90;
top: 0;
width: 100%;
line-height: 80px;
text-align: right;
& > .button {
margin-bottom: 0;
}
}
}
//Hannah's Styles'
.main-nav--link {
a {
color: $color_dark;
text-decoration: none;
}
a:hover, a.btn, a:active {
color: $color_purple;
}
}
nav {
z-index: 200;
height: 80px;
margin-bottom: 80px;
@include nav-small {
height: 60px;
}
}
nav ul {
margin-bottom: 0;
}
nav li {
display: inline-block;
font-weight: 400;
line-height: 80px;
margin-left: 28px;
@include nav-small {
line-height: 60px;
clear:both;
display:block;
line-height: initial;
padding-top: $percent_sm/2;
padding-bottom: $percent_sm/2;
border-bottom: 1px solid $color_blue;
text-align: center;
}
}
nav li:first-child{
@include nav-small {
padding-top: $percent_sm;
}
}
nav li.nav-cta {
margin-left: 28px;
@include nav-small {
padding-top: $percent_sm;
padding-bottom: $percent_sm;
}
}
nav li.nav-cta a.button {
margin-top: 12px;
}
#main-nav-ctas > i {
display: none;
color: $color_purple;
cursor: pointer;
@include nav-small {
display: block;
font-size: 1.5em;
float: right;
margin-top: 0.75em;
}
}
span.toggle {
font-size: 1.25em;
float: right;
}
a.main-nav--logo {
display: inline-block;
width: 130px;
float: left;
margin-left: initial !important;
@include nav-small {
margin-top: 0.8em;
}
}