11import { css } from '@emotion/react' ;
22import { between , from , space , until } from '@guardian/source/foundations' ;
3- import { pageSkinContainer } from '../layouts/lib/pageSkin' ;
43import { type EditionId , isNetworkFront } from '../lib/edition' ;
54import { palette as schemePalette } from '../palette' ;
65import type { CollectionBranding } from '../types/branding' ;
@@ -303,21 +302,21 @@ const sectionHeadlineUntilLeftCol = (isOpinion: boolean) => css`
303302 }
304303` ;
305304
306- const sectionHeadlineFromLeftCol = ( borderColour : string ) => css `
307- ${ from . leftCol } {
308- position: relative;
309- ::after {
310- content: '';
311- dis play: block;
312- width: 1px;
313- to p: 0;
314- height: 1.875rem;
315- right: -10px;
316- position: absolute;
317- background- color : ${ borderColour } ;
318- }
319- }
320- ` ;
305+ // const sectionHeadlineFromLeftCol = (borderColour: string) => css`
306+ // ${from.leftCol} {
307+ // position: relative;
308+ // ::after {
309+ // content: '';
310+ // display: block;
311+ // width: 1px;
312+ // top: 0;
313+ // height: 1.875rem;
314+ // right: -10px;
315+ // position: absolute;
316+ // background-color: ${borderColour};
317+ // }
318+ // }
319+ // `;
321320
322321const topPadding = css `
323322 padding- to p: ${ space [ 2 ] } px;
@@ -585,15 +584,13 @@ export const StorylineSection = ({
585584 treats,
586585 url,
587586 pagination,
588- hasPageSkin = false ,
589587 collectionBranding,
590588 isTagPage = false ,
591589 hasNavigationButtons = false ,
592590 isAboveDesktopAd = false ,
593591 isAboveMobileAd = false ,
594592} : Props ) => {
595593 const isToggleable = toggleable && ! ! sectionId ;
596- const showVerticalRule = ! hasPageSkin ;
597594 const isBetaContainer = ! ! containerLevel ;
598595
599596 // These are for beta containers only
@@ -618,12 +615,9 @@ export const StorylineSection = ({
618615 css = { [
619616 fallbackStyles ,
620617 containerStylesUntilLeftCol ,
621- ! hasPageSkin && containerStylesFromLeftCol ,
622- ! hasPageSkin &&
623- hasNavigationButtons &&
618+ containerStylesFromLeftCol ,
619+ hasNavigationButtons &&
624620 containerScrollableStylesFromLeftCol ,
625-
626- hasPageSkin && pageSkinContainer ,
627621 ] }
628622 >
629623 { isBetaContainer && showTopBorder && (
@@ -660,11 +654,11 @@ export const StorylineSection = ({
660654 // only ever having <CPScott> as the leftContent
661655 title ?. toLowerCase ( ) === 'opinion' ,
662656 ) ,
663- showVerticalRule &&
664- ! isBetaContainer &&
665- sectionHeadlineFromLeftCol (
666- schemePalette ( '--section-border' ) ,
667- ) ,
657+ // showVerticalRule &&
658+ // !isBetaContainer &&
659+ // sectionHeadlineFromLeftCol(
660+ // schemePalette('--section-border'),
661+ // ),
668662 ] }
669663 >
670664 < FrontSectionTitle
@@ -716,9 +710,8 @@ export const StorylineSection = ({
716710 sectionContentHorizontalMargins ,
717711 sectionContentRow ( toggleable ) ,
718712 topPadding ,
719- showVerticalRule &&
720- isBetaContainer &&
721- sectionContentBorderFromLeftCol ,
713+ // showVerticalRule &&
714+ isBetaContainer && sectionContentBorderFromLeftCol ,
722715 ] }
723716 id = { `container-${ sectionId } ` }
724717 >
@@ -748,7 +741,7 @@ export const StorylineSection = ({
748741 ) }
749742 </ div >
750743
751- { treats && ! hasPageSkin && (
744+ { treats && (
752745 < div css = { [ sectionTreats ] } >
753746 < Treats
754747 treats = { treats }
0 commit comments