Skip to content

Commit

Permalink
Typography styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hanju-jo committed Oct 6, 2017
1 parent fd131af commit 576b438
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 42 deletions.
6 changes: 3 additions & 3 deletions _sass/_highlights.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
pre, code {
font-family: $code-font;
font-size: 85%;
font-size: 95%;
}

code.highlighter-rouge {
color: $oc-indigo-9;
background-color: $oc-gray-1;
padding: .25em .5em;
padding: .1em .2em;
border-radius: 3px;
}

pre.highlight {
padding: .45em .45em .45em .625em;
border: 1px solid $oc-gray-3;
border-radius: 3px;
margin: 1.25em 0;
margin: 1em 0;
overflow: scroll;
}

Expand Down
2 changes: 1 addition & 1 deletion _sass/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ footer, header, hgroup, menu, nav, section {
body {
line-height: 1;
}
ol, ul {
ol, ul, dl {
list-style: none;
}
blockquote, q {
Expand Down
48 changes: 48 additions & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,56 @@ $helvetica: Helvetica, Arial, sans-serif;
$helveticaNeue: "Helvetica Neue", Helvetica, Arial, sans-serif;
$georgia: Georgia, serif;

// Fonts
$base-font: 'Spoqa Han Sans', 'Source Sans Pro', 'Apple SD Gothic Neo', 'Nanum Barun Gothic', 'Nanum Gothic', 'Verdana', 'Arial', 'Dotum', sans-serif;
$code-font: 'Menlo', 'Courier New', 'Monaco', 'Spoqa Han Sans', monospace;

// Font sizes
$base-font-size: 18px;
$small-font-size: 14px;

// Colors
$base-color: $oc-gray-8;
$base-lighten-color: $oc-gray-6;

$text-color: $base-color;
$link-color: $oc-blue-8;
$divider-color: $oc-gray-1;

$table-border-color: $oc-gray-2;
$table-background-color: $oc-gray-1;

$blockquote-color: $base-lighten-color;
$blockquote-border-color: $oc-gray-3;

$footnote-link-border-color: $oc-gray-1;
$footnote-link-background-over-color: $oc-gray-1;

$selection-color: $oc-black;
$selection-background-color: $oc-gray-1;


// List
$li-bottom-space: 0.4em;
$li-bullets-width: 1.7em;
$li-line-height: 1.55;

$ul-bullets-font: inherit;
$ul-bullets-font-size: 1.4em;
$ul-bullets-font-line-height: 1.2;
$ul-bullets-right-space: .5em;

$ol-bullets-font: inherit;
$ol-bullets-font-size: 1em;
$ol-bullets-font-line-height: inherit;
$ol-bullets-right-space: .5em;

$li-child-size-ratio: 0.95;

$dt-width: 180px;
$dt-dd-space: 20px;
$dd-position: $dt-width+$dt-dd-space;

// Mobile breakpoints
@mixin mobile {
@media screen and (max-width: 640px) {
Expand Down
Loading

0 comments on commit 576b438

Please sign in to comment.