auth0-web-header
Version:
Auth0's website and landings header
130 lines (105 loc) • 2.61 kB
text/stylus
@import '../styles/base'
.header
background-color white
border-bottom 1px solid rgba(black, 0.1)
text-align left
&.theme-dark
+breakpoint("desktop")
background-color transparent
border-bottom 1px solid rgba(white, 0.1)
left 0
position absolute
top 0
width 100%
z-index 999
&.is-dropdown-open
+breakpoint("desktop", "max")
height 75px
.menu.is-dropdown-open
+breakpoint("desktop", "max")
background-color rgba(white, 0.97)
bottom 0
left 0
position fixed
right 0
top 0
z-index 9100
.collapse
clearfix()
+breakpoint("desktop", "max")
display none
+breakpoint("desktop")
float left
&.is-dropdown-open
+breakpoint("desktop", "max")
-webkit-overflow-scrolling touch
display block
height calc(100vh - 75px)
overflow-y scroll
padding-bottom 82px
padding-top 10px
.navigation
list-style-type none
margin 0
padding 0
+breakpoint("desktop")
float left
margin-left 30px
.navigation
.buttons-group
clearfix()
position relative
+breakpoint("desktop")
vertical-center-elem(28px, $navbar-desktop-height)
.buttons-group
+breakpoint("desktop", "max")
display none
+breakpoint("desktop")
float right
&.is-dropdown-open
+breakpoint("desktop", "max")
background-color white
bottom 0
display block
left 0
padding-bottom 25px
padding-top 25px
position absolute
right 0
text-align center
&:before
background linear-gradient(to bottom, rgba(255, 255, 255, .001) 0%, white 100%)
bottom 100%
content ''
display block
height 20px
position absolute
width 100%
// Style .btn.btn-transparent on mobile always on his standard version ignoring .theme-dark style
:global .btn.btn-transparent
+breakpoint("desktop", "max")
background-color rgba(0, 0, 0, 0)
border-color rgba(0, 0, 0, 0)
box-shadow inset 0 0 0 1px rgba(0, 0, 0, .2)
color #333
&:hover
+breakpoint("desktop", "max")
color #333
background-color rgba(0, 0, 0, 0)
border-color transparent
:global .btn
font-size 11px
padding 8px 18px
:global .btn + .btn
margin-left 18px
.header :global(.container)
width auto
.header :focus
outline none
.header.focusable :focus
outline thin dotted
.overflow
height 100%
overflow hidden
position fixed
width 100%