~sircmpwn/core.sr.ht

ref: 16834a8a9a4d93789a7583297b082ec061caf169 core.sr.ht/srht/scss/nav.scss -rw-r--r-- 2.1 KiB
16834a8aDrew DeVault OAuth: error on insufficient scopes 1 year, 7 months ago
                                                                                
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
.navbar {
  flex-wrap: wrap;

  .navbar-nav {
    flex-grow: 1;
    flex-wrap: nowrap;

    @include media-breakpoint-down(xs) {
      flex-direction: row !important;

      .nav-link {
        padding: 0 0.5rem;

        &:first-child {
          padding-left: 0;
        }
      }

    }
  }

  .navbar-text {
    color: $black;

    @include media-breakpoint-down(md) {
      padding: 0;
    }
  }
}

.nav-tabs {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 3px $nav-tabs-background solid;

  .nav-link {
    padding: 0 1rem;
    border-radius: 0;
    border: none;
    color: color_adjust_contrast_AERT($gray-600, white);
    cursor: pointer;

    &.active, &.active:hover {
      color: black;
      background: $nav-tabs-background;
    }

    &[disabled], &[disabled]:hover {
      color: $gray-800;
      cursor: not-allowed;
      background: transparent;
    }
  }
}

.header-tabbed {
  border-bottom: 3px solid $nav-tabs-background;
  margin-bottom: 1rem;

  .container, .container-fluid {
    display: flex;
    flex-wrap: wrap;

    @include media-breakpoint-down(sm) {
      flex-direction: column;
    }
  }

  &.vertical {
    align-items: inherit;
    flex-direction: column;
  }

  h2 {
    display: inline;
    margin: 0;
    padding-right: 1rem;
  }

  .nav {
    border: none;
    margin: 0;
    flex-grow: 1;
    display: inline-flex;
    flex-wrap: nowrap;
    padding: 0;

    li {
      align-self: flex-end;
    }

    .nav-item:hover {
      background: $nav-tabs-background;
      a {
        color: black;
      }
    }

    @include media-breakpoint-down(sm) {
      flex-wrap: wrap;

      li {
        align-self: flex-start;
        margin: 0 -1rem;
        width: 100vw;
      }

      .nav-item.back-button {
        margin-left: -8px;
      }
    }
  }

  form {
    margin-top: 0;
    margin-bottom: 0;
  }

  button.nav-link {
    background: inherit;
  }

  @include media-breakpoint-down(xs) {
    & .nav-tabs {
      padding-left: 0;
    }
  }
}

.header-extension {
  margin-top: -1rem;
  margin-bottom: 1rem;
  background: $nav-tabs-background;
}