|
1 | 1 | .learn-sections { |
2 | | - margin: 40px 0; |
| 2 | + margin: 40px 0; |
3 | 3 | } |
4 | 4 |
|
5 | 5 | .learn-list { |
6 | | - list-style-type: none; |
7 | | - padding: 0; |
8 | | - border: 1px solid $heroDark; |
9 | | - border-radius: 8px; |
| 6 | + list-style-type: none; |
| 7 | + padding: 0; |
| 8 | + border: 1px solid $heroDark; |
| 9 | + border-radius: 8px; |
10 | 10 | } |
11 | 11 |
|
12 | 12 | .learn-list li { |
13 | | - margin-bottom: 0; |
14 | | - border-bottom: 1px solid $heroDark; |
| 13 | + margin-bottom: 0; |
| 14 | + border-bottom: 1px solid $heroDark; |
15 | 15 |
|
16 | | - &:hover { |
17 | | - background-color: $brightScndLight; |
| 16 | + &:hover { |
| 17 | + background-color: $brightScndLight; |
18 | 18 |
|
19 | | - .chevron { |
20 | | - transform: translateX(4px) rotate(270deg); |
| 19 | + .chevron { |
| 20 | + transform: translateX(4px) rotate(270deg); |
| 21 | + } |
21 | 22 | } |
22 | | - } |
23 | 23 |
|
24 | | - &:last-child { |
25 | | - border-bottom: none; |
26 | | - } |
| 24 | + &:last-child { |
| 25 | + border-bottom: none; |
| 26 | + } |
27 | 27 | } |
28 | 28 |
|
29 | 29 | .learn-link { |
30 | | - display: block; |
31 | | - text-decoration: none; |
32 | | - color: inherit; |
33 | | - padding: 20px; |
| 30 | + display: block; |
| 31 | + text-decoration: none; |
| 32 | + color: inherit; |
| 33 | + padding: 20px; |
34 | 34 | } |
35 | 35 |
|
36 | 36 | .learn-item { |
37 | | - display: flex; |
38 | | - justify-content: space-between; |
39 | | - align-items: center; |
40 | | - gap: 20px; |
| 37 | + display: flex; |
| 38 | + justify-content: space-between; |
| 39 | + align-items: center; |
| 40 | + gap: 20px; |
41 | 41 | } |
42 | 42 |
|
43 | 43 | .learn-item img { |
44 | | - width: 200px; |
45 | | - border-radius: 8px; |
46 | | - object-fit: contain; |
47 | | - flex-shrink: 0; |
| 44 | + width: 200px; |
| 45 | + border-radius: 8px; |
| 46 | + object-fit: contain; |
| 47 | + flex-shrink: 0; |
48 | 48 | } |
49 | 49 |
|
50 | 50 | .learn-content { |
51 | | - display: flex; |
52 | | - flex-direction: column; |
53 | | - justify-content: center; |
54 | | - flex: 1; // Let the content take available space |
55 | | - padding: 20px 0; // Consistent vertical padding |
| 51 | + display: flex; |
| 52 | + flex-direction: column; |
| 53 | + justify-content: center; |
| 54 | + flex: 1; // Let the content take available space |
| 55 | + padding: 20px 0; // Consistent vertical padding |
56 | 56 | } |
57 | 57 |
|
58 | 58 | .learn-description { |
59 | | - font-size: 0.9em; |
60 | | - opacity: 0.8; |
61 | | - line-height: 1.4; |
62 | | - margin-bottom: 15px; |
| 59 | + font-size: 0.9em; |
| 60 | + opacity: 0.8; |
| 61 | + line-height: 1.4; |
| 62 | + margin-bottom: 15px; |
63 | 63 | } |
64 | 64 |
|
65 | 65 | .learn-title { |
66 | | - font-weight: bold; |
67 | | - font-size: 1.3em; |
68 | | - margin-bottom: 8px; |
| 66 | + font-weight: bold; |
| 67 | + font-size: 1.3em; |
| 68 | + margin-bottom: 8px; |
69 | 69 | } |
70 | 70 |
|
71 | 71 | .learn-subtitle { |
72 | | - opacity: 0.7; |
73 | | - margin-left: 8px; |
| 72 | + opacity: 0.7; |
| 73 | + margin-left: 8px; |
74 | 74 | } |
75 | 75 |
|
76 | | -@media (max-width: 768px) { |
77 | | - .learn-item { |
78 | | - flex-direction: column; |
79 | | - align-items: flex-start; |
80 | | - } |
| 76 | +.card-item { |
| 77 | + display: flex; |
| 78 | + align-items: center; |
| 79 | + gap: 16px; |
| 80 | + padding: 12px 0; |
| 81 | +} |
81 | 82 |
|
82 | | - .learn-item img { |
| 83 | +.card-logo-wrapper { |
| 84 | + width: 48px; |
| 85 | + height: 48px; |
| 86 | + flex-shrink: 0; |
| 87 | + display: flex; |
| 88 | + align-items: center; |
| 89 | + justify-content: center; |
| 90 | +} |
| 91 | + |
| 92 | +.card-img { |
83 | 93 | width: 100%; |
84 | | - height: auto; // Let height adjust proportionally |
85 | | - max-height: 200px; // Cap the height |
86 | | - margin-bottom: 15px; |
87 | | - } |
| 94 | + height: auto; |
| 95 | + object-fit: contain; |
| 96 | +} |
88 | 97 |
|
89 | | - .learn-content { |
90 | | - padding: 0; |
91 | | - } |
| 98 | +.card-content { |
| 99 | + flex: 1; |
| 100 | + display: flex; |
| 101 | + flex-direction: column; |
| 102 | + gap: 4px; |
| 103 | + min-width: 0; |
| 104 | +} |
92 | 105 |
|
93 | | - .learn-link { |
94 | | - padding: 15px; |
95 | | - } |
| 106 | +.card-title { |
| 107 | + font-weight: 600; |
| 108 | + font-size: 1.05rem; |
| 109 | +} |
| 110 | + |
| 111 | +.card-meta { |
| 112 | + font-size: 0.85rem; |
| 113 | + opacity: 0.6; |
| 114 | + font-family: JetBrainsMono; |
| 115 | +} |
| 116 | + |
| 117 | +@media (max-width: 768px) { |
| 118 | + .learn-item { |
| 119 | + flex-direction: column; |
| 120 | + align-items: flex-start; |
| 121 | + } |
| 122 | + |
| 123 | + .learn-item img { |
| 124 | + width: 100%; |
| 125 | + height: auto; // Let height adjust proportionally |
| 126 | + max-height: 200px; // Cap the height |
| 127 | + margin-bottom: 15px; |
| 128 | + } |
| 129 | + |
| 130 | + .learn-content { |
| 131 | + padding: 0; |
| 132 | + } |
| 133 | + |
| 134 | + .learn-link { |
| 135 | + padding: 15px; |
| 136 | + } |
96 | 137 | } |
97 | 138 |
|
98 | 139 | @media (prefers-color-scheme: dark) { |
99 | | - .learn-list { |
100 | | - color: white; |
101 | | - border: 1px solid rgba(white, 0.5); |
102 | | - } |
103 | | - |
104 | | - .learn-list li { |
105 | | - border-bottom: 1px solid rgba(white, 0.5); |
106 | | - } |
| 140 | + .learn-list { |
| 141 | + color: white; |
| 142 | + border: 1px solid rgba(white, 0.5); |
| 143 | + } |
| 144 | + |
| 145 | + .learn-list li { |
| 146 | + border-bottom: 1px solid rgba(white, 0.5); |
| 147 | + } |
107 | 148 | } |
0 commit comments