2018-08-28 15:52:56 +02:00
|
|
|
// Navigation.
|
2018-09-06 12:11:10 +02:00
|
|
|
|
|
|
|
.navbar
|
|
|
|
box-shadow: inset 0 -2px $color-background
|
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
.navbar,
|
2018-08-27 17:01:08 +02:00
|
|
|
nav.sidebar
|
|
|
|
border: none
|
2018-08-31 19:32:17 +02:00
|
|
|
color: $color-text-dark-secondary
|
2018-08-27 17:01:08 +02:00
|
|
|
padding: 0
|
|
|
|
z-index: $z-index-base + 5 /* Flowplayer seems to take up to 11, project container is 12 */
|
|
|
|
|
|
|
|
nav
|
|
|
|
margin-left: auto
|
|
|
|
margin-right: 0
|
|
|
|
|
|
|
|
.navbar-nav
|
|
|
|
margin-right: 0
|
|
|
|
+media-xs
|
|
|
|
margin: 0
|
|
|
|
width: 100%
|
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
.navbar-item
|
|
|
|
align-items: center
|
|
|
|
display: flex
|
2018-08-27 17:01:08 +02:00
|
|
|
user-select: none
|
2018-08-31 19:32:17 +02:00
|
|
|
color: inherit
|
2018-08-27 17:01:08 +02:00
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
+media-sm
|
|
|
|
padding-left: 10px
|
|
|
|
padding-right: 10px
|
2018-08-27 17:01:08 +02:00
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
&:hover, &:focus
|
2018-08-31 19:32:17 +02:00
|
|
|
color: $primary
|
2018-08-28 15:52:56 +02:00
|
|
|
background-color: transparent
|
2018-08-31 19:32:17 +02:00
|
|
|
box-shadow: inset 0 -3px 0 $primary
|
2018-08-28 15:52:56 +02:00
|
|
|
text-decoration: none
|
2018-08-27 17:01:08 +02:00
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
&:focus
|
2018-08-31 19:32:17 +02:00
|
|
|
box-shadow: inset 0 -3px 0 $primary
|
2018-08-27 17:01:08 +02:00
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
&.active
|
2018-08-31 19:32:17 +02:00
|
|
|
color: $primary
|
|
|
|
box-shadow: inset 0 -3px 0 $primary
|
2018-08-27 17:01:08 +02:00
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
li
|
|
|
|
user-select: none
|
|
|
|
position: relative
|
2018-08-27 17:01:08 +02:00
|
|
|
|
|
|
|
img.gravatar
|
|
|
|
border-radius: 999em
|
|
|
|
height: 32px
|
|
|
|
width: 32px
|
|
|
|
box-shadow: 1px 1px 0 rgba(black, .2)
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
.special
|
|
|
|
width: 18px
|
|
|
|
height: 18px
|
|
|
|
border-radius: 999em
|
|
|
|
position: absolute
|
|
|
|
background-color: white
|
|
|
|
z-index: 2
|
|
|
|
display: inline-block
|
|
|
|
top: 10px
|
|
|
|
left: 38px
|
|
|
|
font-size: 1.2em
|
|
|
|
box-shadow: 1px 1px 1px rgba(black, .2)
|
|
|
|
|
|
|
|
&.subscriber
|
|
|
|
background-color: $color-success
|
|
|
|
color: white
|
|
|
|
font-size: .6em
|
|
|
|
|
|
|
|
&.demo
|
|
|
|
background-color: $color-info
|
|
|
|
color: white
|
|
|
|
font-size: .6em
|
|
|
|
|
|
|
|
&.none
|
|
|
|
color: $color-danger
|
|
|
|
|
|
|
|
i
|
|
|
|
+position-center-translate
|
|
|
|
|
|
|
|
.dropdown
|
2018-08-28 15:52:56 +02:00
|
|
|
min-width: 60px // navbar avatar size
|
2018-08-27 17:01:08 +02:00
|
|
|
|
|
|
|
span.fa-stack
|
|
|
|
position: absolute
|
|
|
|
top: 50%
|
|
|
|
left: 50%
|
|
|
|
transform: translate(-50%, -50%)
|
|
|
|
|
|
|
|
ul.dropdown-menu
|
|
|
|
li
|
|
|
|
a
|
2018-08-28 15:52:56 +02:00
|
|
|
white-space: nowrap
|
2018-08-27 17:01:08 +02:00
|
|
|
|
|
|
|
&:hover
|
2018-08-28 15:52:56 +02:00
|
|
|
box-shadow: none // removes underline
|
2018-08-27 17:01:08 +02:00
|
|
|
|
2018-08-28 15:52:56 +02:00
|
|
|
&.subitem // e.g. "Not Sintel? Log out"
|
2018-08-27 17:01:08 +02:00
|
|
|
font-size: .8em
|
|
|
|
padding-top: 0
|
|
|
|
text-transform: initial
|
|
|
|
|
|
|
|
i
|
2018-08-28 15:52:56 +02:00
|
|
|
width: 30px
|
2018-08-27 17:01:08 +02:00
|
|
|
|
|
|
|
&.subscription-status
|
|
|
|
&.none a
|
|
|
|
color: $color-danger
|
2018-08-28 15:52:56 +02:00
|
|
|
|
2018-08-27 17:01:08 +02:00
|
|
|
&.subscriber a
|
|
|
|
color: $color-success
|
|
|
|
|
|
|
|
&.demo a
|
|
|
|
color: $color-info
|
|
|
|
|
|
|
|
span.info
|
|
|
|
display: block
|
|
|
|
|
|
|
|
span.renew
|
|
|
|
display: block
|
|
|
|
color: $color-text-dark-primary
|
|
|
|
font-size: .9em
|
|
|
|
|
|
|
|
|
2018-09-07 17:21:02 +02:00
|
|
|
// Secondary navigation
|
|
|
|
$nav-secondary-bar-size: -2px
|
2018-08-31 19:32:17 +02:00
|
|
|
.nav-secondary
|
|
|
|
align-items: center
|
2018-09-07 17:21:02 +02:00
|
|
|
box-shadow: inset 0 $nav-secondary-bar-size 0 0 $color-background
|
2018-08-31 19:32:17 +02:00
|
|
|
|
|
|
|
.nav-link
|
|
|
|
color: $color-text
|
2018-09-06 12:11:10 +02:00
|
|
|
cursor: pointer
|
2018-08-31 19:32:17 +02:00
|
|
|
transition: box-shadow 150ms ease-in-out
|
2018-09-07 17:21:02 +02:00
|
|
|
box-shadow: inset 0 $nav-secondary-bar-size 0 0 $color-background
|
2018-08-31 19:32:17 +02:00
|
|
|
|
2018-09-07 18:13:04 +02:00
|
|
|
.nav-link:hover,
|
|
|
|
.nav-link.active,
|
|
|
|
.nav-item.dropdown.show .nav-link
|
2018-09-07 17:21:02 +02:00
|
|
|
// Blue bar on the bottom.
|
2018-09-07 18:13:04 +02:00
|
|
|
box-shadow: inset 0 $nav-secondary-bar-size 0 0 $primary
|
2018-09-07 17:21:02 +02:00
|
|
|
|
2018-09-07 18:13:04 +02:00
|
|
|
i
|
|
|
|
color: $primary
|
2018-09-07 17:21:02 +02:00
|
|
|
|
|
|
|
&.nav-secondary-vertical
|
|
|
|
align-items: flex-start
|
|
|
|
flex-direction: column
|
|
|
|
box-shadow: none // Last item on the list already has a box-shadow.
|
|
|
|
|
|
|
|
> li
|
|
|
|
width: 100% // span across the whole width.
|
|
|
|
|
|
|
|
// Blue bar on the side.
|
|
|
|
.nav-link
|
|
|
|
box-shadow: inset 0 -1px 0 0 $color-background, inset -1px 0 0 0 $color-background
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.active
|
|
|
|
box-shadow: inset 0 -1px 0 0 $color-background, inset ($nav-secondary-bar-size * 1.5) 0 0 0 $primary
|
|
|
|
|
2018-09-07 18:13:04 +02:00
|
|
|
&.nav-main
|
|
|
|
.nav-link
|
|
|
|
color: $color-text-dark-secondary
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
color: $body-color
|
|
|
|
|
2018-09-07 17:21:02 +02:00
|
|
|
// Strange 1px offset when nav-secondary is in the topbar.
|
|
|
|
// To fix .nav-link and .nav-item must be height: 100%, but this
|
|
|
|
// makes it misalign vertically since nav.navbar has align-items: center.
|
|
|
|
// Let's just add this exception for now.
|
|
|
|
nav.navbar
|
|
|
|
> .nav-secondary
|
|
|
|
position: relative
|
|
|
|
top: 1px
|
2018-08-31 19:32:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
.navbar-overlay
|
|
|
|
+media-lg
|
|
|
|
display: block
|
|
|
|
bottom: 0
|
|
|
|
display: none
|
|
|
|
left: 0
|
|
|
|
height: 100%
|
|
|
|
position: absolute
|
|
|
|
right: 0
|
|
|
|
top: 0
|
|
|
|
transition: background-color 350ms ease-in-out
|
|
|
|
width: 100%
|
|
|
|
z-index: 0
|
|
|
|
|
|
|
|
&.is-active
|
|
|
|
background-color: $color-background-nav
|
|
|
|
text-shadow: none
|
|
|
|
|
|
|
|
.navbar-brand
|
|
|
|
color: inherit
|
2018-09-06 12:11:10 +02:00
|
|
|
padding-left: 4px
|
2018-08-31 19:32:17 +02:00
|
|
|
|
|
|
|
&:hover
|
|
|
|
color: $primary
|
|
|
|
|
|
|
|
nav.navbar
|
|
|
|
.navbar-collapse
|
|
|
|
> ul > li > .navbar-item
|
|
|
|
padding: $navbar-nav-link-padding-x
|
|
|
|
height: $nav-link-height
|
2018-08-27 17:01:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
.navbar-backdrop-container
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
position: absolute
|
|
|
|
top: 0
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
bottom: 0
|
|
|
|
|
|
|
|
img
|
|
|
|
display: none
|
|
|
|
position: fixed
|
|
|
|
width: 100%
|
|
|
|
align-self: flex-start
|
|
|
|
+media-md
|
|
|
|
display: block
|
|
|
|
+media-lg
|
|
|
|
display: block
|
|
|
|
|
|
|
|
|
|
|
|
.nav-tabs .dropdown-menu, .nav-pills .dropdown-menu
|
|
|
|
margin-top: 0
|
|
|
|
|
|
|
|
.navbar+.page-content
|
2018-08-28 15:52:56 +02:00
|
|
|
padding-top: $nav-link-height
|