{% userindicator %}
From 89ba67622ae03f6b2dd10ebcdf725f76161159e9 Mon Sep 17 00:00:00 2001
From: Phillippa
+
{% spaceless %}
{% if ORGANISATION %}
Date: Thu, 1 Aug 2019 16:43:48 +0200
Subject: [PATCH 4/7] tidying commented out code and renaming breakpoint
---
liqd_product/assets/scss/_shame.scss | 2 +-
liqd_product/assets/scss/_variables.scss | 6 ++--
.../assets/scss/components/_blocks.scss | 4 +--
.../assets/scss/components/_contact_form.scss | 2 +-
.../assets/scss/components/_dropdown.scss | 1 -
.../assets/scss/components/_homepage.scss | 2 +-
.../assets/scss/components/_main_header.scss | 29 +------------------
.../scss/components/_participation-tile.scss | 2 +-
.../scss/components/_timeline-carousel.scss | 2 +-
9 files changed, 11 insertions(+), 39 deletions(-)
diff --git a/liqd_product/assets/scss/_shame.scss b/liqd_product/assets/scss/_shame.scss
index 2d4f572b2..62a31ac8d 100644
--- a/liqd_product/assets/scss/_shame.scss
+++ b/liqd_product/assets/scss/_shame.scss
@@ -53,7 +53,7 @@ input[type="search"] {
}
//follow dropdown overwrite so it drops on left side so doesn't go off screen
-@media screen and (max-width: $breakpoint-lg-down) {
+@media screen and (max-width: $breakpoint-xl-down) {
.btngroup-gray {
.dropdown-menu {
right: 0 !important;
diff --git a/liqd_product/assets/scss/_variables.scss b/liqd_product/assets/scss/_variables.scss
index 05080e638..c6dede319 100644
--- a/liqd_product/assets/scss/_variables.scss
+++ b/liqd_product/assets/scss/_variables.scss
@@ -78,14 +78,14 @@ $wrapper-width: 79rem !default;
$breakpoint-xs: 36rem !default; //576px
$breakpoint: 48rem !default; //768px
$breakpoint-md: 62rem !default; //992px
-// $breakpoint-lg: 75rem !default; //1200px
-$breakpoint-lg: 90rem !default; //1440px
+$breakpoint-lg: 75rem !default; //1200px
+$breakpoint-xl: 90rem !default; //1440px
// use for max-width media queries
$breakpoint-xs-down: $breakpoint-xs - 0.1rem !default;
$breakpoint-down: $breakpoint - 0.1rem !default; // sm
$breakpoint-md-down: $breakpoint-md - 0.1rem !default;
-$breakpoint-lg-down: $breakpoint-lg - 0.1rem !default;
+$breakpoint-xl-down: $breakpoint-xl - 0.1rem !default;
$hero-height: 25.5rem !default;
$hero-height-secondary: 20rem !default;
diff --git a/liqd_product/assets/scss/components/_blocks.scss b/liqd_product/assets/scss/components/_blocks.scss
index 5c02f575f..f75c24de4 100644
--- a/liqd_product/assets/scss/components/_blocks.scss
+++ b/liqd_product/assets/scss/components/_blocks.scss
@@ -109,7 +109,7 @@ $block-padding-md: 7*$padding;
right: 2*-$r-spacer;
margin-top: $r-spacer;
- @media screen and (min-width: $breakpoint-lg) {
+ @media screen and (min-width: $breakpoint-xl) {
margin-top: 2*$r-spacer;
right: 4.5*-$r-spacer;
}
@@ -208,7 +208,7 @@ $block-padding-md: 7*$padding;
margin-left: -$r-spacer;
margin-right: -$r-spacer;
- @media screen and (min-width: $breakpoint-lg) {
+ @media screen and (min-width: $breakpoint-xl) {
margin-left: 2*-$r-spacer;
margin-right: 2*-$r-spacer;
}
diff --git a/liqd_product/assets/scss/components/_contact_form.scss b/liqd_product/assets/scss/components/_contact_form.scss
index 1c4523c4c..4fdad6ba1 100644
--- a/liqd_product/assets/scss/components/_contact_form.scss
+++ b/liqd_product/assets/scss/components/_contact_form.scss
@@ -19,7 +19,7 @@
bottom: 0;
left: 10%;
- @media screen and (min-width: $breakpoint-lg) {
+ @media screen and (min-width: $breakpoint-xl) {
left: 20%;
}
}
diff --git a/liqd_product/assets/scss/components/_dropdown.scss b/liqd_product/assets/scss/components/_dropdown.scss
index b161a9dd9..d7b097423 100644
--- a/liqd_product/assets/scss/components/_dropdown.scss
+++ b/liqd_product/assets/scss/components/_dropdown.scss
@@ -1,7 +1,6 @@
.dropdown {
position: relative;
text-align: left;
- // margin-bottom: $spacer / 2; for bootstrap
}
.dropdown-item {
diff --git a/liqd_product/assets/scss/components/_homepage.scss b/liqd_product/assets/scss/components/_homepage.scss
index c1d2847ad..35a57979e 100644
--- a/liqd_product/assets/scss/components/_homepage.scss
+++ b/liqd_product/assets/scss/components/_homepage.scss
@@ -4,7 +4,7 @@ $spacer-xl: 7rem;
background-color: $body-bg;
margin: $r-spacer;
- @media screen and (min-width: $breakpoint-lg) {
+ @media screen and (min-width: $breakpoint-xl) {
margin: 2*$r-spacer;
}
}
diff --git a/liqd_product/assets/scss/components/_main_header.scss b/liqd_product/assets/scss/components/_main_header.scss
index 2122842d3..3ffd35a41 100644
--- a/liqd_product/assets/scss/components/_main_header.scss
+++ b/liqd_product/assets/scss/components/_main_header.scss
@@ -2,7 +2,7 @@
background-color: $bg-light;
margin: $r-spacer;
- @media screen and (min-width: $breakpoint-lg) {
+ @media screen and (min-width: $breakpoint-xl) {
margin: 2*$r-spacer;
}
@@ -16,29 +16,6 @@
}
}
-// .main-header__brand {
-// float: left;
-// margin: (3 * $spacer) 0 $spacer;
-// }
-
-// .main-header__nav {
-// clear: left;
-// }
-
-// .main-header__logo-box {
-// display: inline-block;
-// margin-right: $spacer;
-// margin-bottom: -2em;
-// padding: $padding;
-// vertical-align: middle;
-//
-// background-color: $body-bg;
-// z-index: 1;
-// position: relative;
-//
-// box-shadow: 0 0 8px 0 $shadow;
-// }
-
.main-header__logo-img {
display: block;
height: 4em;
@@ -92,10 +69,6 @@
font-weight: 900;
content: '\f00d';
}
-//
-// .show + .main-header__mobile-toggle--platform {
-// background-color: $bg-light;
-// }
.main-header__partner-nav {
list-style: none;
diff --git a/liqd_product/assets/scss/components/_participation-tile.scss b/liqd_product/assets/scss/components/_participation-tile.scss
index fcf030187..69007c440 100644
--- a/liqd_product/assets/scss/components/_participation-tile.scss
+++ b/liqd_product/assets/scss/components/_participation-tile.scss
@@ -88,7 +88,7 @@
max-width: calc(100% * (1 / 3) - 2rem - 1px);
}
- @media screen and (min-width: $breakpoint-lg) {
+ @media screen and (min-width: $breakpoint-xl) {
max-width: calc(100% * (1 / 4) - 2rem - 1px);
}
}
diff --git a/liqd_product/assets/scss/components/_timeline-carousel.scss b/liqd_product/assets/scss/components/_timeline-carousel.scss
index ada7566f7..759338e8e 100644
--- a/liqd_product/assets/scss/components/_timeline-carousel.scss
+++ b/liqd_product/assets/scss/components/_timeline-carousel.scss
@@ -106,7 +106,7 @@ $timeline-carousel__top-space: 11px;
}
//mobile slick overwrites
-@media screen and (max-width: $breakpoint-lg-down) {
+@media screen and (max-width: $breakpoint-xl-down) {
.slick-next {
right: 0 !important;
}
From 3631b0adef1b5fcdcab66b2b7f79879a3dff20dd Mon Sep 17 00:00:00 2001
From: Phillippa
Date: Thu, 8 Aug 2019 14:29:41 +0200
Subject: [PATCH 5/7] main header: styling for main header on all screen sizes
---
.../templates/a4_candy_users/indicator.html | 25 +++++----------
.../assets/scss/components/_button.scss | 27 +++++++++++++---
.../assets/scss/components/_homepage.scss | 6 ++--
.../scss/components/_language_switch.scss | 2 +-
.../assets/scss/components/_main_header.scss | 31 +++++++++----------
.../assets/scss/components/_navi.scss | 9 ++----
.../scss/components/_userindicator.scss | 31 ++-----------------
7 files changed, 53 insertions(+), 78 deletions(-)
diff --git a/apps/users/templates/a4_candy_users/indicator.html b/apps/users/templates/a4_candy_users/indicator.html
index 060081103..2f450c9c1 100644
--- a/apps/users/templates/a4_candy_users/indicator.html
+++ b/apps/users/templates/a4_candy_users/indicator.html
@@ -4,19 +4,14 @@
-
-
{% else %}
-
Date: Thu, 8 Aug 2019 14:51:16 +0200
Subject: [PATCH 6/7] platform header: styling platform header
---
.../assets/scss/components/_main_header.scss | 11 +-
liqd_product/templates/header.html | 116 +++++++++---------
liqd_product/templates/header_dashboard.html | 66 +++++-----
3 files changed, 99 insertions(+), 94 deletions(-)
diff --git a/liqd_product/assets/scss/components/_main_header.scss b/liqd_product/assets/scss/components/_main_header.scss
index bbcb391b7..d2125008c 100644
--- a/liqd_product/assets/scss/components/_main_header.scss
+++ b/liqd_product/assets/scss/components/_main_header.scss
@@ -17,6 +17,15 @@
}
}
+.main-header__border-top {
+ background: linear-gradient(to right, $brand-primary, $brand-primary 33%, $bg-tertiary 66%, $bg-tertiary);
+ height: 0.5em;
+}
+
+.main-header__border-top--platform {
+ background: linear-gradient(to right, $brand-primary, $brand-primary 33%, $brand-secondary 66%, $brand-secondary);
+}
+
.main-header__logo-img {
display: block;
height: 4em;
@@ -59,7 +68,7 @@
font-style: normal;
font-weight: 900;
content: '\f0c9';
- // background-color: $body-bg;
+ background-color: inherit;
}
.show + .main-header__mobile-toggle:before {
diff --git a/liqd_product/templates/header.html b/liqd_product/templates/header.html
index 299b25670..f0e9b62c2 100644
--- a/liqd_product/templates/header.html
+++ b/liqd_product/templates/header.html
@@ -1,71 +1,69 @@
{% load userindicator static i18n thumbnail %}
{% get_current_language as LANGUAGE_CODE %}
-
+
+
+
-
-
{{ ORGANISATION.name }}
{% else %}adhocracy +{% endif %} {% endspaceless %} From c81dfb32961f78dd673d2b6c021d8f056e711158 Mon Sep 17 00:00:00 2001 From: Phillippa
- {% trans "Hello" %}
-
- {{ request.user.username }} -
+ {% trans "Hello " %}{{ request.user.username }}
- {{ request.user.username }} -
@@ -40,15 +35,9 @@
-
-
- - {% trans "Login" %} - -
- - / - -
- - {% trans "Register" %} - -
+ {% spaceless %}
+ {% if ORGANISATION %}
- {{ ORGANISATION.name }}
{% else %}adhocracy +{% endif %} + {% endspaceless %} +
- {% spaceless %}
- {% if ORGANISATION %}
+ {% if ORGANISATION %}
+ {% if ORGANISATION.logo %}
+ {% url 'organisation' organisation_slug=ORGANISATION.slug as organisation_url %}
+ {% if not request.get_full_path == organisation_url %}
+
+
+
+ {% endif %}
+ {% endif %}
+ {% endif %}
- {% if ORGANISATION %}
- {% if ORGANISATION.logo %}
- {% url 'organisation' organisation_slug=ORGANISATION.slug as organisation_url %}
- {% if not request.get_full_path == organisation_url %}
-
-
-
- {% endif %}
+ {{ ORGANISATION.name }}
{% else %}adhocracy +{% endif %} - {% endspaceless %} -
+ {% get_available_languages as languages %}
+ {% for lang_code, lang_name in languages %}
+ {% if lang_code != LANGUAGE_CODE %}
+ {% get_language_info for lang_code as lang %}
+
{% endif %}
- {% endif %}
+ {% endfor %}
+
-
- {% get_available_languages as languages %}
- {% for lang_code, lang_name in languages %}
- {% if lang_code != LANGUAGE_CODE %}
- {% get_language_info for lang_code as lang %}
-
+
-
-
+
+
+
diff --git a/liqd_product/templates/header_dashboard.html b/liqd_product/templates/header_dashboard.html
index 7891be8b5..d50635ee0 100644
--- a/liqd_product/templates/header_dashboard.html
+++ b/liqd_product/templates/header_dashboard.html
@@ -1,42 +1,40 @@
{% load i18n userindicator %}
{% get_current_language as LANGUAGE_CODE %}
+
-
-
+ {% if ORGANISATION %}
+
-
- -
+
- + {% url 'organisation' organisation_slug=ORGANISATION.slug as organisation_url %} + {% trans 'Participate' %} + + {% if ORGANISATION.information %} +
- + {% url 'organisation-information' organisation_slug=ORGANISATION.slug as partner_information_url %} + {% trans 'Information' %} + {% endif %} - {% endfor %} -
- {% if ORGANISATION %}
-
+ {% url 'organisation-imprint' organisation_slug=ORGANISATION.slug as partner_imprint_url %}
+ {% trans 'Imprint' %}
+
+
+ {% endif %}
-
- -
-
- - {% url 'organisation' organisation_slug=ORGANISATION.slug as organisation_url %} - {% trans 'Participate' %} - - {% if ORGANISATION.information %} -
- - {% url 'organisation-information' organisation_slug=ORGANISATION.slug as partner_information_url %} - {% trans 'Information' %} - - {% endif %} -
- - {% url 'organisation-imprint' organisation_slug=ORGANISATION.slug as partner_imprint_url %} - {% trans 'Imprint' %} - -
- {% userindicator %}
-
+
+ {% userindicator %}
+
-
- {% spaceless %}
- {% if view.organisation %}
+
-
+
+
From 6b6ff9d874e53225cb182d2490caec13c7c17f55 Mon Sep 17 00:00:00 2001
From: Phillippa
Date: Thu, 8 Aug 2019 15:32:10 +0200
Subject: [PATCH 7/7] footer: adding top and bottom page ribbons and removing
unneeded margins
---
liqd_product/assets/scss/_utility.scss | 9 +++++++++
liqd_product/assets/scss/components/_footer.scss | 4 ++--
liqd_product/assets/scss/components/_homepage.scss | 4 ++--
liqd_product/assets/scss/components/_main_header.scss | 9 ---------
liqd_product/templates/500.html | 2 +-
liqd_product/templates/footer.html | 9 ++++++++-
liqd_product/templates/header.html | 2 +-
liqd_product/templates/header_dashboard.html | 2 +-
8 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/liqd_product/assets/scss/_utility.scss b/liqd_product/assets/scss/_utility.scss
index ff0f661cf..454bdf152 100644
--- a/liqd_product/assets/scss/_utility.scss
+++ b/liqd_product/assets/scss/_utility.scss
@@ -130,3 +130,12 @@
.u-fontweight-normal {
font-weight: normal;
}
+
+.u-page-ribbon {
+ background: linear-gradient(to right, $brand-primary, $brand-primary 33%, $bg-tertiary 66%, $bg-tertiary);
+ height: 0.5em;
+}
+
+.u-page-ribbon--platform {
+ background: linear-gradient(to right, $brand-primary, $brand-primary 33%, $brand-secondary 66%, $brand-secondary);
+}
diff --git a/liqd_product/assets/scss/components/_footer.scss b/liqd_product/assets/scss/components/_footer.scss
index c69d981dd..2a2273f48 100644
--- a/liqd_product/assets/scss/components/_footer.scss
+++ b/liqd_product/assets/scss/components/_footer.scss
@@ -1,9 +1,9 @@
.footer {
- margin: $r-spacer;
+ margin: 0 $r-spacer $r-spacer $r-spacer;
background-color: $bg-light;
@media screen and (min-width: $breakpoint-lg) {
- margin: 2*$r-spacer;
+ margin: 0 2*$r-spacer 2*$r-spacer 2*$r-spacer;
}
}
diff --git a/liqd_product/assets/scss/components/_homepage.scss b/liqd_product/assets/scss/components/_homepage.scss
index 23f6f0a7a..ecf2d5506 100644
--- a/liqd_product/assets/scss/components/_homepage.scss
+++ b/liqd_product/assets/scss/components/_homepage.scss
@@ -2,10 +2,10 @@ $spacer-xl: 7.5rem;
.homepage__wrapper {
background-color: $bg-light;
- margin: 0 $r-spacer $r-spacer $r-spacer;
+ margin: 0 $r-spacer 0 $r-spacer;
@media screen and (min-width: $breakpoint-xl) {
- margin: 0 2*$r-spacer 2*$r-spacer 2*$r-spacer;
+ margin: 0 2*$r-spacer 0 2*$r-spacer;
}
.block {
diff --git a/liqd_product/assets/scss/components/_main_header.scss b/liqd_product/assets/scss/components/_main_header.scss
index d2125008c..bd3b78cf9 100644
--- a/liqd_product/assets/scss/components/_main_header.scss
+++ b/liqd_product/assets/scss/components/_main_header.scss
@@ -17,15 +17,6 @@
}
}
-.main-header__border-top {
- background: linear-gradient(to right, $brand-primary, $brand-primary 33%, $bg-tertiary 66%, $bg-tertiary);
- height: 0.5em;
-}
-
-.main-header__border-top--platform {
- background: linear-gradient(to right, $brand-primary, $brand-primary 33%, $brand-secondary 66%, $brand-secondary);
-}
-
.main-header__logo-img {
display: block;
height: 4em;
diff --git a/liqd_product/templates/500.html b/liqd_product/templates/500.html
index 59636fdf3..eecd011f5 100644
--- a/liqd_product/templates/500.html
+++ b/liqd_product/templates/500.html
@@ -10,7 +10,7 @@
{{ view.organisation.name }}
{% else %}Beteiligung.in{% endif %} - {% endspaceless %} +
+ {% spaceless %}
+ {% if view.organisation %}{{ view.organisation.name }}{% else %}adhocracy +{% endif %}
+ {% endspaceless %}
-
-
-
- {% userindicator %}
-
-
- {% get_available_languages as languages %}
- {% for lang_code, lang_name in languages %}
- {% if lang_code != LANGUAGE_CODE %}
- {% get_language_info for lang_code as lang %}
-
- {% endif %}
- {% endfor %}
+
+
+
+ {% get_available_languages as languages %}
+ {% for lang_code, lang_name in languages %}
+ {% if lang_code != LANGUAGE_CODE %}
+ {% get_language_info for lang_code as lang %}
+
+ {% endif %}
+ {% endfor %}
+
+
+
+
- {% trans 'Menu' %}
-
-
-
-
+
+ {% userindicator %}
-
Skip to content
-
+
Beteiligung.in
diff --git a/liqd_product/templates/footer.html b/liqd_product/templates/footer.html
index 0e66eb0b9..f21c991cd 100644
--- a/liqd_product/templates/footer.html
+++ b/liqd_product/templates/footer.html
@@ -1,4 +1,6 @@
-{% load i18n static %}
+{% load i18n static organisation_tags %}
+{% get_current_organisation as ORGANISATION %}
+
+{% if ORGANISATION %}
+
+{% else %}
+
+{% endif %}
diff --git a/liqd_product/templates/header.html b/liqd_product/templates/header.html
index f0e9b62c2..5487c54cf 100644
--- a/liqd_product/templates/header.html
+++ b/liqd_product/templates/header.html
@@ -1,6 +1,6 @@
{% load userindicator static i18n thumbnail %}
{% get_current_language as LANGUAGE_CODE %}
-
+
diff --git a/liqd_product/templates/header_dashboard.html b/liqd_product/templates/header_dashboard.html
index d50635ee0..23c337f24 100644
--- a/liqd_product/templates/header_dashboard.html
+++ b/liqd_product/templates/header_dashboard.html
@@ -1,7 +1,7 @@
{% load i18n userindicator %}
{% get_current_language as LANGUAGE_CODE %}
-
+