Redid the styles for the website

This commit is contained in:
William Brawner 2016-03-26 00:45:20 -07:00
parent 35aa3c63c2
commit 7c40a6e902
4 changed files with 38 additions and 23 deletions

View file

@ -11,8 +11,8 @@ h1, h2, h3, h4, h5, h6 {
} }
a { a {
-webkit-transition: color 0.5s, background-color 0.5s; /* Safari */ -webkit-transition: all 0.5s; /* Safari */
transition: color 0.5s, background-color 0.5s; transition: all 0.5s;
} }
pre { pre {
@ -124,10 +124,11 @@ input[type='submit'] {
font-weight:bold; font-weight:bold;
border-radius: 40px; border-radius: 40px;
width: 80%; width: 80%;
background: none;
} }
.main-nav li a:hover, .main-nav li a:active { .main-nav li a:hover, .main-nav li a:active {
background-color:#5C995C; background-color: #5C995C;
} }
.main-nav p { .main-nav p {
@ -157,7 +158,12 @@ input[type='submit'] {
.container { .container {
min-height: 100vh - 60px; min-height: 100vh - 60px;
padding-top: 60px; padding: 60px 0 20px;
background-image: url('/static/img/bg.jpg');
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
} }
.content { .content {
@ -167,10 +173,10 @@ input[type='submit'] {
} }
.content h1, .content h2 { .content h1, .content h2 {
color:#002900; color:#fff;
text-align:left; text-align:left;
padding: 5px; padding: 5px;
border-bottom: 1px solid #002900; border-bottom: 1px solid #fff;
} }
.flash { .flash {
@ -195,9 +201,21 @@ input[type='submit'] {
.section { .section {
border-radius: 40px; border-radius: 40px;
padding:1px 15px 15px 15px; border: 2px solid #fff;
padding:15px;
background-image: url('/static/img/bg-blur.jpg');
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
overflow: hidden;
color: #fff;
text-shadow: black 0px 0px 2px;
box-shadow: 0px 0px 10px #000 inset;
}
.section:first-of-type {
margin-top: 30px;
} }
.blog-entry { .blog-entry {
margin: 5px 20px 15px; margin: 5px 20px 15px;
padding: 0 20px; padding: 0 20px;
@ -422,7 +440,6 @@ footer {
display: block; display: block;
width: 100%; width: 100%;
background-color: #002900; background-color: #002900;
border-top: 3px solid #fff;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
color: #fff; color: #fff;
@ -446,11 +463,14 @@ a.social-link:hover, a.social-link:active {
} }
.section a:link, .section a:visited { .section a:link, .section a:visited {
color: #476C47; color: rgb(178, 255, 182);
border-bottom: 1px solid rgba(255, 255, 255, 0);
text-decoration: none;
} }
.section a:hover, .section a:active { .section a:hover, .section a:active {
color: #000; color: #fff;
border-bottom: 1px solid rgba(255, 255, 255, 1);
} }
.entry-footer { .entry-footer {
@ -497,16 +517,17 @@ a.social-link:hover, a.social-link:active {
} }
#menu { #menu {
display:none; max-height: 0;
opacity:0; overflow: hidden;
width:100%; width:100%;
position: absolute; position: absolute;
top: 60px; top: 60px;
left: 0;
padding:0; padding:0;
background-color:#002900; background-color:#002900;
float:none; float:none;
-webkit-transition: opacity 0.5s ease; -webkit-transition: all 0.5s ease;
transition: opacity 0.5s ease; transition: all 0.5s ease;
} }
#menu-icon { #menu-icon {

BIN
static/img/bg-blur.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

BIN
static/img/bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

View file

@ -85,17 +85,11 @@
var menuVisible = false; var menuVisible = false;
$('#menu-icon').click(function() { $('#menu-icon').click(function() {
if (menuVisible) { if (menuVisible) {
$('#menu').css({'opacity':'0'}); $('#menu').css({'max-height':'0'});
setTimeout(function() {
$('#menu').css({'display':'none'});
}, 500);
menuVisible = false; menuVisible = false;
return; return;
} }
$('#menu').css({'display':'block'}); $('#menu').css({'max-height':'200px'});
setTimeout(function() {
$('#menu').css({'opacity':'1'});
}, 100);
menuVisible = true; menuVisible = true;
}); });
}); });