Skip to content

Commit 6383468

Browse files
authored
Fixes (#105)
* RTL optimizations Fixes #100 * Make brand color more orange Fixes #101 * Adjust small favicon Fixes #102
1 parent abeabe1 commit 6383468

File tree

7 files changed

+13
-21
lines changed

7 files changed

+13
-21
lines changed

app.vue

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ useHeadSafe({
77
link: [
88
{
99
rel: "icon",
10-
type: "image/png",
11-
href: "/icon.png",
10+
type: "image/x-icon",
11+
href: "/favicon.ico",
1212
},
1313
],
1414
});
@@ -33,12 +33,11 @@ useHeadSafe({
3333
.max-width-wrapper {
3434
max-width: 1920px;
3535
/* align center */
36-
margin-left: auto;
37-
margin-right: auto;
36+
margin-inline: auto;
3837
}
3938
4039
:root {
41-
--color-brand: #785A00 !important;
40+
--color-brand: #945100 !important;
4241
--color-brand-dark: #AD8200 !important;
4342
}
4443

components/DownloadSection.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ onBeforeMount(async () => {
158158

159159
<style scoped lang="scss">
160160
.toggle-pair {
161-
margin-left: auto;
161+
margin-inline-start: auto;
162162
display: flex;
163163
justify-content: space-between;
164164
margin-top: auto;

components/Navbar.vue

+3-8
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ updateDirection(currentLocale.value);
211211
212212
.nav-body {
213213
display: block;
214-
margin-left: auto;
215-
margin-right: auto;
214+
margin-inline: auto;
216215
}
217216
218217
.nav {
@@ -243,19 +242,15 @@ updateDirection(currentLocale.value);
243242
}
244243
}
245244
246-
html[dir="ltr"] .side {
245+
html .side {
247246
left: calc(var(--gap-xl) * -4);
248247
}
249248
250-
html[dir="rtl"] .side {
251-
right: calc(var(--gap-xl) * -4);
252-
}
253-
254249
.side {
255250
position: relative;
256251
display: flex;
257252
margin: auto;
258-
margin-left: auto;
253+
margin-inline-start: auto;
259254
flex-direction: row;
260255
gap: var(--gap-xl);
261256
flex-wrap: wrap;

pages/contribute.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,6 @@ body {
131131
}
132132
133133
li img {
134-
width: 1em; height: 1em; margin-right: 0.5em;
134+
width: 1em; height: 1em; margin-inline-end: 0.5em;
135135
}
136136
</style>

pages/index.vue

+3-5
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ h3 {
263263
max-width: 75vw;
264264
265265
// align everything center
266-
margin-left: auto;
267-
margin-right: auto;
266+
margin-inline: auto;
268267
269268
display: grid;
270269
grid-template-columns: 1fr 1fr;
@@ -275,13 +274,12 @@ h3 {
275274
.feature-block {
276275
gap: var(--gap-xl);
277276
align-items: center;
278-
padding-right: 2%;
277+
padding-inline-end: 2%;
279278
280279
// img {
281280
// width: 85%;
282281
// height: 85%;
283-
// margin-left: auto;
284-
// margin-right: auto;
282+
// margin-inline: auto;
285283
// object-fit: cover;
286284
287285
// border-radius: var(--gap-xl);

pages/vanilla.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ onMounted(() => {
6969
@media (max-width: 999px) {
7070
#vanilla-embed {
7171
width: 100% !important;
72-
margin-left: -1em !important;
72+
margin-inline-start: -1em !important;
7373
}
7474
}
7575

public/favicon.ico

39.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)