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

Disabling Icons and/or thumbs globally is broken #2077

Closed
fgrcon opened this issue Jun 16, 2017 · 5 comments
Closed

Disabling Icons and/or thumbs globally is broken #2077

fgrcon opened this issue Jun 16, 2017 · 5 comments
Assignees

Comments

@fgrcon
Copy link
Member

fgrcon commented Jun 16, 2017

In Site control panel:

global-settings-thumbs-icons.

If visibility globally is set to never or no for anonymous users. css class icons-off or thumbs-off are generated in the body tag (plone.app.layout). Dependant on this further classes for thumbs are used to suppress those preview images.

//supress thumbs when globally turned off
.thumbs-off  img[class*='image-scalename'] {
  display: none;
}

Unfortunately these classes are named image-scalename instead of thumb-scalename. the existing names are confusing and conflict with other class names ( e.g. image-left etc. used for tinymce ...)

@fgrcon fgrcon self-assigned this Jun 16, 2017
fgrcon added a commit to plone/plone.app.contenttypes that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/mockup that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/plone.app.layout that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/plone.app.content that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/mockup that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/plone.app.event that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/plone.app.portlets that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/plone.app.portlets that referenced this issue Jun 16, 2017
fgrcon added a commit to plone/plone.portlet.collection that referenced this issue Jun 16, 2017
fgrcon added a commit that referenced this issue Jun 16, 2017
fgrcon added a commit that referenced this issue Jun 17, 2017
fgrcon added a commit that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/plone.app.contenttypes that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/mockup that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/plone.app.layout that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/plone.app.content that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/plone.app.portlets that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/plone.portlet.collection that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/plone.portlet.collection that referenced this issue Jun 17, 2017
fgrcon added a commit to plone/plone.app.event that referenced this issue Jun 17, 2017
@thet
Copy link
Member

thet commented Jun 17, 2017

If this is merged it's better done soon because this PR touches again many repositories.

Although I hesitate to merge it.

Those image- classes are in place since more than a year now and the selectors might already be used.
AFAIK, by the image- classes were added via these and other commits - plone/plone.app.contenttypes@3cfc044

I agree that thumb- would be more appropriate but having more generic class names has also a benefit - one must just define one CSS class name and use it for any image type.

I know, that's now coming from me who was so picky about the distinction between "thumb scale" and "thumb size"....

I need some more opinions here - @jensens @gforcada

@thet
Copy link
Member

thet commented Jun 17, 2017

@fgrcon ah, this is actually about fixing a bug.

Please point me to where the .thumb-off CSS is statement.

Regarding the css statement above I think it should read:

//supress thumbs when globally turned off
.thumbs-off  img[class^='thumb-'] {
  display: none;
}

instead of image-scalename just thumb- (provided the renaming is merged) plus using ^= should be more performant than *= as it only searches the beginning of an string.

@thet
Copy link
Member

thet commented Jun 17, 2017

I think I understand the issue better via this comment: plone/mockup#774 (comment)

Well, I think the PR is fine and I approve it.

thet added a commit to plone/plone.app.event that referenced this issue Jun 17, 2017
thet added a commit to plone/plone.portlet.collection that referenced this issue Jun 17, 2017
thet added a commit to plone/plone.app.content that referenced this issue Jun 17, 2017
thet added a commit to plone/plone.app.layout that referenced this issue Jun 17, 2017
thet added a commit to plone/mockup that referenced this issue Jun 17, 2017
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2017
Branch: refs/heads/master
Date: 2017-06-17T12:17:02+02:00
Author: Franz Gerhard Reinisch (fgrcon) <franz@fgrcon.net>
Commit: plone/plone.app.event@63ab986

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M plone/app/event/portlets/portlet_events.pt
Repository: plone.app.event
Branch: refs/heads/master
Date: 2017-06-17T23:39:36+02:00
Author: Johannes Raggam (thet) <thetetet@gmail.com>
Commit: plone/plone.app.event@bb43233

Merge pull request #259 from plone/fgrcon-fix-2077

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M plone/app/event/portlets/portlet_events.pt
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2017
Branch: refs/heads/master
Date: 2017-06-17T11:59:36+02:00
Author: Franz Gerhard Reinisch (fgrcon) <franz@fgrcon.net>
Commit: plone/plone.app.portlets@d4458b0

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M plone/app/portlets/portlets/navigation_recurse.pt
M plone/app/portlets/portlets/news.pt
M plone/app/portlets/portlets/recent.pt
M plone/app/portlets/portlets/review.pt
Repository: plone.app.portlets
Branch: refs/heads/master
Date: 2017-06-17T23:39:42+02:00
Author: Johannes Raggam (thet) <thetetet@gmail.com>
Commit: plone/plone.app.portlets@9bdd2b2

Merge pull request #101 from plone/fgrcon-fix-2077

Fgrcon fix 2077

Files changed:
M CHANGES.rst
M plone/app/portlets/portlets/navigation_recurse.pt
M plone/app/portlets/portlets/news.pt
M plone/app/portlets/portlets/recent.pt
M plone/app/portlets/portlets/review.pt
thet added a commit to plone/plone.app.contenttypes that referenced this issue Jun 17, 2017
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2017
Branch: refs/heads/master
Date: 2017-06-17T11:26:04+02:00
Author: Franz Gerhard Reinisch (fgrcon) <franz@fgrcon.net>
Commit: plone/mockup@1922b8c

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M mockup/patterns/structure/templates/tablerow.xml
M mockup/tests/pattern-structure-test.js
Repository: mockup
Branch: refs/heads/master
Date: 2017-06-17T23:39:50+02:00
Author: Johannes Raggam (thet) <thetetet@gmail.com>
Commit: plone/mockup@3c14abc

Merge pull request #779 from plone/fgrcon-fix-2077

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M mockup/patterns/structure/templates/tablerow.xml
M mockup/tests/pattern-structure-test.js
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2017
Branch: refs/heads/master
Date: 2017-06-17T11:35:45+02:00
Author: Franz Gerhard Reinisch (fgrcon) <franz@fgrcon.net>
Commit: plone/plone.app.layout@80274e7

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M plone/app/layout/viewlets/document_relateditems.pt
Repository: plone.app.layout
Branch: refs/heads/master
Date: 2017-06-17T23:39:47+02:00
Author: Johannes Raggam (thet) <thetetet@gmail.com>
Commit: plone/plone.app.layout@6acbcaa

Merge pull request #125 from plone/fgrcon-fix-2077

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M plone/app/layout/viewlets/document_relateditems.pt
@thet
Copy link
Member

thet commented Jun 17, 2017

All merged. Closing this issue.

@thet thet closed this as completed Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants