File tree 3 files changed +34
-25
lines changed 3 files changed +34
-25
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const props = Astro.props;
25
25
26
26
<style >
27
27
header {
28
- max-width: var(--body -width);
28
+ max-width: var(--header -width);
29
29
margin-bottom: 35px;
30
30
display: flex;
31
31
flex-direction: column;
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ const {
36
36
}
37
37
38
38
body {
39
- --body-width: 750px;
39
+ --main-width: 750px;
40
+ --header-width: 750px;
40
41
--fujo-cream: #f7eedf;
41
42
--fujo-purple: #c29fc9;
42
43
--fujo-red: #ff7976;
@@ -53,10 +54,11 @@ const {
53
54
align-items: center;
54
55
padding-block: 20px;
55
56
padding-inline: 15px;
57
+ overflow-x: hidden;
56
58
}
57
59
58
60
main {
59
- max-width: min(100%, var(--body -width));
61
+ max-width: min(100%, var(--main -width));
60
62
padding-bottom: 30px;
61
63
display: flex;
62
64
flex-direction: column;
@@ -172,26 +174,25 @@ const {
172
174
<slot />
173
175
<Socials />
174
176
</main >
177
+ <style >
178
+ .learn-site-banner {
179
+ background-color: rgb(70, 66, 88);
180
+ color: white;
181
+ padding-block: 12px;
182
+ padding-inline: 20px;
183
+ width: 100vw;
184
+ margin-top: -20px;
185
+ display: flex;
186
+ justify-content: center;
187
+ text-align: center;
188
+ font-size: 0.9rem;
189
+ text-wrap: balance;
190
+ }
191
+ @media (max-width: 768px) {
192
+ .learn-site-banner .longer-text {
193
+ display: none;
194
+ }
195
+ }
196
+ </style >
175
197
</body >
176
198
</html >
177
-
178
- <style >
179
- .learn-site-banner {
180
- background-color: rgb(70, 66, 88);
181
- color: white;
182
- padding-block: 12px;
183
- padding-inline: 20px;
184
- width: 100vw;
185
- margin-top: -20px;
186
- display: flex;
187
- justify-content: center;
188
- text-align: center;
189
- font-size: 0.9rem;
190
- text-wrap: balance;
191
- }
192
- @media (max-width: 768px) {
193
- .learn-site-banner .longer-text {
194
- display: none;
195
- }
196
- }
197
- </style >
Original file line number Diff line number Diff line change @@ -89,6 +89,11 @@ const projectsArray = Object.keys(PROJECTS).map((proj) => ({
89
89
:global(h1) {
90
90
margin-bottom: 0;
91
91
}
92
+
93
+ body {
94
+ --main-width: 1200px !important;
95
+ }
96
+
92
97
.tabs {
93
98
display: flex;
94
99
flex-wrap: wrap;
@@ -126,7 +131,10 @@ const projectsArray = Object.keys(PROJECTS).map((proj) => ({
126
131
}
127
132
128
133
.tabs input[type="radio"]:checked + label + .tab-content {
129
- display: block;
134
+ display: flex;
135
+ gap: 0 0.75rem;
136
+ flex-wrap: wrap;
137
+ justify-content: center;
130
138
}
131
139
132
140
.beta-readers {
You can’t perform that action at this time.
0 commit comments