Navbar: style tweaks
This commit is contained in:
@@ -45,10 +45,10 @@
|
|||||||
border-color: transparent transparent $color-background transparent
|
border-color: transparent transparent $color-background transparent
|
||||||
border-style: solid
|
border-style: solid
|
||||||
border-width: 0 8px 8px 8px
|
border-width: 0 8px 8px 8px
|
||||||
bottom: -15px
|
bottom: -10px
|
||||||
height: 0
|
height: 0
|
||||||
position: absolute
|
position: absolute
|
||||||
right: 22px
|
right: 7px
|
||||||
visibility: hidden
|
visibility: hidden
|
||||||
width: 0
|
width: 0
|
||||||
|
|
||||||
|
@@ -20,6 +20,6 @@
|
|||||||
overflow-x: hidden
|
overflow-x: hidden
|
||||||
position: absolute
|
position: absolute
|
||||||
right: 0
|
right: 0
|
||||||
top: 60px
|
top: 40px
|
||||||
width: 420px
|
width: 420px
|
||||||
z-index: 9999
|
z-index: 9999
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
// Navigation.
|
/* Top level navigation bar. */
|
||||||
|
|
||||||
.navbar
|
.navbar
|
||||||
box-shadow: inset 0 -2px $color-background
|
box-shadow: inset 0 -2px $color-background
|
||||||
|
|
||||||
@@ -48,24 +47,22 @@ nav.sidebar
|
|||||||
position: relative
|
position: relative
|
||||||
|
|
||||||
img.gravatar
|
img.gravatar
|
||||||
border-radius: 999em
|
height: 28px
|
||||||
height: 32px
|
|
||||||
width: 32px
|
|
||||||
box-shadow: 1px 1px 0 rgba(black, .2)
|
|
||||||
position: relative
|
position: relative
|
||||||
|
width: 28px
|
||||||
|
|
||||||
.special
|
.special
|
||||||
width: 18px
|
|
||||||
height: 18px
|
|
||||||
border-radius: 999em
|
|
||||||
position: absolute
|
|
||||||
background-color: white
|
background-color: white
|
||||||
z-index: 2
|
border-radius: 999em
|
||||||
display: inline-block
|
|
||||||
top: 10px
|
|
||||||
left: 38px
|
|
||||||
font-size: 1.2em
|
|
||||||
box-shadow: 1px 1px 1px rgba(black, .2)
|
box-shadow: 1px 1px 1px rgba(black, .2)
|
||||||
|
display: inline-block
|
||||||
|
font-size: 1.2em
|
||||||
|
height: 18px
|
||||||
|
left: 28px
|
||||||
|
position: absolute
|
||||||
|
top: 3px
|
||||||
|
width: 18px
|
||||||
|
z-index: 2
|
||||||
|
|
||||||
&.subscriber
|
&.subscriber
|
||||||
background-color: $color-success
|
background-color: $color-success
|
||||||
@@ -84,7 +81,7 @@ nav.sidebar
|
|||||||
+position-center-translate
|
+position-center-translate
|
||||||
|
|
||||||
.dropdown
|
.dropdown
|
||||||
min-width: 60px // navbar avatar size
|
min-width: 50px // navbar avatar size
|
||||||
|
|
||||||
span.fa-stack
|
span.fa-stack
|
||||||
position: absolute
|
position: absolute
|
||||||
@@ -100,44 +97,45 @@ nav.sidebar
|
|||||||
&:hover
|
&:hover
|
||||||
box-shadow: none // removes underline
|
box-shadow: none // removes underline
|
||||||
|
|
||||||
&.subitem // e.g. "Not Sintel? Log out"
|
.subitem // e.g. "Not Sintel? Log out"
|
||||||
font-size: .8em
|
font-size: .8em
|
||||||
padding-top: 0
|
text-transform: initial
|
||||||
text-transform: initial
|
|
||||||
|
|
||||||
i
|
i
|
||||||
width: 30px
|
width: 30px
|
||||||
|
|
||||||
&.subscription-status
|
&.subscription-status
|
||||||
&.none a
|
a, a:hover
|
||||||
color: $color-danger
|
color: $white
|
||||||
|
|
||||||
&.subscriber a
|
&.none
|
||||||
color: $color-success
|
background-color: $color-danger
|
||||||
|
|
||||||
&.demo a
|
&.subscriber
|
||||||
color: $color-info
|
background-color: $color-success
|
||||||
|
|
||||||
|
&.demo
|
||||||
|
background-color: $color-info
|
||||||
|
|
||||||
span.info
|
span.info
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
span.renew
|
span.renew
|
||||||
display: block
|
display: block
|
||||||
color: $color-text-dark-primary
|
|
||||||
font-size: .9em
|
font-size: .9em
|
||||||
|
|
||||||
|
|
||||||
// Secondary navigation
|
/* Secondary navigation. */
|
||||||
$nav-secondary-bar-size: -2px
|
$nav-secondary-bar-size: -2px
|
||||||
.nav-secondary
|
.nav-secondary
|
||||||
align-items: center
|
align-items: center
|
||||||
box-shadow: inset 0 $nav-secondary-bar-size 0 0 $color-background
|
box-shadow: inset 0 $nav-secondary-bar-size 0 0 $color-background
|
||||||
|
|
||||||
.nav-link
|
.nav-link
|
||||||
|
box-shadow: inset 0 $nav-secondary-bar-size 0 0 $color-background
|
||||||
color: $color-text
|
color: $color-text
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
transition: box-shadow 150ms ease-in-out
|
transition: box-shadow 150ms ease-in-out
|
||||||
box-shadow: inset 0 $nav-secondary-bar-size 0 0 $color-background
|
|
||||||
|
|
||||||
.nav-link:hover,
|
.nav-link:hover,
|
||||||
.nav-link.active,
|
.nav-link.active,
|
||||||
@@ -171,15 +169,6 @@ $nav-secondary-bar-size: -2px
|
|||||||
&:hover
|
&:hover
|
||||||
color: $body-color
|
color: $body-color
|
||||||
|
|
||||||
// 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
|
|
||||||
|
|
||||||
|
|
||||||
.navbar-overlay
|
.navbar-overlay
|
||||||
+media-lg
|
+media-lg
|
||||||
@@ -201,7 +190,9 @@ nav.navbar
|
|||||||
|
|
||||||
.navbar-brand
|
.navbar-brand
|
||||||
color: inherit
|
color: inherit
|
||||||
padding-left: 4px
|
padding: 0 0 0 3px
|
||||||
|
position: relative
|
||||||
|
top: -2px
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
color: $primary
|
color: $primary
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
| {% if current_user.is_authenticated %}
|
| {% if current_user.is_authenticated %}
|
||||||
|
|
||||||
li.nav-notifications
|
li.nav-notifications
|
||||||
a.navbar-item#notifications-toggle(
|
a.navbar-item#notifications-toggle.px-0(
|
||||||
title="Notifications",
|
title="Notifications",
|
||||||
data-toggle="tooltip",
|
data-toggle="tooltip",
|
||||||
data-placement="bottom")
|
data-placement="bottom")
|
||||||
|
Reference in New Issue
Block a user