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

Fixed heading sizes #121

Closed
pjdufour opened this issue Sep 23, 2016 · 1 comment
Closed

Fixed heading sizes #121

pjdufour opened this issue Sep 23, 2016 · 1 comment
Labels
Milestone

Comments

@pjdufour
Copy link

For web applications with large "viewports", such as web maps with sidebars, it would be useful to keep headers, such as h6 fixed at the smaller size instead of activating the media query below.

Could you add an optional selector like .fixed or something to bypass these media queries (to the h elements directly or at body?

@media screen and (min-width: 48em) h6 {
  font-size: 1.5rem;
}

h6 {
    ...
    font-size: 18px;
    font-size: 1.125rem;
    ...
}
@pjdufour pjdufour changed the title Fix Header Sizes Fixed Header Sizes Sep 23, 2016
@matthewmorek matthewmorek added this to the Next Tasks milestone Sep 26, 2016
@matthewmorek
Copy link
Contributor

matthewmorek commented Oct 17, 2016

@pjdufour We're planning to introduce variable type scale that will work across different media queries automatically, and thus we'll remove individual media queries from headings altogether.

We have also added (although not documented yet) helper classes in v0.13.0, that you can apply to individual elements to override their default behaviour. For example, you can add fs6-lg to h6, and this should override its default font size on lg viewport and use 0.875rem value.

If you're curious on what these helper classes are, check them out here:

@matthewmorek matthewmorek changed the title Fixed Header Sizes Fixed heading sizes Oct 24, 2016
@matthewmorek matthewmorek modified the milestones: Next Tasks, v1.0.0-rc Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants