Jump to content

CSS code doesn't apply to new pages

Recommended Posts

Site URL: https://sf.su.se

We have created new pages for our website, but for some reason, the CSS hasn't been applied to the new pages.

If you look at https://www.sf.su.se/valkommen and compare it to the new page https://www.sf.su.se/insparken you can see that the header padding has changed and the menu items are invisible. 

If we copy an old page, instead of creating a new page, we don't have this problem. We would like to be able to create new pages rather than having to copy old pages, so I'm thinking something is missing in the CSS.

We are using the following CSS:

/* PAGE FONTS */
@font-face {font-family: 'TwCenRegular';src: url('https://static1.squarespace.com/static/5b3c9957c258b4498dad44d1/t/602fc9b5d047734047ed8add/1613744566367/TCM_____.TTF');}
@font-face {font-family: 'TwCenItalic';src: url('https://static1.squarespace.com/static/5b3c9957c258b4498dad44d1/t/602fca2952d5983c5426e17b/1613744682023/TCMI____.TTF');}
@font-face {font-family: 'TwCenBold';src: url('https://static1.squarespace.com/static/5b3c9957c258b4498dad44d1/t/602fca4897cbab7fdd64831d/1613744712142/TwCenMTStd-Bold.otf');}
@font-face {font-family: 'Helvetica';src: url('https://static1.squarespace.com/static/5b3c9957c258b4498dad44d1/t/61d4fb9e1430494a8d77f4eb/1641347998738/Helvetica.ttf');}

 /* Title fonts */
h1 {font-family: 'TwCenRegular';}
h2 {font-family: 'TwCenRegular';}
h3 {font-family: 'TwCenRegular';}
h4 {font-family: 'TwCenRegular';}
h5 {font-family: 'TwCenRegular';}
body {font-family: 'Helvetica';}

 

/* PAGE HEADER */ 
/* Fonts */
.Header-nav--primary .Header-nav-item {font-family: 'TwCenRegular';}

.Header-nav--secondary .Header-nav-item {font-family: 'TwCenRegular';}

.Header-nav--primary .Header-nav-item {color: white !important}

.Header-nav--secondary .Header-nav-item {color: white !important}

/* Background color */
.Header {
background: #030c29;
}

 /* Mobile fonts*/
.Mobile-overlay-nav--primary .Mobile-overlay-nav-item {font-family: 'TwCenRegular';}

.Mobile-overlay-nav--primary .Mobile-overlay-nav-item {font-family:'TwCenRegular'!important;}

footer.sections h3 {font-family: 'TwCenRegular';}

/* PAGE FOOTER */
 /* Footer font */
footer.sections h3 {font-family: 'TwCenRegular';}

 /* Footer background color */
.Footer {
background: #030c29;
}

/* BLOG POSTS */
/* blog post header*/
.Header {background: #030c29;}
body.collection-type-blog.view-item .Header-nav-item {color: white;}
body.collection-type-blog.view-item .Header-nav-item {color: white;}
body.collection-type-blog.view-item .Header-nav-folder {background-color: #030c29 !important;}

/* SUMMARY BLOCKS */
 /* Summary block titles */
.sqs-block-summary-v2 {
.summary-title,
.summary-heading {
font-family: 'TwCenRegular';
font-weight: 500;
font-size: 20px !important;
color: #030c29;
text-transform: uppercase;
font-style: ; 
} }

/* Summary block exerpts */
.sqs-block-summary-v2 {
.summary-excerpt p {
font-family: 'Helvetica';
font-weight: 400;
font-size: 10px !important;
color: black;
text-transform: ;
font-style: ; 
} }

 /* Summary block read more link */
.sqs-block-summary-v2 {
.summary-read-more-link {
font-family: 'Helvetica';
font-weight: 400;
font-size: 10px !important;
color: black;
text-transform: ;
font-style: ; 
} } 

/* Summary block dates */
.sqs-block-summary-v2 {
.summary-metadata-item--date {
font-family: 'TwCenRegular';
font-weight: 400;
font-size: 10px !important;
color: #030c29;
text-transform: ;
font-style: ; 
} } 

/* Summary block tags */
.sqs-block-summary-v2 {
.summary-metadata-item--tags {
font-family: 'TwCenRegular';
font-weight: 400;
font-size: 10px !important;
color: #030c29;
text-transform: ;
font-style: ; 
} }


 /* BILDTEXT */
.image-title-wrapper * {
 font-family: 'TwCenRegular' !important;
  color: #030c29 !important;
}

Link to comment
  • Replies 0
  • Views 305
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.