aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2018-11-22 00:59:42 -0500
committerThedro Neely <thedroneely@gmail.com>2018-11-22 00:59:42 -0500
commitfdebcc0a2d4e1ea5decf724771e92d256dc6b788 (patch)
tree591141c30b0b4c425422640a3d585e010b7b0125 /views
parent81bae41143db5c6c06c58a0723e69b7c07e85def (diff)
downloadedwinmattiacci.com-fdebcc0a2d4e1ea5decf724771e92d256dc6b788.tar.gz
edwinmattiacci.com-fdebcc0a2d4e1ea5decf724771e92d256dc6b788.tar.bz2
edwinmattiacci.com-fdebcc0a2d4e1ea5decf724771e92d256dc6b788.zip
views/partials/header: Control background from html tag instead of the body
Diffstat (limited to 'views')
-rw-r--r--views/partials/header.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/views/partials/header.php b/views/partials/header.php
index 43a7b13..790cbe5 100644
--- a/views/partials/header.php
+++ b/views/partials/header.php
@@ -1,5 +1,10 @@
<!DOCTYPE html>
-<html lang="en-us">
+<?php if ($_SERVER['REQUEST_URI'] == '/') { ?>
+<html class="body-gradient" lang="en-us">
+<?php } else { ?>
+<html class="body-opaque" lang="en-us">
+<?php } ?>
+
<head>
<meta charset="utf-8">
@@ -19,10 +24,6 @@
</head>
- <?php if ($_SERVER['REQUEST_URI'] == '/') { ?>
<body id="main">
- <?php } else { ?>
- <body class="body-opaque" id="main">
- <?php } ?>
<?php require 'navigator.php'; ?>