Commit e3cb86ac authored by eric's avatar eric

Make stylesheets overridable / wiki themable

To theme the wiki, you can override any of the files in the relearn/static
folder by placing them in the static folder of the example_theme app.

For example, if you want to have a new stylesheet, override relearn/static/css/style.css
by creating a file static/css/style.css there.
parent 0bff4836
To theme the wiki, you can override any of the files in the relearn/static
folder by placing them in the static folder of this example_theme app.
For example, if you want to have a new stylesheet, override relearn/static/css/style.css
by creating a file static/css/style.css here.
......@@ -74,7 +74,7 @@ STATICFILES_DIRS = (
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
# 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
......@@ -130,6 +130,7 @@ INSTALLED_APPS = (
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'etherpadlite',
'example_theme',
'relearn',
)
......
This diff is collapsed.
@media print {
// doesn't work
@page : {marks: crop;}
body {
font-size: 16px;
line-height: 1.2em;
color : black;
width: 100%;
height: 100%;
font-feature-settings: "liga", "dlig", "clig", "kern";
-webkit-font-feature-settings: "liga", "dlig", "clig", "kern";
-o-font-feature-settings: "liga", "dlig", "clig", "kern";
}
#content {
font-family: Univers;
margin-left: 0mm;
margin-right: 0mm;
orphans: 2;
background-color: none;
}
// not effective on the phantomjs pdf export yet
@page :left {
margin-left: 25mm;
margin-right: 10mm;
}
@page :right {
margin-left: 10mm;
margin-right: 15mm;
}
#small {
font-family: notcouriersans;
font-size:.8em;
line-height: 1.2em;
color: black;
margin-left: .5cm;
margin-right: 0cm;
}
#notes {
font-family: notcouriersans;
font-size:.8em;
line-height: 1.2em;
color: black;
margin-left: .5cm;
margin-right: 0cm;
}
.authorship {
font-family: UniversLight;
font-size: .4em;
height: 1.7em;
text-transform: uppercase;
position:absolute;
margin-top: .9em;
padding-top:1em;
margin-left: -.5em;
padding-left: 2px;
border-left: 1px solid gray;
}
.authors {
display: none;
}
}
@media print {
#skew {
text-transform: uppercase;
transform: skew(15deg,5deg);
-ms-transform: skew(15deg,5deg); /* IE 9 */
-webkit-transform: skew(15deg,5deg); /* Safari and Chrome */
margin-top: 20px;
margin-left: 20px;
}
li {
display : inline-block;
width: 30%;
margin-right: 3%;
margin-bottom: .3cm;
font-size:9px;
line-height: 1.4em;
}
li U {
text-decoration: none;
border-bottom: 1px solid gray;
}
U {
text-decoration: none;
border-bottom: 1px solid gray;
}
sup {
margin-right: 2px;
}
.commits h3 {
font-family: Crickx, sans-serif;
color : black;
font-size: 10px;
line-height: 1.2em;
margin-left: -5px;
}
.commits p {
font-family: patin, serif;
color : black;
font-size: 12px;
line-height: 1.2em;
margin-bottom: 15px;
}
.commits p.commit-message {
margin-bottom: 0px;
}
.middle {
width : 90%;
}
a {
color: inherit;
}
h1,
h2,
h3,
h4 {
font-weight: normal;
font-family: Univers, sans-serif;
}
h1 {
font-family: Univers, sans-serif;
font-size: 3em;
line-height: 1.2em;
position: relative;
}
h2 {
font-size: 1.5em;
line-height: 1.2em;
}
h3 {
margin-top: 0px;
text-transform: uppercase;
margin-bottom: 0;
font-size: 1em;
line-height: 1.2em;
}
h3 b{
margin-top: 0px;
text-transform: uppercase;
margin-bottom: 0;
font-size: 1em;
line-height: 1.2em;
}
h4 {
text-decoration: underline;
margin-bottom: 0;
}
#participants{
page-break-before: auto;
margin-bottom: -60px;
}
h5 {
page-break-before:always
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
div#quotes {
text-align: center;
height: 360px;
}
blockquote {
display: none;
text-align: center;
width: 85%;
margin: auto;
font-family: Univers, sans-serif;
text-transform: uppercase;
font-size: 2em;
line-height: 1.2em;
}
blockquote div {
font-family: Univers, sans-serif;
}
p {
margin-bottom: 48px;
}
p.commit-message {
margin-bottom: 0px;
}
p + p {
text-indent: 1.5em;
}
sup {
font-size: 0.75em;
line-height: 0;
vertical-align: 0.25em;
}
.inst_logo {
height: 20%;
margin-left: 0;
}
img {
max-width: 100%;
margin-left: 0;
margin-bottom: 1em;
}
div#switch {
display: inline;
}
div#intro-nl {
display: none;
background-color: white;
border: 1px solid yellow;
z-index: 1000;
margin: -10px 1em;
padding: 1em;
}
}
/* ------ PRINT ------ */
@media screen {
.print-only {
display: none;
}
}
@media print {
.screen-only {
display: none;
}
}
......@@ -3,8 +3,8 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="{{ STATIC_URL }}less/relearn.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="{{ STATIC_URL }}less/print.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="{{ STATIC_URL }}css/style.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="{{ STATIC_URL }}css/print.css" media="print" type="text/css" charset="utf-8">
<script src="{{ STATIC_URL }}js/less-1.4.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="{{ STATIC_URL }}js/jquery-1.10.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="{{ STATIC_URL }}js/relearn.js" type="text/javascript" charset="utf-8"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment