Make things look a little better on mobile

This commit is contained in:
swaggboi 2022-02-13 02:44:53 -05:00
parent fdb2fe3775
commit 6aff6fbacc
3 changed files with 21 additions and 128 deletions

View File

@ -1,116 +0,0 @@
* {
box-sizing: border-box;
}
html, body {
margin: 0px;
height: 100%;
}
.modal.background {
background-image: url('/tip.jpg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100%;
width: 100%;
position: absolute;
}
.modal.box {
background-color: #A9D0F5;
border-radius: 15px;
border-style: solid;
border-color: #FFFFFF;
text-align: center;
width: 50%;
padding: 1em;
-webkit-animation-name: from_top;
-webkit-animation-duration: 1.5s;
animation-name: from_top;
animation-duration: 1.5s;
position: absolute;
left: 25%;
top: 25%;
z-index: 10;
}
.modal.button {
border-radius: 5px;
border: solid;
color: #FFFFFF;
font-size: 1em;
padding: 15px 25px;
text-align: center;
transition-duration: 0.3s;
}
.modal.button:hover {
background-color: #FFFFFF;
border: solid;
color: #000000;
cursor: pointer;
}
.modal.button.accept {
/* background-color: #04B404; */
}
.modal.button.decline {
background-color: #FF4D4D;
}
#video {
background-image: url('/willpower.gif');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100%;
width: 100%;
z-index: 255;
position: absolute;
display: none;
}
.modal.loader {
border: 16px solid #C9C9C9;
border-top: 16px solid #000000;
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
margin: -4em auto auto -4em;
display: flex;
top: 50%;
left: 50%;
position: absolute;
}
@-webkit-keyframes from_top {
from {
top: -25%;
opacity: 0;
}
to {
top: 25%;
opacity: 1;
}
}
@keyframes from_top {
from {
top: -25%;
opacity: 0;
}
to {
top: 25%;
opacity: 1;
}
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

View File

@ -16,6 +16,9 @@ html, body {
height: 100%; height: 100%;
width: 100%; width: 100%;
position: absolute; position: absolute;
display: flex;
align-items: center;
justify-content: center;
} }
.modal.box { .modal.box {
@ -24,26 +27,31 @@ html, body {
border-style: solid; border-style: solid;
border-color: #FFFFFF; border-color: #FFFFFF;
text-align: center; text-align: center;
width: 50%; width: 70%;
padding: 1em; padding: 1em;
-webkit-animation-name: from_top; -webkit-animation-name: from_top;
-webkit-animation-duration: 1.5s; -webkit-animation-duration: 1.5s;
animation-name: from_top; animation-name: from_top;
animation-duration: 1.5s; animation-duration: 1.5s;
position: absolute; position: absolute;
left: 25%;
top: 25%;
z-index: 10; z-index: 10;
} }
.modal.buttons {
display: flex;
gap: 2em;
}
.modal.button { .modal.button {
border-radius: 5px; border-radius: 5px;
border: solid; border: solid;
color: #000000; color: #000000;
font-size: 1em; padding: 15px 0;
padding: 15px 25px;
text-align: center; text-align: center;
transition-duration: 0.3s; transition-duration: 0.3s;
font-weight: bold;
font-size: 1em;
flex: 1;
} }
.modal.button:hover { .modal.button:hover {

View File

@ -9,15 +9,16 @@
automatically through cookies or similar technology.</p> automatically through cookies or similar technology.</p>
<p>For further information please visit <p>For further information please visit
<a href="http://allaboutcookies.org">allaboutcookies.org</a>.</p> <a href="http://allaboutcookies.org">allaboutcookies.org</a>.</p>
<div class="modal buttons">
<button class="modal button accept" onclick="acceptCookies();"> <button class="modal button accept" onclick="acceptCookies();">
Accept Accept
</button> </button>
&nbsp;
<button class="modal button decline" onclick="declineCookies();"> <button class="modal button decline" onclick="declineCookies();">
Decline Decline
</button> </button>
</div> </div>
</div> </div>
</div>
<div class="modal loader"></div> <div class="modal loader"></div>
<div id="video"></div> <div id="video"></div>
<audio id="soundtrack" preload="auto" loop> <audio id="soundtrack" preload="auto" loop>