How to Use

The easiest way to get started is to copy the HTML from the homepage here

If you already have your own HTML, you can simply add the following stylesheets, in this order:

  1. <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.min.css" rel="stylesheet">
  2. <link href="//assets.okfn.org/themes/okfn/styles.css" rel="stylesheet">
  3. <link href="//assets.okfn.org/themes/bootstrap-responsive.css" rel="stylesheet">
  4. <link rel="stylesheet" href="//assets.okfn.org/themes/okfn/okf-panel.css"/>

And the javascript...

  1. <script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
  2. <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>

Expanding Panel

Add this immediately after the opening <body> tag
<div id="okf-panel" class="collapse">
  <iframe src="//assets.okfn.org/themes/okfn/okf-panel.html" scrolling="no"></iframe>
</div>
And this in the header
<div class="okfn-ribbon">
  <a data-toggle="collapse" data-target="#okf-panel">An Open Knowledge Foundation Site</a>
</div>

Instructions for using on a site not using this theme, are available here


Styling Examples

Example body text

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui.

h1. Heading 1

h2. Heading 2

h3. Heading 3

h4. Heading 4

h5. Heading 5
h6. Heading 6
Button Class Description
Default .btn Standard gray button with gradient
Primary .btn-primary Provides extra visual weight and identifies the primary action in a set of buttons
Info .btn-info Used as an alternate to the default styles
Success .btn-success Indicates a successful or positive action
Warning .btn-warning Indicates caution should be taken with this action
Danger .btn-danger Indicates a dangerous or potentially negative action