Simon 1 year ago
parent
commit
9f5dd2093b
5 changed files with 69 additions and 4 deletions
  1. 0 0
      assets/index-b11d06c5.js
  2. 0 0
      assets/index-b11d06c5.js.map
  3. 0 1
      assets/index-c9da5edc.css
  4. 67 0
      base.css
  5. 2 3
      index.html

+ 0 - 0
assets/index-4b72ed96.js → assets/index-b11d06c5.js


File diff suppressed because it is too large
+ 0 - 0
assets/index-b11d06c5.js.map


+ 0 - 1
assets/index-c9da5edc.css

@@ -1 +0,0 @@
-body{width:100%;height:100%;position:absolute;background:#000000;margin:0;padding:0;overscroll-behavior:none}.container{width:100%;height:100%;position:relative}.ui{width:100%;height:100%;position:absolute;top:0;left:0;font-family:IM Fell French Canon,serif}.icon-bar-layout{position:absolute;bottom:10px;width:100%;display:flex;justify-content:center}.icon-bar{width:380px;height:44px;display:flex;justify-content:left;background-image:url(./resources/ui/hotbar.png);background-size:cover;image-rendering:pixelated}.icon-bar-item{width:36px;height:36px;margin:4px 3px;background-size:cover;image-rendering:pixelated}.icon-bar-item:first-child{margin-left:4px}.icon-bar-item.highlight{outline:6px solid rgb(237,250,116);animation:blink-animation .5s ease-in-out infinite;box-shadow:0 0 20px #000}@keyframes blink-animation{to{opacity:.75}}

+ 67 - 0
base.css

@@ -0,0 +1,67 @@
+body {
+  width: 100%;
+  height: 100%;
+  position: absolute;
+  background: #000000;
+  margin: 0;
+  padding: 0;
+  overscroll-behavior: none;
+}
+
+.container {
+  width: 100%;
+  height: 100%;
+  position: relative;
+}
+
+.ui {
+  width: 100%;
+  height: 100%;
+  position: absolute;
+  top: 0;
+  left: 0;
+  font-family: 'IM Fell French Canon', serif;
+}
+
+.icon-bar-layout {
+  position: absolute;
+  bottom: 10px;
+  width: 100%;
+  display: flex;
+  justify-content: center;
+}
+
+.icon-bar {
+  width: 380px;
+  height: 44px;
+  display: flex;
+  justify-content: left;
+  background-image: url('./resources/ui/hotbar.png');
+  background-size: cover;
+  image-rendering: pixelated;
+}
+
+.icon-bar-item {
+  background-size: cover;
+  width: 36px;
+  height: 36px;
+  margin: 4px 3px;
+  background-size: cover;
+  image-rendering: pixelated;
+}
+
+.icon-bar-item:first-child {
+  margin-left: 4px;
+}
+
+.icon-bar-item.highlight {
+  outline: 6px solid rgb(237, 250, 116);
+  animation: blink-animation 0.5s ease-in-out infinite;
+  box-shadow: 0 0 20px #000000;
+}
+
+@keyframes blink-animation {
+  to {
+    opacity: 0.75;
+  }
+}

+ 2 - 3
index.html

@@ -3,9 +3,8 @@
 <head>
   <title>SiMineCraft</title>
   <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
-  
-  <script type="module" crossorigin src="/Quick_MinecraftClone2/assets/index-4b72ed96.js"></script>
-  <link rel="stylesheet" href="/Quick_MinecraftClone2/assets/index-c9da5edc.css">
+  <link rel="stylesheet" type="text/css" href="base.css">
+  <script type="module" crossorigin src="/Quick_MinecraftClone2/assets/index-b11d06c5.js"></script>
 </head>
 <body>
   <div class="ui" id="game-ui">

Some files were not shown because too many files changed in this diff