Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 210 additions & 0 deletions content/styles.css
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,213 @@ form a {
color: #206ea1;
margin-left: 20px;
}

.postPicture{
max-width: 60px;
max-height: 60px;
}
.viewPostPicture{
max-width: 500px;
max-height: 500px;
}
.deletePostPicture{
max-width: 200px;
max-width: 200px;
}
.editPostPicture{
max-width: 200px;
max-width: 200px;
margin-left: 30px;
margin-bottom: 20px;
}



/*

Adding style to the logo

*/

.logo-style {
display: inline-block;
vertical-align: middle;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px transparent;
}
.logo-style:hover, .logo-style:focus, .logo-style:active {
-webkit-animation-name: logo-styles;
animation-name: logo-styles;
-webkit-animation-duration: 0.3s;
animation-duration: 0.3s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
}


@-webkit-keyframes logo-styles {
50% {
-webkit-transform: scale(0.8);
transform: scale(0.8);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
@keyframes logo-styles {
50% {
-webkit-transform: scale(0.8);
transform: scale(0.8);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}



/*

Hover effects of navigation menu

*/

.hover-effects {
display: inline-block;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px transparent;
}
.hover-effects:hover, .hover-effects:focus, .hover-effects:active {
-webkit-animation-name: hover-effects;
animation-name: hover-effects;
-webkit-animation-duration: 0.75s;
animation-duration: 0.75s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
}



@-webkit-keyframes hover-effects {
10% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
20% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
30% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
40% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
50% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
60% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
70% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
80% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
90% {
-webkit-transform: translateX(1px) rotate(0);
transform: translateX(1px) rotate(0);
}
100% {
-webkit-transform: translateX(-1px) rotate(0);
transform: translateX(-1px) rotate(0);
}
}
@keyframes hover-effects {
10% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
20% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
30% {
-webkit-transform: translateX(3px) rotate(2deg);
transform: translateX(3px) rotate(2deg);
}
40% {
-webkit-transform: translateX(-3px) rotate(-2deg);
transform: translateX(-3px) rotate(-2deg);
}
50% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
60% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
70% {
-webkit-transform: translateX(2px) rotate(1deg);
transform: translateX(2px) rotate(1deg);
}
80% {
-webkit-transform: translateX(-2px) rotate(-1deg);
transform: translateX(-2px) rotate(-1deg);
}
90% {
-webkit-transform: translateX(1px) rotate(0);
transform: translateX(1px) rotate(0);
}
100% {
-webkit-transform: translateX(-1px) rotate(0);
transform: translateX(-1px) rotate(0);
}
}

.btn {
background: #d61c1c;
background-image: -webkit-linear-gradient(top, #d61c1c, #ff0000);
background-image: -moz-linear-gradient(top, #d61c1c, #ff0000);
background-image: -ms-linear-gradient(top, #d61c1c, #ff0000);
background-image: -o-linear-gradient(top, #d61c1c, #ff0000);
background-image: linear-gradient(to bottom, #d61c1c, #ff0000);
-webkit-border-radius: 28;
-moz-border-radius: 28;
border-radius: 28px;
font-family: Georgia;
color: #ffffff;
font-size: 20px;
padding: 10px 20px 10px 20px;
text-decoration: none;
}

.btn:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}




8 changes: 4 additions & 4 deletions views/_layout/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@

<body>
<header>
<a href="<?=APP_ROOT?>"><img src="<?=APP_ROOT?>/content/images/draigoch_logo.png"></a>
<a href="<?=APP_ROOT?>/">Home</a>
<a href="<?=APP_ROOT?>"><img class="logo-style"src="<?=APP_ROOT?>/content/images/site-logo.png"></a>
<a class="hover-effects" href="<?=APP_ROOT?>/">Home</a>
<?php if ($this->isLoggedIn) : ?>
<a href="<?=APP_ROOT?>/posts">Posts</a>
<a href="<?=APP_ROOT?>/comments">Comments</a>
<a href="<?=APP_ROOT?>/posts/create">Create Post</a>
<a href="<?=APP_ROOT?>/categories">Categories</a>
<a href="<?=APP_ROOT?>/users">Users</a>
<?php else: ?>
<a href="<?=APP_ROOT?>/users/login">Login</a>
<a href="<?=APP_ROOT?>/users/register">Register</a>
<a class="hover-effects" href="<?=APP_ROOT?>/users/login">Login</a>
<a class="hover-effects" href="<?=APP_ROOT?>/users/register">Register</a>
<?php endif; ?>

<?php if ($this->isLoggedIn) : ?>
Expand Down