|
|
@@ -38,4 +38,59 @@ FONT FACE (IN YOUR FACE)
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
-*/
|
|
|
+*/
|
|
|
+
|
|
|
+
|
|
|
+/*
|
|
|
+The following is based of Typebase:
|
|
|
+https://github.com/devinhunt/typebase.css
|
|
|
+I've edited it a bit, but it's a nice starting point.
|
|
|
+*/
|
|
|
+
|
|
|
+
|
|
|
+// font stacks
|
|
|
+$sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
+$serif: "Georgia", Cambria, Times New Roman, Times, serif;
|
|
|
+
|
|
|
+/*
|
|
|
+ i imported this one in the functions file so bones would look sweet.
|
|
|
+ don't forget to remove it for your site.
|
|
|
+*/
|
|
|
+$lato: 'Lato', $sans-serif;
|
|
|
+
|
|
|
+// Typesetting variables
|
|
|
+$baseFontSize: 22; // in pixels. This would result in 22px on desktop
|
|
|
+$baseLineHeight: 1.5; // how large the line height is as a multiple of font size
|
|
|
+$leading: $baseLineHeight * 1rem;
|
|
|
+
|
|
|
+// Rate of growth for headings
|
|
|
+// I actually like this to be slightly smaller then the leading. Makes for tight headings.
|
|
|
+$scale: 1.414;
|
|
|
+
|
|
|
+/*
|
|
|
+some nice typographical defaults
|
|
|
+more here: http://www.newnet-soft.com/blog/csstypography
|
|
|
+*/
|
|
|
+p {
|
|
|
+ line-height: $leading;
|
|
|
+ margin-top: $leading 0 0;
|
|
|
+ -ms-word-break: break-all;
|
|
|
+ -ms-word-wrap: break-all;
|
|
|
+ word-break: break-word;
|
|
|
+ word-break: break-word;
|
|
|
+ // cleaning up the ragged lines and breaks
|
|
|
+ -webkit-hyphens: auto;
|
|
|
+ -moz-hyphens: auto;
|
|
|
+ hyphens: auto;
|
|
|
+ // sets a minimum number of characters before and after the break
|
|
|
+ -webkit-hyphenate-before: 2;
|
|
|
+ -webkit-hyphenate-after: 3;
|
|
|
+ hyphenate-lines: 3;
|
|
|
+ // enabling fancy ligatures when available
|
|
|
+ -webkit-font-feature-settings: "liga", "dlig";
|
|
|
+ -moz-font-feature-settings: "liga=1, dlig=1";
|
|
|
+ -ms-font-feature-settings: "liga", "dlig";
|
|
|
+ -o-font-feature-settings: "liga", "dlig";
|
|
|
+ font-feature-settings: "liga", "dlig";
|
|
|
+}
|
|
|
+
|