aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/include/_nav.scss
blob: d069ac9ae94fca476b8d844685eba39546e04a49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@use '_variables' as *;
@use '_mixins' as *;

@mixin peertube-nav-tabs (
  $border-width: 3px,
  $border-type: solid,
  $border-color: #EAEAEA,
  $nav-link-height: 40px
) {
  border-bottom: $border-width $border-type $border-color;
  margin: 20px 0 0 !important;

  &.hide-nav {
    display: none !important;
  }

  a.nav-link {
    @include disable-default-a-behaviour;

    margin-bottom: -$border-width;
    height: $nav-link-height !important;
    padding: 0 30px !important;
    font-size: 15px;

    border: $border-width $border-type transparent;

    span {
      border-bottom: 2px solid transparent;
    }

    &.active {
      border-color: $border-color;
      border-bottom-color: transparent;

      span {
        border-bottom-color: pvar(--mainColor);
      }
    }

    &:hover:not(.active) {
      border-color: transparent;
    }
  }
}