bulma 0.4 n shit
This commit is contained in:
parent
da8b87e695
commit
63377b6d1c
3 changed files with 9 additions and 3 deletions
|
@ -93,7 +93,7 @@ footer.footer {
|
|||
transition: all 0.30s ease-in-out;
|
||||
|
||||
&.is-active {
|
||||
max-height: 250px;
|
||||
max-height: 275px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Helpers for navbar partial
|
||||
module NavigationHelper
|
||||
def nav_items
|
||||
navigables.each do |item|
|
||||
# Kind of hacky way to check if page is child of another page
|
||||
root = %r{/[^\/]*/}.match(item.path)[0]
|
||||
root = %r{/.+?/}.match(item.path)[0]
|
||||
|
||||
is_active = @item_rep && @item_rep.path.start_with?(root)
|
||||
|
||||
|
@ -10,6 +13,9 @@ module NavigationHelper
|
|||
end
|
||||
end
|
||||
|
||||
# Returns every navigable item
|
||||
# A navigable item contains the :navigable attribute
|
||||
# Optionally contains an order attribute, determining the order in the navbar
|
||||
def navigables
|
||||
items.select { |i| i[:navigable] }.sort_by { |x| x[:order] || 10_000 }
|
||||
end
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"license": "MIT",
|
||||
"repository": "https://github.com/ZeusWPI/zeus.ugent.be",
|
||||
"dependencies": {
|
||||
"bulma": "0.3.2"
|
||||
"bulma": "0.4.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue