Skip to content

Commit

Permalink
Every opam2web site should use opam2web.css
Browse files Browse the repository at this point in the history
Also, factored more demo-specific style into site.css.
  • Loading branch information
dsheets committed Aug 23, 2014
1 parent 5398c79 commit 87963e9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
1 change: 0 additions & 1 deletion content/template.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<link rel="stylesheet" href="/ext/js/google-code-prettify/prettify.css" />
<link rel="stylesheet" href="/ext/css/site.css" />
<t:insert name="head" />
<link href="/ext/css/opam2web.css" type="text/css" rel="stylesheet" />
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
Expand Down
11 changes: 0 additions & 11 deletions ext/css/opam2web.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
clear: both;
text-align: center;
padding-top:20px;
border-top: 10px #EBEBEB solid;
}

.footer .copyright {
Expand Down Expand Up @@ -104,13 +103,3 @@ tr.embedded-formula > td:last-child {
width: 100%;
text-align: right;
}


h2 {
border-bottom: 1px solid lightgrey;
padding-top: 5px;
}

h2, h3, h4 {
margin-top: 1ex;
}
13 changes: 13 additions & 0 deletions ext/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,16 @@ code {
html, body {
height: 100%;
}

.footer {
border-top: 10px #EBEBEB solid;
}

h2 {
border-bottom: 1px solid lightgrey;
padding-top: 5px;
}

h2, h3, h4 {
margin-top: 1ex;
}
2 changes: 2 additions & 0 deletions src/o2wTemplate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ let create ~title ~header ~body ~footer ~depth =
"ext/js/search.js";
] in
let prepend_root = prepend_root depth in
let css = "ext/css/opam2web.css" in
let head_html =
<:html<
<link href=$str: prepend_root css$ type="text/css" rel="stylesheet" />
<meta name="generator" content=$str: "opam2web " ^ Version.string$ />
>>
in
Expand Down

0 comments on commit 87963e9

Please sign in to comment.