diff --git a/static/css/mod.css b/static/css/mod.css index 0c238e1e..28889bc2 100644 --- a/static/css/mod.css +++ b/static/css/mod.css @@ -93,11 +93,12 @@ .mod-bar { display: flex; flex-direction: row; + border-bottom: 1px solid darkgrey; } .mod-bar a { margin: 5px 10px 0 0; - padding: 5px; + padding: 5px 10px; color: gray; background-color: #fefefe; border-radius: 5px 5px 0 0; @@ -108,12 +109,21 @@ } .mod-bar-active { - border: 2px solid #0b75d8 !important; color: #0b75d8 !important; + font-weight: bold; background-color: white !important; } +.mod-hide { + display: none; +} + +.mod-show { + display: block; +} + .mod-description { + margin-top: 10px; width: 100%; background-color: white; border-radius: 0 5px 5px 5px; @@ -244,3 +254,21 @@ background-color: darkgrey; margin: 0 auto; } + +.download { + color: white; + padding: 10px 5px; + margin-bottom: 5px; + width: 200px; + font-size: 14px; + font-weight: bold; + border-radius: 5px; +} + +.download-primary { + background-color: #0b75d8; +} + +.download-normal { + background-color: #949494; +} diff --git a/static/images/icon/curated.svg b/static/images/icon/curated.svg new file mode 100644 index 00000000..058e1f05 --- /dev/null +++ b/static/images/icon/curated.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/js/mod.js b/static/js/mod.js index 4503d30a..18fd2f84 100644 --- a/static/js/mod.js +++ b/static/js/mod.js @@ -5,4 +5,12 @@ function toggleSection(element) { currentlySelected.classList.remove("mod-bar-active"); currentlySelected = element; currentlySelected.classList.add("mod-bar-active"); + + currentlySelectedDiv.classList.remove("mod-show"); + currentlySelectedDiv.classList.add("mod-hide"); + + currentlySelectedDiv = document.getElementById(element.id.replace("-bar", "")); + + currentlySelectedDiv.classList.remove("mod-hide"); + currentlySelectedDiv.classList.add("mod-show"); } \ No newline at end of file diff --git a/templates/mod-page.hbs b/templates/mod-page.hbs index 84e60626..a7e5b642 100644 --- a/templates/mod-page.hbs +++ b/templates/mod-page.hbs @@ -101,19 +101,14 @@ -
+
-
- -
- Username - Role -
-
+ v2.1.14 for Minecraft 1.15.2 + v2.0.8 for Minecraft 1.14.4
@@ -131,6 +126,22 @@
+
+ + +
+ +
+ Username + Role +
+
+
+ +