From 3d714a749e160c45c5de6ec35b6c7f4952b506b9 Mon Sep 17 00:00:00 2001 From: Alan Cole Date: Fri, 4 Oct 2024 14:52:17 +1000 Subject: [PATCH] [CIVIC-1937] Add page level styles into Drupal theme. --- .../contrib/civictheme/assets/sass/page/_page.scss | 11 +++++++++++ web/themes/contrib/civictheme/assets/sass/theme.scss | 1 + .../assets/sass/page/_page.scss | 11 +++++++++++ .../civictheme_starter_kit/assets/sass/theme.scss | 1 + 4 files changed, 24 insertions(+) create mode 100644 web/themes/contrib/civictheme/assets/sass/page/_page.scss create mode 100644 web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/page/_page.scss diff --git a/web/themes/contrib/civictheme/assets/sass/page/_page.scss b/web/themes/contrib/civictheme/assets/sass/page/_page.scss new file mode 100644 index 000000000..b5be50bc4 --- /dev/null +++ b/web/themes/contrib/civictheme/assets/sass/page/_page.scss @@ -0,0 +1,11 @@ +// +// Page level configuration. +// + +html { + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; +} diff --git a/web/themes/contrib/civictheme/assets/sass/theme.scss b/web/themes/contrib/civictheme/assets/sass/theme.scss index 99dfc9ecf..b15ff323c 100644 --- a/web/themes/contrib/civictheme/assets/sass/theme.scss +++ b/web/themes/contrib/civictheme/assets/sass/theme.scss @@ -5,4 +5,5 @@ // components. // // These overrides will not be visible in the Storybook. +@import 'page/page'; @import 'header/header'; diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/page/_page.scss b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/page/_page.scss new file mode 100644 index 000000000..b5be50bc4 --- /dev/null +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/page/_page.scss @@ -0,0 +1,11 @@ +// +// Page level configuration. +// + +html { + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; +} diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss index 200ac2e9e..9165ca22f 100644 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss @@ -6,4 +6,5 @@ // // These overrides will not be visible in the Storybook. // @todo Refactor webpack config to use direct import from the CivicTheme theme. +@import 'page/page'; @import 'block/local-tasks';