Skip to content

Commit dfa97e8

Browse files
committed
fix(styles): fix styling
1 parent 090ca5a commit dfa97e8

File tree

5 files changed

+50
-36
lines changed

5 files changed

+50
-36
lines changed

src/components/web/AppWeb.ce.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ const AppView = lazyComponent(() => import('~/components/AppView.vue'));
55
</script>
66

77
<template>
8-
<div id="app">
8+
<div id="trakt-extension-root">
99
<AppView />
1010
</div>
1111
</template>
1212

1313
<style lang="scss">
1414
@import '~/styles/base.css';
1515
16-
#app {
16+
:host {
1717
display: flex;
1818
flex: 1 1 auto;
1919
flex-direction: column;

src/index.html

+21-20
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,28 @@
1212
</html>
1313

1414
<style>
15-
body {
16-
display: flex;
17-
margin: 0;
18-
background: #181818;
19-
transition:
20-
color 0.5s,
21-
background-color 0.5s;
22-
will-change: color, background-color;
15+
body {
16+
display: flex;
17+
margin: 0;
18+
color: rgb(235 235 235 / 64%);
19+
background: #181818;
20+
transition:
21+
color 0.5s,
22+
background-color 0.5s;
23+
will-change: color, background-color;
2324

24-
@media (prefers-color-scheme: light) {
25-
background: #fff;
26-
}
27-
28-
@media (prefers-color-scheme: dark) {
29-
background: #181818;
30-
}
25+
@media (prefers-color-scheme: light) {
26+
background: #fff;
3127
}
3228

33-
wc-trakt-extension {
34-
display: flex;
35-
flex: 1 1 auto;
36-
flex-direction: column;
29+
@media (prefers-color-scheme: dark) {
30+
background: #181818;
3731
}
38-
</style>
32+
}
33+
34+
wc-trakt-extension {
35+
display: flex;
36+
flex: 1 1 auto;
37+
flex-direction: column;
38+
}
39+
</style>

src/styles/base.css

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* color palette from <https://github.com/vuejs/theme> */
2-
#app {
2+
:host {
33
--vt-c-white: #fff;
44
--vt-c-white-soft: #f8f8f8;
55
--vt-c-white-mute: #f2f2f2;
@@ -17,14 +17,14 @@
1717
--vt-c-text-dark-2: rgb(235 235 235 / 64%);
1818

1919
/* semantic color variables for this project */
20-
--color-background: var(--vt-c-white);
21-
--color-background-soft: var(--vt-c-white-soft);
22-
--color-background-mute: var(--vt-c-white-mute);
23-
--color-border: var(--vt-c-divider-light-2);
24-
--color-border-hover: var(--vt-c-divider-light-1);
25-
--color-heading: var(--vt-c-text-light-1);
26-
--color-text: var(--vt-c-text-light-1);
2720
--section-gap: 160px;
21+
--color-background: var(--vt-c-black);
22+
--color-background-soft: var(--vt-c-black-soft);
23+
--color-background-mute: var(--vt-c-black-mute);
24+
--color-border: var(--vt-c-divider-dark-2);
25+
--color-border-hover: var(--vt-c-divider-dark-1);
26+
--color-heading: var(--vt-c-text-dark-1);
27+
--color-text: var(--vt-c-text-dark-2);
2828

2929
@media (prefers-color-scheme: dark) {
3030
--color-background: var(--vt-c-black);
@@ -35,5 +35,15 @@
3535
--color-heading: var(--vt-c-text-dark-1);
3636
--color-text: var(--vt-c-text-dark-2)
3737
}
38+
39+
@media (prefers-color-scheme: light) {
40+
--color-background: var(--vt-c-white);
41+
--color-background-soft: var(--vt-c-white-soft);
42+
--color-background-mute: var(--vt-c-white-mute);
43+
--color-border: var(--vt-c-divider-light-2);
44+
--color-border-hover: var(--vt-c-divider-light-1);
45+
--color-heading: var(--vt-c-text-light-1);
46+
--color-text: var(--vt-c-text-light-1);
47+
}
3848
}
3949

src/views/options/index.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@
1515
body {
1616
display: flex;
1717
margin: 0;
18+
color: rgb(235 235 235 / 64%);
1819
background: #181818;
1920
transition:
20-
color 0.5s,
21-
background-color 0.5s;
21+
color 0.5s,
22+
background-color 0.5s;
2223
will-change: color, background-color;
2324

2425
@media (prefers-color-scheme: light) {
25-
background: #fff;
26+
background: #fff;
2627
}
2728

2829
@media (prefers-color-scheme: dark) {
29-
background: #181818;
30+
background: #181818;
3031
}
3132
}
3233

src/views/popup/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@
2323
<style>
2424
body {
2525
margin: 0;
26+
color: rgb(235 235 235 / 64%);
2627
font-size: 1rem;
27-
-webkit-font-smoothing: antialiased;
28-
-moz-osx-font-smoothing: grayscale;
2928
background: #181818;
3029
transition:
3130
color 0.5s,
3231
background-color 0.5s;
3332
will-change: color, background-color;
33+
-webkit-font-smoothing: antialiased;
34+
-moz-osx-font-smoothing: grayscale;
3435

3536
@media (prefers-color-scheme: light) {
3637
background: #fff;
@@ -48,6 +49,7 @@
4849
}
4950

5051
#app-popup {
52+
display: flex;
5153
width: 45rem;
5254
max-width: 800px;
5355
height: 37rem;

0 commit comments

Comments
 (0)