Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
47e9bb1
copilot driven introduction of SCSS Modules [copilot]
andrewscfc Jul 24, 2025
1f6a4d4
guided copilot conversion of styling constants/utilities to SCSS [cop…
andrewscfc Jul 25, 2025
82b3c26
beginning of theme application with SCSS [copilot]
andrewscfc Jul 30, 2025
8db0a50
support code splitting for css modules [copilot]
andrewscfc Jul 31, 2025
ed3da93
mundo font nearly entirely converted to scss modules [copilot]
andrewscfc Jul 31, 2025
719c18f
mundo theme has brand logo converted to SCSS modules [copilot]
andrewscfc Aug 1, 2025
0a8dcd6
first attempt at full theme setup with scss modules [copilot]
andrewscfc Aug 1, 2025
c067875
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Aug 1, 2025
c395ea7
Merge branch 'latest' into andrew-scss-modules
andrewscfc Sep 4, 2025
d49af8a
Merge branch 'latest' into andrew-scss-modules
andrewscfc Sep 5, 2025
622f783
Delete fontFacesLazy.module.scss as mixins only work at build time
andrewscfc Sep 5, 2025
b0c19da
Delete moved palette/mundo.module.scss
andrewscfc Sep 5, 2025
0df1134
keep original brand svg solution as it is unaffected by SCSS modules
andrewscfc Sep 5, 2025
45fc3cf
Remove import of removed scss module
andrewscfc Sep 5, 2025
9fa6533
correct imports
andrewscfc Sep 5, 2025
14e8656
Curation container except fonts [copilot]
andrewscfc Sep 5, 2025
65e904f
font parameters converted to reference theme variables
andrewscfc Sep 5, 2025
a5a4f48
first fully converted component scss module [copilot]
andrewscfc Sep 5, 2025
b990200
Merge branch 'latest' into andrew-scss-modules
andrewscfc Sep 5, 2025
12e3d65
Merge branch 'latest' into andrew-scss-modules
andrewscfc Sep 10, 2025
35e5a23
Merge branch 'latest' into andrew-scss-modules
andrewscfc Sep 17, 2025
a45e8b0
fix prettier issues
andrewscfc Sep 18, 2025
2080e0b
fix lint errors
andrewscfc Sep 18, 2025
6f54014
Merge branch 'latest' into andrew-scss-modules
andrewscfc Sep 18, 2025
e5a75e0
builds with one webpack error [copilot]
andrewscfc Sep 18, 2025
b5ef53f
Merge branch 'andrew-scss-modules' of github.com:bbc/simorgh into and…
andrewscfc Sep 18, 2025
bf32ec3
builds with no webpack errors
andrewscfc Sep 18, 2025
49ff13f
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Oct 16, 2025
04a7635
Merge branch 'latest' into andrew-scss-modules
andrewscfc Oct 16, 2025
3206fef
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Oct 31, 2025
a934dee
run `yarn` after merge
andrewscfc Oct 31, 2025
3cc0c00
Merge branch 'latest' into andrew-scss-modules
andrewscfc Oct 31, 2025
d9cee84
fix yarn lock
andrewscfc Oct 31, 2025
088c588
Merge branch 'latest' into andrew-scss-modules
andrewscfc Nov 5, 2025
e4818ff
non-reith fonts locations updated to reflace changes on latest [copilot]
andrewscfc Nov 5, 2025
930246d
update reith fonts to reference a centralised variable [copilot]
andrewscfc Nov 5, 2025
db50f52
update `./fontBaseUrl.module.scss` to .`/fontBaseUrls.module.scss` [c…
andrewscfc Nov 5, 2025
bacaa6a
yarn after merge
andrewscfc Nov 20, 2025
71b14f1
correct comment
andrewscfc Nov 20, 2025
b314a6f
fix alias for fontUrls
andrewscfc Nov 20, 2025
e69cca0
Merge branch 'andrew-scss-modules' of github.com:bbc/simorgh into and…
andrewscfc Nov 20, 2025
709273b
fix storybook compilation [copilot]
andrewscfc Nov 20, 2025
794823f
Merge branch 'latest' into andrew-scss-modules
andrewscfc Dec 2, 2025
9894ef9
changes to properly integrate style to subhead [copilot]
andrewscfc Dec 2, 2025
74fe3ff
working css module resolution [copilot]
andrewscfc Dec 5, 2025
92301ef
Partially working css global variables
andrewscfc Jan 29, 2026
ffbfe84
remove test imports of global css variables - theme import works
andrewscfc Jan 29, 2026
171f5ec
removed distinction between module and global scss for now
andrewscfc Jan 29, 2026
e5b4947
Partially working css global variables [copilot]
andrewscfc Jan 29, 2026
1b2192e
remove test imports of global css variables - theme import works
andrewscfc Jan 29, 2026
8207f9f
removed distinction between module and global scss for now
andrewscfc Jan 29, 2026
3c4bac5
Convert pixels to rem in sass [copilot]
andrewscfc Jan 29, 2026
e021f21
Merge branch 'andrew-scss-modules' of github.com:bbc/simorgh into and…
andrewscfc Jan 29, 2026
58b0680
improve nested styles
andrewscfc Jan 30, 2026
152a72f
move colour variables to sass [copilot]
andrewscfc Jan 30, 2026
4116132
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Jan 30, 2026
2ea2941
fix media query support in font sizes [copilot]
andrewscfc Jan 30, 2026
011dbe6
remove webpack debugging helpers
andrewscfc Jan 30, 2026
820427b
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Feb 24, 2026
34001ba
update yarn cache
andrewscfc Feb 24, 2026
89b97d0
fix build errors [copilot]
andrewscfc Feb 24, 2026
41505a4
remove unecessary generated type declarations
andrewscfc Feb 25, 2026
ec34846
add jest support for scss modules
andrewscfc Feb 25, 2026
c93c706
fix deprecation warnings from sass [copilot]
andrewscfc Feb 25, 2026
91af316
fix build warnings on running `yarn dev` (rendering blank page, still…
andrewscfc Feb 25, 2026
db315ab
disable scss theme provider as only current works on mundo
andrewscfc Feb 25, 2026
72f4f6d
fix build/test errors
andrewscfc Feb 25, 2026
239228a
Merge branch 'latest' into andrew-scss-modules
andrewscfc Feb 25, 2026
a093f24
Fix server webpack config [copilot]
andrewscfc Feb 25, 2026
3030ab7
Merge branch 'andrew-scss-modules' of github.com:bbc/simorgh into and…
andrewscfc Feb 25, 2026
a380bf2
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Feb 25, 2026
319456c
rename files to meet nextjs css modules convention (originals still b…
andrewscfc Feb 27, 2026
174ca80
Delete module files that were renamed + correct reference in subhead …
andrewscfc Feb 27, 2026
7a54248
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Feb 27, 2026
e18a5d2
add webpack config to storybook for global scss files
andrewscfc Feb 27, 2026
89c2246
add missing cached dependency
andrewscfc Feb 27, 2026
ceaacfe
make loadable config work with next + bring theme provider in line wi…
andrewscfc Mar 7, 2026
1f9452c
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Mar 7, 2026
6afdccc
remove commented out code
andrewscfc Mar 13, 2026
19648c4
remove comments
andrewscfc Mar 19, 2026
80158c7
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Mar 19, 2026
b9bd6da
yarn install after merge
andrewscfc Mar 19, 2026
935a243
Merge branch 'andrew-scss-modules' of github.com:bbc/simorgh into and…
andrewscfc Mar 19, 2026
5e0d3f2
fix express partially working for demonstration purposes [copilot]
andrewscfc Mar 19, 2026
0ad1d28
introduce basic mix-in for fontVariant [copilot]
andrewscfc Mar 19, 2026
2879b6d
Full fontVariant mixin replicating src/app/components/ThemeProvider/f…
andrewscfc Mar 26, 2026
f28ed32
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Mar 26, 2026
25a81fb
Merge branch 'latest' into andrew-scss-modules
andrewscfc Mar 26, 2026
f34f953
use px-to-rem utility more widely to aid readability [copilot]
andrewscfc Mar 26, 2026
f0bc46f
Convert ArticleLinksBlock to scss + fix gaps in theming [copilot]
andrewscfc Apr 16, 2026
f162b1c
Merge branch 'latest' of github.com:bbc/simorgh into andrew-scss-modules
andrewscfc Apr 16, 2026
10fc835
fix incorrectly suffixed rem values [copilot]
andrewscfc Apr 17, 2026
5c07a16
re-apply rem suffixes to media query [copilot]
andrewscfc Apr 17, 2026
cec63db
introduce px-to-rem utility to medaQueries and adjust usage [copilot]
andrewscfc Apr 17, 2026
6ffd94c
Merge branch 'latest' into andrew-scss-modules
andrewscfc Apr 17, 2026
b8a808f
introduce centralised type for scss modules [copilot]
andrewscfc Apr 17, 2026
72fbe34
simplify theme import syntax [copilot]
andrewscfc Apr 17, 2026
6890039
fix tests following theming path being introduced [copilot]
andrewscfc Apr 17, 2026
4e9ec7b
Merge branch 'latest' into andrew-scss-modules
andrewscfc Apr 17, 2026
dca80c6
move to webpack alias based approach [copilot]
andrewscfc Apr 17, 2026
5f028bd
Merge branch 'latest' into andrew-scss-modules
andrewscfc Apr 17, 2026
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
28 changes: 28 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,34 @@ const storybookConfig: StorybookConfig = {
transcludeMarkdown: true,
},
},
{
name: '@storybook/addon-styling-webpack',
options: {
rules: [
{
test: /\.module\.scss$/,
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true,
importLoaders: 1,
esModule: false,
},
},
{
loader: 'sass-loader',
},
],
},
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config enabling module scss files in storybook

{
test: /(?<!\.module)\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config enabling global scss files

},
],
},
},
],
env: config => ({
...config,
Expand Down
14 changes: 10 additions & 4 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Preview } from '@storybook/react-webpack5';
import GlobalStyles from '../src/app/legacy/psammead/psammead-styles/src/global-styles';
import DocsDecorator from './DocsDecorator';
import ThemeProvider from '../src/app/components/ThemeProvider';
import ThemeProviderSCSSModules from '#app/components/ThemeProviderSCSSModules';
import { ServiceContextProvider } from '../src/app/contexts/ServiceContext';
import { ToggleContextProvider } from '../src/app/contexts/ToggleContext';
import { UserContextProvider } from '../src/app/contexts/UserContext';
Expand Down Expand Up @@ -228,12 +229,17 @@ const preview: Preview = {
pageData={pageDataFixture}
>
<UserContextProvider>
<ThemeProvider
service={context.globals.service.service}
<ThemeProviderSCSSModules
service="mundo"
variant={context.globals.service.variant}
>
<Story />
</ThemeProvider>
<ThemeProvider
service={context.globals.service.service}
variant={context.globals.service.variant}
>
<Story />
</ThemeProvider>
</ThemeProviderSCSSModules>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here the new ThemeProviderSCSSModules is enabled alongside the emotion one. It is hardcoded to the mundo theme at this stage

</UserContextProvider>
</EventTrackingContextProvider>
</RequestContextProvider>
Expand Down
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,16 @@
"request": "launch",
"command": "cd ws-nextjs-app && nvm use && yarn dev"
},
{
"name": "Storybook debug",
"type": "node-terminal",
"request": "launch",
"command": "yarn storybook",
"serverReadyAction": {
"pattern": "Local:.+(https?://[^:]+:[0-9]+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
},
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bit of useful vscode config to debug storybook in vscode

]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/fsevents-patch-6b67494872-10.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions dirAlias.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const resolvePath = relativePath => path.resolve(appDirectory, relativePath);

module.exports = {
webpackDirAlias: {
'@scss': resolvePath('src/app/components/ThemeProviderSCSSModules'),
'#app': resolvePath('src/app'),
'#src': resolvePath('src'),
'#nextjs': resolvePath('ws-nextjs-app/'),
Expand Down
10 changes: 8 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ const unitTests = {
'./src/testHelpers/setupTests.js',
'jest-expect-message',
],
moduleNameMapper: jestDirAlias,
moduleNameMapper: {
...jestDirAlias,
'\\.module\\.(css|scss)$': 'identity-obj-proxy',
},
testEnvironment: 'jsdom',
snapshotSerializers: ['@emotion/jest/serializer'],
transform: {
Expand Down Expand Up @@ -37,7 +40,10 @@ const clientUnitTests = {
'./src/testHelpers/setupTests.js',
'jest-expect-message',
],
moduleNameMapper: jestDirAlias,
moduleNameMapper: {
...jestDirAlias,
'\\.module\\.(css|scss)$': 'identity-obj-proxy',
},
testEnvironment: '@happy-dom/jest-environment',
snapshotSerializers: ['@emotion/jest/serializer'],
transform: {
Expand Down
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"sideEffects": [
"./src/app/legacy/psammead/moment-timezone-include/**/*.*",
"./src/app/legacy/psammead/psammead-locales/**/*.*",
"./cypress/**/*.*"
"./cypress/**/*.*",
"**/*.scss",
"**/*.css"
],
"workspaces": {
"packages": [
Expand Down Expand Up @@ -166,6 +168,7 @@
"@loadable/webpack-plugin": "5.15.2",
"@storybook/addon-a11y": "10.3.5",
"@storybook/addon-docs": "10.3.5",
"@storybook/addon-styling-webpack": "^3.0.0",
"@storybook/builder-webpack5": "10.3.5",
"@storybook/cli": "10.3.5",
"@storybook/react-webpack5": "10.3.5",
Expand All @@ -174,6 +177,7 @@
"@testing-library/react": "16.3.1",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/user-event": "14.6.1",
"@types/identity-obj-proxy": "3.0.2",
"@types/jest": "30.0.0",
"@types/js-cookie": "^3.0.3",
"@types/jsdom": "27.0.0",
Expand All @@ -200,6 +204,7 @@
"compression-webpack-plugin": "11.1.0",
"copy-webpack-plugin": "13.0.1",
"crypto": "1.0.1",
"css-loader": "7.1.2",
"cypress": "15.11.0",
"cypress-axe": "1.7.0",
"cypress-multi-reporters": "2.0.5",
Expand All @@ -220,6 +225,7 @@
"eslint-plugin-react-hooks": "5.2.0",
"happy-dom": "20.8.9",
"husky": "9.1.7",
"identity-obj-proxy": "3.0.0",
"jest": "30.3.0",
"jest-environment-jsdom": "30.2.0",
"jest-expect-message": "1.1.3",
Expand All @@ -229,23 +235,28 @@
"jest-silent-reporter": "0.6.0",
"jsdom": "27.0.0",
"lighthouse": "13.0.1",
"mini-css-extract-plugin": "2.9.4",
"minimist": "1.2.8",
"mkdirp": "3.0.1",
"mocha-junit-reporter": "2.2.1",
"npm-run-all2": "8.0.4",
"prettier": "3.8.1",
"puppeteer": "24.22.3",
"retry": "0.13.1",
"sass": "1.94.2",
"sass-loader": "16.0.5",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot recommended packages to support SCSS

"start-server-nestjs-webpack-plugin": "2.2.5",
"storybook": "10.3.5",
"stream-browserify": "3.0.0",
"strip-ansi": "7.1.2",
"style-loader": "4.0.0",
"supertest": "7.2.2",
"terser-webpack-plugin": "5.3.14",
"timemachine": "0.3.2",
"ts-jest": "29.4.9",
"ts-loader": "9.5.4",
"typescript": "5.9.3",
"typescript-plugin-css-modules": "5.2.0",
"wait-on": "9.0.3",
"webpack": "5.106.0",
"webpack-bundle-analyzer": "5.3.0",
Expand Down
4 changes: 3 additions & 1 deletion scripts/dependencyCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const options = {
'@testing-library/dom',
'@storybook/addon-knobs',
'next', // next/dynamic is referenced in some shared components with Express and Next.js, but is swapped out by Babel at build time in the Express app, so depcheck thinks it's missing
'ThemeProviderSCSSModules', // internal SCSS module path resolved via webpack/next.js sassOptions.loadPaths
'@scss', // webpack alias for src/app/components, resolved via resolve.alias in webpack/next.js
],
};

Expand All @@ -24,7 +26,7 @@ depcheck(

// Filter out dependencies prefixed with "#".
const missingFiltered = Object.keys(missing).reduce((obj, key) => {
if (key.startsWith('#')) {
if (key.startsWith('#') || key.startsWith('@scss/')) {
return obj;
}

Expand Down
89 changes: 89 additions & 0 deletions src/app/components/ArticleLinksBlock/Promo/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
@use '@scss/themeTokens' as theme;

.link {
@include theme.fontSizes-gel-font-size(pica);
@include theme.fontVariants-gel-font-variant('serif-bold');
display: inline-block;
vertical-align: middle;
text-decoration: none;
overflow-x: hidden;
overflow-y: hidden;
line-clamp: 4;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
color: theme.$palette-grey-8;

&:hover,
&:focus {
text-decoration: underline;
}

&:visited {
color: theme.$palette-grey-6;
}

&::before {
bottom: 0;
content: '';
left: 0;
overflow: hidden;
position: absolute;
right: 0;
top: 0;
z-index: 1;
}

// Dark UI override
:global([data-is-dark-ui='true']) & {
color: theme.$palette-grey-2;
}
}

.promoBox {
position: relative;
background-color: theme.$palette-white;
padding: #{theme.$spacings-double};
padding-inline-end: #{theme.pixelsToRem-px-to-rem(38)};
height: auto;
display: block;
width: 100%;

// Dark UI override
:global([data-is-dark-ui='true']) & {
background-color: theme.$palette-grey-7;
}

// Opera Mini overrides
:global(.is-opera-mini) & {
position: relative;
background-color: theme.$palette-white;
padding: #{theme.$spacings-double};
margin-bottom: #{theme.$spacings-double};
width: calc(100% - #{theme.$spacings-full});

:global([data-is-dark-ui='true']) & {
background-color: theme.$palette-grey-3;
}

@media (min-width: #{theme.$mediaQueries-group-2-min-width-bp}) {
width: calc(50% - #{theme.$spacings-double});
}
}
}

.timestamp {
margin-top: #{theme.$spacings-full};

// Dark UI override
:global([data-is-dark-ui='true']) & {
color: theme.$palette-grey-1;
}
}

.chevron {
position: absolute;
top: 50%;
transform: translateY(-50%);
inset-inline-end: #{theme.pixelsToRem-px-to-rem(12)};
fill: currentColor;
}
10 changes: 5 additions & 5 deletions src/app/components/ArticleLinksBlock/Promo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { OptimoBlock } from '#app/models/types/optimo';
import useClickTrackerHandler from '#app/hooks/useClickTrackerHandler';
import { Chevron, ChevronOrientation } from '#app/components/icons';
import { ServiceContext } from '../../../contexts/ServiceContext';
import styles from './index.styles';
import styles from './index.module.scss';

interface PromoProps {
block: OptimoBlock;
Expand All @@ -32,18 +32,18 @@ const Promo = ({ block, clickTracker }: PromoProps) => {
textBlock?.model?.blocks?.[0]?.model?.blocks?.[0]?.model?.text ?? '';

return (
<div css={styles.promoBox}>
<a css={styles.link} href={href} {...clickTracker}>
<div className={styles.promoBox}>
<a className={styles.link} href={href} {...clickTracker}>
{title}
<Chevron
dir={dir}
css={styles.chevron}
className={styles.chevron}
orientation={ChevronOrientation.FORWARD}
/>
</a>
{timestamp && (
<PromoTimestamp
css={styles.timestamp}
className={styles.timestamp}
serviceDatetimeLocale={serviceDatetimeLocale}
>
{timestamp}
Expand Down
61 changes: 61 additions & 0 deletions src/app/components/ArticleLinksBlock/PromoList/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@use '@scss/themeTokens' as theme;

.promo {
& ul {
list-style: none;
padding-inline-start: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: #{theme.$spacings-full};
width: 100%;
}

// Opera Mini overrides
:global(.is-opera-mini) & {
list-style: none;
padding-inline-start: 0;
margin: 0;
}
}

.list {
display: flex;
flex-shrink: 0;
margin-inline: #{theme.$spacings-full};

&:last-of-type {
margin-bottom: #{theme.$spacings-triple};
}

@media #{theme.$mediaQueries-forced-colours} {
border: solid #{theme.pixelsToRem-px-to-rem(3)} transparent;
}

@media (min-width: #{theme.$mediaQueries-group-2-min-width-bp}) {
margin-inline: #{theme.$spacings-double};
}

@media (min-width: #{theme.$mediaQueries-group-3-min-width-bp}) {
margin-inline: #{theme.$spacings-double};
}

@media (min-width: #{theme.$mediaQueries-group-4-min-width-bp}) {
margin-inline: 0;
}

// Opera Mini overrides
:global(.is-opera-mini) & {
@media (max-width: #{theme.$mediaQueries-group-0-max-width-bp}) {
margin-inline: #{theme.$spacings-full};
}

@media (min-width: #{theme.$mediaQueries-group-2-min-width-bp}) {
margin-inline: #{theme.$spacings-double};
}

@media (min-width: #{theme.$mediaQueries-group-4-min-width-bp}) {
margin-inline: 0;
}
}
}
Loading
Loading