proper mobile centering
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
animation-fill-mode: forwards;
|
animation-fill-mode: forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
.achievements-list {
|
.achievment-column {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -24,6 +24,12 @@
|
|||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.achievment-column {
|
||||||
|
height: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes moveup {
|
@keyframes moveup {
|
||||||
from {bottom: 0px;}
|
from {bottom: 0px;}
|
||||||
to {bottom: 200px; color: white;}
|
to {bottom: 200px; color: white;}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ html, body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.columns {
|
.columns {
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -21,6 +20,13 @@ html, body {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.button-column {
|
||||||
|
height: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.button-container {
|
.button-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,8 @@ const button = document.getElementById("BUTTON");
|
|||||||
const count = document.getElementById("COUNT");
|
const count = document.getElementById("COUNT");
|
||||||
const button_container = document.getElementById("button-container");
|
const button_container = document.getElementById("button-container");
|
||||||
const achievement = document.getElementById("achievement");
|
const achievement = document.getElementById("achievement");
|
||||||
const achievement_list = document.getElementById("achievement-list")
|
const achievement_list = document.getElementById("achievement-list");
|
||||||
|
const achievement_column = document.getElementById("achievement-column");
|
||||||
|
|
||||||
function add_achievement(text) {
|
function add_achievement(text) {
|
||||||
if (text != undefined) {
|
if (text != undefined) {
|
||||||
@@ -16,7 +17,7 @@ function add_achievement(text) {
|
|||||||
elem.innerText = text;
|
elem.innerText = text;
|
||||||
achievement_list.appendChild(elem);
|
achievement_list.appendChild(elem);
|
||||||
|
|
||||||
achievement_list.scrollTo(0, achievement_list.scrollHeight);
|
achievement_column.scrollTo(0, achievement_list.scrollHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column achievment-column">
|
<div class="column achievment-column" id = "achievement-column">
|
||||||
<div class="achievements-list" id="achievement-list">
|
<div class="achievements-list" id="achievement-list">
|
||||||
<h1 class="title">Achievements</h1>
|
<h1 class="title">Achievements</h1>
|
||||||
{% for key,value in achievement.items %}
|
{% for key,value in achievement.items %}
|
||||||
|
|||||||
Reference in New Issue
Block a user