From d696c4172bf744c575f530d31fa691881f84af9f Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Mon, 21 Jan 2019 07:12:29 -0500 Subject: assets/css/edwin: Update main CSS asset --- assets/css/edwin.css | 134 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 84 insertions(+), 50 deletions(-) (limited to 'assets') diff --git a/assets/css/edwin.css b/assets/css/edwin.css index 7247f79..900496b 100644 --- a/assets/css/edwin.css +++ b/assets/css/edwin.css @@ -28,12 +28,13 @@ main { height: 400px; } + /* body variants */ .body-opaque { background-color: #333b42; } - .body-gradient { background-image: linear-gradient(180deg, #1B293A, #397382); } + /*home page*/ .intro { width: 100%; text-align: center; } @@ -67,15 +68,13 @@ main { width: 10vh; } + /* link colors */ a, a:hover { color: #46afff; text-decoration: none} - -.topnav .active { color: white; text-shadow: 0 0 0 #fff; } -.topnav a:hover { background-color: #ffffff2b; border-radius: 3px; color: white; } - .link__underline { border-bottom: 1px solid currentColor; } + /* hashover comment section */ #hashover .hashover-comment { @@ -152,6 +151,7 @@ a, a:hover { color: #46afff; text-decoration: none} color: #c2c2c2; } + /* contact form */ .contact { @@ -172,6 +172,7 @@ a, a:hover { color: #46afff; text-decoration: none} .form-alert { color: #f00; } .form { display: none; } + /* feedback form */ .feedback { @@ -279,6 +280,7 @@ input[type="submit"], input[type="reset"], input[type="button"] { white-space: nowrap; } + /* inline player */ ul.graphic p { @@ -383,6 +385,7 @@ body #sm2-container object, body #sm2-container embed { top: -9999em; } + /* overlay windows */ .frame { @@ -415,6 +418,7 @@ body #sm2-container object, body #sm2-container embed { bottom: 0; background-color: #3d4751; background-color: rgba(61, 71, 81, .99); + z-index: 35; } .closeButton { @@ -446,9 +450,8 @@ body #sm2-container object, body #sm2-container embed { font-size: 1.2em; } -/* sidebar navigation */ -#main { transition: margin-left .25s; } +/* sidebar navigation */ .fa { box-sizing: content-box; } @@ -457,11 +460,12 @@ body #sm2-container object, body #sm2-container embed { width: 0; position: fixed; z-index: 1; - top: 0; + top: 4.5em; right: 0; background-color: #252B30; overflow-x: hidden; transition: 0.25s; + box-shadow: 0 8px 10px 4px rgba(0, 0, 0, 0.5); } .sidenav a { @@ -473,9 +477,7 @@ body #sm2-container object, body #sm2-container embed { display: block; color: #fff; } - -.sidenav__container { margin-top: 4.2em; } - +.sidenav-active { width: 150px; } .sidenav a.active { background-color: #3b444c; font-weight: bold; } @media screen and (max-height: 450px) { @@ -483,43 +485,19 @@ body #sm2-container object, body #sm2-container embed { .sidenav a {font-size: 18px;} } -.sidenav__landing { background-color: rgba(0, 0, 0, 0.2); } +.sidenav__landing { background-color: #264a57; } .sidenav__landing .fa { background-color: rgba(255, 255, 255, 0.15); } .sidenav__landing a.active { background-color: rgba(255, 255, 255, 0.15); } + /* navigation bar */ -nav { background-color: #282e34; height: 4.5em; margin-bottom: 2em; } +nav { height: 4.5em; margin-bottom: 2em; } -.nav-transparent { - background-color: #282e34; - background-color: rgba(0, 0, 0, 0); -} +.nav-transparent { background-color: #1c2d3e; background-color: rgba(0, 0, 0, 0); } +.nav-opaque { background-color: #282e34; } -.navicon { - border-radius: 0; - border: none; - background-color: transparent; - cursor: pointer; - display: none; - position: absolute; - top: 12px; - right: 10px; - font-size: 19px !important; - padding: 14px 20px !important; - line-height: 1; - -webkit-backface-visibility: hidden; - -moz-transform: translateZ(0) scale(1.0, 1.0); - -ms-transform: translateZ(0) scale(1.0, 1.0); - -webkit-transform: translateZ(0) scale(1.0, 1.0); - transform: translateZ(0) scale(1.0, 1.0); -} - -.topnav { - margin: 0 auto; - max-width: 1344px; - overflow: hidden; -} +.topnav { margin: 0 auto; max-width: 1344px; overflow: hidden; } .topnav-left a { color: #ffffff; @@ -534,7 +512,26 @@ nav { background-color: #282e34; height: 4.5em; margin-bottom: 2em; } text-decoration: none; } +.desktop__topnav, .mobile__topnav, .topnav-right a { display: none; } + .topnav-right a { float: right; } +.topnav .active { color: white; font-weight: bold; } + +@media screen and (max-width: 768px) { + .nav-transparent > .topnav { background-color: #1c2d3e; } + .nav-opaque > .topnav { background-color: #282e34; } + .topnav { left: 0; position: fixed; right: 0; z-index: 30; } + .mobile__topnav { display: block; } +} + +@media screen and (min-width: 769px) { .desktop__topnav, .topnav-right a { display: block; } } + +.mobile__topnav svg { fill: #999; height: 22px; width: 22px; } +.mobile__topnav p { font-size: 0.875em; margin: 0; } +.mobile__topnav a { font-size: 14px; margin: 0; padding: 1em 0; width: 20%; } +.mobile__topnav .active > svg { fill: #ffffff; } +.mobile__topnav a:hover { color: #ffffff; text-shadow: 0 0 0 #ffffff } +.mobile__topnav a:hover > svg { fill: #ffffff; } /* footer */ @@ -561,22 +558,15 @@ nav { background-color: #282e34; height: 4.5em; margin-bottom: 2em; } .footer a { color: #ccc; } .footer a:hover { color: #f00; } + /* responsive desgin */ @media screen and (max-width: 768px) { .fa { font-size: 1em; padding: 0.6em 0 0.6em 1em; background-color: #3B444C; border-radius: 3px; width: 2em; height: 1em; } - .topnav a.active {} - .topnav a { font-size: 14px; padding: 14px 4px; } - .topnav-right a { display: none; } - .topnav .navicon { display: block; } - nav { background-color: transparent; box-shadow: 0 0 12px 4px #0000004f; } - .nav-transparent { box-shadow: 0 0 12px 4px #0000004f; } - nav, .nav-transparent { padding: 0 4.8em 0 1em; } + .topnav { box-shadow: 0 0 12px 4px #0000004f; } .footer { background-color: #282e34; background-color: rgba(0, 0, 0, 0); padding-left: unset; text-align: center; } } -@media screen and (max-width: 355px) { .topnav a { font-size: 14px; padding: 14px 0; margin: 12px 5px; } } - /* error page */ @@ -584,6 +574,17 @@ nav { background-color: #282e34; height: 4.5em; margin-bottom: 2em; } .error__lineHeight { line-height: 0; } +/* helpers */ + +.is-block { display: block !important; } +.is-hidden { display: none !important; } + + +/* mail notifcation page */ + +.mail__info { text-align: center; } + + /* bootstrap override */ .paragraph__serif { @@ -646,3 +647,36 @@ hr { max-width: 90vw; } } + +/* fade in animations */ +main, .container { animation: fadein 1s; } +.overlay { animation: fadein 0.2s; } + +@keyframes fadein { + from { opacity: 0; } + to { opacity: 1; } +} + +/* Firefox < 16 */ +@-moz-keyframes fadein { + from { opacity: 0; } + to { opacity: 1; } +} + +/* Safari, Chrome and Opera > 12.1 */ +@-webkit-keyframes fadein { + from { opacity: 0; } + to { opacity: 1; } +} + +/* Internet Explorer */ +@-ms-keyframes fadein { + from { opacity: 0; } + to { opacity: 1; } +} + +/* Opera < 12.1 */ +@-o-keyframes fadein { + from { opacity: 0; } + to { opacity: 1; } +} -- cgit v1.2.3