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

Icons for Qubely's blocks appear very large #52

Open
3 tasks
bobbingwide opened this issue Jan 13, 2022 · 0 comments
Open
3 tasks

Icons for Qubely's blocks appear very large #52

bobbingwide opened this issue Jan 13, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Jan 13, 2022

When I tried to catalogue the blocks for the Qubely plugin I was dismayed to discover that the icons were enormous.
What do I need to do to get them to a manageable size?

Explanation

Qubely's icons are delivered as SVG images with no indication of size.
The size needs to be managed with CSS.
eg For the oik-block/blocklist the CSS could be

.wp-block-oik-block-blocklist dt img { width: 24px; height: auto; }

For the block icon it's

.wp-block-oik-block-blockicon img { width: 24px; }

For the block info block it's

.wp-block-oik-block-blockinfo img { width: 24px; }

Proposed solution

  • Add the required CSS to the style.scss and editor.scss for the blocks, where relevant.
  • Add support for each style: is-style-svg24, is-style-svg64, is-style-svg100, is-style-svg150
  • Consider using a multiple style sheet approach
@bobbingwide bobbingwide added bug Something isn't working enhancement New feature or request labels Jan 13, 2022
@bobbingwide bobbingwide self-assigned this Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant