mirror of
https://github.com/danog/sass-site.git
synced 2024-12-15 02:47:36 +01:00
df16f5fe42
…to match the others in the type set. :)
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
// TODO: Grab font-size from the value for "regular" in the data yml file.
|
|
$base-font-size: 16px;
|
|
$base-line-height: $base-font-size * 1.5;
|
|
|
|
$default-rhythm-border-style: solid;
|
|
|
|
$relative-font-sizing: true;
|
|
$round-to-nearest-half-line: true;
|
|
|
|
$min-line-padding: 2px;
|
|
|
|
$font-unit: 1em;
|
|
|
|
<% data.typography.weights.each do |font_weight| %>
|
|
$font-weight-<%= font_weight.weight %>: <%= font_weight.value %>;
|
|
<% end %>
|
|
|
|
<% data.typography.sizes.each do |size| %>
|
|
$font-size-<%= size.name %>: <%= size.value %>px;
|
|
|
|
@mixin font-size-<%= size.name %> {
|
|
font-size: $font-size-<%= size.name %>;
|
|
@include adjust-font-size-to($font-size-<%= size.name %>);
|
|
}
|
|
<% end %>
|
|
|
|
$sans-serif: "source-sans-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
$serif: "source-serif-pro", Georgia, "Times New Roman", Times, serif;
|
|
$monospace: "source-code-pro", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
|
|
|
|
<% data.typography.families.each do |font_family| %>
|
|
$font-family-<%= font_family.style %>: $<%= font_family.value %>;
|
|
<% end %>
|
|
|
|
$indent: 2em;
|