Clean up the "print.css" code in Bartik

Created on 30 July 2015, over 10 years ago
Updated 18 September 2025, about 2 months ago

Follow-up to #1342054: [META] Clean up templates and CSS

Problem/Motivation

  1. Bartik's template files need to be assessed and cleaned up of redundant markup, bad formatting and ID's.
  2. Bartik's CSS files need to follow Drupal's CSS Coding Standards .

Proposed resolution

For this issue we take "print.css" within Bartik in css/print.css plus any template file associated with the CSS and clean them up.

CSS formatting tasks to do

  1. The CSS file needs to use the correct Comment formats - see guidelines here and also reference other fixed Bartik CSS files for wording guidelines.

CSS architecture tasks to do

  1. Replace any ID's with classes within the CSS files and Twig files associated with it - see guidelines here .

CSS cleanup tasks to do

  1. Check all of the selector rules are correct and are currently in use. Fix any broken ones found.

Remaining tasks

  • (Done) Write a patch containing as much of the above as possible.
  • (Done) Post a patch with screenshots.
  • Visual review of a patch - check the print view of Bartik visually with and without patch applied. Take screenshots.
  • Code review of a patch - check the code follows coding standards, suggest improvements if needed in a comment.
  • Produce a new patch with improvements if needed.

User interface changes

Screen layout for reference: screen.png

Print layout A4 paper: Before / After

Print layout A3 paper: Before / After

API changes

None

Data model changes

None

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom emma.maria

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024