Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Templates to Bootstrap Markup #2967

Closed
17 of 25 tasks
santonelli opened this issue Oct 26, 2019 · 7 comments
Closed
17 of 25 tasks

Change Templates to Bootstrap Markup #2967

santonelli opened this issue Oct 26, 2019 · 7 comments

Comments

@santonelli
Copy link
Contributor

santonelli commented Oct 26, 2019

PLIP (Plone Improvement Proposal)

Responsible Persons

Proposer: Stefan Antonelli

Seconder: Alessandro Pisa

Abstract

Use Bootstrap HTML markup in all templates used in Plone core and Plone's ecosystem (packages, widgets, etc.)

There will be another PLIP to add a all new theme for Plone 6 based on this work.

Motivation

Everybody who wants to build a theme based on Bootstrap for Plone has to deal with more or less useful HTML markup injected by packages, widgets, plugins, patterns, etc.

Assumptions

  • We keep Barceloneta for the moment
  • Changes should not break Barceloneta
  • Barceloneta can override incompatible markup

Proposal & Implementation

Affected Templates

Views with unknown template

  • plone_upgrade (Products.CMFPlone)
  • folder_contents (very complex structure pattern in plone.app.content)
  • edit (edit views via z3cform)
  • prefs_install_products_form (Add-ons controlpanel)
  • redirection-controlpanel
  • manage-viewlets
  • manage-portlets
  • sharing
  • personal-information (plone.app.users)
  • maintenance-controlpanel (done in controlpanel subissue Update markup of controlpanel templates to Bootstrap 5 #3079)

Development

Coredev buildout

git clone git@github.com:plone/buildout.coredev.git plone-6-coredev
cd plone-6-coredev
git checkout 6.0
python3.7 -m venv py
./py/bin/pip install -r requirements.txt
./py/bin/buildout -c plips/plip-2967-barceloneta-lts.cfg
./bin/instance fg

Identify an element that needs to be updated

  • Create a branch in the package where the template comes from
  • Update/Change markup to Bootstrap
  • Push your branch
  • Create a Pull Request

Compile CSS for local tests

Requirements
Compile
  • cd src/plonetheme.barceloneta
  • yarn install (instal dependencies)
  • yarn watch (watch for changes in sass files, type rs to restart compilation)
Hint
  • Do not add compiled CSS to your merge request (we do this on the main branch after merge)

Markup Update/Change hints

Deliverables

TBD

Risks

Plone's default theme Barceloneta may break at some point. Default classes should not hurt if there is no styling for it.

Participants

  • Stefan Antonelli
  • Peter Holzer
@ebrehault
Copy link
Member

This PLIP has been approved by the FWT

@pbauer
Copy link
Member

pbauer commented Oct 23, 2020

Radiobuttons are not yet styled correctly.

I used https://github.com/collective/example.contenttype to render all field types.

dx_fields

@agitator
Copy link
Member

@pbauer radios should be fixed now

@jensens
Copy link
Member

jensens commented Nov 2, 2020

Sharing template needs love as well.

@agitator agitator changed the title Change Templates to Bootstrap 4 Change Templates to Bootstrap Markup Nov 10, 2020
@agitator
Copy link
Member

Updated PLIP for Bootstrap 5

@MrTango
Copy link
Contributor

MrTango commented Mar 12, 2021

We should update the breadcrumbs a bit to be more compatible with W3C ideas: #3262
In general we should go over the recommendation here: https://css-tricks.com/how-to-section-your-html/

@agitator
Copy link
Member

agitator commented Mar 15, 2021

The plip config is no longer needed, all package branches were merged in to buildout.coredev 6 https://github.com/plone/buildout.coredev/tree/6.0/plips.
Continuation of improvements should happen in the actual package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Merged
Development

No branches or pull requests

6 participants