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

h1 elements are not styled #32

Closed
maciejmatczak opened this issue Feb 6, 2020 · 7 comments · Fixed by #34
Closed

h1 elements are not styled #32

maciejmatczak opened this issue Feb 6, 2020 · 7 comments · Fixed by #34
Assignees
Labels
bug Something isn't working

Comments

@maciejmatczak
Copy link

Hello,
Just came across an issue, as in title. In style.scss there is no style statement for h1, hence it looks almost like a normal text.

Code on left, browser on the right, it's a part from an article:
image

@ivanhercaz ivanhercaz added the bug Something isn't working label Feb 6, 2020
@ivanhercaz
Copy link
Owner

Hi @maciejmatczak! Thank you very much for this report. It is very useful, not just to add the h1 style, but for another headings styles such as h5 and h6. Today I am going to work on this and I will release a new version before the end of the day.

My idea is to use the Bulma element title with the size especification (is-*). As you can see in the screenshot below, h4, h5 and h6 have a strange style so I need to specify some details as margin-top and not margin-bottom.
entry_about_a_cat_buruma_documentation

I am open to any idea!

@ivanhercaz ivanhercaz self-assigned this Feb 6, 2020
@maciejmatczak
Copy link
Author

Hi @ivanhercaz, thanks for reply.

It looks like those are not supposed to be nested at all :D. Maybe ignore it and just use is-size-1? If you would still like to use it, maybe some html attribute conditionals:

p + .title.is-1 {
  margin-top: 2rem;
}

@ivanhercaz
Copy link
Owner

The idea is to related each heading with each is-size. Currently there is already a SCSS block that works fine with h2 and h3.

h2 {
@extend .subtitle, .is-3;
margin-bottom: 1.5rem;
margin-top: 1.5rem;
}
h3 {
@extend .subtitle, .is-4;
margin-bottom: 0.5rem;
margin-top: 1.5rem;
}

My idea is to apply same margin-top for every heading and then reduce the margin-bottom progressively. I think h1, h2 and h3 are fine, although I need to change the last two to is-2 and is-3 respectively. But I think h4, h5 and h6 should have a minimum margin-bottom and a reduced margin-top to 1rem (I have to test it yet).

What do you think @maciejmatczak?

@ivanhercaz
Copy link
Owner

@maciejmatczak, one question, what version of Buruma are you using? v. 0.1.0 (via pelican-themes) or 0.2.1 (via the master branch of this repository)?

@ivanhercaz
Copy link
Owner

Another question: title class makes headings stronger that I usually use it, this is why I extend h2 and h3 with subtitle instead of title. I am going to perform this changes according to this, but I really want to read your opinion about it.

ivanhercaz added a commit that referenced this issue Feb 6, 2020
This commit is related with #32 and it extends the heading tags inside message-body with .subtitle and .is-* Bulma classes.
@ivanhercaz ivanhercaz mentioned this issue Feb 6, 2020
@maciejmatczak
Copy link
Author

Hmmm, 0.2.1 as far as I remember.

Checkout the fiddle. Raw bulma, headers with subtitle is-* vs is-size-* (these are separate classes https://bulma.io/documentation/modifiers/typography-helpers/), accordingly:
https://jsfiddle.net/0jvo135g/2/

After you applying margin-top, is it any difference?

ivanhercaz added a commit that referenced this issue Feb 6, 2020
This change extends the heading tags, from h1 to h6, with the Bulma classes .subtitle and .is-* in order to fix the bug reported in #32. In addition it changes the margin to be lower at the bottom when the headings are in the .message-body.
@ivanhercaz
Copy link
Owner

ivanhercaz commented Feb 6, 2020

Ups, excuse me I didn't read it until I already made a PR with a proposal. Yes, I know they are separate classes. The difference between subtitle is-* and is-size-* is a very little change in the margin-top.

The reason why I I decide to use subtitle and is-* is because I adapt it with more margin-top and with less margin-bottom, changing this values just in .subtitle class, in that way it isn't necessary to change in each tag, just extend them. I think it is a cleaner way.

Could you check the PR I opened (#34) for this? Thank you a lot for your participation. I am really happy that Buruma has your attention ❤️

ivanhercaz added a commit that referenced this issue Feb 6, 2020
This change adapts the fixes made for the bug reported in #32.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants