Skip to content

Commit f823372

Browse files
committed
Adding ocsigen logos
1 parent fba52ca commit f823372

File tree

4 files changed

+1340
-1
lines changed

4 files changed

+1340
-1
lines changed

_posts/2016-03-30-tuto-graffiti2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ let page =
444444
You need to install the corresponding stylesheets and images into your
445445
project. The stylesheet files should go to the directory
446446
`static/css`.
447-
[graffiti.css](http://ocsigen.org/tuto/files/tutorial/static/css/graffiti.css) is a custom-made CSS file.
447+
File [graffiti.css](http://ocsigen.org/tuto/files/tutorial/static/css/graffiti.css) is a custom-made CSS file.
448448

449449
You can then test your application (`make test.byte`).
450450

css/style.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
3+
4+
5+
/****** Switch button (from html_of_wiki) *****/
6+
/* Update the switch button's content */
7+
body:not(.reason) button#reason::after {
8+
content: 'Reason';
9+
}
10+
body.reason button#reason::after {
11+
content: 'OCaml';
12+
}
13+
14+
/* <pre> is shared among the original and automatically translated code, so we
15+
* only hide those containing manually translated code, which would otherwise
16+
* appear as empty boxes (with a background, because <code> is inline). */
17+
body:not(.reason) pre.language-reason.manually-translated,
18+
body.reason pre.language-ocaml.manually-translated,
19+
/* Hide the translated ReasonML code from OCaml users */
20+
body:not(.reason) code.language-reason,
21+
/* API pages only use <pre> elements for OCaml code... */
22+
body.reason pre.language-ocaml.standalone,
23+
body:not(.reason) pre.language-reason.standalone,
24+
/* Hide the original OCaml code from ReasonML users */
25+
body.reason code.language-ocaml:not(.error) {
26+
display: none
27+
}

0 commit comments

Comments
 (0)