CSS Organization

The website styles are split into several CSS files.

How it works

The main entry point is:

assets/css/main.scss

This file imports all other CSS modules that can be found in “_sass”

@import "base";
@import "layout";
@import "banners";
@import "team";
@import "publications";
@import "projects";
@import "news";
@import "mobile";

When modifying the website, always check whether the style belongs to:


Global CSS Files

These files affect multiple pages across the website.

base.css

Contains global styling rules:

Modify this file for changes that should apply everywhere.


layout.css

Controls the global page layout:

Modify this file when changing the overall page structure.


banners.css

Controls the page banners displayed at the top of pages.

Currently used by:

Example:

<div class="team-banner">
  <h2>ICPS TEAM</h2>
</div>

Modify this file to change:

Changes affect all page banners.


mobile.css

Contains responsive rules for screens smaller than 900px.

This file adapts:

Always check this file when a modification looks correct on desktop but not on mobile.


Page-Specific CSS Files

These files only affect a particular page or feature.


team.css

Used by the Team page.

Main components:

Modify this file when changing:


publications.css

Used by the Publications page.

Main components:

Modify this file when changing:


news.css

Used by the News page.

Main components:

Modify this file when changing:


projects.css

Used by the Projects page.

Main components:

Modify this file when changing the appearance of projects.


Important

Before modifying CSS:

  1. Identify which page is affected.
  2. Check whether the style belongs to a global file or a page-specific file.
  3. If the change should affect multiple pages, modify a global CSS file.
  4. If the change only concerns one page, modify the corresponding page CSS file.
  5. After any CSS modification, always verify both desktop and mobile display.