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

Add System Font Stack in Github Theme #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 27 additions & 57 deletions themes/github.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,21 @@
--control-text-color: #777;
}

@include-when-export url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);

@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: normal;
src: local('Open Sans Regular'),url('./github/400.woff') format('woff')
}

@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: normal;
src: local('Open Sans Italic'),url('./github/400i.woff') format('woff')
}

@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: bold;
src: local('Open Sans Bold'),url('./github/700.woff') format('woff')
}

@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: bold;
src: local('Open Sans Bold Italic'),url('./github/700i.woff') format('woff')
}

html {
font-size: 16px;
}

body {
font-family: "Open Sans","Clear Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: rgb(51, 51, 51);
line-height: 1.6;
}

#write{
max-width: 860px;
margin: 0 auto;
padding: 20px 30px 40px 30px;
padding-top: 20px;
margin: 0 auto;
padding: 20px 30px 40px 30px;
padding-top: 20px;
padding-bottom: 100px;
}
#write > ul:first-child,
Expand All @@ -73,7 +43,7 @@ h6 {
position: relative;
margin-top: 1rem;
margin-bottom: 1rem;
font-weight: bold;
font-weight: 600;
line-height: 1.4;
cursor: text;
}
Expand Down Expand Up @@ -118,23 +88,23 @@ h1 {
}
h2 {
padding-bottom: .3em;
font-size: 1.75em;
font-size: 1.5em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
h3 {
font-size: 1.5em;
font-size: 1.25em;
line-height: 1.43;
}
h4 {
font-size: 1.25em;
font-size: 1em;
}
h5 {
font-size: 1em;
font-size: .875em;
}
h6 {
font-size: 1em;
color: #777;
font-size: .85em;
color: #6a737d;
}
p,
blockquote,
Expand Down Expand Up @@ -276,11 +246,11 @@ tt {
padding-bottom: 6px;
}
.task-list{
padding-left: 0;
padding-left: 0;
}

.task-list-item {
padding-left:32px;
padding-left:32px;
}

.task-list-item input {
Expand Down Expand Up @@ -308,10 +278,10 @@ tt {
}

.md-fences {
background-color: #f8f8f8;
background-color: #f8f8f8;
}
#write pre.md-meta-block {
padding: 1rem;
padding: 1rem;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
Expand All @@ -322,24 +292,24 @@ tt {
}

.mathjax-block>.code-tooltip {
bottom: .375rem;
bottom: .375rem;
}

#write>h3.md-focus:before{
left: -1.5625rem;
top: .375rem;
left: -1.5625rem;
top: .375rem;
}
#write>h4.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
left: -1.5625rem;
top: .285714286rem;
}
#write>h5.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
left: -1.5625rem;
top: .285714286rem;
}
#write>h6.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
left: -1.5625rem;
top: .285714286rem;
}
.md-image>.md-meta {
border: 1px solid #ddd;
Expand All @@ -351,10 +321,10 @@ tt {
}

.md-tag{
color: inherit;
color: inherit;
}

.md-toc {
.md-toc {
margin-top:20px;
padding-bottom:20px;
}
Expand Down Expand Up @@ -385,7 +355,7 @@ tt {
}

header, .context-menu, .megamenu-content, footer{
font-family: "Segoe UI", "Arial", sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.file-node-content:hover .file-node-icon,
Expand Down