1
1
Fork 0
mirror of https://gitlab.com/Oreolek/cloak-salet.git synced 2024-06-17 07:30:53 +03:00

darker background

This commit is contained in:
Alexander Yakovlev 2017-07-31 20:11:30 +07:00
parent 7826c10ad6
commit ca6d82cb2a
2 changed files with 16 additions and 1 deletions

View file

@ -92,7 +92,9 @@ salet.init = () ->
@character.update_sidebar = () ->
if @has('cloak')
$("#tentacles").show()
$("body").addClass("darker")
else
$("body").removeClass("darker")
$("#tentacles").hide()
$(".objects").empty()
for obj in document.querySelectorAll(".objects")

View file

@ -10,8 +10,10 @@
width: 100%;
}
body {
// background-image: url('../img/background.png');
background-image: radial-gradient(circle,rgba(0,0,0,.0),rgba(0,0,0,.3));
&.darker {
background-image: radial-gradient(circle,rgba(0,0,0,.0),rgba(0,0,0,.6));
}
}
.container {
@include make-container();
@ -220,3 +222,14 @@ hr {
width: $font-size-base * 3;
}
}
.night {
background-image: radial-gradient(circle,rgba(0,0,0,.7),rgba(0,0,0,1)) !important;
background-size: 100% 100%;
color: #fefefe;
a {
color: lighten($link-color, 30%);
}
.btn-outline-primary {
color: #777;
}
}