Browse Source

Navbar is-active colorchange

master
Edwina Barbalan 5 years ago
parent
commit
6c9cb12480
2 changed files with 24 additions and 22 deletions
  1. 17
    16
      public/lib/buefy-0.7.5.css
  2. 7
    6
      public/routes/navRoutes.js

+ 17
- 16
public/lib/buefy-0.7.5.css View File

.navbar.is-primary .navbar-brand > a.navbar-item:hover, .navbar.is-primary .navbar-brand > a.navbar-item.is-active, .navbar.is-primary .navbar-brand > a.navbar-item:hover, .navbar.is-primary .navbar-brand > a.navbar-item.is-active,
.navbar.is-primary .navbar-brand .navbar-link:hover, .navbar.is-primary .navbar-brand .navbar-link:hover,
.navbar.is-primary .navbar-brand .navbar-link.is-active { .navbar.is-primary .navbar-brand .navbar-link.is-active {
background-color: #0046a0;
color: white; }
background-color: #01295d;
color: white;
border-bottom: 3px solid white; }
.navbar.is-primary .navbar-brand .navbar-link::after { .navbar.is-primary .navbar-brand .navbar-link::after {
border-color: white; } border-color: white; }
.navbar.is-primary .navbar-burger { .navbar.is-primary .navbar-burger {
.navbar.is-primary .navbar-end > a.navbar-item.is-active, .navbar.is-primary .navbar-end > a.navbar-item.is-active,
.navbar.is-primary .navbar-end .navbar-link:hover, .navbar.is-primary .navbar-end .navbar-link:hover,
.navbar.is-primary .navbar-end .navbar-link.is-active { .navbar.is-primary .navbar-end .navbar-link.is-active {
background-color: #0046a0;
color: white; }
background-color: #e8e8e8;
color: #0046a0; }
.navbar.is-primary .navbar-start .navbar-link::after, .navbar.is-primary .navbar-start .navbar-link::after,
.navbar.is-primary .navbar-end .navbar-link::after { .navbar.is-primary .navbar-end .navbar-link::after {
border-color: white; } border-color: white; }
.navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link, .navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link,
.navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link { .navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link {
background-color: #0046a0;
color: white; }
background-color: #e8e8e8;
color: #0046a0; }
.navbar.is-primary .navbar-dropdown a.navbar-item.is-active { .navbar.is-primary .navbar-dropdown a.navbar-item.is-active {
background-color: #0046a0;
color: white; } }
background-color: #e8e8e8;
color: #0046a0; } }
.navbar.is-link { .navbar.is-link {
background-color: #0046a0; background-color: #0046a0;
color: white; } color: white; }
.navbar.is-link .navbar-brand > a.navbar-item:hover, .navbar.is-link .navbar-brand > a.navbar-item.is-active, .navbar.is-link .navbar-brand > a.navbar-item:hover, .navbar.is-link .navbar-brand > a.navbar-item.is-active,
.navbar.is-link .navbar-brand .navbar-link:hover, .navbar.is-link .navbar-brand .navbar-link:hover,
.navbar.is-link .navbar-brand .navbar-link.is-active { .navbar.is-link .navbar-brand .navbar-link.is-active {
background-color: #0046a0;
color: white; }
background-color: #e8e8e8;
color: #0046a0; }
.navbar.is-link .navbar-brand .navbar-link::after { .navbar.is-link .navbar-brand .navbar-link::after {
border-color: white; } border-color: white; }
.navbar.is-link .navbar-burger { .navbar.is-link .navbar-burger {
.navbar.is-link .navbar-end > a.navbar-item.is-active, .navbar.is-link .navbar-end > a.navbar-item.is-active,
.navbar.is-link .navbar-end .navbar-link:hover, .navbar.is-link .navbar-end .navbar-link:hover,
.navbar.is-link .navbar-end .navbar-link.is-active { .navbar.is-link .navbar-end .navbar-link.is-active {
background-color: #0046a0;
color: white; }
background-color: #e8e8e8;
color: #0046a0; }
.navbar.is-link .navbar-start .navbar-link::after, .navbar.is-link .navbar-start .navbar-link::after,
.navbar.is-link .navbar-end .navbar-link::after { .navbar.is-link .navbar-end .navbar-link::after {
border-color: white; } border-color: white; }
.navbar.is-link .navbar-item.has-dropdown:hover .navbar-link, .navbar.is-link .navbar-item.has-dropdown:hover .navbar-link,
.navbar.is-link .navbar-item.has-dropdown.is-active .navbar-link { .navbar.is-link .navbar-item.has-dropdown.is-active .navbar-link {
background-color: #0046a0;
color: white; }
background-color: #e8e8e8;
color: #0046a0; }
.navbar.is-link .navbar-dropdown a.navbar-item.is-active { .navbar.is-link .navbar-dropdown a.navbar-item.is-active {
background-color: #0046a0;
color: white; } }
background-color: #e8e8e8;
color: #0046a0; } }
.navbar.is-info { .navbar.is-info {
background-color: #167df0; background-color: #167df0;
color: #fff; } color: #fff; }

+ 7
- 6
public/routes/navRoutes.js View File

template: ` template: `
<div> <div>
<nav class="navbar is-fixed-bottom is-expanded is-primary" role="navigation" aria-label="main navigation"> <nav class="navbar is-fixed-bottom is-expanded is-primary" role="navigation" aria-label="main navigation">
<div class="navbar-brand is-expanded is-primary">
<router-link to="/home" class="navbar-item is-expanded has-text-centered">
<div class="navbar-brand is-expanded is-light">
<router-link to="/home" class="navbar-item is-primary is-expanded has-text-centered">
<i class="material-icons">home</i> <i class="material-icons">home</i>
</router-link> </router-link>


<router-link to="/files" class="navbar-item is-expanded">
<router-link to="/files" class="navbar-item is-primary is-expanded">
<i class="material-icons">language</i> <i class="material-icons">language</i>
</router-link> </router-link>


<router-link to="/createMessage" class="navbar-item is-expanded">
<router-link to="/createMessage" class="navbar-item is-primary is-expanded">
<i class="material-icons">add_circle</i> <i class="material-icons">add_circle</i>
</router-link> </router-link>


<router-link to="/bookmark" class="navbar-item is-expanded">
<router-link to="/bookmark" class="navbar-item is-primary is-expanded">
<i class="material-icons">bookmark</i> <i class="material-icons">bookmark</i>
</router-link> </router-link>


<router-link to="/profil" class="navbar-item is-expanded">
<router-link to="/profil" class="navbar-item is-primary is-expanded">
<i class="material-icons">person</i> <i class="material-icons">person</i>
</router-link> </router-link>
</div> </div>


const router = new VueRouter({ const router = new VueRouter({
routes, routes,
linkActiveClass: 'is-active'
}); });

Loading…
Cancel
Save