diff --git a/docs/changelog.rst b/docs/changelog.rst index b1cb133..30e350b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,11 @@ Changelog ========= +0.8 (unreleased) + + * Add night mode https://prosopopee.readthedocs.io/en/latest/configuration.html#night_mode + * fix some bugs + 0.7 (2017-10-04) * Add password access (based on https://robinmoisson.github.io/staticrypt/) diff --git a/prosopopee/themes/exposure/static/css/encrypt.css b/prosopopee/themes/exposure/static/css/encrypt.css index 650519c..b54295c 100644 --- a/prosopopee/themes/exposure/static/css/encrypt.css +++ b/prosopopee/themes/exposure/static/css/encrypt.css @@ -90,4 +90,121 @@ footer a { font-family: 'montserrat', sans-serif; color: #111; } +body.night { + background-color: #061F2F; + color: #d3d4d4; +} +body.night footer { + background-color: #0f1b29; + color: #fff; +} + +body.night footer a { + color: #fff; +} + +body.night ul.icon a { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night .back-to-home #logo { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night a { + color: #9CD7F7; +} + +body.night .audio-player { + background: #1f3341 +} + +body.night #logo { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night .gallery-header h4 { + color: #c1f1f0; +} + +body.night .staticrypt-form { + background-color: #061F2F; + box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.2), 0 5px 5px 0 rgba(255, 255, 255, 0.2); +} + +body.night .staticrypt-form input { + background: #FFF; + color: #9CD7F7; +} + +body.night .staticrypt-decrypt-button { + background: #1f3341 !important; +} + +.floating-menu { + font-family: sans-serif; + padding: 5px;; + width: 45px; + z-index: 556; + position: fixed; + bottom: 0px; + right: 0px; +} + +.switch { + position: relative; + display: inline-block; + width: 40px; + height: 22px; +} + +.switch input {display:none;} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; + -webkit-transition: .4s; + transition: .4s; +} + +.slider:before { + position: absolute; + content: ""; + height: 15px; + width: 15px; + left: 4px; + bottom: 4px; + background-color: white; +} + +input:checked + .slider { + background-color: #2196F3; +} + +input:focus + .slider { + box-shadow: 0 0 1px #2196F3; +} + +input:checked + .slider:before { + -webkit-transform: translateX(18px); + -ms-transform: translateX(18px); + transform: translateX(18px); +} + +/* Rounded sliders */ +.slider.round { + border-radius: 34px; +} + +.slider.round:before { + border-radius: 50%; +} diff --git a/prosopopee/themes/exposure/static/css/style-page.css b/prosopopee/themes/exposure/static/css/style-page.css index e6b2ade..df2cddb 100644 --- a/prosopopee/themes/exposure/static/css/style-page.css +++ b/prosopopee/themes/exposure/static/css/style-page.css @@ -325,7 +325,6 @@ a.google { */ .author-info { - color: #ccc; font-style: italic; font-size: 19px; } @@ -334,7 +333,6 @@ a.google { text-transform: uppercase; text-align: center; font-family: 'crimson', serif; - color: black; font-style: normal; font-weight: bold; } @@ -520,3 +518,99 @@ span.left img, span.right img { .clear { clear: both; } + +body.night { + background-color: #061F2F; + color: #d3d4d4; +} + +body.night footer { + background-color: #0f1b29; + color: #fff; +} + +body.night footer a { + color: #fff; +} + +body.night ul.icon a { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night .back-to-home #logo { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night a { + color: #9CD7F7; +} + +body.night .audio-player { + background: #1f3341 +} + +.floating-menu { + font-family: sans-serif; + padding: 5px;; + width: 45px; + z-index: 556; + position: fixed; + bottom: 0px; + right: 0px; +} + +.switch { + position: relative; + display: inline-block; + width: 40px; + height: 22px; +} + +.switch input {display:none;} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; + -webkit-transition: .4s; + transition: .4s; +} + +.slider:before { + position: absolute; + content: ""; + height: 15px; + width: 15px; + left: 4px; + bottom: 4px; + background-color: white; +} + +input:checked + .slider { + background-color: #2196F3; +} + +input:focus + .slider { + box-shadow: 0 0 1px #2196F3; +} + +input:checked + .slider:before { + -webkit-transform: translateX(18px); + -ms-transform: translateX(18px); + transform: translateX(18px); +} + +/* Rounded sliders */ +.slider.round { + border-radius: 34px; +} + +.slider.round:before { + border-radius: 50%; +} diff --git a/prosopopee/themes/exposure/static/css/style.css b/prosopopee/themes/exposure/static/css/style.css index f103678..771c810 100644 --- a/prosopopee/themes/exposure/static/css/style.css +++ b/prosopopee/themes/exposure/static/css/style.css @@ -21,7 +21,7 @@ a { .galleries-line { width: 100%; height: 100%; - margin-bottom: -4px; /* YOLO */ + margin-bottom: -5px; /* YOLO */ } .covers-1 .gallery-square { @@ -309,3 +309,108 @@ nav ul li > a.item-menu::before { font-family: 'montserrat', sans-serif; font-weight: bold; } + +body.night { + background-color: #061F2F; + color: #d3d4d4; +} + +body.night footer { + background-color: #0f1b29; + color: #fff; +} + +body.night footer a { + color: #fff; +} + +body.night ul.icon a { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night .back-to-home #logo { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night a { + color: #9CD7F7; +} + +body.night .audio-player { + background: #1f3341 +} + +body.night #logo { + -webkit-filter: invert(1); + filter: invert(1); +} + +body.night .gallery-header h4 { + color: #c1f1f0; +} + +.floating-menu { + font-family: sans-serif; + padding: 5px;; + width: 45px; + z-index: 556; + position: fixed; + bottom: 0px; + right: 0px; +} + +.switch { + position: relative; + display: inline-block; + width: 40px; + height: 22px; +} + +.switch input {display:none;} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; + -webkit-transition: .4s; + transition: .4s; +} + +.slider:before { + position: absolute; + content: ""; + height: 15px; + width: 15px; + left: 4px; + bottom: 4px; + background-color: white; +} + +input:checked + .slider { + background-color: #2196F3; +} + +input:focus + .slider { + box-shadow: 0 0 1px #2196F3; +} + +input:checked + .slider:before { + -webkit-transform: translateX(18px); + -ms-transform: translateX(18px); + transform: translateX(18px); +} + +/* Rounded sliders */ +.slider.round { + border-radius: 34px; +} + +.slider.round:before { + border-radius: 50%; +} diff --git a/prosopopee/themes/exposure/static/js/crypto-js.min.js b/prosopopee/themes/exposure/static/js/password.min.js similarity index 100% rename from prosopopee/themes/exposure/static/js/crypto-js.min.js rename to prosopopee/themes/exposure/static/js/password.min.js diff --git a/prosopopee/themes/exposure/templates/base.html b/prosopopee/themes/exposure/templates/base.html index 7197ebd..b5eba87 100644 --- a/prosopopee/themes/exposure/templates/base.html +++ b/prosopopee/themes/exposure/templates/base.html @@ -12,6 +12,14 @@