Skip to content

Commit 71a0683

Browse files
committed
added toc and updated theme mode styling take 4.5 debugged button disappearing in dark mode
1 parent 115b7da commit 71a0683

1 file changed

Lines changed: 26 additions & 4 deletions

File tree

styles.css

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ a:hover {
9494
--toc-text-color-light: #000000;
9595
--toc-bg-color-dark: #1e1e1e;
9696
--toc-text-color-dark: #ffffff;
97+
--button-bg-light: #333333;
98+
--button-text-light: #ffffff;
99+
--button-bg-dark: #555555;
100+
--button-text-dark: #ffffff;
97101
}
98102

99103

@@ -264,17 +268,17 @@ body {
264268
padding: 10px 20px;
265269
margin: 10px 0;
266270
font-size: 16px;
267-
color: #fff;
268-
background-color: #333;
269271
border: none;
270272
border-radius: 5px;
271273
text-align: center;
272274
text-decoration: none;
273-
transition: background-color 0.3s ease;
275+
cursor: pointer;
276+
transition: background-color 0.3s ease, color 0.3s ease;
274277
}
275278

276279
.button:hover {
277-
background-color: #555;
280+
/* background-color: #555; */
281+
text-decoration: underline;
278282
}
279283

280284

@@ -540,6 +544,15 @@ body.light-mode #contact a {
540544
color: rgb(4, 224, 240);
541545
}
542546

547+
body.light-mode .button {
548+
background-color: var(--button-bg-light);
549+
color: var(--button-text-light);
550+
}
551+
552+
body.light-mode .button:hover {
553+
background-color: #555;
554+
}
555+
543556
body.light-mode .toc {
544557
background-color: var(--toc-bg-color-light);
545558
color: var(--toc-text-color-light);
@@ -601,6 +614,15 @@ body.dark-mode #contact a {
601614
color: rgb(4, 224, 240);
602615
}
603616

617+
body.dark-mode .button {
618+
background-color: var(--button-bg-dark);
619+
color: var(--button-text-dark);
620+
}
621+
622+
body.dark-mode .button:hover {
623+
background-color: #777;
624+
}
625+
604626
body.dark-mode .toc {
605627
background-color: var(--toc-bg-color-dark);
606628
color: var(--toc-text-color-dark);

0 commit comments

Comments
 (0)