|
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
|
|
56 | 59 |
|
57 | 60 | .link {
|
58 | 61 | position: relative;
|
59 |
| - flex: 1 0 auto; |
| 62 | + flex-shrink: 0; |
| 63 | + flex-basis: auto; |
60 | 64 | line-height: 1.6;
|
61 | 65 | text-align: center;
|
62 | 66 | color: var(--gray-light);
|
63 | 67 | transition: color 0.15s;
|
| 68 | + min-width: 6em; |
64 | 69 |
|
65 | 70 | &.linkActive {
|
66 | 71 | color: theme-color(primary);
|
|
74 | 79 | display: flex;
|
75 | 80 | justify-content: center;
|
76 | 81 | align-items: center;
|
| 82 | + flex-grow: 1; |
| 83 | + min-width: unset; |
77 | 84 |
|
78 | 85 | svg {
|
79 | 86 | margin-bottom: 0.1rem;
|
80 | 87 | }
|
81 | 88 | }
|
82 | 89 |
|
83 |
| - @include media-breakpoint-up(md) { |
84 |
| - padding: 0.8rem 0.5rem; |
85 |
| - } |
| 90 | + // @include media-breakpoint-up(md) { |
| 91 | + // padding: 0.8rem 0.5rem; |
| 92 | + // } |
86 | 93 |
|
87 | 94 | @include media-breakpoint-up(xl) {
|
88 | 95 | display: flex;
|
89 | 96 | align-items: center;
|
90 |
| - padding: 0.8rem 0 0.8rem 2rem; |
| 97 | + justify-items: center; |
| 98 | + // padding: 0.8rem 0 0.8rem 2rem; |
91 | 99 | text-align: left;
|
| 100 | + min-width: 10em; |
92 | 101 | }
|
93 | 102 | }
|
94 | 103 |
|
|
0 commit comments