Skip to content

Commit

Permalink
feat: update header (change selectors)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvalchetskaya committed May 30, 2022
1 parent d043d73 commit c60ed14
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pages/views/_includes/header.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<a class="uip-title" href="{{ '/' | url }}">
{% include 'pages/static/assets/uip-logo.svg' %} <span>UIPlayground</span>
{% include 'pages/static/assets/uip-logo.svg' %} <span class="uip-title-text">UIPlayground</span>
</a>
<div class="header-nav">
<a class="header-nav-link" href="{{ '/examples/' | url }}">Examples</a>
Expand Down
4 changes: 2 additions & 2 deletions pages/views/_includes/sidebar.njk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<esl-toggleable id="sidebar" class="sidebar" close-on-outside-action close-on-esc>
<li class="sidebar-nav-item">
<a href="{{ '/examples/' | url }}">Examples</a>
<a href="{{ '/examples/' | url }}" class="sidebar-nav-item-link">Examples</a>
</li>
<li class="sidebar-nav-item">
<a href="{{ '/components/' | url }}">Components</a>
<a href="{{ '/components/' | url }}" class="sidebar-nav-item-link">Components</a>
</li>
</esl-toggleable>
4 changes: 2 additions & 2 deletions pages/views/styles/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
align-items: center;
display: flex;

a {
.uip-title, .header-nav-link {
color: white;
}

Expand All @@ -19,7 +19,7 @@
margin-left: 50px;
font-weight: bold;

span {
&-text {
margin-left: 10px;
}

Expand Down
7 changes: 4 additions & 3 deletions pages/views/styles/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
display: block;
}

a {
color: white;
}
.sidebar-nav-item {
margin: 10px;

&-link {
color: white;
}
}
}

Expand Down

0 comments on commit c60ed14

Please sign in to comment.