Implement proper dark mode (#800)
* Implement proper dark mode Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Fix footer color in light mode Signed-off-by: hossainemruz <hossainemruz@gmail.com> --------- Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
6dc9d1d33d
commit
5f0aebcf68
38 changed files with 1136 additions and 353 deletions
|
@ -12,7 +12,7 @@
|
|||
margin-left: 7px;
|
||||
margin-right: 7px;
|
||||
z-index: 1;
|
||||
background-color: $bg-secondary;
|
||||
background-color: get-light-color('bg-secondary');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
|
@ -21,8 +21,8 @@
|
|||
@include transition();
|
||||
|
||||
.title {
|
||||
color: $inverse-text-color;
|
||||
background-color: rgba($bg-primary-inverse, 0.7);
|
||||
color: get-light-color('inverse-text-color');
|
||||
background-color: rgba(get-light-color('bg-primary-inverse'), 0.7);
|
||||
opacity: 0;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
|
@ -85,28 +85,28 @@
|
|||
}
|
||||
|
||||
.svg-inline--fa {
|
||||
color: $muted-text-color;
|
||||
background-color: rgba($bg-primary-inverse, 0.7);
|
||||
color: get-light-color('muted-text-color');
|
||||
background-color: rgba(get-light-color('bg-primary-inverse'), 0.7);
|
||||
padding: 10px;
|
||||
font-size: 0rem;
|
||||
opacity: 0;
|
||||
}
|
||||
.caption {
|
||||
background-color: rgba($bg-primary-inverse, 0.7);
|
||||
background-color: rgba(get-light-color('bg-primary-inverse'), 0.7);
|
||||
bottom: 1rem;
|
||||
left: 1rem;
|
||||
color: $inverse-text-color;
|
||||
color: get-light-color('inverse-text-color');
|
||||
padding: 15px;
|
||||
position: absolute;
|
||||
@include transition();
|
||||
|
||||
h4 {
|
||||
color: $inverse-text-color;
|
||||
color: get-light-color('inverse-text-color');
|
||||
}
|
||||
p {
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
color: $inverse-text-color;
|
||||
color: get-light-color('inverse-text-color');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,3 +127,33 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
.achievements-section {
|
||||
#gallery {
|
||||
.achievement-entry {
|
||||
background-color: get-dark-color('bg-secondary');
|
||||
|
||||
.title {
|
||||
color: get-dark-color('inverse-text-color');
|
||||
background-color: rgba(get-dark-color('bg-primary-inverse'), 0.7);
|
||||
}
|
||||
}
|
||||
.svg-inline--fa {
|
||||
color: get-dark-color('muted-text-color');
|
||||
background-color: rgba(get-dark-color('bg-primary-inverse'), 0.7);
|
||||
}
|
||||
.caption {
|
||||
background-color: rgba(get-dark-color('bg-primary-inverse'), 0.7);
|
||||
color: get-dark-color('inverse-text-color');
|
||||
|
||||
h4 {
|
||||
color: get-dark-color('inverse-text-color');
|
||||
}
|
||||
p {
|
||||
color: get-dark-color('inverse-text-color');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue