Recent Tutorials
Who is online?
In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

How to install the color on all pages

View previous topic View next topic Go down

avatar
white
New Member
Title :
Gender : Unspecified
Posts : 6
Points : 455
Reputation : 0
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB
Awards :
View all awards
View user profile

Postwhite on Wed 18 Jan 2017, 14:02

How to install the color on all pages
The problem with the updated page is not installed color

To see this code


Code:

<style>
@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");

.menu-container {
  z-index: 100;
  position: fixed;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  height: 60px;
  width: 60px;
  -webkit-transition: 0.33s ease, height 0.33s 0.33s ease;
  transition: 0.33s ease, height 0.33s 0.33s ease;
}
.menu-thing {
  position: absolute;
  height: 60px;
  width: 60px;
  left: -120%;
  box-shadow: 2px 5px 8px -1px rgba(0,0,0,0.4);
  color: #fff;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
}
.menu-thing.one {
  top: 60px;
  background-color: #3eb890;
}
.menu-thing.two {
  top: 120px;
  background-color: #70cadb;
}
.menu-thing.three {
  top: 180px;
  background-color: #e8a723;
}
.menu-thing.four {
  top: 240px;
  background-color: #e01765;
}
.menu-thing:hover {
  width: 75px;
}
.menu-label {
  position: absolute;
  height: 60px;
  width: 60px;
  top: 0;
  left: 0;
  background-color: #443642;
  box-shadow: 2px 5px 8px -1px rgba(0,0,0,0.4);
}
.menu-label:before {
  content: "Background";
  position: absolute;
  top: 50%;
  left: 175%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  padding: 6px;
  letter-spacing: 2px;
  background-color: rgba(0,0,0,0.65);
  color: #f2f2f2;
  -webkit-transition: 0.25s ease;
  transition: 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.menu-label:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 130%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  border: 14px solid transparent;
  border-right: 14px solid rgba(0,0,0,0.65);
  -webkit-transition: 0.25s ease;
  transition: 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.menu-label:hover:before {
  opacity: 1;
  left: 125.5%;
}
.menu-label:hover:after {
  opacity: 1;
  left: 80%;
}
.white-line {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  height: 2px;
  width: 70%;
  background-color: #fff;
}
.white-line:before,
.white-line:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 60%;
  background-color: #fff;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
}
.white-line:before {
  top: -7px;
}
.white-line:after {
  top: 8px;
}
#menuCheckbox {
  display: none;
}
#menuCheckbox:checked~ .menu-container {
  height: 300px;
  -webkit-transition: 0.33s ease;
  transition: 0.33s ease;
}
#menuCheckbox:checked~ .menu-container .menu-thing {
  left: 0;
}
#menuCheckbox:checked~ .menu-container .menu-thing.one {
  -webkit-transition: 0.33s ease, left 0.33s 0.33s ease;
  transition: 0.33s ease, left 0.33s 0.33s ease;
}
#menuCheckbox:checked~ .menu-container .menu-thing.two {
  -webkit-transition: 0.33s ease, left 0.33s 0.43s ease;
  transition: 0.33s ease, left 0.33s 0.43s ease;
}
#menuCheckbox:checked~ .menu-container .menu-thing.three {
  -webkit-transition: 0.33s ease, left 0.33s 0.53s ease;
  transition: 0.33s ease, left 0.33s 0.53s ease;
}
#menuCheckbox:checked~ .menu-container .menu-thing.four {
  -webkit-transition: 0.33s ease, left 0.33s 0.63s ease;
  transition: 0.33s ease, left 0.33s 0.63s ease;
}
.face {
  position: absolute;
  top: 30%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 5vw;
  width: 85%;
  text-align: center;
  color: #e4e9e9;
  -webkit-transition: 0s ease;
  transition: 0s ease;
}
.face.two {
  top: 75%;
  opacity: 0;
}
.face.two.visible {
  opacity: 1;
}
.face span {
  letter-spacing: 1vw;
}
.whoa-button {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 60px;
  width: 60px;
  line-height: 60px;
  text-align: center;
  background-color: transparent;
  color: #e4e9e9;
}
.whoa-button:hover {
  background-color: rgba(0,0,0,0.6);
  color: #fff;
}
.whoa {
  -webkit-animation: colors 1.5s infinite linear;
          animation: colors 1.5s infinite linear;
}
@-webkit-keyframes colors {
  0% {
    background-color: #3eb890;
  }
  25% {
    background-color: #e8a723;
  }
  50% {
    background-color: #70cadb;
  }
  75% {
    background-color: #e01765;
  }
  100% {
    background-color: #3eb890;
  }
}
@keyframes colors {
  0% {
    background-color: #3eb890;
  }
  25% {
    background-color: #e8a723;
  }
  50% {
    background-color: #70cadb;
  }
  75% {
    background-color: #e01765;
  }
  100% {
    background-color: #3eb890;
  }
}

</style>
<input type="checkbox" id="menuCheckbox"/>
<div class="menu-container">
    <label class="menu-label" for="menuCheckbox">
        <div class="white-line"></div>
    </label>
    <div class="menu-thing side one">:D</div>
    <div class="menu-thing side two">( ._.)</div>
    <div class="menu-thing side three">n_n</div>
    <div class="menu-thing side four">:)</div>
</div>
<div class="face"></div>
<div class="face two"></div>
<div class="whoa-button">:O</div>
<script>
// Colors provided by Slack

$(document).ready(function(){
   
    // better body background color changing function
    $('.menu-thing').click(function(){
        $('body').removeClass('whoa');
        $('.face.two').removeClass('visible');
        $('body').css('background-color', $(this).css('background-color'));
        return false;
    });
   
    $('.whoa-button').click(function(){
        $('body').toggleClass('whoa');
        $('.face.two').toggleClass('visible');
        return false;
    });
   
});
</script>


Code:


$(document).ready(function(){
    // better body background color changing function
    $('.menu-thing').click(function(){
        $('body').removeClass('whoa');
      $('.face.two').removeClass('visible');
      $('body').css('background-color', $(this).css('background-color'));
        return false;
  });
 
  $('.whoa-button').click(function(){
        $('body').toggleClass('whoa');
        $('.face.two').toggleClass('visible');
        return false;
  });

});

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum