]> git.0d.be Git - nanofun.git/blobdiff - nanofun.css
initial code
[nanofun.git] / nanofun.css
diff --git a/nanofun.css b/nanofun.css
new file mode 100644 (file)
index 0000000..e9215ad
--- /dev/null
@@ -0,0 +1,49 @@
+body {
+  font-family: sans-serif;
+  font-size: 16px;
+}
+
+#nanopad {
+  margin: 0 auto;
+}
+
+div.nanotouch {
+  border: 1px dashed #333;
+  padding: 1.5rem;
+  position: relative;
+  width: 7vw;
+  height: 7vw;
+  margin: 1vw;
+  display: inline-block;
+  overflow: hidden;
+}
+
+div.nanotouch.loaded {
+  background: #9aff9a;
+  border: 1px solid #4bff4b;
+}
+
+div.nanotouch.loaded.playing {
+  background: #6aff6a;
+}
+
+div.nanotouch input {
+  position: absolute;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  opacity: 0.01;
+  margin: 0;
+  cursor: pointer;
+}
+
+div.nanotouch span.name {
+  position: absolute;
+}
+
+div.nanotouch span.duration {
+  position: absolute;
+  bottom: 1ex;
+  right: 1ex;
+}