|
94 | 94 | mask-repeat: no-repeat; |
95 | 95 | } |
96 | 96 |
|
97 | | -// Arrows |
| 97 | +// Navigation button |
98 | 98 |
|
99 | 99 | .nav-buttons { |
100 | 100 | display: flex; /* Aligns buttons side by side */ |
101 | | - justify-content: center; /* Centers the buttons horizontally */ |
102 | | - align-items: center; /* Aligns the buttons vertically */ |
103 | | - gap: 20px; /* Adds spacing between the buttons */ |
| 101 | + justify-content: center; /* Centers the navigation buttons horizontally */ |
| 102 | + align-items: center; /* Vertically aligns the buttons */ |
| 103 | + gap: 40px; /* Adds spacing between the two navigation items */ |
104 | 104 | } |
105 | 105 |
|
106 | | -/* SVG styles */ |
107 | | -.nav-button svg { |
108 | | - width: 50px; |
109 | | - height: 50px; |
110 | | - transition: transform 0.3s ease; /* Smooth scaling on hover */ |
| 106 | +/* Each navigation button */ |
| 107 | +.nav-button { |
| 108 | + text-decoration: none; |
111 | 109 | } |
112 | 110 |
|
113 | | -/* Path styles */ |
114 | | -.nav-button path { |
115 | | - stroke: #264caf; |
116 | | - stroke-width: 3; |
117 | | - fill: none; |
118 | | - transition: stroke 0.3s ease; /* Smooth color transition */ |
| 111 | +/* Container for each nav-item (arrow + text) */ |
| 112 | +.nav-item { |
| 113 | + display: flex; /* Aligns text and arrow in a row */ |
| 114 | + align-items: center; /* Ensures vertical alignment between text and SVG */ |
| 115 | + gap: 10px; /* Spacing between arrow and text */ |
119 | 116 | } |
120 | 117 |
|
121 | | -/* Text styles */ |
122 | | -.nav-text { |
123 | | - display: none; /* Hides text by default */ |
124 | | - font-size: 14px; |
| 118 | +/* Position text relative to the arrow */ |
| 119 | +.nav-item .nav-text { |
| 120 | + font-size: 16px; |
125 | 121 | font-weight: bold; |
126 | 122 | color: #264caf; |
127 | | - margin-top: 5px; /* Adds space below the SVG */ |
| 123 | + white-space: nowrap; /* Prevents text from wrapping */ |
| 124 | + opacity: 0; /* Hides text by default */ |
| 125 | + transition: opacity 0.3s ease; /* Smooth fade-in effect on hover */ |
| 126 | +} |
| 127 | + |
| 128 | +/* Path styles (arrows) */ |
| 129 | +.nav-item svg path { |
| 130 | + stroke: #264caf; |
| 131 | + stroke-width: 3; |
| 132 | + fill: none; |
| 133 | + transition: transform 0.3s ease, stroke 0.3s ease; /* Smooth animation */ |
128 | 134 | } |
129 | 135 |
|
130 | 136 | /* Hover effects */ |
| 137 | +.nav-button:hover .nav-text { |
| 138 | + opacity: 1; /* Shows text on hover */ |
| 139 | +} |
| 140 | + |
131 | 141 | .nav-button:hover svg { |
132 | 142 | transform: scale(1.2); /* Enlarges the SVG slightly */ |
133 | 143 | } |
134 | 144 |
|
135 | 145 | .nav-button:hover path { |
136 | | - stroke: #183d92; /* Changes arrow color on hover */ |
| 146 | + stroke: #183d92; /* Changes the arrow color on hover */ |
137 | 147 | } |
138 | 148 |
|
139 | 149 | .nav-button:hover .nav-text { |
|
0 commit comments