|
3 | 3 | /*
|
4 | 4 | For breakpoint-md (tablets), show the links as compact buttons with labels below icons.
|
5 | 5 | For breakpoint-lg (desktop), show the links as traditional link with icon to the left.
|
| 6 | + TODO: UPDATE COMMENT |
6 | 7 | */
|
7 | 8 | .nav {
|
8 |
| - position: fixed; |
9 |
| - top: $navbar-height; |
10 |
| - right: 0; |
11 |
| - left: 0; |
| 9 | + // position: fixed; |
| 10 | + // top: $navbar-height; |
12 | 11 | z-index: $navtabs-z-index;
|
13 | 12 | // See site.scss for width on md and lg sizes
|
14 | 13 | display: flex;
|
15 |
| - justify-content: space-around; |
| 14 | + // justify-content: space-around; |
| 15 | + justify-content: center; |
16 | 16 | align-items: stretch;
|
17 | 17 | height: $navtab-height;
|
| 18 | + margin: 0 auto; |
18 | 19 |
|
19 |
| - @include media-breakpoint-up(md) { |
20 |
| - flex-direction: column; |
21 |
| - justify-content: flex-start; |
22 |
| - margin-top: 0.5rem; |
23 |
| - box-shadow: none; |
24 |
| - } |
| 20 | + // @include media-breakpoint-up(md) { |
| 21 | + // flex-direction: column; |
| 22 | + // justify-content: flex-start; |
| 23 | + // margin-top: 0.5rem; |
| 24 | + // box-shadow: none; |
| 25 | + // } |
25 | 26 |
|
26 |
| - @include media-breakpoint-up(xl) { |
27 |
| - margin-top: 1rem; |
28 |
| - } |
| 27 | + // @include media-breakpoint-up(xl) { |
| 28 | + // margin-top: 1rem; |
| 29 | + // } |
29 | 30 |
|
30 | 31 | @include media-breakpoint-down(sm) {
|
31 | 32 | position: sticky;
|
32 | 33 | top: 0;
|
| 34 | + right: 0; |
| 35 | + left: 0; |
33 | 36 | background-color: var(--body-bg);
|
34 | 37 |
|
35 | 38 | // Fake shadow - can't use box shadow because they will appear on top of the
|
|
49 | 52 |
|
50 | 53 | .link {
|
51 | 54 | position: relative;
|
52 |
| - flex: 1 0 auto; |
| 55 | + flex-shrink: 0; |
| 56 | + flex-basis: auto; |
53 | 57 | line-height: 1.6;
|
54 | 58 | text-align: center;
|
55 | 59 | color: var(--gray-light);
|
56 | 60 | transition: color 0.15s;
|
| 61 | + min-width: 6em; |
57 | 62 |
|
58 | 63 | &.linkActive {
|
59 | 64 | color: theme-color(primary);
|
|
67 | 72 | display: flex;
|
68 | 73 | justify-content: center;
|
69 | 74 | align-items: center;
|
| 75 | + flex-grow: 1; |
| 76 | + min-width: unset; |
70 | 77 |
|
71 | 78 | svg {
|
72 | 79 | margin-bottom: 0.1rem;
|
73 | 80 | }
|
74 | 81 | }
|
75 | 82 |
|
76 |
| - @include media-breakpoint-up(md) { |
77 |
| - padding: 0.8rem 0.5rem; |
78 |
| - } |
| 83 | + // @include media-breakpoint-up(md) { |
| 84 | + // padding: 0.8rem 0.5rem; |
| 85 | + // } |
79 | 86 |
|
80 | 87 | @include media-breakpoint-up(xl) {
|
81 | 88 | display: flex;
|
82 | 89 | align-items: center;
|
83 |
| - padding: 0.8rem 0 0.8rem 2rem; |
| 90 | + justify-items: center; |
| 91 | + // padding: 0.8rem 0 0.8rem 2rem; |
84 | 92 | text-align: left;
|
| 93 | + min-width: 10em; |
85 | 94 | }
|
86 | 95 | }
|
87 | 96 |
|
|
0 commit comments