Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8022] change platform styling #2

Merged
merged 3 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added adhocracy-plus/assets/fonts/Cabin-Bold.woff2
Binary file not shown.
Binary file added adhocracy-plus/assets/fonts/Cabin-Italic.woff2
Binary file not shown.
Binary file not shown.
Binary file added adhocracy-plus/assets/fonts/Cabin-SemiBold.woff2
Binary file not shown.
Binary file removed adhocracy-plus/assets/fonts/SourceSansPro-Bold.otf
Binary file not shown.
Binary file removed adhocracy-plus/assets/fonts/SourceSansPro-It.otf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed adhocracy-plus/assets/fonts/SourceSerifPro-Bold.otf
Binary file not shown.
Binary file removed adhocracy-plus/assets/fonts/SourceSerifPro-It.otf
Binary file not shown.
Binary file not shown.
Binary file modified adhocracy-plus/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
348 changes: 332 additions & 16 deletions adhocracy-plus/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added adhocracy-plus/assets/images/logo_plain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
214 changes: 214 additions & 0 deletions adhocracy-plus/assets/images/logo_plain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 8 additions & 24 deletions adhocracy-plus/assets/scss/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,46 +1,30 @@
@font-face {
font-family: "SourceSerifPro";
goapunk marked this conversation as resolved.
Show resolved Hide resolved
src: url("../fonts/SourceSerifPro-Regular.otf");
font-family: "Cabin";
src: url("../fonts/Cabin-Regular.woff2");
font-style: normal;
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "SourceSerifPro";
src: url("../fonts/SourceSerifPro-It.otf");
font-family: "Cabin";
src: url("../fonts/Cabin-Italic.woff2");
font-style: italic;
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-Regular.otf");
font-style: normal;
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-It.otf");
font-style: italic;
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-Semibold.otf");
font-family: "Cabin";
src: url("../fonts/Cabin-SemiBold.woff2");
font-style: normal;
font-weight: 600;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-Bold.otf");
font-family: "Cabin";
src: url("../fonts/Cabin-Bold.woff2");
font-style: normal;
font-weight: 900;
goapunk marked this conversation as resolved.
Show resolved Hide resolved
font-display: swap;
Expand Down
2 changes: 1 addition & 1 deletion adhocracy-plus/assets/scss/_utility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}

.u-page-ribbon {
background: linear-gradient(to right, $brand-primary, $brand-primary 33%, $brand-secondary 66%, $brand-secondary);
background: $brand-primary;
height: 0.5em;
}

Expand Down
12 changes: 6 additions & 6 deletions adhocracy-plus/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// subset of bootstrap variables
$brand-primary: #2d40cc; // ultramarine
$brand-primary: lighten(#d60456, 3%); // purpur

$brand-secondary: #90efe4 !default; // terquoise
$brand-secondary: $brand-primary !default; // purpur

$brand-tertiary: #008dc5 !default; // prussian blue
$brand-tertiary: $brand-primary !default; // prussian blue

goapunk marked this conversation as resolved.
Show resolved Hide resolved
/* Don't use variables but hex-values here as they should not be overwritten on organisation pages */
$brand-success: #a3ef90 !default;
Expand Down Expand Up @@ -42,7 +42,7 @@ $print-link: #005cb4 !default;

$brand-primary-tint: lighten($brand-primary, 47%) !default;
$brand-secondary-tint: lighten($brand-secondary, 20%) !default;
$brand-tertiary-tint: lighten($brand-tertiary, 55%) !default;
$brand-tertiary-tint: lighten($brand-tertiary, 50%) !default;

$bg-light: #f7f7f7;
$bg-tertiary: $brand-tertiary-tint !default;
Expand All @@ -61,8 +61,8 @@ $feedback-color-accepted: #0a820a !default;
$feedback-color-rejected: #dc3818 !default;
$feedback-color-consideration: #ffae00 !default;

$font-family-base: "SourceSansPro", sans-serif !default;
$font-family-serif: "SourceSerifPro", serif !default;
$font-family-base: "Cabin", sans-serif !default;
$font-family-serif: "Cabin", sans-serif !default;

$font-size-xxxl: 2.5rem !default; //40px
$font-size-xxl: 2rem !default; // 32px
Expand Down
6 changes: 6 additions & 0 deletions adhocracy-plus/assets/scss/components/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

.footer__description {
font-family: $font-family-serif;

img {
vertical-align: bottom;
width: 2rem;
height: 1.5rem;
}
}

.footer__no-banner > .row {
Expand Down
6 changes: 5 additions & 1 deletion adhocracy-plus/assets/scss/components/_header_upper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@

@media screen and (min-width: $breakpoint) {
.header-upper__brand-img {
height: 2.5rem;
height: 3.0rem;
}

.header-upper__nav {
min-height: 3.5rem;
}
}
2 changes: 1 addition & 1 deletion adhocracy-plus/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="row mt-3 mb-2 justify-content-lg-center">
<div class="col-lg-6">
<p class="footer__description">
{% blocktranslate with platformname=settings.a4_candy_cms_settings.OrganisationSettings.platform_name %}<a href="/">{{ platformname }}</a> is a platform provided by <a href="https://liqd.net/de/">Liquid Democracy e.V.</a> in Berlin.{% endblocktranslate %} {% if ORGANISATION %}{% blocktranslate %}Only the respective operator of the offer is responsible for the editorial content.{% endblocktranslate %}{% endif %}
<a href="/"><img src={% static 'images/logo_plain.svg' %} alt="kfd" /></a>{% blocktranslate %} is a platform provided by <a href="https://liqd.net/de/">Liquid Democracy e.V.</a> in Berlin.{% endblocktranslate %} {% if ORGANISATION %}{% blocktranslate %}Only the respective operator of the offer is responsible for the editorial content.{% endblocktranslate %}{% endif %}
</p>
</div>
<div class="col-lg-6">
Expand Down
6 changes: 2 additions & 4 deletions apps/organisations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def get_success_url(self):
class DashboardCommunicationProjectChoiceView(
a4dashboard_mixins.DashboardBaseMixin, generic.FormView
):

menu_item = "communication"
form_class = forms.CommunicationProjectChoiceForm
permission_required = "a4_candy_organisations.change_organisation"
Expand Down Expand Up @@ -178,7 +177,6 @@ def get_context_data(self, **kwargs):
class DashboardCommunicationContentCreateView(
a4dashboard_mixins.DashboardBaseMixin, generic.FormView
):

menu_item = "communication"
form_class = forms.CommunicationContentCreationForm
permission_required = "a4_candy_organisations.change_organisation"
Expand Down Expand Up @@ -273,14 +271,14 @@ def generate_image(self, data):
font = ImageFont.truetype(
os.path.join(
settings.BASE_DIR,
"adhocracy-plus/assets/fonts/SourceSansPro-Semibold.otf",
"adhocracy-plus/assets/fonts/Cabin-SemiBold.woff2",
),
sharepic_format["title_size"],
)
fontsm = ImageFont.truetype(
os.path.join(
settings.BASE_DIR,
"adhocracy-plus/assets/fonts/SourceSansPro-Regular.otf",
"adhocracy-plus/assets/fonts/Cabin-Regular.woff2",
),
sharepic_format["description_size"],
)
Expand Down
5 changes: 5 additions & 0 deletions changelog/8022.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Changed

- change font to Cabin
- change logo to kfd logo
- change brand colors to kfd ci
Loading