This repository has been archived by the owner on Apr 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 595
Adjustable Custom Layout Font SIzes #9
Open
owengalenjones
wants to merge
16
commits into
joshuaclayton:master
Choose a base branch
from
owengalenjones:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If compressor.rb sees custom layout and the css_source_file is typography.css it runs: custom_layout.generate_typography_css Modified the compressor output
define font_size to return as a float or Blueprint default (12) defined generate_typography_css using the same syntax as generate_grid_css
Only change is to set the (font_size / 16) * 100 12 / 16 * 100 = 75
…cally computed from passing in font_size or from the Blueprint default (12) Baseline is font size * 1.5
Deleting debug.zip Merging updates from Eric Meyer's latest reset.css Adding explicit font color to input & textarea Added constant FONT_SIZE defaults to blueprint standard of 12 Added symbol :font_size If compressor.rb sees custom layout and the css_source_file is typography.css it runs: custom_layout.generate_typography_css Modified the compressor output Added attr_writer :font_size define font_size to return as a float or Blueprint default (12) defined generate_typography_css using the same syntax as generate_grid_css Initial commit, erb file of typography Only change is to set the (font_size / 16) * 100 12 / 16 * 100 = 75 Adjusts height based on either passing in a baseline_height, automatically computed from passing in font_size or from the Blueprint default (12) Baseline is font size * 1.5 Baseline will always be 1.5 * font_size Added setting font_size example adjusted hr margin based on baseline (1.5 * font_size) - 1 (hr height) hr margins are to_i
…/blueprint-css Conflicts: lib/blueprint/blueprint.rb lib/blueprint/compressor.rb lib/blueprint/custom_layout.rb lib/blueprint/grid_builder.rb lib/blueprint/typography.css.erb
Josh mentioned that the custom font_size can break some form elements. Looking into fixing it now. I just checked the default form.css in the test pages and they already appear broken to me. |
…ght (1.2em, strong) the bottom margin on <h4> appears to be 6px above the baseline while the <legend> is 4px below it. [Image taken on Chrome at maximum zoom] The one thing that <legend> appeared to be missing was a line-height, so I added <h4>'s line-height of 1.25em. This appears to me to be centered from 12px font-size all the way up to 100px font-size.
… in Chrome's element inspector.
Boy I would love to see this get pulled in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
One thing that's bothered me for a long time about Blueprint was the tiny default font-size (12!) which I would always manually increase. This allows font-size to be set in the settings.yml file which then propagates to typography.css AND adjusts the baseline height used to create the grid.png (baseline_height = font_size * 1.5)
This can be easily set in settings.yml by
custom_layout:
font_size: 16
Thanks