Ajout du mode sombre !

This commit is contained in:
2019-06-21 00:48:23 +02:00
parent 772f57b04e
commit 9fae286c11
4 changed files with 99 additions and 0 deletions

53
_sass/dark-theme.scss Normal file
View File

@@ -0,0 +1,53 @@
/**
Dark Theme
**/
@media (prefers-color-scheme: dark) {
.dark-theme-only{
display:inline;
}
.hero{
background-color:darken(#5c9ead,35%)!important;
color:#ffffff;
}
#photosAndButtons .card-content{
background-color:darken(#5c9ead,40%)!important;
}
p.title,
span.title{
color:#ffffff;
}
p.subtitle{
color:#ffffff;
}
.is-primary
{
background-color:darken(#5c9ead,40%)!important;
}
.tile.is-vertical{
background-color:unset;
}
.is-info{
background-color: darken(#5c9ead,41%)!important;
}
section.hero.is-primary.is-bold{
background-image: none;
background-color:darken(#5c9ead,30%)!important;
}
body footer{
background-color: darken(#5c9ead,42%)!important;
}
.button{
background-color: darken(#5c9ead,41%);
border-color:darken(#5c9ead,30%);
border-width: 4px;
color:white;
}
}

View File

@@ -54,8 +54,13 @@ body{
overflow-x: hidden;
}
.dark-theme-only{
display:none;
}
@import "../node_modules/bulma/bulma";
@import "icon";
@import "dark-theme";
#idCard {