Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #1342054: [META] Clean up templates and CSS
Problem/Motivation
- Bartik's template files need to be assessed and cleaned up of redundant markup, bad formatting and ID's.
- Bartik's CSS files need to follow Drupal's CSS Coding Standards.
Proposed resolution
For this issue we take "tabs.css" within Bartik in css/components/tabs.css plus any template file associated with the CSS and clean them up.
CSS formatting tasks to do
- The CSS file needs to have the correct File comment at the top of the page - see guidelines here and also reference other fixed Bartik CSS files for wording guidelines.
CSS architecture tasks to do
- Replace references of HTML elements, for eg H2 with useful classes - see guidelines here.
- Try and replace the combined elements and class rules. For eg. replace "div.tabs" with just ".tabs".
CSS cleanup tasks to do
- Remove any CSS that repeats styles from elsewhere in Bartik and therefore not needed in this file.
- Check all of the selector rules are correct and are currently in use on the frontend of Bartik.
Remaining tasks
- Write a patch containing as much as the above as possible.
- Post a patch with screenshots.
- Visual review of a patch - check tabs 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
None
API changes
None
Data model changes
None
Beta phase evaluation
Issue category | Task because it is refactoring CSS and templates in Bartik |
---|---|
Issue priority | Not critical because Bartik functions fine we are just doing cleanup tasks |
Unfrozen changes | Unfrozen because it only changes CSS and markup |
Prioritized changes | The main goal of this issue is usability of the Bartik's codebase |
Disruption | non-Disruptive as it is just changing markup and CSS |
Comment | File | Size | Author |
---|---|---|---|
#6 | clean_up_the_tabs-2542582-6.patch | 426 bytes | Manjit.Singh |
#5 | Screen Shot 2015-08-01 at 18.40.23.png | 81.8 KB | emma.maria |
#1 | clean_up_the_tabs-2542582-1.patch | 777 bytes | pmcclory |
Comments
Comment #1
pmcclory CreditAttribution: pmcclory at Curve Agency commentedMy first patch ever, not just core :)
Completed the 'CSS formatting task' item 1.
Comment #2
emma.mariaComment #3
Manjit.Singh@emma.maria As there is no [RTL] css for
tabs ul.primary li a
So Is there any need to write/* not LTR */
inline comment (line no. 66).Comment #4
emma.maria@Manjit.Singh we do not have this method in the Drupal standards so we can't introduce */ not LTR /*. I will take a look at the code as I review it to check what is going on with
tabs ul.primary li a
.Comment #5
emma.mariaThese styles are for the tabs on pages. Like the View, Edit tabs. See screenshot.
Can this comment be re-worded to "Styles for tabs in Bartik." please.
I am going to go through and check if any CSS styles can be removed also.
Comment #6
Manjit.Singh@emma.maria File comment updated :) Also please do the needful for #3
Comment #7
drupal a11y CreditAttribution: drupal a11y as a volunteer commentedIs this an error in the css file or is "1.9" really wanted?
Comment #8
emma.mariaBartik's markup is getting a major overhaul in this issue #1999182: Dream mark up for tabs so we should not duplicate that work in this issue.
Tabs are also becoming a block within this issue #507488: Convert page elements (local tasks, actions) into blocks.
Therefore we should stick to just adding the file comment for now and also postponing this issue until the above two are committed.
Comment #9
Manjit.SinghRe: #7 @mori we can also set the line-height without em :) so this is not an issue.
Comment #10
mgifford#507488: Convert page elements (local tasks, actions) into blocks is in now.
Comment #12
emma.mariaThis issue that cleans up the markup in Bartik is still open #1999182: Dream mark up for tabs. We need to also wait for this to be committed as per the instructions in #8. If you want to clean up the markup please go to that issue :) ^^
Comment #13
emma.mariaStill waiting on #1999182: Dream mark up for tabs to be committed, please go there and help.
Comment #28
Feuerwagen