Skip to content

Commit f3bdb9e

Browse files
committed
Inline CSS.
This will remove an extra request for the stylesheet (which is slow, according to Google Page Speed Insights).
1 parent 8083661 commit f3bdb9e

File tree

3 files changed

+51
-73
lines changed

3 files changed

+51
-73
lines changed

docs/layouts/partials/header.html

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,64 @@
5151
<meta property="fb:app_id" content="422535981632483" />
5252

5353
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
54-
<link rel="stylesheet" type="text/css" href="css/style.css" />
54+
<style type="text/css">
55+
/* derived from https://github.com/fsprojects/SQLProvider/blob/gh-pages/content/style.css */
56+
57+
@import url(https://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono|Open+Sans:400,600,700);
58+
59+
pre {
60+
word-wrap: inherit;
61+
}
62+
63+
.masthead ul, .masthead li {
64+
margin-bottom:0px;
65+
}
66+
.masthead .nav li {
67+
margin-top: 15px;
68+
font-size:110%;
69+
}
70+
.masthead h3 {
71+
margin-bottom:5px;
72+
font-size:170%;
73+
}
74+
75+
/* Make table headings and td.title bold */
76+
td.title, thead {
77+
font-weight:bold;
78+
}
79+
80+
/* Format the right-side menu */
81+
#menu {
82+
margin-top:50px;
83+
font-size:11pt;
84+
padding-left:20px;
85+
}
86+
87+
#menu li {
88+
line-height:25px;
89+
}
90+
91+
/* Change font sizes for headings etc. */
92+
#main h1 { font-size: 26pt; margin:10px 0px 15px 0px; font-weight:400; }
93+
#main h2 { font-size: 20pt; margin:20px 0px 0px 0px; font-weight:400; }
94+
#main h3 { font-size: 14pt; margin:15px 0px 0px 0px; font-weight:600; }
95+
#main p { font-size: 11pt; margin:5px 0px 15px 0px; }
96+
#main ul { font-size: 11pt; margin-top:10px; }
97+
#main li { font-size: 11pt; margin: 5px 0px 5px 0px; }
98+
#main strong { font-weight:700; }
99+
</style>
55100
<link rel="canonical" href="{{ .Page.Permalink }}" />
56101
</head>
57102

58-
<body>
103+
<body style="font-family: 'Open Sans', serif;padding-top: 0;padding-bottom: 40px;">
59104

60105
<div class="container">
61-
<div class="masthead">
106+
<div class="masthead" style="overflow: hidden">
62107
<ul class="nav nav-pills pull-right">
63108
<li><a href="https://github.com/mysql-net/MySqlConnector/">GitHub</a></li>
64109
</ul>
65-
<h3 class="muted"><a href="/">MySqlConnector</a></h3>
110+
<h3 class="muted"><a href="/" style="text-decoration: none; color: #999999">MySqlConnector</a></h3>
66111
</div>
67-
<hr />
112+
<hr style="margin:0 0 20px 0;"/>
68113
<div class="row">
69114
<div class="span9" id="main">

docs/layouts/partials/menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ul class="nav nav-list" id="menu">
33

44
{{ range $i, $el := .Site.Menus.main }}
5-
<li class="nav-header">
5+
<li class="nav-header" style="font-size:12pt;color:#606060;margin-top:20px;">
66
{{ if .HasChildren }}{{ .Name }}{{ else }}<a href="{{ .URL }}">{{ .Name }}</a>{{ end }}
77
</li>
88

docs/static/css/style.css

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)