From 933316ee862de340d7c9920d6734fc718b628e56 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Fri, 9 Mar 2018 10:41:06 +0100 Subject: [PATCH 1/8] add css effect --- .../themes/exposure/static/css/style-page.css | 41 +++++++++++++++++++ .../templates/sections/full-picture.html | 4 +- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/prosopopee/themes/exposure/static/css/style-page.css b/prosopopee/themes/exposure/static/css/style-page.css index ebc3cd5..90cf474 100644 --- a/prosopopee/themes/exposure/static/css/style-page.css +++ b/prosopopee/themes/exposure/static/css/style-page.css @@ -614,3 +614,44 @@ input:checked + .slider:before { .slider.round:before { border-radius: 50%; } + +@keyframes fadeInUp { + from { + transform: translate3d(0,80px,0) + } + + to { + transform: translate3d(0,0,0); + opacity: 1 + } +} + +@-webkit-keyframes fadeInUp { + from { + transform: translate3d(0,80px,0) + } + + to { + transform: translate3d(0,0,0); + opacity: 1 + } +} + +.animated { + animation-delay: 0.5s; + animation-duration: 1s; + animation-fill-mode: both; + -webkit-animation-duration: 1s; + -webkit-animation-fill-mode: both +} + +.animatedFadeInUp { + opacity: 0 +} + +.fadeInUp { + opacity: 0; + animation-name: fadeInUp; + -webkit-animation-name: fadeInUp; +} + diff --git a/prosopopee/themes/exposure/templates/sections/full-picture.html b/prosopopee/themes/exposure/templates/sections/full-picture.html index 0e3b8ef..29be913 100644 --- a/prosopopee/themes/exposure/templates/sections/full-picture.html +++ b/prosopopee/themes/exposure/templates/sections/full-picture.html @@ -6,7 +6,7 @@
{% if section.text %}
-
+

{{ section.text.title }}

{{ section.text.sub_title }}

{% if section.text.date_end %} @@ -30,7 +30,7 @@
{% if section.text %}
-
+

{{ section.text.title }}

{{ section.text.sub_title }}

{% if section.text.date_end %} From 16536149cbee706b3a30ec5fdbb31970a47b174c Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Thu, 22 Mar 2018 10:47:14 +0100 Subject: [PATCH 2/8] fix menu --- .../themes/exposure/static/css/style.css | 6 +++++- prosopopee/themes/exposure/templates/menu.html | 8 +++++--- prosopopee/themes/exposure/templates/page.html | 18 ++++++++++++++++++ 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/prosopopee/themes/exposure/static/css/style.css b/prosopopee/themes/exposure/static/css/style.css index 771c810..336bfc1 100644 --- a/prosopopee/themes/exposure/static/css/style.css +++ b/prosopopee/themes/exposure/static/css/style.css @@ -183,6 +183,10 @@ nav { line-height: 56px; } +body.night nav { + background-color: #061F2F;; +} + nav .nav-wrapper { position: relative; height: 100%; @@ -231,7 +235,7 @@ nav ul li > a.item-menu::before { margin-right: 22px; font-size: 18px; line-height: 1; - color: #ebebeb; + color: #cfcfcf; } .gallery-tag { diff --git a/prosopopee/themes/exposure/templates/menu.html b/prosopopee/themes/exposure/templates/menu.html index 25f1362..4e35dad 100644 --- a/prosopopee/themes/exposure/templates/menu.html +++ b/prosopopee/themes/exposure/templates/menu.html @@ -2,18 +2,20 @@ diff --git a/prosopopee/themes/exposure/templates/page.html b/prosopopee/themes/exposure/templates/page.html index cf5ffc9..7289994 100644 --- a/prosopopee/themes/exposure/templates/page.html +++ b/prosopopee/themes/exposure/templates/page.html @@ -22,5 +22,23 @@
+{% if settings.settings.night_mode %} + +{% endif %} {% endblock %} From 3aa14884e3ccecaac6250f0d08125bbae6004531 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Tue, 27 Mar 2018 10:52:52 +0200 Subject: [PATCH 3/8] update material theme --- .../themes/material/static/css/style.css | 84 +++++++++++++++++-- .../themes/material/templates/base.html | 5 +- .../themes/material/templates/index.html | 61 +++++++------- .../themes/material/templates/menu.html | 20 ++--- .../themes/material/templates/page.html | 76 ++++++++++------- 5 files changed, 166 insertions(+), 80 deletions(-) diff --git a/prosopopee/themes/material/static/css/style.css b/prosopopee/themes/material/static/css/style.css index a4bdaf3..d1245f2 100644 --- a/prosopopee/themes/material/static/css/style.css +++ b/prosopopee/themes/material/static/css/style.css @@ -376,7 +376,6 @@ html,body { height:100% } body { - background-color:#37474f; font-family:"Lato", sans-serif } ul { @@ -440,21 +439,22 @@ nav .nav-background .ea { bottom:0; -webkit-transform:none; transform:none; - background-repeat:repeat + background-repeat:repeat; } nav .nav-header { clear:both; - padding:40px 0 + padding:40px 0; } nav .nav-header h1 { font-size:56px; - font-weight:300 + font-weight:300; + text-transform: uppercase; } .b { position:relative } .b .d { - padding:0; + margin-top: 20px; } .b .gallery-expand .gallery-curve-wrapper { cursor:pointer; @@ -532,3 +532,77 @@ nav .nav-header { .brand-logo p { margin-top: 7px; } + +.img { + position: relative; + float: left; + width: 100px; + height: 100px; + background-position: 50% 50%; + background-repeat: no-repeat; + background-size: cover; +} + +.galleries-line { + width: 100%; + height: 100%; + margin-bottom: -7px; /* YOLO */ +} + +.covers-1 .gallery-square { + width: 100%; + height: 100%; + margin: auto; + padding-bottom: 47%; + position: relative; +} + +.covers-2 .gallery-square { + width: 50%; + height: 100%; + margin: 0 0 0; + padding-bottom: 47%; + position: relative; + display: inline-block; +} + +.covers-3 .gallery-square { + width: 33.333333333%; + height: 100%; + margin: 0; + padding-bottom: 30%; + position: relative; + display: inline-block; +} + +.gallery-square > a { + position: absolute; + top: 0px; + left: 0px; + z-index: 555; + width: 100%; + height: 100%; +} + +.gallery-cover { + position: absolute; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + background-position: center center; + background-size: cover; + overflow: hidden; +} + +.gallery-title { + color: white; + width: 100%; + position: absolute; + top: initial; + bottom: 0px; + text-align: center; + z-index: 3; + background: transparent linear-gradient(rgba(255, 255, 255, 0) 0%, transparent 1%, rgba(0, 0, 0, 0.07) 26%, rgba(0, 0, 0, 0.5) 71%, rgba(0, 0, 0, 0.7) 100%) repeat scroll 0% 0%; + padding: 20% 0 10px 0; +} diff --git a/prosopopee/themes/material/templates/base.html b/prosopopee/themes/material/templates/base.html index a86f2ea..e8d7494 100644 --- a/prosopopee/themes/material/templates/base.html +++ b/prosopopee/themes/material/templates/base.html @@ -28,7 +28,7 @@ @@ -39,9 +39,6 @@
- {% if settings.menu -%} - {% include 'menu.html' %} - {% endif -%} {% block content %} {% endblock %} diff --git a/prosopopee/themes/material/templates/index.html b/prosopopee/themes/material/templates/index.html index 8abed90..537e1f5 100644 --- a/prosopopee/themes/material/templates/index.html +++ b/prosopopee/themes/material/templates/index.html @@ -5,47 +5,44 @@ +{% if settings.custom_css %} + +{% endif %} {% endblock %} {% block content %} - -
-
- {% for galleries_line in galleries|reverse|batch(1)|reverse %} - {% for gallery in galleries_line|reverse %} -