-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple branding to DBT logo, fonts and colours
- Loading branch information
1 parent
aedff43
commit 05a4d93
Showing
11 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
@font-face { | ||
font-family: "GDS Transport"; | ||
font-style: normal; | ||
font-weight: normal; | ||
src: url(/static/webpack_bundles/light-94a07e06a1-v2.woff2) format("woff2"), | ||
url(/static/webpack_bundles/light-f591b13f7d-v2.woff) format("woff"); | ||
font-display: fallback; | ||
} | ||
@font-face { | ||
font-family: "GDS Transport"; | ||
font-style: normal; | ||
font-weight: bold; | ||
src: url(/static/webpack_bundles/bold-b542beb274-v2.woff2) format("woff2"), | ||
url(/static/webpack_bundles/bold-affa96571d-v2.woff) format("woff"); | ||
font-display: fallback; | ||
} | ||
|
||
:root { | ||
--w-color-primary: #0b0c0c; | ||
--w-color-primary-200: #232424; | ||
--w-color-secondary: #00703c; | ||
--w-color-secondary-600: #005a30; | ||
--w-color-positive-100: #00703c; | ||
--w-color-warning-100: #ffdd00; | ||
--w-color-warning-50: #fff199; | ||
--w-color-critical-100: #d4351c; | ||
--w-color-critical-50: #ea9a8e; | ||
--w-font-sans: "GDS Transport", arial, sans-serif; | ||
} | ||
|
||
.sidebar-custom-branding { | ||
margin: 0 2em 1em 2em; | ||
text-align: left; | ||
} | ||
|
||
a.sidebar-custom-branding { | ||
color: #fffc; | ||
} | ||
|
||
.sidebar-custom-branding .slim { | ||
display: none; | ||
text-align: left; | ||
} | ||
|
||
.sidebar-custom-branding .slim img { | ||
max-width: auto; | ||
} | ||
|
||
.sidebar--slim .sidebar-custom-branding { | ||
margin: 0 0 0 0.8em; | ||
} | ||
|
||
.sidebar--slim .sidebar-custom-branding span { | ||
display: none; | ||
} | ||
|
||
.sidebar--slim .sidebar-custom-branding .wide { | ||
display: none; | ||
} | ||
|
||
.sidebar--slim .sidebar-custom-branding .slim { | ||
display: inherit; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends "wagtailadmin/admin_base.html" %} | ||
{% load static %} | ||
{% block branding_title %}DBT Digital Workspace{% endblock %} | ||
{% block branding_favicon %} | ||
<link rel="shortcut icon" href="{% static 'core/favicon-bw-32x32.png' %}" /> | ||
<link rel="apple-touch-icon" | ||
href="{% static 'core/apple-touch-icon-bw.png' %}"> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "wagtailadmin/base.html" %} | ||
{% load render_bundle webpack_static from webpack_loader %} | ||
{% block branding_logo %} | ||
<img src="{% webpack_static 'dbt-logo-white.png' %}" | ||
srcset="{% webpack_static '[email protected]' %} 2x" | ||
alt="Department for Business & Trade logo" | ||
class="wide"> | ||
<span class="wide">Digital Workspace CMS</span> | ||
<img src="{% webpack_static 'dbt-mark-white.png' %}" | ||
alt="Department for Business & Trade logomark" | ||
class="slim"> | ||
<span class="slim">CMS</span> | ||
{% endblock branding_logo %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters