Skip to content

Commit

Permalink
modify style
Browse files Browse the repository at this point in the history
  • Loading branch information
VLucet committed Jul 16, 2020
1 parent 56dedff commit d82dc02
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index_files/navigation-1.1/codefolding.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ window.initializeCodeFolding = function(show) {
var currentIndex = 1;

// select all R code blocks
var rCodeBlocks = $('pre.r, pre.python, pre.bash, pre.sql, pre.cpp, pre.stan, pre.julia');
var rCodeBlocks = $('pre.r, pre.python, pre.bash, pre.sql, pre.cpp, pre.stan, pre.julia, pre.foldable');
rCodeBlocks.each(function() {

// create a collapsable div to wrap the code in
var div = $('<div class="collapse r-code-collapse"></div>');
if (show || $(this)[0].classList.contains('fold-show'))
div.addClass('in');
show = (show || $(this).hasClass('fold-show')) && !$(this).hasClass('fold-hide');
if (show) div.addClass('in');
var id = 'rcode-643E0F36' + currentIndex++;
div.attr('id', id);
$(this).before(div);
Expand Down
158 changes: 156 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,158 @@
@import url(http://fonts.googleapis.com/css?family=Vollkorn:400,400italic,700,700italic&subset=latin);

#------------------------------------------------------------------------------

.tocify-subheader > .tocify-item {
text-indent: initial;
padding-left: 2em;
}
padding-right: 10em;
}

#------------------------------------------------------------------------------

img {
max-width: 100%;
}
table {
width: 100%;
}
table, th, td {
padding: 5px;
}
html, body {
padding:1em;
margin:auto;
max-width:150em;
background:#fefefe;
}
body {
font: 1.5em "Vollkorn", Palatino, Times;
color: #333;
line-height: 1.4;
text-align: justify;
}
header, nav, article, footer {
width: 700px;
margin:0 auto;
}
article {
margin-top: 4em;
margin-bottom: 4em;
min-height: 400px;
}
footer {
margin-bottom:50px;
}
video {
margin: 2em 0;
border:1px solid #ddd;
}

nav {
font-size: .9em;
font-style: italic;
border-bottom: 1px solid #ddd;
padding: 1em 0;
}
nav p {
margin: 0;
}

/* Typography
-------------------------------------------------------- */

h1 {
margin-top: 0;
font-weight: normal;
}
h2 {
font-weight: normal;
}
h3 {
font-weight: normal;
font-style: italic;
margin-top:3em;
}
p {
margin-top:0;
-webkit-hypens:auto;
-moz-hypens:auto;
hyphens:auto;
}
ul {
list-style: square;
padding-left:1.2em;
}
ol {
padding-left:1.2em;
}
blockquote {
margin-left: 1em;
padding-left: 1em;
border-left: 1px solid #ddd;
}
code {
font-family: "Consolas", "Menlo", "Monaco", monospace, serif;
font-size: .9em;
background: white;
}
a {
color: #2484c1;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a img {
border:none;
}
h1 a, h1 a:hover {
color: #333;
text-decoration: none;
}
hr {
color : #ddd;
height : 1px;
margin: 2em 0;
border-left: 0;
border-right: 0;
}
#heart{
font-size: 2em;
line-height: 1;
text-align: center;
color: #ccc;
}
.red {
color:#B50000;
}

/* Home Page
--------------------------- */

#index li {
margin-bottom: 1em;
}


/* iPad
-------------------------------------------------------- */
@media only screen and (max-device-width: 1024px) {
body {
font-size: 120%;
line-height: 1.4;
}
} /* @iPad */

/* iPhone
-------------------------------------------------------- */
@media only screen and (max-device-width: 480px) {
body {
text-align: left;
}
article, footer {
width: auto;
}
article {
padding: 0 10px;
}
} /* @iPhone */

0 comments on commit d82dc02

Please sign in to comment.