website/_sass/_base.sass

1300 lines
18 KiB
Sass
Raw Normal View History

2016-02-25 00:59:38 +00:00
@import "reset"
// TEXT
$h1-font-size: 40px
2016-02-25 22:46:39 +00:00
$h1-line-height: 40px
2016-02-25 00:59:38 +00:00
$h2-font-size: 42px
$h2-line-height: 60px
$h3-font-size: 26px
$h3-line-height: 32px
$h4-font-size: 26px
$h4-line-height: 40px
$h5-font-size: 18px
$h5-line-height: 36px
$p-font-size: 16px
$p-line-height: 22px
// header
$full-width-paddingX: 20px
$main-width: 100%
$main-max-width: 100%
$header-height: 80px
$logo-width: 120px
$nav-buttons-margin-left: 30px
$hamburger-size: 50px
// main nav
$main-nav-padding: 140px 0 30px
$main-nav-h5-margin-bottom: 1em
$main-nav-h3-margin-bottom: 0.6em
$nav-box-width: 20%
$nav-box-sibling-margin-left: calc(20% / 3)
$main-nav-main-sibling-margin-top: 60px
$main-nav-left-button-size: 50px
$main-nav-left-button-font-size: 18px
// hero
$hero-padding-top: 80px
$headline-wrapper-margin-bottom: 40px
$quickstart-button-padding: 0 50px
$vendor-strip-height: 44px
$vendor-strip-font-size: 16px
2016-02-25 00:59:38 +00:00
2016-03-02 20:42:09 +00:00
// video
$video-section-height: 200px
2016-02-25 00:59:38 +00:00
@import "size"
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
body
background-color: white
section
position: relative
background-color: white
2016-03-02 20:42:09 +00:00
//min-width: 1024px
2016-02-25 00:59:38 +00:00
section, header, footer
main
position: relative
margin: auto
2016-03-02 20:42:09 +00:00
//min-width: 850px
2016-02-25 00:59:38 +00:00
.button
display: inline-block
border-radius: 6px
padding: 0 20px
line-height: 40px
color: white
background-color: $blue
text-decoration: none
#cellophane
position: fixed
top: 0
left: 0
width: 100%
height: 100%
display: none
// HEADER
header
position: fixed
top: 0
left: 0
width: 100%
z-index: 8888
background-color: transparent
box-shadow: 0 0 0 transparent
overflow: hidden
transition: 0.3s
.logo
float: left
background-image: url(../images/nav_logo.svg)
background-size: contain
background-position: center center
background-repeat: no-repeat
.nav-buttons
float: right
2016-03-03 23:40:55 +00:00
#viewDocs
border: 1px solid white
background-color: transparent
transition: 0.3s
&:hover
background-color: white
color: $dark-grey
#tryKubernetes
width: 0
padding: 0 0
border: 1px solid transparent
background-color: transparent
text-align: center
white-space: nowrap
vertical-align: middle
overflow: hidden
transition: 0.3s
2016-02-25 00:59:38 +00:00
#hamburger
display: inline-block
position: relative
vertical-align: middle
padding: 0
border: 0
background: none
div, &:before, &:after
position: absolute
left: 15%
width: 70%
height: 2px
background-color: $blue
transition: 0.3s
content: ""
div
top: calc(50% - 1px)
&:before
top: 24%
&:after
bottom: 24%
&:hover
div, &:before, &:after
background-color: white
#mainNav
h5
color: $blue
font-weight: normal
main
white-space: nowrap
overflow: hidden
clear: both
.nav-box
float: left
white-space: normal
h3
a
color: $blue
text-decoration: none
// FLIP NAV
.flip-nav
header
background-color: white
// OPEN NAV
.open-nav
body
overflow: hidden
#cellophane
display: block
z-index: 9998
header
2016-03-02 20:42:09 +00:00
background-color: #e8e8e8
2016-02-25 00:59:38 +00:00
z-index: 9999
#hamburger
div
opacity: 0
&:before, &:after
left: 12px
transform-origin: 0 1px
&:before
transform: rotate(45deg)
&:after
transform: rotate(-45deg)
.open-nav, .y-enough
#tryKubernetes
2016-03-03 23:40:55 +00:00
width: 150px
background-color: $blue
border-color: $blue
2016-02-25 00:59:38 +00:00
.flip-nav, .open-nav
header
box-shadow: 0 1px 2px $medium-grey
.logo
background-image: url(../images/nav_logo2.svg)
#viewDocs
border-color: $dark-grey
color: $dark-grey
&:hover
border-color: $blue
background-color: $blue
color: white
#hamburger:hover
div, &:before, &:after
background-color: $dark-grey
// HERO
#hero
background-image: url(../images/texture.png)
background-color: $dark-grey
text-align: center
padding-left: 0
padding-right: 0
margin-bottom: 30px
2016-02-25 00:59:38 +00:00
// VENDOR STRIP
#vendorStrip
background-color: transparentize(white, 0.9)
font-weight: 100
white-space: nowrap
text-align: center
2016-02-25 00:59:38 +00:00
div
vertical-align: middle
height: 100%
display: inline-block
// FOOTER
footer
width: 100%
background-image: url(../images/texture.png)
background-color: $dark-grey
main
2016-03-03 22:23:48 +00:00
padding: 20px 0
2016-02-25 00:59:38 +00:00
nav
a
2016-03-02 20:42:09 +00:00
width: 100%
2016-02-25 00:59:38 +00:00
text-align: center
display: inline-block
2016-03-02 20:42:09 +00:00
margin: 10px 0
font-size: 24px
2016-02-25 00:59:38 +00:00
font-weight: 300
color: white
text-decoration: none
.social
position: relative
2016-03-03 22:23:48 +00:00
margin: 20px 0
2016-02-25 00:59:38 +00:00
label
float: right
display: inline-block
height: 50px
line-height: 50px
font-weight: 100
white-space: nowrap
input
margin-left: 8px
width: 300px
#search, #wishField
background-color: transparent
padding: 10px
font-size: 16px
font-weight: 100
color: white
border: 1px solid white
transition: 0.3s
&:focus
background-color: $light-grey
color: $dark-grey
.social a
display: inline-block
background-image: url(../images/social_sprite.png)
background-repeat: no-repeat
background-size: auto
width: 50px
height: 50px
border-radius: 5px
2016-03-03 22:23:48 +00:00
margin-right: 10px
2016-02-25 00:59:38 +00:00
&:hover
background-color: #fff
span
position: absolute
display: block
height: 0
overflow: hidden
a.twitter
background-position: 0 0
&:hover
background-position: 0 100%
a.stack-overflow
background-position: -50px 0
&:hover
background-position: -50px 100%
a.slack
background-position: -100px 0
&:hover
background-position: -100px 100%
a.github
background-position: -150px 0
&:hover
background-position: -150px 100%
a.mailing-list
background-position: -200px 0
&:hover
background-position: -200px 100%
a.calendar
background-position: -250px 0
&:hover
background-position: -250px 100%
2016-02-25 00:59:38 +00:00
#viewDocs
display: none
section
background-color: white
#hero
background-color: $dark-grey
h5
margin-bottom: 20px
2016-02-25 00:59:38 +00:00
#vendorStrip
position: relative
white-space: nowrap
ul
float: left
li
display: inline-block
height: 100%
a
display: block
height: 100%
color: white
li + li, #search
margin-left: 60px
#search
position: relative
float: right
width: 24%
min-width: 250px
padding: 0 10px
margin: 8px 30px 0 0
height: 30px
line-height: 30px
2016-02-25 00:59:38 +00:00
border: 1px solid $light-grey
font-size: 16px
.dropdown
position: relative
float: right
height: 44px
2016-02-25 00:59:38 +00:00
font-size: 20px
color: white
line-height: 44px
2016-02-25 00:59:38 +00:00
cursor: pointer
overflow: hidden
z-index: 5000
&.on
overflow: visible
.readout
padding-left: 10px
padding-right: 40px
transition: 0.3s
&:after
content: ""
position: absolute
top: 22px
2016-02-25 00:59:38 +00:00
right: 10px
width: 0
height: 0
border-style: solid
border-width: 6px 6px 0 6px
border-color: white transparent transparent transparent
transition: 0.3s
.readout:hover
background-color: transparentize(white, 0.9)
&.on .readout
background-color: $light-grey
color: $dark-grey
&.on .readout:after
border-top-color: $dark-grey
.wrapper
position: absolute
top: 100%
left: 0
width: 100%
a
display: block
width: 100%
height: 30px
line-height: 30px
padding: 0 10px
font-size: 16px
font-weight: 300
background-color: $light-grey
color: $dark-grey
opacity: 0
transition: 0.3s
&:hover
background-color: #cccccc
&.on a
opacity: 1
#encyclopedia
position: relative
padding: 50px
overflow: hidden
& > div
height: 100%
#docsToc
2016-03-02 20:42:09 +00:00
position: absolute
left: -400px
2016-02-25 00:59:38 +00:00
width: 350px
padding: 0 20px 0 0
.yah
& > .title
background-color: $light-grey
border-left: 3px solid $blue
padding: 7.5px 10px 7.5px 18px
margin-left: -21px
color: $blue
.pi-accordion
margin-left: -20px
.container
padding-left: 20px
.item
overflow: hidden
.title
color: $dark-grey
position: relative
padding: 7.5px 10px 7.5px 18px
cursor: pointer
transition: 0.3s
&:hover
color: $blue
a.item > .title
color: black
padding-left: 0
&:hover
color: $blue
div.item > .title
&:before
content: ""
position: absolute
2016-02-25 22:46:39 +00:00
top: 12px
2016-02-25 00:59:38 +00:00
left: 2px
border-style: solid
border-width: 5px 0 5px 8px
border-color: transparent transparent transparent $blue
transform: rotate(0deg)
transition: 0.3s
.wrapper
position: relative
width: 100%
transition: height 0.3s
.content
padding-left: 20px
opacity: 0
transition: 0.3s
padding-bottom: 20px
.item.on
& > .title:before
transform: rotate(90deg)
& > .wrapper > .content
opacity: 1
.pi-pushmenu
display: none
position: fixed
top: 0
width: 100%
height: 100%
opacity: 0
transition: opacity 0.3s
&.on
opacity: 1
.overlay
position: fixed
top: 0
left: 0
width: 100%
height: 100%
background-color: rgba(0, 0, 0, 0.4)
.sled
position: absolute
top: 0
width: 0
height: 100%
background-color: white
overflow: auto
transition: width 0.3s
&.on .sled
width: 100vw
.top-bar
height: 0
line-height: 60px
background-color: #444
.pi-modal-close-button
position: absolute
top: 10px
right: 10px
z-index: 1
&:before, &:after
background-color: #222222
ul
padding: 0 60px 0 20px
li
position: relative
display: block
width: 100%
min-height: 44px
a
display: inline-block
width: 100%
height: 44px
line-height: 44px
font-weight: bold
font-size: 20px
color: $blue
.button
background: none
padding: 0
ul ul
padding: 0 20px
li
min-height: 40px
a
height: 40px
line-height: 40px
font-size: 18px
color: lighten(#222222, 20%)
2016-02-25 00:59:38 +00:00
#docsContent
position: relative
float: right
2016-03-02 20:42:09 +00:00
//width: calc(100% - 400px)
width: 100%
2016-02-25 00:59:38 +00:00
$toc-margin: 15px
$header-clearance: 40px
* + h2, * + h3, * + h4, * + h5, * + h6
margin-top: 30px
h1, h2, h3, h4, h5, h6
line-height: normal
font-weight: 500
margin-bottom: 30px
padding-bottom: 10px
border-bottom: 1px solid #cccccc
&:before
content: ''
display: block
height: 100px
margin-top: -100px
background-color: red
visibility: hidden
h1
font-size: 32px
padding-right: 60px
h2
font-size: 28px
h3
font-size: 24px
h4
font-size: 20px
h5, h6
font-size: 16px
p
font-size: 16px
font-weight: 300
line-height: 1.25em
p + p
margin-top: 10px
code
2016-03-02 20:42:09 +00:00
display: inline-block
box-sizing: border-box
2016-02-25 00:59:38 +00:00
background-color: $light-grey
color: $dark-grey
font-family: $mono-font
overflow-x: auto
2016-03-02 20:42:09 +00:00
vertical-align: bottom
2016-02-25 00:59:38 +00:00
font-size: 14px
font-weight: bold
padding: 2px 4px
a code
color: $blue
text-decoration: underline
2016-02-25 00:59:38 +00:00
pre .pi, pre .s
margin: 0
padding: 0
.highlight code span, code, pre code
font-family: "Roboto Mono", monospace
code, pre code
color: #303030
pre code
padding: 0
pre
background-color: #f7f7f7
display: block
margin: 20px 0
padding: 15px
overflow-x: auto
2016-02-25 00:59:38 +00:00
2016-02-26 01:15:44 +00:00
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code
font-family: inherit
font-size: inherit
background-color: transparent
2016-03-02 02:17:31 +00:00
.includecode, .includecode th, .includecode td
padding: 0px !important
.includecode th
text-align: right !important
padding: 10px !important
.includecode th a, .includecode th a code
color: white !important
background-color: transparent !important
.includecode pre
margin: 0px !important
2016-02-25 00:59:38 +00:00
ul li
list-style: disc
ol li
list-style: decimal
ul, ol
margin: 20px 0
2016-02-25 00:59:38 +00:00
padding-left: 30px
font-weight: 300
2016-02-25 00:59:38 +00:00
2016-02-26 01:15:44 +00:00
ul ul, ol ol, ul ol, ol ul
margin: 0.75em 0
2016-02-25 00:59:38 +00:00
li
2016-02-26 01:15:44 +00:00
margin-bottom: 0.75em
2016-02-25 00:59:38 +00:00
2016-02-25 22:46:39 +00:00
table
width: 100%
border: 1px solid #ccc
2016-02-26 01:15:44 +00:00
border-spacing: 0
margin-bottom: 60px
2016-02-25 22:46:39 +00:00
thead, tr:nth-child(even)
background-color: $light-grey
2016-02-25 22:46:39 +00:00
thead
2016-02-25 22:48:55 +00:00
background-color: #555
color: white
2016-02-25 22:46:39 +00:00
th, td
2016-02-26 01:15:44 +00:00
padding: 8px
2016-02-25 22:50:24 +00:00
text-align: left
margin: 0
2016-02-26 01:15:44 +00:00
th
font-weight: normal
td
font-size: 0.85em
2016-03-02 07:45:06 +00:00
2016-02-25 00:59:38 +00:00
#editPageButton
position: absolute
top: -25px
right: -25px
width: 50px
height: 50px
line-height: 50px
border-radius: 50%
white-space: nowrap
text-indent: 50px
overflow: hidden
background: $blue url(../images/pencil.png) no-repeat
background-position: 1px 1px
background-size: auto
#markdown-toc
margin-bottom: 20px
ul, li
list-style: disc
color: $blue
ul
padding: 0 15px
margin: 0
2016-02-25 00:59:38 +00:00
li
padding: 0
line-height: 1.5em
margin-bottom: 0
a
position: relative
color: $blue
font-weight: 700
img
max-width: 100%
2016-02-25 00:59:38 +00:00
.fixed footer
bottom: 0
html.search #docsContent
position: relative
float: none
width: 90%
max-width: 850px
margin: 0 auto
#editPageButton
display: none
table
border: 0
margin-bottom: 0
td
padding: 0
h1
margin-bottom: 0
border-bottom: 0
padding-bottom: 0
padding-left: 8px
2016-02-25 00:59:38 +00:00
/* Default gh-pages-blog css from https://github.com/thedereck/gh-pages-blog/blob/master/css/syntax.css */
.highlight br
display: none
.highlight
background: #ffffff
.highlight .c
color: #999988
font-style: italic
.highlight .err
color: #a61717
background-color: #e3d2d2
.highlight .k
font-weight: bold
.highlight .o
font-weight: bold
.highlight .cm
color: #999988
font-style: italic
.highlight .cp
color: #999999
font-weight: bold
.highlight .c1
color: #999988
font-style: italic
.highlight .cs
color: #999999
font-weight: bold
font-style: italic
.highlight .gd
color: #000000
background-color: #ffdddd
.highlight .gd .x
color: #000000
background-color: #ffaaaa
.highlight .ge
font-style: italic
.highlight .gr
color: #aa0000
.highlight .gh
color: #999999
.highlight .gi
color: #000000
background-color: #ddffdd
.highlight .gi .x
color: #000000
background-color: #aaffaa
.highlight .go
color: #888888
.highlight .gp
color: #555555
.highlight .gs
font-weight: bold
.highlight .gu
color: #aaaaaa
.highlight .gt
color: #aa0000
.highlight .kc
font-weight: bold
.highlight .kd
font-weight: bold
.highlight .kp
font-weight: bold
.highlight .kr
font-weight: bold
.highlight .kt
color: #445588
font-weight: bold
.highlight .m
color: #009999
.highlight .s
color: #d14
.highlight .na
color: #008080
.highlight .nb
color: #0086B3
.highlight .nc
color: #445588
font-weight: bold
.highlight .no
color: #008080
.highlight .ni
color: #800080
.highlight .ne
color: #990000
font-weight: bold
.highlight .nf
color: #990000
font-weight: bold
.highlight .nn
color: #555555
.highlight .nt
color: #000080
.highlight .nv
color: #008080
.highlight .ow
font-weight: bold
.highlight .w
color: #bbbbbb
.highlight .mf
color: #009999
.highlight .mh
color: #009999
.highlight .mi
color: #009999
.highlight .mo
color: #009999
.highlight .sb
color: #d14
.highlight .sc
color: #d14
.highlight .sd
color: #d14
.highlight .s2
color: #d14
.highlight .se
color: #d14
.highlight .sh
color: #d14
.highlight .si
color: #d14
.highlight .sx
color: #d14
.highlight .sr
color: #009926
.highlight .s1
color: #d14
.highlight .ss
color: #990073
.highlight .bp
color: #999999
.highlight .vc
color: #008080
.highlight .vg
2016-02-25 22:51:18 +00:00
color: #008080
2016-02-25 00:59:38 +00:00
.highlight .vi
color: #008080
.highlight .il
color: #009999
2016-03-02 20:42:09 +00:00
// ocean nodes
$ocean-nodes-padding-Y: 60px
$ocean-nodes-main-margin-bottom: 60px
$ocean-nodes-h3-margin-bottom: 30px
// video
$video-section-height: 200px
// features
$features-h3-margin-bottom: 20px
$feature-box-div-width: 100%
$feature-box-margin-bottom: 0
$feature-box-div-margin-bottom: 40px
// Home-specific
#home
section
min-width: 320px
section, header, footer
main
min-width: 320px
#home #hero
margin-bottom: 0
main
margin-bottom: 30px
#vendorStrip img
max-height: 24px
vertical-align: middle
margin: 0 30px
// OCEAN NODES
#oceanNodes
padding-top: $ocean-nodes-padding-Y
padding-bottom: $ocean-nodes-padding-Y
main
margin-bottom: $ocean-nodes-padding-Y
.image-wrapper
max-width: 75%
margin: 0 auto 20px
text-align: center
img
width: 100%
max-width: 160px
main:first-child
.image-wrapper
max-width: 100%
img
max-width: 491px
h3
margin-bottom: $ocean-nodes-h3-margin-bottom
// Video thingy
#video
height: $video-section-height
#video
width: 100%
position: relative
background-image: url(../images/kub_video_thm.jpg)
background-position: center center
background-size: cover
& > .light-text
display: none
position: absolute
top: 50%
left: 75%
width: 50%
max-width: 600px
min-width: 500px
padding-right: 10%
transform: translate(-50%, -50%)
color: white
h2
font-size: 32px
line-height: 44px
margin-bottom: 20px
p
margin-bottom: 20px
#desktopShowVideoButton
position: relative
font-size: 24px
background-color: white
border-radius: 8px
color: $blue
padding: 15px 30px 15px 80px
&:before
content: ""
position: absolute
@include pureCenter(40px)
width: 0
height: 0
border-style: solid
border-width: 10px 0 10px 20px
border-color: transparent transparent transparent $blue
#mobileShowVideoButton
@include pureCenter
width: 80px
height: 80px
border-radius: 50%
background-color: transparent
border: 5px solid rgba(255, 255, 255, 0.2)
overflow: visible
&:after
@include pureCenter
left: 40px
content: ""
width: 0
height: 0
border-style: solid
border-width: 20px 0 20px 30px
border-color: transparent transparent transparent #ffffff
#videoPlayer
@include fullScreen
background-color: rgba(0, 0, 0, 0.75)
display: none
iframe
@include pureCenter
@include maintain-aspect-ratio
2016-03-02 20:42:09 +00:00
// Features
#features
padding-top: 140px
background-color: $light-grey
background-image: url(../../images/wheel.png)
background-position: center 60px
background-repeat: no-repeat
background-size: auto
.feature-box
//padding: 50px 0
width: 100%
overflow: hidden
clear: both
h4
line-height: normal
margin-bottom: 15px
& > div:first-child
float: left
& > div:last-child
float: right
#features
h3
margin-bottom: $features-h3-margin-bottom
.feature-box
margin-bottom: $feature-box-margin-bottom
& > div
width: $feature-box-div-width
margin-bottom: $feature-box-div-margin-bottom
// Talk to us
#talkToUs
main
padding: 50px 0
h3, h4
text-align: center
h3
margin-bottom: 15px
h4
line-height: normal
margin-bottom: 50px
#bigSocial
overflow: hidden
div
width: 100%
float: left
padding: 30px
padding-top: 110px
background-position: center top
background-size: auto
background-repeat: no-repeat
div:nth-child(1)
background-image: url(../../images/twitter_icon.png)
div:nth-child(2)
background-image: url(../../images/github_icon.png)
div:nth-child(3)
background-image: url(../../images/slack_icon.png)
div:nth-child(4)
background-image: url(../../images/stackoverflow_icon.png)
div + div
margin-top: 20px
margin-left: 0
a
display: inline-block
color: $blue
font-size: 24px
font-weight: 400
text-decoration: none
margin-bottom: 15px