Skip to content

Commit c5e1582

Browse files
Update custom.scss
1 parent 6cdee37 commit c5e1582

1 file changed

Lines changed: 31 additions & 21 deletions

File tree

_sass/custom/custom.scss

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -94,46 +94,56 @@
9494
mask-repeat: no-repeat;
9595
}
9696

97-
// Arrows
97+
// Navigation button
9898

9999
.nav-buttons {
100100
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 */
104104
}
105105

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;
111109
}
112110

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 */
119116
}
120117

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;
125121
font-weight: bold;
126122
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 */
128134
}
129135

130136
/* Hover effects */
137+
.nav-button:hover .nav-text {
138+
opacity: 1; /* Shows text on hover */
139+
}
140+
131141
.nav-button:hover svg {
132142
transform: scale(1.2); /* Enlarges the SVG slightly */
133143
}
134144

135145
.nav-button:hover path {
136-
stroke: #183d92; /* Changes arrow color on hover */
146+
stroke: #183d92; /* Changes the arrow color on hover */
137147
}
138148

139149
.nav-button:hover .nav-text {

0 commit comments

Comments
 (0)