Implement proper dark mode

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
hossainemruz 2023-09-30 04:53:27 +06:00
parent 6dc9d1d33d
commit 1913cf1e9d
38 changed files with 1136 additions and 353 deletions

View file

@ -7,7 +7,7 @@
padding-left: 1rem;
& > li {
margin-left: 0;
color: $text-color;
color: get-light-color('text-color');
}
}
@ -18,8 +18,8 @@
.circle {
padding: 13px 20px;
border-radius: 50%;
background-color: $accent-color;
color: $text-over-accent-color;
background-color: get-light-color('accent-color');
color: get-light-color('text-over-accent-color');
max-height: 50px;
z-index: 2;
}
@ -33,7 +33,7 @@
&::after {
content: '';
position: absolute;
border-left: 3px solid $accent-color;
border-left: 3px solid get-light-color('accent-color');
z-index: 1;
height: 100%;
left: 50%;
@ -48,7 +48,7 @@
height: 40px;
}
hr {
border-top: 3px solid $accent-color;
border-top: 3px solid get-light-color('accent-color');
margin: 0;
top: 17px;
position: relative;
@ -58,7 +58,7 @@
overflow: hidden;
}
.corner {
border: 3px solid $accent-color;
border: 3px solid get-light-color('accent-color');
width: 100%;
position: relative;
border-radius: 15px;
@ -113,3 +113,33 @@
}
}
}
html[data-theme='dark'] {
.experiences-section {
ul {
& > li {
color: get-dark-color('text-color');
}
}
.circle {
background-color: get-dark-color('accent-color');
color: get-dark-color('text-over-accent-color');
}
.timeline {
.vertical-line {
&::after {
border-left: 3px solid get-dark-color('accent-color');
}
}
.horizontal-line {
hr {
border-top: 3px solid get-dark-color('accent-color');
}
.corner {
border: 3px solid get-dark-color('accent-color');
}
}
}
}
}