mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 16:45:18 +08:00
Style inventories secondary navigation section
This commit is contained in:
parent
4cdfe67115
commit
dbceac7aa4
2 changed files with 9 additions and 5 deletions
|
@ -322,13 +322,17 @@ a[data-toggle="tooltip"] {
|
||||||
@include box-shadow(0 4px 0 $brand-primary);
|
@include box-shadow(0 4px 0 $brand-primary);
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
|
||||||
a,
|
& > a,
|
||||||
a:hover,
|
& > a:hover,
|
||||||
a:focus {
|
& > a:focus {
|
||||||
background: $color-white;
|
background: transparent;
|
||||||
color: $color-emperor;
|
color: $color-emperor;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul .active-item {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
<ul class="dropdown-menu repositories-dropdown-menu" aria-labelledby="repositoriesDropdownMenuLink">
|
<ul class="dropdown-menu repositories-dropdown-menu" aria-labelledby="repositoriesDropdownMenuLink">
|
||||||
<% @my_module.experiment.project.team.repositories.order(created_at: :asc).each do |repository| %>
|
<% @my_module.experiment.project.team.repositories.order(created_at: :asc).each do |repository| %>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item"
|
<a class="dropdown-item <%= "active-item" if module_repository_page? && @repository == repository %>"
|
||||||
href="<%= repository_my_module_url(id: @my_module, repository_id: repository) %>"
|
href="<%= repository_my_module_url(id: @my_module, repository_id: repository) %>"
|
||||||
title="<%= repository.name %>"
|
title="<%= repository.name %>"
|
||||||
data-no-turbolink="true">
|
data-no-turbolink="true">
|
||||||
|
|
Loading…
Add table
Reference in a new issue