|
1 | 1 | * { |
2 | | - margin: 0; |
3 | | - padding: 0; |
4 | | - box-sizing: border-box; |
5 | | - font-family: "Poppins", sans-serif; |
| 2 | + margin: 0; |
| 3 | + padding: 0; |
| 4 | + box-sizing: border-box; |
| 5 | + font-family: 'Poppins', sans-serif; |
6 | 6 | } |
7 | 7 |
|
8 | 8 | :root { |
9 | | - --clr: #ffffff; |
| 9 | + --clr: #ffffff; |
10 | 10 | } |
11 | 11 |
|
12 | | -.navbar-wrapper { |
13 | | - height: 110px; |
14 | | -} |
15 | 12 | .navbar-root { |
16 | | - margin-left: auto; |
17 | | - margin-right: auto; |
18 | | - top: 40px; |
19 | | - background: var(--clr); |
| 13 | + margin-left: auto; |
| 14 | + margin-right: auto; |
| 15 | + top: 40px; |
| 16 | + background: var(--clr); |
20 | 17 |
|
21 | | - position: relative; |
22 | | - width: 400px; |
23 | | - height: 70px; |
24 | | - background: #88847e; |
25 | | - display: flex; |
26 | | - justify-content: center; |
27 | | - align-items: center; |
28 | | - border-radius: 20px; |
| 18 | + position: relative; |
| 19 | + width: 400px; |
| 20 | + height: 70px; |
| 21 | + background: #88847e; |
| 22 | + display: flex; |
| 23 | + justify-content: center; |
| 24 | + align-items: center; |
| 25 | + border-radius: 20px; |
29 | 26 | } |
30 | 27 |
|
31 | 28 | .navbar-heading { |
32 | | - display: flex; |
33 | | - flex-direction: row; |
34 | | - align-items: center; |
35 | | - flex-basis: 30%; |
| 29 | + display: flex; |
| 30 | + flex-direction: row; |
| 31 | + align-items: center; |
| 32 | + flex-basis: 30%; |
36 | 33 | } |
37 | 34 |
|
38 | 35 | .navbar-heading img { |
39 | | - height: 50px; |
40 | | - width: 50px; |
| 36 | + height: 50px; |
| 37 | + width: 50px; |
| 38 | + margin-left: 10px; |
41 | 39 | } |
42 | 40 |
|
43 | 41 | .navbar-heading h1 { |
44 | | - font-size: 22px; |
45 | | - color: #fff; |
46 | | - margin-bottom: 0px; |
47 | | - display: flex; |
48 | | - flex-direction: row; |
| 42 | + display: flex; |
| 43 | + flex-direction: row; |
| 44 | + font-size: 12px; |
| 45 | + font-family: 'Poppins'; |
| 46 | + color: #032d7a; |
| 47 | + padding-left: 2px; |
| 48 | + margin-bottom: 0px; |
| 49 | + align-items: center; |
| 50 | + width: 100px; |
49 | 51 | } |
50 | 52 |
|
51 | 53 | .navbar-root ul { |
52 | | - display: flex; |
53 | | - width: 350px; |
54 | | - padding-left: 30px; |
| 54 | + display: flex; |
| 55 | + width: 350px; |
| 56 | + padding-left: 30px; |
55 | 57 | } |
56 | 58 |
|
57 | 59 | .navbar-root li { |
58 | | - position: relative; |
59 | | - list-style: none; |
60 | | - width: 70px; |
61 | | - height: 70px; |
62 | | - z-index: 1; |
| 60 | + position: relative; |
| 61 | + list-style: none; |
| 62 | + width: 70px; |
| 63 | + height: 70px; |
| 64 | + z-index: 1; |
63 | 65 | } |
64 | 66 |
|
65 | 67 | .navbar-root ul li .navbar-item { |
66 | | - position: relative; |
67 | | - display: flex; |
68 | | - justify-content: center; |
69 | | - align-items: center; |
70 | | - flex-direction: column; |
71 | | - width: 100%; |
72 | | - text-align: center; |
73 | | - font-weight: 500; |
| 68 | + position: relative; |
| 69 | + display: flex; |
| 70 | + justify-content: center; |
| 71 | + align-items: center; |
| 72 | + flex-direction: column; |
| 73 | + width: 100%; |
| 74 | + text-align: center; |
| 75 | + font-weight: 500; |
74 | 76 | } |
75 | 77 |
|
76 | 78 | .nav-logo { |
77 | | - display: flex; |
78 | | - text-decoration: none; |
| 79 | + display: flex; |
| 80 | + text-decoration: none; |
| 81 | +} |
| 82 | + |
| 83 | +.nav-logo img { |
| 84 | + margin-left: 30px; |
| 85 | + width: 60px; |
| 86 | + height: 60px; |
79 | 87 | } |
80 | 88 |
|
81 | 89 | .navbar-root ul li .navbar-item .icon { |
82 | | - position: relative; |
83 | | - display: block; |
84 | | - line-height: 75px; |
85 | | - font-size: 1.5em; |
86 | | - text-align: center; |
87 | | - transition: 0.5s; |
88 | | - color: var(--clr); |
89 | | - width: 48px; |
90 | | - height: 48px; |
| 90 | + position: relative; |
| 91 | + display: block; |
| 92 | + line-height: 75px; |
| 93 | + font-size: 1.5em; |
| 94 | + text-align: center; |
| 95 | + transition: 0.5s; |
| 96 | + color: var(--clr); |
| 97 | + width: 48px; |
| 98 | + height: 48px; |
91 | 99 | } |
92 | 100 |
|
93 | 101 | .navbar-root ul li.active .navbar-item .icon { |
94 | | - transform: translateY(-32px); |
| 102 | + transform: translateY(-32px); |
95 | 103 | } |
96 | 104 |
|
97 | 105 | .navbar-root ul li .navbar-item .text { |
98 | | - position: absolute; |
99 | | - color: var(--clr); |
100 | | - font-weight: 400; |
101 | | - letter-spacing: 0.05em; |
102 | | - transition: 0.5s; |
103 | | - opacity: 0; |
104 | | - transform: translateY(20px); |
| 106 | + position: absolute; |
| 107 | + color: var(--clr); |
| 108 | + font-weight: 400; |
| 109 | + letter-spacing: 0.05em; |
| 110 | + transition: 0.5s; |
| 111 | + opacity: 0; |
| 112 | + transform: translateY(20px); |
105 | 113 | } |
106 | 114 |
|
107 | 115 | .navbar-root ul li.active .navbar-item .text { |
108 | | - opacity: 1; |
109 | | - transform: translateY(20px); |
| 116 | + opacity: 1; |
| 117 | + transform: translateY(20px); |
110 | 118 | } |
111 | 119 |
|
112 | 120 | .indicator { |
113 | | - position: absolute; |
114 | | - top: -60%; |
115 | | - width: 70px; |
116 | | - height: 70px; |
117 | | - background: #26b4ec; |
118 | | - border-radius: 50%; |
119 | | - border: 6px solid var(--clr); |
120 | | - transition: 0.5s; |
| 121 | + position: absolute; |
| 122 | + top: -60%; |
| 123 | + width: 70px; |
| 124 | + height: 70px; |
| 125 | + background: #26b4ec; |
| 126 | + border-radius: 50%; |
| 127 | + border: 6px solid var(--clr); |
| 128 | + transition: 0.5s; |
121 | 129 | } |
122 | 130 |
|
123 | 131 | .indicator::before { |
124 | | - content: ""; |
125 | | - position: absolute; |
126 | | - top: 60%; |
127 | | - left: -22px; |
128 | | - width: 23px; |
129 | | - height: 20px; |
130 | | - background-color: transparent; |
131 | | - border-top-right-radius: 20px; |
132 | | - box-shadow: 0px -10px 0 0 var(--clr); |
| 132 | + content: ''; |
| 133 | + position: absolute; |
| 134 | + top: 60%; |
| 135 | + left: -22px; |
| 136 | + width: 23px; |
| 137 | + height: 20px; |
| 138 | + background-color: transparent;; |
| 139 | + border-top-right-radius: 20px; |
| 140 | + box-shadow: 0px -10px 0 0 var(--clr); |
133 | 141 | } |
134 | 142 |
|
135 | 143 | .indicator::after { |
136 | | - content: ""; |
137 | | - position: absolute; |
138 | | - top: 60%; |
139 | | - right: -22px; |
140 | | - width: 23px; |
141 | | - height: 20px; |
142 | | - background-color: transparent; |
143 | | - border-top-left-radius: 20px; |
144 | | - box-shadow: 0px -10px 0 0 var(--clr); |
| 144 | + content: ''; |
| 145 | + position: absolute; |
| 146 | + top: 60%; |
| 147 | + right: -22px; |
| 148 | + width: 23px; |
| 149 | + height: 20px; |
| 150 | + background-color: transparent;; |
| 151 | + border-top-left-radius: 20px; |
| 152 | + box-shadow: 0px -10px 0 0 var(--clr); |
145 | 153 | } |
146 | 154 |
|
147 | 155 | .navbar-root ul li:nth-child(1).active ~ .indicator { |
148 | | - transform: translateX(calc(70px * 0)); |
| 156 | + transform: translateX(calc(70px * 0)); |
149 | 157 | } |
150 | 158 | .navbar-root ul li:nth-child(2).active ~ .indicator { |
151 | | - transform: translateX(calc(70px * 1)); |
| 159 | + transform: translateX(calc(70px * 1)); |
152 | 160 | } |
153 | 161 | .navbar-root ul li:nth-child(3).active ~ .indicator { |
154 | | - transform: translateX(calc(70px * 2)); |
| 162 | + transform: translateX(calc(70px * 2)); |
155 | 163 | } |
0 commit comments