Skip to content

Commit 27547e3

Browse files
adjustment colors background and position button darkmode
1 parent ed0b2a3 commit 27547e3

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

src/App.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ body.darkmode {
9696
}
9797
9898
.darkmode-button {
99-
margin: 1rem;
99+
margin: 2rem 1rem;
100100
position: fixed;
101101
top: 0;
102102
right: 0;
103103
padding: .6rem !important;
104+
background: var(--primary) !important;
104105
}
105106
106107
h2 {

src/assets/base.css

+21-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
--color-text: var(--vt-c-text-light-1);
3535

3636
--section-gap: 160px;
37+
38+
--primary: #289f6a;
39+
--secondary: #647eff;
40+
--main-color: #2c3e50;
3741
}
3842

3943
*,
@@ -45,20 +49,35 @@
4549
font-weight: normal;
4650
}
4751

52+
html {
53+
background: var(--primary);
54+
}
55+
4856
body {
4957
min-height: 100vh;
5058
color: var(--color-text);
5159
background: var(--color-background);
5260
transition: color 0.5s, background-color 0.5s;
5361
line-height: 1.6;
54-
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
55-
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
62+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
63+
Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
64+
sans-serif;
5665
font-size: 15px;
5766
text-rendering: optimizeLegibility;
5867
-webkit-font-smoothing: antialiased;
5968
-moz-osx-font-smoothing: grayscale;
6069
}
6170

71+
body:before,
72+
body:after {
73+
content: "";
74+
display: flex;
75+
height: 20px;
76+
background: var(--primary);
77+
background: linear-gradient(90deg, var(--primary) 50%, var(--secondary) 100%);
78+
box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 0 20px rgba(0, 0, 0, 0.4);
79+
}
80+
6281
body.modal-active {
6382
overflow: hidden;
6483
}

0 commit comments

Comments
 (0)