Skip to content

Commit

Permalink
party like its 1999
Browse files Browse the repository at this point in the history
  • Loading branch information
peachteaboba committed Mar 22, 2020
1 parent 3743e77 commit a2065c2
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 78 deletions.
95 changes: 71 additions & 24 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ body {
}





.center-wrapper {
/*outline: 1px dotted blue;*/
/*display: inline-block;*/
Expand All @@ -53,10 +50,11 @@ body {
height: 50px;
width: 50px;
/*outline: 1px dotted blue;*/
position: absolute;
position: fixed;
top: 200px;
left: calc(50% - 25px);
}

.loading-wrapper img {
height: 100%;
width: 100%;
Expand All @@ -73,7 +71,27 @@ body {
/*border-left: 1px solid #20223C;*/
/*border-right: 1px solid #20223C;*/
/*width: 800px;*/
min-width: 600px;
min-width: 700px;
}

#body .hide {
visibility: hidden;
}

#body-content-wrapper {
position: relative;
top: 60px;
opacity: 0;

-moz-transition: top 0.25s, opacity 0.25s, -moz-transform ease-in-out 0.25s;
-webkit-transition: top 0.25s, opacity 0.25s, -moz-transform ease-in-out 0.25s;
-o-transition: top 0.25s, opacity 0.25s, -moz-transform ease-in-out 0.25s;
transition: top 0.25s, opacity 0.25s, -moz-transform ease-in-out 0.25s;
}

#body .show {
opacity: 1;
top: 0;
}

.body-wrapper {
Expand All @@ -94,7 +112,7 @@ body {
display: inline-block;
vertical-align: top;
width: 40px;
/*outline: 1px dotted blue;*/
/*outline: 1px dotted blue;*/
padding-top: 50px;
}

Expand Down Expand Up @@ -138,6 +156,7 @@ body {
.even {
background: rgba(8, 25, 76, 0.04);
}

.today {
/*background: rgba(255, 227, 0, 0.45);*/
/*font-weight: 900;*/
Expand Down Expand Up @@ -236,7 +255,7 @@ body {
/*}*/

.country-body {
/*outline: 1px dotted green;*/
/*outline: 1px dotted green;*/
min-height: 60px;
position: relative;
background: white;
Expand Down Expand Up @@ -290,23 +309,50 @@ body {
line-height: 24px;
padding: 0 10px;
/*text-align: left;*/
min-width: 60px;
min-width: 50px;
position: relative;
}

.country-date .cases.total {
font-weight: 900;
text-align: left;
padding: 0 13px 0 15px;

/*text-align: left;*/
padding: 0 23px 0 25px;
}

.country-date .cases.total.italy {
text-align: right;
padding: 0 15px 0 13px;
/*text-align: right;*/
padding: 0 25px 0 23px;
}

.country-date .cases.total .progress-bar-wrapper {
position: absolute;
top: 0;
left: 5px;
height: 100%;
width: calc(100% - 10px);
/*outline: 1px dotted red;*/
}

.country-date .cases.total .progress-bar {
position: absolute;
top: 15%;
left: 0;
max-width: 100%;
height: 70%;
background: #fcb842;
z-index: 0;
}

.country-date .cases.total p {
position: relative;
z-index: 10;
font-size: 1em;
font-weight: 900;
}




.country-date .cases.percentage {
padding: unset;
width: 50px;
Expand Down Expand Up @@ -335,9 +381,6 @@ body {
}





/* CONTROLS */
/* CONTROLS */
/* CONTROLS */
Expand Down Expand Up @@ -379,7 +422,6 @@ body {
vertical-align: top;
display: inline-block;
width: 200px;

}

.slide-container p {
Expand All @@ -395,11 +437,13 @@ body {
width: 100%;
height: 4px;
border-radius: 2px;
background: #ECF2FA;
background: #717B94;
outline: none;
/*opacity: 0.5;*/
-webkit-transition: .2s;
transition: opacity .2s;

-moz-transition: background 0.5s, -moz-transform ease-in-out 0.25s;
-webkit-transition: background 0.5s, -moz-transform ease-in-out 0.25s;
-o-transition: background 0.5s, -moz-transform ease-in-out 0.25s;
transition: background 0.5s, -moz-transform ease-in-out 0.25s;
}

.slider::-webkit-slider-thumb {
Expand All @@ -420,6 +464,10 @@ body {
cursor: pointer;
}

.slider:active {
background: white;
}

/* Mouse-over effects */
/*.slider:hover {*/
/* opacity: 1; !* Fully shown on mouse-over *!*/
Expand Down Expand Up @@ -460,6 +508,7 @@ body {
width: 50px;
height: 24px;
}

.toggle-slider {
position: absolute;
cursor: pointer;
Expand Down Expand Up @@ -491,12 +540,12 @@ body {
input:checked + .toggle-slider {
background-color: #388CFB;
}

input:checked + .toggle-slider:before {
transform: translateX(22px);
}



/* SUMMARY WRAPPER */
/* SUMMARY WRAPPER */
/* SUMMARY WRAPPER */
Expand Down Expand Up @@ -606,8 +655,6 @@ input:checked + .toggle-slider:before {
}




/* TWITTER */
/* TWITTER */
/* TWITTER */
Expand Down
16 changes: 5 additions & 11 deletions css/mobile.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
@media screen and (max-width: 500px) {
.top-header .left {
width: 100%;
text-align: center;
margin-left: 0;
@media screen and (max-width: 1000px) {
#body {
/*outline: 5px solid red;*/
/*margin-top: 100px;*/
}

.top-header .right {
display: none;
}

}
}
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1>#daysbehinditaly</h1>
<div class="slide-container">
<label for="starting-range">Starting Italy Case Number</label>
<div id="amount_slider"></div>
<input type="range" min="100" max="10000" value="1000" class="slider" id="starting-range" name="starting">
<input type="range" min="100" max="10000" value="3000" class="slider" id="starting-range" name="starting" step="100">
<p id="starting-range-label">-</p>
</div>
<div class="toggle-wrapper">
Expand All @@ -80,7 +80,7 @@ <h1>#daysbehinditaly</h1>
<div id="tweet-hashtag-wrapper">
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-size="large"
data-text="Number of days various countries are behind Italy in total COVID-19 cases assuming similar case growth rate"
data-url="https://daysbehinditaly.com/" data-hashtags="daysbehinditaly" data-show-count="false">Tweet</a>
data-url="https://daysbehinditaly.com/" data-hashtags="daysbehinditaly" data-show-count="true">Share</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
<div class="footer">
Expand Down
Loading

0 comments on commit a2065c2

Please sign in to comment.