HM Mobile IE (#2705)

* Mobile media queries

* Dominik's slider broke

* slide groups fix

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* Optimization changes
This commit is contained in:
hannah-radish 2018-02-19 17:04:16 -08:00 committed by Dominik Richter
parent ec61b4d7ed
commit 3b41a5d7cf
19 changed files with 253 additions and 218 deletions

View file

@ -6,13 +6,13 @@ description: Interact with the InSpec community - contribute to the project, pro
/! header
header.margin-top-offset
.row.align
.large-7.medium-7.columns.z-20
.large-7.medium-7.mobile-12.columns.z-20
.margin-both
h2
| InSpec is better with friends.
br/
| Lets build together.
.large-5.medium-5.columns.relative
.large-5.medium-5.columns.relative.mobile-hide
/! rolling ball images
.octagons
img.ball.z-20 src="/images/community/glow-ball.png" /
@ -23,9 +23,9 @@ header.margin-top-offset
/! tiles
.margin-under
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative
.row.strict-center.mobile-row
.large-6.medium-6.columns.mobile-12.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.z-20
.align-vertical-50
small.t-gray slack
hr.center.margin-under-xs
@ -36,8 +36,8 @@ header.margin-top-offset
' channel.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="http://community-slack.chef.io/" Join us on Slack
.triangle-right
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.z-20
.align-vertical-50
small.t-gray forums
hr.center.margin-under-xs
@ -48,9 +48,9 @@ header.margin-top-offset
' category is a great place to stay in-the-know about new Chef software, too!
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="https://discourse.chef.io/c/inspec" visit the forums
.triangle-right
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
small.t-gray events
hr.center.margin-under-xs
@ -59,8 +59,8 @@ header.margin-top-offset
| Find an event in your area to learn about InSpec, try it out for yourself, and meet fellow InSpec community members.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="https://events.chef.io/events/event-search/category/inspec/" browse inspec events
.triangle-right
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
small.t-gray blog
hr.center.margin-under-xs
@ -76,19 +76,19 @@ header.margin-top-offset
.bg-gradient
.pad-both.relative
.row
.large-7.medium-7.columns.z-20
.large-7.medium-7.mobile-12.columns.z-20
h2.t-white.margin-under-sm
| Whether its a code review or a commit, your participation matters.
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow-dark.strict-center.fit-height
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow-dark.strict-center.fit-height.z-20
img.icon-art.margin-both-xs src="/images/community/contribute.svg" /
h4.t-purple Contribute
p
| InSpec is an OSS project created and supported by active and passionate users. If you would like to contribute, we would love to have you.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="https://github.com/chef/inspec" start contributing
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow-dark.strict-center.fit-height
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow-dark.strict-center.fit-height.z-20
img.icon-art.margin-both-xs src="/images/community/bugs.svg" /
h4.t-purple Give feedback
p

View file

@ -9,9 +9,9 @@ p
' or
a href="/tutorials" tutorials
' for a quick hands-on experience.
.row.columns.align.margin-top-xs
a.button.btn-lg.btn-purple.shadow.margin-right-xs href="/demo" try the demo
a.button.btn-lg.btn-purple-o.shadow href="/tutorials" browse tutorials
.row.columns.mobile-row-btn.align.margin-top-xs
a.button.btn-lg.btn-purple.shadow.margin-right-xs.mobile-row-btn href="/demo" try the demo
a.button.btn-lg.btn-purple-o.shadow.mobile-row-btn href="/tutorials" browse tutorials
.margin-top-sm.brdr-left
.margin-left-sm

View file

@ -6,15 +6,15 @@ description: Download InSpec and start using Compliance-as-Code.
/! header and tiles
header.bg-gradient.margin-top-offset.short-bg.relative
.row
.columns.large-7.medium-7.z-20
.columns.large-7.medium-7.mobile-12.z-20
.margin-both
h2.t-white#icon-trigger
| Compliance as code starts here.
br
| Download InSpec and let's get started.
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
hr.center
h3 Ruby gem
@ -26,11 +26,11 @@ header.bg-gradient.margin-top-offset.short-bg.relative
a href="https://rubygems.org/gems/inspec" Ruby gem
' .
.box-code.shadow.margin-top-xs
i#copy.fa.fa-copy.copy.t-purple onclick="copyToClipboard('#install')"
i#copy.fa.fa-copy.copy.t-purple.mobile-hide onclick="copyToClipboard('#install')"
code#install gem install inspec
.triangle-right
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
hr.center
h3 Ready-made packages
@ -45,9 +45,9 @@ header.bg-gradient.margin-top-offset.short-bg.relative
canvas.particles-js-canvas-el /
.margin-under
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
hr.center
h3 Habitat Packages
@ -58,8 +58,8 @@ header.bg-gradient.margin-top-offset.short-bg.relative
' to install InSpec, or include InSpec in your own Habitat packages.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="https://bldr.habitat.sh/#/pkgs/chef/inspec" InSpec on the depot
.triangle-right
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
hr.center
h3 Use Your System Package Manager
@ -75,19 +75,19 @@ header.bg-gradient.margin-top-offset.short-bg.relative
.bg-gradient
.pad-both.relative
.row
.large-7.medium-7.columns.z-20
.large-7.medium-7.mobile-12.columns.z-20
h2.t-white.margin-under-sm
| Whether its a code review or a commit, your participation matters.
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow-dark.strict-center.fit-height
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow-dark.strict-center.fit-height.z-20
img.icon-art.margin-both-xs src="/images/community/contribute.svg" /
h4.t-purple Contribute
p
| InSpec is an OSS project created and supported by active and passionate users. If you would like to contribute, we would love to have you.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="https://github.com/chef/inspec" start contributing
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow-dark.strict-center.fit-height
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow-dark.strict-center.fit-height.z-20
img.icon-art.margin-both-xs src="/images/community/bugs.svg" /
h4.t-purple Give feedback
p

View file

@ -5,19 +5,19 @@ title: InSpec - Audit and Test Framework
/! header
header.bg-gradient.margin-top-offset.short-bg.relative
.row.align.margin-top-sm
.large-7.medium-7.columns.z-20
.large-7.medium-7.mobile-12.columns.z-20
.margin-both
h1.t-white InSpec is compliance as code
h3.t-white Turn your compliance, security, and other policy requirements into automated tests.
/! buttons
.row.align.columns.margin-top-sm
a.button.btn-lg.btn-purple.shadow-dark.margin-right-xs href="/downloads"
.row.align.columns.margin-top-sm.mobile-row-btn
a.button.btn-lg.btn-purple.shadow-dark.margin-right-xs.mobile-row-btn href="/downloads"
i.fa.fa-cloud-download
span download inspec 2.0
a.button.btn-lg.btn-white-o.shadow-dark href="/tutorials" browse tutorials
a.button.btn-lg.btn-white-o.shadow-dark.mobile-row-btn href="/tutorials" browse tutorials
a class="github-button" href="https://github.com/chef/inspec" data-size="large" data-show-count="true" aria-label="Star chef/inspec on GitHub" Star
.large-5.medium-5.columns.relative
.large-5.medium-5.columns.relative.mobile-hide
/! diamond image
img.diamond src="/images/home/diamond.png" /
img.grid-animate.fit.z-20 src="/images/home/web.svg" /
@ -62,19 +62,19 @@ header.bg-gradient.margin-top-offset.short-bg.relative
small.t-gray How InSpec works
h2.txt-margin Get started with InSpec in 3 simple steps
hr
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="/demo" try the inspec demo
.large-5.medium-5.columns.blue-grid
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs.mobile-hide href="/demo" try the inspec demo
.large-5.medium-5.columns.blue-grid.mobile-hide
img.grid-animate.fit src="/images/community/blue-web.svg"
.margin-top-sm
.row.align
.large-6.medium-6.columns
.row.align.mobile-row
.large-6.medium-6.mobile-12.columns
.flex.align
.num-container
h3.t-purple 1
.block.margin-left-sm
h4.t-purple write the test
p Create simple Ruby-based tests to verify your expected state against the current state of your systems.
.large-6.medium-6.columns
.large-6.medium-6.mobile-12.columns
.flex.align.slide-right
.tooltip-triangle
.box-dark.box-scroll.tip.shadow
@ -90,30 +90,30 @@ header.bg-gradient.margin-top-offset.short-bg.relative
code end
code end
.margin-top-xs
.row.align
.large-6.medium-6.columns
.row.align.mobile-row
.large-6.medium-6.mobile-12.columns
.flex.align
.num-container
h3.t-purple 2
.block.margin-left-sm
h4.t-purple run the test
p Execute your test against your target system locally or remotely with one simple command.
.large-6.medium-6.columns
.large-6.medium-6.mobile-12.columns
.flex.align.slide-right
.tooltip-triangle
.box-dark.tip.shadow
pre
code $ inspec exec linux-baseline
.margin-top-xs
.row.align
.large-6.medium-6.columns
.row.align.mobile-row
.large-6.medium-6.mobile-12.columns
.flex.align
.num-container
h3.t-purple 3
.block.margin-left-sm
h4.t-purple See the results
p See which tests failed, passed and skipped and the expected state against the current state of your target system, in one simple output.
.large-6.medium-6.columns
.large-6.medium-6.mobile-12.columns
.flex.align.slide-right
.tooltip-triangle
.box-dark.box-scroll.tip.shadow
@ -137,8 +137,8 @@ header.bg-gradient.margin-top-offset.short-bg.relative
h2.txt-margin InSpec is compliance by design
hr.center
.row.strict-center
.large-6.medium-6.columns.margin-under-xs
.row.strict-center.mobile-row
.large-6.medium-6.columns.mobile-12.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up
img.icon-art.margin-under-xs src="/images/home/platform.svg" /
h4.t-purple Platform Agnostic
@ -146,7 +146,7 @@ header.bg-gradient.margin-top-offset.short-bg.relative
| InSpec supports all major operating systems and is platform agnostic, allowing you the freedom to run compliance assessments anywhere.
img.icon-logos src="/images/home/platform-logos.svg" /
.triangle-right
.large-6.medium-6.columns.margin-under-xs
.large-6.medium-6.columns.mobile-12.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up
img.icon-art.margin-under-xs src="/images/home/test.svg" /
h4.t-purple Test locally or remotely
@ -155,15 +155,15 @@ header.bg-gradient.margin-top-offset.short-bg.relative
img.icon-logos src="/images/home/test-logos.svg" /
.triangle-right
.row.strict-center
.large-6.medium-6.columns.margin-under-xs
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up
img.icon-art.margin-under-xs src="/images/home/run.svg" /
h4.t-purple Free to run anywhere
p
| InSpec is an open-source language that can easily express compliance as code, with the freedom to run anywhere.
.triangle-right
.large-6.medium-6.columns.margin-under-xs
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up
img.icon-art.margin-under-xs src="/images/home/extensible.svg" /
h4.t-purple Extensible language
@ -180,18 +180,22 @@ header.bg-gradient.margin-top-offset.short-bg.relative
canvas.particles-js-canvas-el
.slider
.row
.columns.selectors.z-20
.columns.selectors.mobile-hide.z-20
a.button.btn-lg.btn-slider.shadow-dark for Compliance
a.button.btn-lg.btn-slider.shadow-dark for Infrastructure
a.button.btn-lg.btn-slider.shadow-dark for Provisioning
.columns.selectors.slider-selectors.mobile-show.z-20
a.button.btn-lg.btn-slider.shadow-dark Compliance
a.button.btn-lg.btn-slider.shadow-dark Infrastructure
a.button.btn-lg.btn-slider.shadow-dark Provisioning
.view
.row
.large-7.medium-7.columns
.large-7.medium-7.mobile-12.columns
h2.t-white.margin-both-sm
| Transform your compliance and security requirements into simple code
.row
.large-6.medium-6.columns.z-20
.box-white.shadow-dark.fit-height
.row.mobile-row
.large-6.medium-6.mobile-12.columns.mobile-row
.box-white.shadow-dark.fit-height.z-20
.block.margin-both-xs
h4.t-purple Codify agreements
p Combine profiles and customize them with overlays. Pick controls and define exceptions as code.
@ -201,9 +205,9 @@ header.bg-gradient.margin-top-offset.short-bg.relative
.block
h4.t-purple Apply to all systems
p Analyze everything using the same codified profiles and controls.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="/demo" try the inspec demo
.large-6.medium-6.columns.z-20
.box-dark.shadow-dark.fit-height
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs.mobile-hide href="/demo" try the inspec demo
.large-6.medium-6.mobile-12.columns
.box-dark.shadow-dark.fit-height.z-20
pre.t-white.align-vertical-50
code control 'sshd-21' do
code title 'Set SSH Protocol to 2'
@ -215,12 +219,12 @@ header.bg-gradient.margin-top-offset.short-bg.relative
code end
.view
.row
.large-7.medium-7.columns
.large-7.medium-7.mobile-12.columns
h2.t-white.margin-both-sm
| Solve your infrastructure testing needs simply and efficiently
.row
.large-6.medium-6.columns.z-20
.box-white.shadow-dark.fit-height
.row.mobile-row
.large-6.medium-6.mobile-12.columns.mobile-row
.box-white.shadow-dark.fit-height.z-20
.block.margin-both-xs
h4.t-purple Test the desired state
p Verify the current desired state of your apps and infrastructure according to the code you write.
@ -230,9 +234,9 @@ header.bg-gradient.margin-top-offset.short-bg.relative
.block
h4.t-purple Extensible
p Create custom resources with ease and share them easily with others.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="/demo" try the inspec demo
.large-6.medium-6.columns.z-20
.box-dark.shadow-dark.fit-height
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs.mobile-hide href="/demo" try the inspec demo
.large-6.medium-6.mobile-12.columns
.box-dark.shadow-dark.fit-height.z-20
pre.t-white.align-vertical-50
code describe file('/etc/myapp.conf') do
code it { should exist }
@ -248,12 +252,12 @@ header.bg-gradient.margin-top-offset.short-bg.relative
code end
.view
.row
.large-7.medium-7.columns
.large-7.medium-7.mobile-12.columns
h2.t-white.margin-both-sm
| Verify provisioning to cloud providers
.row
.large-6.medium-6.columns.z-20
.box-white.shadow-dark.fit-height
.row.mobile-row
.large-6.medium-6.mobile-12.columns.mobile-row
.box-white.shadow-dark.fit-height.z-20
.block.margin-both-xs
h4.t-purple Test AWS and Azure configuration
p Verify all necessary settings of your favorite public cloud providers.
@ -263,9 +267,9 @@ header.bg-gradient.margin-top-offset.short-bg.relative
.block
h4.t-purple Verify security configuration
p Ensure that your cloud deployments are not open to malicious attacks due to misconfiguration.
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs href="/demo" try the inspec demo
.large-6.medium-6.columns.z-20
.box-dark.shadow-dark.fit-height
a.button.btn-lg.btn-purple.shadow-dark.margin-top-xs.mobile-hide href="/demo" try the inspec demo
.large-6.medium-6.mobile-12.columns
.box-dark.shadow-dark.fit-height.z-20
pre.t-white.align-vertical-50
code describe aws_s3_bucket(bucket_name: 'my_secret_files') do
code it { should exist }

View file

@ -6,10 +6,10 @@ footer#main-footer.dark-bg
.row.align.columns
.strict-center
a.button.btn-lg.btn-purple.shadow-dark.margin-right-xs href="/downloads"
a.button.btn-lg.btn-purple.shadow-dark.margin-right-xs.mobile-row-btn href="/downloads"
i.fa.fa-cloud-download
span download inspec 2.0
a.button.btn-lg.btn-white-o.shadow-dark href="/tutorials" browse tutorials
a.button.btn-lg.btn-white-o.shadow-dark.mobile-row-btn href="/tutorials" browse tutorials
.flex.align
.columns.large-4.medium-4.mobile-hide

View file

@ -1,9 +1,9 @@
nav#main-nav
nav#main-nav.shadow
<progress value="0"></progress>
#main-nav-ctas.shadow
#main-nav-ctas
a.main-nav--logo href="/"
img src="/images/inspec-by-chef-logo.svg" onerror="this.src='/images/inspec-by-chef-logo.png'"
@ -28,6 +28,6 @@ nav#main-nav
a.button.btn-sm.btn-purple href="/downloads"
i.fa.fa-cloud-download
| Download
li.nav-cta.hide-for-small-only
li.nav-cta.mobile-hide
a.button.btn-sm.btn-purple-o href="/demo" try demo

View file

@ -16,7 +16,7 @@
.row.margin-both.relative
column.columns.large-3.medium-3#sidebar
column.columns.large-3.medium-3.mobile-hide#sidebar
- if locals[:sidebar_layout] == 'docs'
ul.main-sidebar--links
- sidebar_data(sidebar_layout).each do |item|
@ -33,7 +33,7 @@
li.main-sidebar--list--item class=link_classes(current_resource.url, sub_link)
= link_to sub_link.title, sub_link.link
column.columns.large-9.medium-9#mainbar
column.columns.large-9.medium-9.mobile-12#mainbar
== yield

View file

@ -47,17 +47,20 @@ html
javascript:
function initSliders() {
function initSlideGroup(group) {
var prev = -1;
$('.slider .selectors a').click(function(e) {
var links = $(group).find('a')
links.click(function(e) {
e.stopPropagation()
links.removeClass('selected')
$(this).addClass('selected')
var idx = $(this).index();
if(prev == idx) return;
prev = idx;
$('.slider .selectors a').removeClass('selected')
$(this).addClass('selected')
$('.slider .view.slide-in').removeClass('slide-in').addClass('slide-out')
var el = $('.slider .view')[idx]
if(el == null) {
@ -68,9 +71,15 @@ html
$(el).removeClass('slide-out').removeClass('hidden').addClass('slide-in')
})
if(links[0] != null) links[0].click();
}
function initSliders() {
$('.slider .view').addClass('hidden')
var links = $('.slider .selectors a')
if(links[0]!= null) links[0].click()
var groups = $('.slider .selectors')
groups.each(function(idx){
initSlideGroup(this)
})
}
//run code colors

View file

@ -74,10 +74,10 @@ a.button {
.btn-purple-o {
border: 1.5px solid $color-purple;
color: $color-purple;
background-color: transparent;
background-color: rgba(255, 255, 255, 0);
&:hover {
background-color: transparent;
background-color: rgba(255, 255, 255, 0);
color: $color-purple;
opacity: 0.8;
}
@ -92,10 +92,10 @@ a.button {
.btn-white-o {
border: 1.5px solid $color-white;
color: $color-white;
background-color: transparent;
background-color: rgba(255, 255, 255, 0);
&:hover {
background-color: transparent;
background-color: rgba(255, 255, 255, 0);
color: $color-white;
opacity: 0.8;
}
@ -113,3 +113,10 @@ a.button {
background: $color_purple;
}
}
.slider-selectors .btn-slider{
width: 33.33% !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

View file

@ -3,7 +3,7 @@ code {
font-size: 1em;
font-weight: bold;
border: initial;
background-color: transparent;
background-color: rgba(255, 255, 255, 0);
padding: 0;
white-space: pre-wrap;
word-wrap: break-word;

View file

@ -24,11 +24,29 @@ footer span {
}
}
footer .large-4.medium-4.mobile-hide {
@include nav-small {
display: none;
}
}
.columns.margin-both-xs.mobile-show {
@include nav-small {
display: block;
}
}
ul.footer--logos {
margin-left: 0!important;
@include nav-small {
text-align: center;
width: 100%;
-ms-flex-align: center;
-webkit-align-items: center;
-webkit-box-align: center;
align-items: center;
}
}

View file

@ -17,7 +17,7 @@ header {
height: $percent_sm;
min-width: $percent_sm;
background-image: url('/images/octagon.svg');
background-size: cover;
background-size: 100% 100%;
text-align: center;
}
@ -40,7 +40,7 @@ header {
height: 100%;
top: 0;
overflow: hidden;
background-color: transparent;
background-color: rgba(255, 255, 255, 0);
}
img.diamond {

View file

@ -15,13 +15,6 @@
float: right;
text-align: right;
margin-left: auto;
@include nav-small{ //mobile
float: initial;
margin: 0 auto;
text-align: center;
}
}
.strict-left {
@ -82,6 +75,13 @@
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
@include mobile {
top: 0;
transform: translateY(0);
-webkit-transform: translateY(0);
-moz-transform: translateY(0);
}
}
.z-10 {
@ -89,7 +89,7 @@
}
.z-20 {
z-index: 20;
z-index: 100;
}
.relative {
@ -155,10 +155,6 @@
.margin-top-offset {
margin-top: 80px; // add header height
@include nav-small {
margin-top: 60px;
}
}
.margin-top {
@ -272,7 +268,7 @@
height: 0;
border-style: solid;
border-width: 4px 8px 4px 0;
border-color: transparent $color_dark transparent transparent;
border-color: rgba(255, 255, 255, 0) $color_dark rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}
.shadow { // dropshadow
@ -395,7 +391,7 @@ progress { /* Positioning */
height: 1.6px;
color: $color_purple;
border: none;
background-color: transparent;
background-color: rgba(255, 255, 255, 0);
z-index: 500;
}
@ -445,7 +441,9 @@ form.main-sidebar--search input[type="text"] {
width: 100%;
display: inline;
height: 45px;
padding: 16px;
line-height: 45px;
padding-left: 16px;
padding-right: 16px;
box-sizing: border-box;
border-radius: 8px;
background: $color_white;
@ -464,7 +462,7 @@ form.main-sidebar--search input[type="text"] {
height: 45px;
border: 1.5px solid $color_white;
border-radius: 8px;
background: transparent;
background: rgba(255, 255, 255, 0);
cursor: pointer;
position: relative;
float: right;
@ -475,10 +473,6 @@ form.main-sidebar--search input[type="text"] {
margin-left: 8px;
height: auto;
}
@include nav-small {
display: none;
}
}
// overriding some of Swiftype's styles

View file

@ -6,26 +6,6 @@
z-index: 1000;
width: 100%;
background: $color_white;
@include nav-large {
position: fixed;
z-index: 100;
}
&.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 {
@ -40,15 +20,6 @@
@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-ctas {
@ -57,9 +28,8 @@
padding-right: $percent_sm;
@include nav-small {
padding-left: .9375rem;
padding-right: .9375rem;
box-shadow: initial;
padding-left: $percent_xs;
padding-right: $percent_xs;
}
.main-nav--link-text {
@ -97,10 +67,6 @@ nav {
z-index: 200;
height: 80px;
margin-bottom: 80px;
@include nav-small {
height: 60px;
}
}
nav ul {
@ -117,11 +83,10 @@ nav li {
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;
margin-left: $percent_sm;
margin-right: $percent_sm;
border-bottom: 1.5px solid #E9EDF2;
text-align: left;
}
}
@ -135,7 +100,27 @@ nav li.nav-cta {
margin-left: 28px;
@include nav-small {
padding-top: $percent_sm;
line-height: 60px;
clear:both;
display:block;
margin-left: $percent_sm;
margin-right: $percent_sm;
margin-top: $percent_sm;
border-bottom: 0px;
text-align: left;
&:last-child {
margin-top: 0;
padding-bottom: $percent_sm;
}
.btn-sm {
max-width: 250px;
width: 250px;
}
}
@include mobile {
padding-bottom: $percent_sm;
}
}
@ -153,7 +138,7 @@ nav li.nav-cta a.button {
display: block;
font-size: 1.5em;
float: right;
margin-top: 0.75em;
line-height: 80px;
}
}
@ -169,6 +154,6 @@ a.main-nav--logo {
margin-left: initial !important;
@include nav-small {
margin-top: 0.8em;
line-height: 80px;
}
}

View file

@ -5,5 +5,5 @@
padding: .5rem;
margin-bottom: 1rem;
box-sizing: border-box;
background: transparent;
}
background: rgba(255, 255, 255, 0);
}

View file

@ -21,12 +21,8 @@ $percent_xs: 16px;
//mixins
$nav-breakpoint: 1024px;
$breakpoints: (
small: 0px,
medium: 640px,
large: 900px
);
$mobile-breakpoint: 768px;
$mobile-tiny-breakpoint: 640px;
@mixin nav-large {
@media screen and (min-width: #{$nav-breakpoint}) {
@ -40,6 +36,18 @@ $breakpoints: (
}
}
@mixin mobile {
@media screen and (max-width: $mobile-breakpoint) {
@content;
}
}
@mixin mobile-tiny {
@media screen and (max-width: $mobile-tiny-breakpoint) {
@content;
}
}
//shared styles
%uppercase {
@ -62,24 +70,43 @@ body {
//Hide/show div on mobile
.mobile-hide {
display: initial;
display: inline-block;
@include nav-small {
display: none;
@include mobile {
display: none !important;
}
}
.mobile-show {
display: none;
@include nav-small {
display: block;
@include mobile {
display: block !important;
}
}
.mobile-grow {
@include nav-small {
width:100%;
.mobile-12 {
display: initial;
@include mobile {
width: 100% !important;
}
}
.mobile-row {
@include mobile {
display: block !important;
margin-bottom: $percent_sm;
}
}
.mobile-row-btn {
@include mobile-tiny {
display: block !important;
.button {
margin-left: 0;
}
}
}

View file

@ -7,26 +7,17 @@
//overwriting default ul li styles for side bar
#sidebar {
@media screen and (max-width: 640px) {
margin-bottom: $percent_md;
}
position: absolute;
}
#mainbar {
margin-left: 25%;
@include mobile {
margin-left: 0 !important;
}
}
ul.main-sidebar--links {
list-style-type: none;
margin-bottom: $percent_sm !important;
@media screen and (max-width: 640px) {
text-align: center;
}
}
ul.main-sidebar--links li:last-child {
margin-bottom: $percent_sm !important;

File diff suppressed because one or more lines are too long

View file

@ -5,13 +5,13 @@ title: InSpec - Tutorials
/! header and tiles
header.bg-gradient.margin-top-offset.short-bg.relative
.row
.columns.large-7.medium-7.z-20
.columns.large-7.medium-7.mobile-12.z-20
.margin-both
h2.t-white#icon-trigger
| Clear, step-by-step instructions for getting started and building your InSpec skills
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
small.t-gray module 1
hr.center.margin-under-xs
@ -22,8 +22,8 @@ header.bg-gradient.margin-top-offset.short-bg.relative
i.fa.fa-book
span start learning
.triangle-right
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
small.t-gray module 2
hr.center.margin-under-xs
@ -38,9 +38,9 @@ header.bg-gradient.margin-top-offset.short-bg.relative
canvas.particles-js-canvas-el /
.margin-under
.row.strict-center
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.row.strict-center.mobile-row
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
small.t-gray module 3
hr.center.margin-under-xs
@ -51,8 +51,8 @@ header.bg-gradient.margin-top-offset.short-bg.relative
i.fa.fa-book
span start learning
.triangle-right
.large-6.medium-6.columns.margin-under-xs.z-20
.box-white.shadow.strict-center.fit-height.relative.slide-up
.large-6.medium-6.mobile-12.columns.margin-under-xs
.box-white.shadow.strict-center.fit-height.relative.slide-up.z-20
.align-vertical-50
small.t-gray module 4
hr.center.margin-under-xs
@ -75,14 +75,14 @@ header.bg-gradient.margin-top-offset.short-bg.relative
hr.center
.margin-under
.row
.row.columns
.box-white.brdr-left.shadow.margin-under-xs.slide-left
.flex.align.collapseToggle
img.avatar src="/images/community/users/Annie.png"
.block.margin-left-sm
h3.a-purple Getting started with InSpec - The InSpec basics series
small.t-gray by annie hedgepath
a.strict-right
a.strict-right.mobile-hide
i.collapsebtn.fa
.collapseContent.margin-top-sm
a.block href="http://www.anniehedgie.com/inspec-basics-1"
@ -112,14 +112,14 @@ header.bg-gradient.margin-top-offset.short-bg.relative
a.block href="http://www.anniehedgie.com/inspec-basics-9"
i.fa.fa-angle-double-right
span InSpec Basics: Day 9 - Attributes
.row
.row.columns
.box-white.brdr-left.shadow.margin-under-xs.slide-left
.flex.align.collapseToggle
img.avatar src="/images/community/users/Christian.png"
.block.margin-left-sm
h3.a-purple Windows infrastructure testing using InSpec - Two part series
small.t-gray by Christian Johannsen
a.strict-right
a.strict-right.mobile-hide
i.collapsebtn.fa
.collapseContent.margin-top-sm
a.block href="http://datatomix.com/?p=236"
@ -128,7 +128,7 @@ header.bg-gradient.margin-top-offset.short-bg.relative
a.block href="http://datatomix.com/?p=238"
i.fa.fa-angle-double-right
span Windows infrastructure testing using InSpec and Profiles - Part 2
.row
.row.columns
.box-white.brdr-left.shadow.margin-under-xs.slide-left
.flex.align
img.avatar src="/images/community/users/jeremy.png"
@ -136,9 +136,9 @@ header.bg-gradient.margin-top-offset.short-bg.relative
a.a-purple href="https://github.com/jeremymv2/chef-intranet-scaffolding/blob/master/README.md"
h3.a-purple Operating InSpec in an air-gapped environment
small.t-gray by Jeremy Miller
a.strict-right href="https://github.com/jeremymv2/chef-intranet-scaffolding/blob/master/README.md"
a.strict-right.mobile-hide href="https://github.com/jeremymv2/chef-intranet-scaffolding/blob/master/README.md"
i.fa.fa-angle-double-right
.row
.row.columns
.box-white.brdr-left.shadow.margin-under-xs.slide-left
.flex.align
img.avatar src="/images/community/users/noavatar.png"
@ -146,7 +146,7 @@ header.bg-gradient.margin-top-offset.short-bg.relative
a.a-purple href="http://scienceofficersblog.blogspot.de/2016/02/testing-ansible-with-inspec.html"
h3.a-purple Testing Ansible with InSpec
small.t-gray by blindscientist
a.strict-right href="http://scienceofficersblog.blogspot.de/2016/02/testing-ansible-with-inspec.html"
a.strict-right.mobile-hide href="http://scienceofficersblog.blogspot.de/2016/02/testing-ansible-with-inspec.html"
i.fa.fa-angle-double-right
.scrollToTop.shadow-dark