diff --git a/web/themes/custom/opdavies/assets/css/components/logo.pcss b/web/themes/custom/opdavies/assets/css/components/logo.pcss new file mode 100644 index 0000000..7b78107 --- /dev/null +++ b/web/themes/custom/opdavies/assets/css/components/logo.pcss @@ -0,0 +1,7 @@ +#block-opdavies-branding img { + @apply h-8; + + @screen md { + @apply h-12 + } +} diff --git a/web/themes/custom/opdavies/assets/css/custom-components.pcss b/web/themes/custom/opdavies/assets/css/custom-components.pcss index b675cf8..c9d3f0b 100644 --- a/web/themes/custom/opdavies/assets/css/custom-components.pcss +++ b/web/themes/custom/opdavies/assets/css/custom-components.pcss @@ -1,6 +1,7 @@ @import './components/button.pcss'; @import './components/container.pcss'; @import './components/lead.pcss'; +@import './components/logo.pcss'; @import './components/note.pcss'; @import './components/recommendation.pcss'; @import './components/table.pcss'; diff --git a/web/themes/custom/opdavies/favicon.ico b/web/themes/custom/opdavies/favicon.ico index f43fae6..4010841 100644 Binary files a/web/themes/custom/opdavies/favicon.ico and b/web/themes/custom/opdavies/favicon.ico differ diff --git a/web/themes/custom/opdavies/logo.png b/web/themes/custom/opdavies/logo.png deleted file mode 100644 index 036ad2a..0000000 Binary files a/web/themes/custom/opdavies/logo.png and /dev/null differ diff --git a/web/themes/custom/opdavies/logo.svg b/web/themes/custom/opdavies/logo.svg new file mode 100644 index 0000000..e0a931e --- /dev/null +++ b/web/themes/custom/opdavies/logo.svg @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/web/themes/custom/opdavies/opdavies.theme b/web/themes/custom/opdavies/opdavies.theme index 157b5cd..3b222a8 100644 --- a/web/themes/custom/opdavies/opdavies.theme +++ b/web/themes/custom/opdavies/opdavies.theme @@ -25,15 +25,3 @@ function opdavies_preprocess_page(array &$variables): void { $variables['#attached']['library'][] = 'opdavies/twitter'; } } - -/** - * Implements hook_preprocess_HOOK(). - */ -function opdavies_preprocess_block(array &$variables): void { - if ($variables['base_plugin_id'] == 'system_branding_block') { - $variables['site_logo'] = ''; - if ($variables['content']['site_logo']['#access'] && $variables['content']['site_logo']['#uri']) { - $variables['site_logo'] = str_replace('.svg', '.png', $variables['content']['site_logo']['#uri']); - } - } -} diff --git a/web/themes/custom/opdavies/templates/layout/page.html.twig b/web/themes/custom/opdavies/templates/layout/page.html.twig index 7da5a55..e290871 100644 --- a/web/themes/custom/opdavies/templates/layout/page.html.twig +++ b/web/themes/custom/opdavies/templates/layout/page.html.twig @@ -51,7 +51,7 @@
-
+
{{ page.header }}