Skip to content

Commit

Permalink
Adjustments and mobile landscape disclaimer
Browse files Browse the repository at this point in the history
I hate hate hate hate hate hate hate hate hate hate hate hate hate hate hate hate hate hate hate mobile media queries so damn much.
  • Loading branch information
TohnoCoding committed Oct 3, 2024
1 parent b53c828 commit 8f81d2d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 28 deletions.
29 changes: 9 additions & 20 deletions css/Site.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-webkit-transform: translateY(50%);
-ms-transform: translateY(50%);
transform: translateY(50%);
font-size: 0.8em;
font-size: 0.8em;
}

.btn-data {
Expand Down Expand Up @@ -171,33 +171,22 @@ div.member-eventonly {
.icon-bar { transform: scale(0.65); right: 0px; top: 2%; }
}

@media screen and (orientation: portrait) and (min-width: 768px) {
@media screen and (orientation: portrait) { /* I HATE MOBILE SO DAMN MUCH */
#buttonsArea { width: 40% !important; }

#checkboxArea { padding-right: 4em !important; }
}

@media screen and (max-aspect-ratio: 16/9) { /* TODO: ADJUST FOR MOBILE */
.container {
max-width: 90%;
}

.col-1 {
margin-left: 15px !important;
margin-right: 15px !important;
margin-bottom: 15px !important;
.icon-bar {
right: 5% !important;
}

.member-container {
transform: scale(1.3);
}

.member-np {
transform: scale(0.6);
margin-right: -5px;
margin-bottom: -5px;
.container {
max-width: 95% !important;
}
}

.listbox { justify-content: center; }

.statsColumn {
max-width: 49.5%;
display: inline-block;
Expand Down
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ <h6 id="rmvNotice">[ Click/tap here to remove this message. ]</h6>
</div>
<div class="card" id="headerCard">
<div id="card-body" class="card-body" style="text-align:center; padding: 0px;">
<p id="page_whatami">Yet another FGO Servant checklist with NP count.
Forked from <a href="https://nechigawara.github.io/nechi-fgo-checklist/" target="_blank">Nechigawara</a>.<br />
Please note that the site may take a while loading on first visit from caching all images.</p>
<p id="page_whatami">Please note that the site may take a while loading on first visit from caching all
images, and that <span style="font-weight: bold;">the best user experience is to use the site on <span
style="font-style: italic;">LANDSCAPE</span> view, as adjusting the complexity of a site like this for
mobile is a virtually impossible task for a non-UX developer like myself.</span> Sorry about that.</p>
<form>
<table id="optionsAndButtons">
<tr>
Expand Down
8 changes: 3 additions & 5 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,17 +814,15 @@ function openFileUploadPrompt()
/**
* Updates the UI whenever Class Mode is toggled.
*/
function updateClassMode() { // Class mode change
updateURLOptionModeOnly(); finishLoading();
if(!isClassMode()) { $('.row').toggleClass('center-portraits'); }
}
function updateClassMode()
{ updateURLOptionModeOnly(); finishLoading(); } // Class mode change

/**
* Removes the noticeboard at the top.
*/
function removeNoticeboard() {
$('#noticeBoard').slideUp(function() {
$(this).remove(); // Removes the element after the animation completes
$(this).remove(); // Removes element after animation completes
});
}

Expand Down

0 comments on commit 8f81d2d

Please sign in to comment.