|
2 | 2 | .hero {
|
3 | 3 | @extend .margin-top-large;
|
4 | 4 |
|
| 5 | + // Title styling within the hero section |
5 | 6 | .hero-title {
|
6 | 7 | @extend .padding-horizontal-big;
|
7 | 8 | }
|
8 | 9 |
|
| 10 | + // Description styling within the hero section |
9 | 11 | .hero-description {
|
10 | 12 | @extend .body-bigger;
|
11 | 13 | @extend .padding-top-big;
|
12 | 14 | @extend .padding-horizontal-big;
|
13 | 15 | }
|
14 | 16 |
|
| 17 | + // Links container within the hero section |
15 | 18 | .hero-links {
|
16 | 19 | @extend .margin-vertical-normal;
|
17 | 20 | @extend .padding-horizontal-big;
|
18 | 21 |
|
| 22 | + // Use flexbox for layout |
| 23 | + display: flex; |
| 24 | + flex-direction: column; // Stack buttons vertically |
| 25 | + align-items: center; // Center-align the buttons |
| 26 | + |
| 27 | + // Button styling within the hero links |
19 | 28 | .button {
|
| 29 | + // Apply normal top margin from the defined style |
20 | 30 | @extend .margin-top-normal;
|
21 |
| - text-decoration: none; |
22 |
| - |
| 31 | + text-decoration: none; // Remove default underline from links |
| 32 | + margin-bottom: 0.5rem; // Add spacing between buttons |
| 33 | + width: 100%; // Full width of the container |
| 34 | + max-width: 300px; // Maximum width for buttons |
| 35 | + padding: 1rem; // Padding inside buttons |
| 36 | + box-sizing: border-box; // Include padding in width calculation |
| 37 | + text-align: center; // Center text inside buttons |
| 38 | + font-size: 1em; // Set font size |
| 39 | + line-height: 1.2; // Set line height for readability |
| 40 | + white-space: normal; // Allow text wrapping within buttons |
| 41 | + |
| 42 | + // Icon styling within buttons |
23 | 43 | .icon {
|
24 | 44 | @extend .margin-right-small;
|
25 | 45 | @extend .padding-vertical-smaller;
|
|
0 commit comments