Skip to content

Commit

Permalink
Slow down gradient movement
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgw committed Aug 16, 2017
1 parent 0615ce5 commit d6d1b0e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function pickColors() {

container.style.background = "linear-gradient(45deg, " + colorString + ")";
container.style.backgroundSize = "600% 600%";
container.style.animation = "Animation 8s ease-in-out infinite";
container.style.animation = "Animation 25s ease-in-out infinite";
}

function hideWelcomeMessage() {
Expand Down
86 changes: 43 additions & 43 deletions wavetab.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,58 @@
<html>
<head>
<title>New Tab</title>

<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<script src="src/moment.min.js"></script>

<style>
/* local version of Quicksand google web font */
@font-face {
font-family: "Quicksand";
src: url("assets/fonts/Quicksand-Light.woff") format('woff');
}

/* base css */
html, body {
height: 100%;
margin: 0;
}

a {
color: #ffffff;
}

hr {
border-style: solid;
}

/* page background */
#container {
min-height: 100%;

background: #ffffff;
background-size: 600% 600%;
animation: Animation 15s ease-in-out infinite;
animation: Animation 25s ease-in-out infinite;

display: flex;
text-align: center;
justify-content: center;
}
@keyframes Animation {

@keyframes Animation {
0%{background-position:0% 99%}
50%{background-position:100% 2%}
100%{background-position:0% 99%}
}

/* time & date */
#text-display {
color: #ffffff;
font-family: 'Quicksand', sans-serif;
align-self: center;
margin: auto;
}

#time {
font-size: 11rem;
font-weight: 100;
Expand All @@ -62,7 +62,7 @@
margin-bottom: 0px;
display: none;
}

#date {
font-size: 3rem;
font-weight: 300;
Expand All @@ -71,84 +71,84 @@
margin-bottom: 0px;
display: none;
}

/* options */
#options {
font-family: 'Quicksand', sans-serif;
color: #ffffff;
text-shadow: 0px 0px 40px #969696;
font-size: 1.3rem;
text-align: left;

display: none;
height: 1%;
align-self: center;
min-width: 50%;
position: relative;

border: 2px solid #ffffff;
padding: 20px;
border-radius: 10px;

background: rgba(119, 119, 119, 0.4);
}

#options h1 {
margin-top: 1px;
margin-bottom: 1px;
}

#options h2 {
margin-top: 20px;
margin-bottom: 5px;
font-size: 1.5rem;
}

#options p {
margin-top: 2px;
margin-bottom: 2px;
}

.options-list {
list-style: none;
padding-left: 0px;
margin-top: 5px;
margin-bottom: 0px;
}

.options-list li {
margin-bottom: 10px;
}

/* welcome message */
#welcomeMsg {
font-family: 'Quicksand', sans-serif;
color: #ffffff;
font-size: 1rem;
text-align: left;

border: 2px solid #ffffff;
padding: 5px;
border-radius: 10px;
background: rgba(119, 119, 119, 0.4);

position: absolute;
bottom: 10px;
right: 60px;
display: none;
}

#welcomeMsg h3, p {
margin: 2px;
}

#welcomeMsg .icon {
font-size: 1.1rem;
position: absolute;
top: 5px;
right: 5px;
}

#welcomeMsg .popover {
position: absolute;
top: 35px;
Expand All @@ -157,7 +157,7 @@
border-bottom: 10px solid transparent;
border-left: 10px solid #ffffff;
}

/* font awesome icons */
.icon {
color: #ffffff;
Expand All @@ -166,25 +166,25 @@
background: none;
border: none;
}

#info-icon {
opacity: 0.6;
transition: .3s;
position: absolute;
bottom: 10px;
right: 10px;
}

#close-icon {
position: absolute;
top: 10px;
right: 10px;
}

#info-icon:hover {
opacity: 1;
}

/* css toggle switch modified from https://www.w3schools.com/howto/howto_css_switch.asp */
.switch {
position: relative;
Expand Down Expand Up @@ -226,15 +226,15 @@
transition: .4s;
border-radius: 50%;
}

input:checked + .slider {
background-color: #dddddd;
}

input:focus + .slider {
box-shadow: 0 0 1px #dddddd;
}

input:checked + .slider:before {
transform: translateX(28px);
}
Expand All @@ -253,23 +253,23 @@ <h2 id="date"></h2>
<h1>Options</h1>
<h2>Display</h2>
<ul class="options-list">
<li><label class="switch">
<li><label class="switch">
<input type="checkbox" checked id="showTime">
<div class="slider"></div>
</label>Show time</li>
<li><label class="switch">
<li><label class="switch">
<input type="checkbox" checked id="showDate">
<div class="slider"></div>
</label>Show date</li>
<li><label class="switch">
<li><label class="switch">
<input type="checkbox" id="use24HourTime">
<div class="slider"></div>
</label>Use 24 hour time</li>
</ul>

<h2>Support</h2>
<p><a href="https://lizgw.github.io/wavetab/" target="_blank">Visit Wavetab's website</a> | <a href="https://lizgw.github.io/wavetab/support/" target="_blank">Visit the support page</a> | <a href="https://chrome.google.com/webstore/detail/wavetab-minimal-new-tab-p/nfdfcgbnfilhjigfdeniiacekbfmknnk/reviews" target="_blank">Leave a review</a></p>

<h2>Info</h2>
<p>Coded with <span class="fa fa-heart" aria-label="love"></span> by <a href="http://lizgw.github.io/">Liz Wigglesworth</a><br>
<a href="http://fontawesome.io">Font Awesome</a> by Dave Gandy</p>
Expand All @@ -289,4 +289,4 @@ <h3>Welcome to WaveTab!</h3>
<script src="src/main.js"></script>
<script src="src/options.js"></script>
</body>
</html>
</html>

0 comments on commit d6d1b0e

Please sign in to comment.