Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
italy-theme
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
italy-theme
Commits
01440be3
Commit
01440be3
authored
Apr 29, 2018
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
navbar: add more contrast for the secondary active
parent
524dd327
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
demo.html
demo.html
+1
-1
scss/_navbar.scss
scss/_navbar.scss
+6
-8
No files found.
demo.html
View file @
01440be3
...
...
@@ -72,7 +72,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div
class=
"container"
>
<ul>
<li><a
href=
"#"
>
Desktop e portatili
</a></li>
<li><a
href=
"#"
>
Server e cloud
</a></li>
<li><a
href=
"#"
class=
"active"
>
Server e cloud
</a></li>
<li><a
href=
"#"
>
Derivate
</a></li>
</ul>
</div>
...
...
scss/_navbar.scss
View file @
01440be3
...
...
@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@mixin
navbar-style
(
$background
,
$color
,
$hover_color
,
$font_size
)
{
@mixin
navbar-style
(
$background
,
$
active_background
,
$
color
,
$hover_color
,
$font_size
)
{
background
:
$background
;
ul
li
{
...
...
@@ -29,7 +29,7 @@
&
:hover
,
&
.active
{
color
:
$hover_color
;
background
:
mix
(
#fff
,
$background
,
10%
)
;
background
:
$active_background
;
}
}
...
...
@@ -100,24 +100,22 @@ nav {
@include
navbar-style
(
mix
(
#fff
,
$color_warm_gray
,
90%
)
,
mix
(
#fff
,
$color_warm_gray
,
97%
)
,
mix
(
#000
,
$color_warm_gray
,
40%
)
,
mix
(
#000
,
$color_warm_gray
,
6
0%
)
,
mix
(
#000
,
$color_warm_gray
,
7
0%
)
,
1rem
,
);
&
.main-navbar
{
font-weight
:
400
;
@include
navbar-style
(
$color_orange
,
#fff
,
#fff
,
1rem
);
@include
navbar-style
(
$color_orange
,
mix
(
#fff
,
$color_orange
,
10%
)
,
#fff
,
#fff
,
1rem
);
}
&
.sites-list
{
@include
navbar-style
(
$color_cool_gray
,
$color_warm_gray
,
#fff
,
0
.8rem
);
@include
navbar-style
(
$color_cool_gray
,
$color_
cool_gray
,
$color_
warm_gray
,
#fff
,
0
.8rem
);
ul
li
a
{
padding
:
0
.5em
0
.7em
;
&
:hover
,
&
.active
{
background
:
$color_cool_gray
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment