Initial commit

This commit is contained in:
blackberrymamba
2017-07-18 22:49:53 +02:00
commit 7ed3015989
10 changed files with 772 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
/*
Original highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #F0F0F0;
}
/* Base color: saturation 0; */
.hljs,
.hljs-subst {
color: #444;
}
.hljs-comment {
color: #888888;
}
.hljs-keyword,
.hljs-attribute,
.hljs-selector-tag,
.hljs-meta-keyword,
.hljs-doctag,
.hljs-name {
font-weight: bold;
}
/* User color: hue: 0 */
.hljs-type,
.hljs-string,
.hljs-number,
.hljs-selector-id,
.hljs-selector-class,
.hljs-quote,
.hljs-template-tag,
.hljs-deletion {
color: #880000;
}
.hljs-title,
.hljs-section {
color: #880000;
font-weight: bold;
}
.hljs-regexp,
.hljs-symbol,
.hljs-variable,
.hljs-template-variable,
.hljs-link,
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #BC6060;
}
/* Language color: hue: 90; */
.hljs-literal {
color: #78A960;
}
.hljs-built_in,
.hljs-bullet,
.hljs-code,
.hljs-addition {
color: #397300;
}
/* Meta color: hue: 200 */
.hljs-meta {
color: #1f7199;
}
.hljs-meta-string {
color: #4d99bf;
}
/* Misc effects */
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}

318
assets/css/somecode.css Normal file
View File

@@ -0,0 +1,318 @@
@import url('https://fonts.googleapis.com/css?family=Raleway:300|Roboto:100');
html {
font-family: 'Roboto', sans-serif;
font-size: 62.5%;
}
body {
max-width: 42em;
margin: 0 auto;
color: #616161;
background: #fff;
font-size: 1.6rem;
font-weight: 300;
line-height: 1.618;
letter-spacing: .01em;
transition: 0.3s all;
}
@media (max-width: 684px) {
body {
font-size: 1.53rem;
}
}
@media (max-width: 382px) {
body {
font-size: 1.35rem;
}
}
h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
font-family: 'Raleway', sans-serif;
font-weight: 300;
line-height: 1.1;
word-wrap: break-word;
}
h1 {
font-size: 2.35em;
}
h2 {
font-size: 2.00em;
}
h3 {
font-size: 1.75em;
}
h4 {
font-size: 1.5em;
}
h5 {
font-size: 1.25em;
}
h6 {
font-size: 1em;
}
small, sub, sup {
font-size: 75%;
}
p {
text-align: justify;
text-indent: 1rem;
}
p+p {
text-indent: 0;
}
hr {
border: 0;
border-bottom: 1px dotted #dadada;
}
a {
color: #2c8898;
border: 0;
text-decoration: none;
}
a:hover {
color: #982c61;
border-bottom: 1px solid #4a4a4a;
transition: 0.3s all;
}
ul {
padding-left: 1.4em;
}
li {
margin-bottom: 0.4em;
}
blockquote {
margin-left: 1.5em;
padding-left: 1em;
border-left: 3px solid #2c8898;
font-style: italic;
}
img {
max-width: 100%;
height: auto;
}
pre {
margin-bottom: 2.5rem;
overflow-y: hidden;
border-left: 0.3rem solid #9b4dca;
background: #f4f5f6;
}
pre>code {
display: block;
padding: 1rem 1.5rem;
border-radius: 0;
white-space: pre;
}
code {
margin: 0 .2rem;
padding: .2rem .5rem;
border-radius: .4rem;
background: #f4f5f6;
font-size: 86%;
white-space: nowrap;
}
table {
width: 100%;
border-collapse: collapse;
text-align: justify;
}
td, th {
padding: 0.5em;
border-bottom: 1px solid #f1f1f1;
}
textarea {
width: 100%;
}
.button, button, input[type="button"], input[type="reset"], input[type="submit"] {
display: inline-block;
box-sizing: border-box;
padding: 0.7rem 3.0rem;
color: #fff;
border: 1px solid #791db1;
border-bottom: 3px solid #791db1;
border-radius: 2px;
background-color: #9b4dca;
text-align: center;
text-decoration: none;
text-transform: uppercase;
font-size: 1rem;
font-weight: 400;
line-height: 3rem;
letter-spacing: .1rem;
white-space: nowrap;
cursor: pointer;
}
.button[disabled], button[disabled], input[type="button"][disabled], input[type="reset"][disabled], input[type="submit"][disabled] {
opacity: .5;
cursor: default;
}
.button:focus, .button:hover, button:focus, button:hover, input[type="button"]:focus, input[type="button"]:hover, input[type="reset"]:focus, input[type="reset"]:hover, input[type="submit"]:focus, input[type="submit"]:hover {
color: #f9f9f9;
border: 1px solid #4f5961;
border-bottom: 3px solid #4f5961;
background-color: #606c76;
outline: 0;
transition: 0.2s all;
}
input[type], select, textarea {
box-sizing: border-box;
margin-bottom: 10px;
padding: 0.7rem 3.0rem;
color: #4a4a4a;
border: 1px solid #f1f1f1;
border-bottom: 3px solid #f1f1f1;
border-radius: 2px;
background-color: transparent;
box-shadow: none;
font-size: 1.2rem;
font-weight: 400;
line-height: 3rem;
letter-spacing: .1rem;
}
input[type]:focus, select:focus, textarea:focus {
border: 1px solid #dadada;
border-bottom: 3px solid #dadada;
outline: 0;
transition: 0.2s all;
}
fieldset, legend {
display: block;
margin-bottom: .5rem;
}
label {
display: inline-block;
margin-right: 1.6rem;
margin-bottom: .5rem;
}
input[type="checkbox"]+label, input[type="radio"]+label {
display: inline-block;
font-size: 1.2rem;
font-weight: 400;
letter-spacing: .1rem;
}
.clearfix:after {
content: ' ';
display: table;
clear: both;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
.navigation {
transition: 0.2s all;
}
.navigation.fixed {
position: fixed;
top: 0;
max-width: 42em;
width: 100%;
background: #fff;
}
.navbrand {
width: 100%;
}
.navbrand h1 {
display: inline-block;
}
.openbtn {
float: right;
margin: 0.67em 0;
font-size: 2.35em;
line-height: 1.1;
cursor: pointer;
}
.openbtn:hover {
border: 0;
}
.navmenu {
z-index: -1;
display: none;
position: fixed;
top: 0;
left: 0;
width: 50%;
height: 100%;
padding-top: 5rem;
opacity: 0;
overflow-x: hidden;
background-color: #4e4e4e;
transition: 0.2s;
}
.navmenu ul {
margin: 0 2rem;
padding: 0;
list-style-type: none;
}
.navmenu ul li {
font-weight: 300;
}
.navmenu ul li.active {
font-weight: 600;
}
.navmenu a {
color: #fff;
border: 0;
text-transform: capitalize;
}
.navmenu .closebtn, .navmenu .closebtn:hover {
position: absolute;
top: 0;
right: 25px;
margin-left: 50px;
border: 0;
font-size: 36px;
}
.footer {
margin: 4rem 0;
}

File diff suppressed because one or more lines are too long

65
assets/js/vanilla.js Normal file
View File

@@ -0,0 +1,65 @@
/* menu */
function openNav() {
document.getElementById("ovnav").style.display = "block";
document.getElementById("ovnav").style.zIndex = "1";
document.getElementById("ovnav").style.opacity = "1";
document.getElementById("ovnav").style.width = "50%";
document.body.style.overflow = 'hidden';
}
function closeNav() {
document.getElementById("ovnav").style.opacity = "0";
document.getElementById("ovnav").style.zIndex = "-1";
document.getElementById("ovnav").style.display = "none";
document.body.style.overflow = '';
}
/* menu item eventlistener */
function menuItems() {
var menuItems = document.querySelectorAll(".navmenu ul li a");
for (var i = 0; i < menuItems.length; i++) {
menuItems[i].addEventListener('click', closeNav, false);
}
}
/* show nav on scroll to top */
function navigation() {
var scrollpos = 0;
var nav = document.getElementsByTagName("nav")[0];
var navClone;
var navMarginTopPx = "-" + nav.offsetHeight + "px";
var navScrollTop = nav.scrollTop + nav.offsetHeight
window.addEventListener('scroll', function(e) {
if (scrollpos < window.scrollY || window.scrollY == 20) {
if (typeof navClone != 'undefined') {
navClone.style.opacity = 0;
navClone.style.marginTop = navMarginTopPx;
setTimeout(function() {
navClone.remove()
}, 100);
}
} else {
if (window.scrollY > navScrollTop) {
if (!document.getElementById("nav-clone")) {
navClone = nav.cloneNode(true);
navClone.id = "nav-clone";
navClone.style.marginTop = navMarginTopPx;
navClone.classList.add("fixed");
document.body.appendChild(navClone);
}
navClone.style.opacity = 1;
navClone.style.marginTop = 0;
}
}
scrollpos = window.scrollY;
});
}
/* enable some stuff */
hljs.initHighlightingOnLoad();
menuItems();
navigation();