Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move cadair inside the repo
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 21, 2017
1 parent 394bdf5 commit d4587ac
Show file tree
Hide file tree
Showing 12 changed files with 852 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .gitmodules
@@ -1,9 +1,3 @@
[submodule "nikola-master"]
path = nikola-master
url = git://github.com/ralsina/nikola.git
[submodule "v7/cadair"]
path = v7/cadair
url = git@github.com:Cadair/cadair-nikola-theme.git
[submodule "v7/mdl"]
path = v7/mdl
url = git@github.com:ivanteoh/nikola-mdl-mako.git
Expand Down
1 change: 0 additions & 1 deletion v7/cadair
Submodule cadair deleted from 449d14
23 changes: 23 additions & 0 deletions v7/cadair/LICENSE
@@ -0,0 +1,23 @@
Copyright (c) 2014, Stuart Mumford
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21 changes: 21 additions & 0 deletions v7/cadair/README.md
@@ -0,0 +1,21 @@
cadair-nikola-theme
===================

Cadair's Nikola theme

This theme is used on http://www.stuartmumford.co.uk. It is still in beta, and
needs a little work. It is based around a simple homepage with a pretty picture
in a bootstrap3 jumbotron. It also includes the IPython css so it should work
ok with IPython notebooks.

Preview: http://i.imgur.com/wCcE7kx.png

##Customising

If you create a sub-theme of this theme and create a template which is a copy
of `homepage_helper.tmpl` you can customise the image credit text and if you
place a new file under `assets/img/home_banner.jpg` you can customise the
jumbotron image.
There is also the option to put custom code on the right hand side of the Nav
Bar using the `GLOBAL_CONTEXT` varible in `conf.py` define a key in the
dictionary with the name `'cadair_social_links'`.
108 changes: 108 additions & 0 deletions v7/cadair/assets/css/theme.css
@@ -0,0 +1,108 @@
html {
height: 100%;
}

body {
height: 100%;
padding-top: 50px;
font-family: 'sans';
/* background-color: #f7fffb; */
font-size: large;
}

.container {
hyphens: manual;
-webkit-hyphens: manual;
-moz-hyphens: manual;
}

.container h1 {
text-align: center;
font-size: 450%;
font-weight: bold;
font-family: 'sans';
}

.storypage {
margin-top:10px;
padding-left: 5px;
padding-right: 5px;
}

.metadata {
padding-left: 10px;
}

h1 a {
color: #222222;
}

h1, h2, h3, h4, h5, h6 {
margin-top: 0.2em;
hyphens: none;
-webkit-hyphens: none;
-moz-hyphens: none;
}

.jumbotron {
position: relative;
height: 60%;
color: inherit;
background-image: url('../img/home_banner.jpg');
background-position: top center;
background-size: cover;
padding: 9px 11px;
-webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
-moz-box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.jumbotron .photo-copy {
color: #fff;
position:absolute;
bottom:5px;
right:5px;
margin-bottom: -10px;
}

.jumbotron .photo-copy a {
color: #fff;
}

footer {
margin-bottom: 5px;
}

.papertitle {
display: block;
font-weight: bold;
font-size: 110%;
}

.paperblock {
padding-bottom: 1em;
}

a .anchor {
display: block;
padding-top: 50px;
}

/* YouTube responsive embed from
See more at: http://avexdesigns.com/responsive-youtube-embed/#sthash.bOTFuSnA.dpuf
*/
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px; height: 0; overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

0 comments on commit d4587ac

Please sign in to comment.