|
1 | 1 | @import '~styles/utils/modules-entry.scss';
|
2 | 2 |
|
| 3 | +$divider-margin: 0.3rem; |
| 4 | + |
3 | 5 | /*
|
4 | 6 | For breakpoint-md (tablets), show the links as compact buttons with labels below icons.
|
5 | 7 | For breakpoint-lg (desktop), show the links as traditional link with icon to the left.
|
6 | 8 | TODO: UPDATE COMMENT
|
7 | 9 | */
|
8 | 10 | .nav {
|
9 |
| - // position: fixed; |
10 |
| - // top: $navbar-height; |
11 |
| - z-index: $navtabs-z-index; |
12 |
| - // See site.scss for width on md and lg sizes |
| 11 | + // z-index: $navtabs-z-index; // TODO: Remove from main z-index list if no longer neeedd |
13 | 12 | display: flex;
|
14 |
| - // justify-content: space-around; |
15 | 13 | justify-content: center;
|
16 | 14 | align-items: stretch;
|
17 | 15 | height: $navtab-height;
|
18 | 16 | margin: 0 auto;
|
19 | 17 | }
|
20 | 18 |
|
21 | 19 | .link {
|
22 |
| - position: relative; |
23 |
| - flex-shrink: 0; |
24 |
| - flex-basis: auto; |
25 | 20 | line-height: 1.6;
|
26 |
| - text-align: center; |
| 21 | + display: flex; |
| 22 | + justify-content: center; |
| 23 | + align-items: center; |
| 24 | + flex-grow: 1; |
27 | 25 | color: var(--gray-light);
|
28 |
| - transition: color 0.15s; |
29 |
| - min-width: 6em; |
| 26 | + min-width: 4rem; |
| 27 | + margin: 0 0.2rem; |
| 28 | + border-top: 0.2rem solid transparent; |
| 29 | + border-bottom: 0.2rem solid transparent; |
| 30 | + |
| 31 | + transition: color $desktop-entering-duration $material-deceleration-curve, |
| 32 | + border-bottom-color $desktop-entering-duration $material-deceleration-curve; |
30 | 33 |
|
31 | 34 | &.linkActive {
|
32 | 35 | color: theme-color(primary);
|
| 36 | + border-bottom-color: theme-color(primary); |
33 | 37 | }
|
34 | 38 |
|
35 |
| - &:hover .title { |
36 |
| - text-decoration: underline; |
37 |
| - } |
38 |
| - |
39 |
| - @include media-breakpoint-down(sm) { |
40 |
| - display: flex; |
41 |
| - justify-content: center; |
42 |
| - align-items: center; |
43 |
| - flex-grow: 1; |
44 |
| - min-width: unset; |
45 |
| - |
46 |
| - svg { |
47 |
| - margin-bottom: 0.1rem; |
| 39 | + &:hover { |
| 40 | + &:not(.linkActive) { |
| 41 | + border-bottom-color: rgba(theme-color(primary), 0.3); |
48 | 42 | }
|
49 | 43 | }
|
50 | 44 |
|
51 |
| - // @include media-breakpoint-up(md) { |
52 |
| - // padding: 0.8rem 0.5rem; |
53 |
| - // } |
54 |
| - |
55 |
| - @include media-breakpoint-up(xl) { |
56 |
| - display: flex; |
57 |
| - align-items: center; |
58 |
| - justify-items: center; |
59 |
| - // padding: 0.8rem 0 0.8rem 2rem; |
60 |
| - text-align: left; |
61 |
| - min-width: 10em; |
| 45 | + svg { |
| 46 | + margin-bottom: 0.1rem; |
62 | 47 | }
|
63 | 48 | }
|
64 | 49 |
|
65 | 50 | .title {
|
66 | 51 | display: none;
|
67 | 52 | font-size: 0.7rem;
|
68 |
| - |
69 |
| - @include media-breakpoint-up(md) { |
70 |
| - display: block; |
71 |
| - } |
72 |
| - |
73 |
| - @include media-breakpoint-up(xl) { |
74 |
| - margin-left: 0.4rem; |
75 |
| - font-size: 1rem; |
76 |
| - } |
| 53 | + margin-left: 0.4rem; |
| 54 | + font-size: 1rem; |
77 | 55 | }
|
78 | 56 |
|
79 | 57 | .hiddenOnMobile {
|
|
82 | 60 | }
|
83 | 61 | }
|
84 | 62 |
|
85 |
| -.divider { |
86 |
| - $size: 70%; |
87 |
| - $margin: 0.3rem; |
| 63 | +// TODO: To be resurrected in dropdown |
| 64 | +// .divider { |
| 65 | +// $size: 70%; |
88 | 66 |
|
89 |
| - composes: hiddenOnMobile; |
90 |
| - opacity: 0.6; |
91 |
| - flex: 0 0 1px; |
92 |
| - margin: $margin ((100% - $size) / 2) 0; |
93 |
| - background: var(--gray-lighter); |
| 67 | +// composes: hiddenOnMobile; |
| 68 | +// opacity: 0.6; |
| 69 | +// flex: 0 0 1px; |
| 70 | +// margin: $divider-margin ((100% - $size) / 2) 0; |
| 71 | +// background: var(--gray-lighter); |
| 72 | +// } |
94 | 73 |
|
95 |
| - @include media-breakpoint-up(xl) { |
96 |
| - margin: $margin 1rem $margin 1.4rem; |
| 74 | +@include media-breakpoint-down(sm) { |
| 75 | + .link { |
| 76 | + min-width: unset; |
97 | 77 | }
|
98 | 78 | }
|
99 | 79 |
|
100 |
| -.updateDot { |
101 |
| - position: absolute; |
102 |
| - top: 0.5rem; |
103 |
| - width: 0.5rem; |
104 |
| - height: 0.5rem; |
105 |
| - padding: 0; |
106 |
| - margin-left: 1rem; |
107 |
| - border-radius: 50%; |
108 |
| - font-size: $font-size-xs; |
109 |
| - line-height: 1.2; |
110 |
| - background: theme-color(success); |
111 |
| - |
112 |
| - :global { |
113 |
| - animation: zoomIn 0.4s; |
| 80 | +@include media-breakpoint-up(lg) { |
| 81 | + .link { |
| 82 | + min-width: 8em; |
114 | 83 | }
|
115 | 84 |
|
116 |
| - @include media-breakpoint-up(md) { |
117 |
| - right: 1.4rem; |
| 85 | + .title { |
| 86 | + display: block; |
118 | 87 | }
|
119 | 88 |
|
120 |
| - @include media-breakpoint-up(xl) { |
121 |
| - display: none; |
| 89 | + // .divider { |
| 90 | + // margin: $divider-margin 1rem $divider-margin 1.4rem; |
| 91 | + // } |
| 92 | +} |
| 93 | + |
| 94 | +@include media-breakpoint-up(xl) { |
| 95 | + .link { |
| 96 | + min-width: 10em; |
122 | 97 | }
|
123 | 98 | }
|
0 commit comments