Skip to content
Snippets Groups Projects
Commit 7d57de43 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

chore(ui): harmonize navbar

parent 9fd70ed4
No related branches found
No related tags found
2 merge requests!783V3.0.0,!741making onboarding-infos-covid-2 up to date
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<nav> <nav>
<span <span
*ngFor="let tag of tags.others" *ngFor="let tag of tags.others"
class="btnTag" class="tag"
tabindex="0" tabindex="0"
role="listitem" role="listitem"
[ngClass]="{ active: tag.slug === mainActiveTag.slug || tag.name === mainActiveTag.slug }" [ngClass]="{ active: tag.slug === mainActiveTag.slug || tag.name === mainActiveTag.slug }"
......
...@@ -25,15 +25,16 @@ header { ...@@ -25,15 +25,16 @@ header {
nav { nav {
display: flex; display: flex;
overflow-x: auto; overflow-x: auto;
.btnTag { white-space: nowrap;
.tag {
cursor: pointer;
user-select: none;
@include font-regular-14;
box-sizing: border-box;
padding: 0 16px; padding: 0 16px;
height: 60px; height: 60px;
@include font-regular-14;
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer;
user-select: none;
white-space: nowrap;
border-bottom: 3px solid transparent; border-bottom: 3px solid transparent;
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
&.active { &.active {
......
...@@ -61,17 +61,24 @@ ...@@ -61,17 +61,24 @@
border-bottom: 1px solid $grey-5; border-bottom: 1px solid $grey-5;
.tab { .tab {
padding-bottom: 1rem; cursor: pointer;
justify-content: center; user-select: none;
@include font-regular-14;
box-sizing: border-box;
padding: 0 16px;
height: 60px;
display: flex; display: flex;
justify-content: center;
align-items: center;
flex: 1; flex: 1;
user-select: none; border-bottom: 3px solid transparent;
transition: all 0.3s ease-in-out;
&:hover { &:hover {
cursor: pointer; border-color: $grey-4;
} }
&.selected { &.selected {
font-weight: bold; font-weight: bold;
border-bottom: 2px solid $grey-1; border-color: $grey-1;
} }
} }
} }
......
...@@ -65,21 +65,27 @@ ...@@ -65,21 +65,27 @@
justify-content: flex-start; justify-content: flex-start;
overflow-x: auto; overflow-x: auto;
white-space: nowrap; white-space: nowrap;
border-bottom: 1px solid $grey-5; border-bottom: 1px solid $grey-5;
.tab { .tab {
padding-bottom: 1rem; cursor: pointer;
justify-content: center; user-select: none;
@include font-regular-14;
box-sizing: border-box;
padding: 0 16px;
height: 60px;
display: flex; display: flex;
justify-content: center;
align-items: center;
flex: 1; flex: 1;
user-select: none; border-bottom: 3px solid transparent;
transition: all 0.3s ease-in-out;
&:hover { &:hover {
cursor: pointer; border-color: $grey-4;
} }
&.selected { &.selected {
font-weight: bold; font-weight: bold;
border-bottom: 2px solid $grey-1; border-color: $grey-1;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment