mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 10:14:29 -07:00
Fix hover/active states
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
<a class="navbar-item" href="{{ post.url }}">
|
||||
<div class="navbar-content">
|
||||
<p>
|
||||
<small>{{ post.date | date_to_string }}</small>
|
||||
<small class="has-text-info">{{ post.date | date_to_string }}</small>
|
||||
</p>
|
||||
<p>{{ post.title }}</p>
|
||||
</div>
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
{% include head.html %}
|
||||
<body class="layout-{{ page.layout }}{% if page.doc-tab %} page-{{ page.doc-tab}}{% endif %}">
|
||||
{{ content }}
|
||||
{% include footer.html %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
layout: post
|
||||
title: "RIP nav; long live the navbar!"
|
||||
published: true
|
||||
introduction: "<p>The <code>.control</code> element has been a very versatile container for form controls. But it came at a cost: it was difficult to combine its <strong>block</strong> characteristics with its <strong>inline</strong> variations.</p>"
|
||||
published: false
|
||||
---
|
||||
|
||||
@@ -4391,13 +4391,9 @@ a.nav-item.is-tab.is-active {
|
||||
}
|
||||
|
||||
a.navbar-item:hover,
|
||||
.navbar-link:hover {
|
||||
background-color: whitesmoke;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
|
||||
a.navbar-item.is-active,
|
||||
.navbar-link.is-active {
|
||||
.navbar-item.has-dropdown:hover .navbar-link,
|
||||
.navbar-item.has-dropdown.is-active .navbar-link {
|
||||
background-color: whitesmoke;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
@@ -4435,16 +4431,6 @@ a.navbar-item.is-active,
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.navbar-dropdown a.navbar-item:hover {
|
||||
background-color: whitesmoke;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
|
||||
.navbar-dropdown a.navbar-item.is-active {
|
||||
background-color: whitesmoke;
|
||||
color: #00d1b2;
|
||||
}
|
||||
|
||||
.navbar-divider {
|
||||
background-color: #dbdbdb;
|
||||
border: none;
|
||||
@@ -4483,9 +4469,17 @@ a.navbar-item.is-active,
|
||||
.navbar.is-transparent .navbar-link.is-active {
|
||||
background-color: transparent;
|
||||
}
|
||||
.navbar.is-transparent .navbar-item.is-active .navbar-link, .navbar.is-transparent .navbar-item.is-hoverable:hover .navbar-link {
|
||||
.navbar.is-transparent .navbar-item.has-dropdown.is-active .navbar-link, .navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:hover .navbar-link {
|
||||
background-color: transparent;
|
||||
}
|
||||
.navbar.is-transparent .navbar-dropdown a.navbar-item:hover {
|
||||
background-color: whitesmoke;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
.navbar.is-transparent .navbar-dropdown a.navbar-item.is-active {
|
||||
background-color: whitesmoke;
|
||||
color: #00d1b2;
|
||||
}
|
||||
.navbar-burger {
|
||||
display: none;
|
||||
}
|
||||
@@ -4497,10 +4491,6 @@ a.navbar-item.is-active,
|
||||
.navbar-item.has-dropdown {
|
||||
align-items: stretch;
|
||||
}
|
||||
.navbar-item.is-active .navbar-link, .navbar-item.is-hoverable:hover .navbar-link {
|
||||
background-color: whitesmoke;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
.navbar-item.is-active .navbar-dropdown, .navbar-item.is-hoverable:hover .navbar-dropdown {
|
||||
display: block;
|
||||
}
|
||||
@@ -4509,6 +4499,10 @@ a.navbar-item.is-active,
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
}
|
||||
a.navbar-item.is-active {
|
||||
background-color: transparent;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
.navbar-link::after {
|
||||
border: 1px solid #00d1b2;
|
||||
border-right: 0;
|
||||
@@ -4557,6 +4551,14 @@ a.navbar-item.is-active,
|
||||
.navbar-dropdown a.navbar-item {
|
||||
padding-right: 3rem;
|
||||
}
|
||||
.navbar-dropdown a.navbar-item:hover {
|
||||
background-color: whitesmoke;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
.navbar-dropdown a.navbar-item.is-active {
|
||||
background-color: whitesmoke;
|
||||
color: #00d1b2;
|
||||
}
|
||||
.navbar-dropdown.is-boxed {
|
||||
border-radius: 5px;
|
||||
border-top: none;
|
||||
|
||||
Reference in New Issue
Block a user