From a04786edd85cc691dc2382dfd32bfd5f7473acef Mon Sep 17 00:00:00 2001 From: Eugene Serb <46799701+eugene-serb@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:35:22 +0300 Subject: [PATCH] First commit of the prototype of the vibration master program --- css/vibration-master.css | 77 ++++++++ index.html | 134 +++++++++++++ js/vibration-master.js | 392 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 603 insertions(+) create mode 100644 css/vibration-master.css create mode 100644 index.html create mode 100644 js/vibration-master.js diff --git a/css/vibration-master.css b/css/vibration-master.css new file mode 100644 index 0000000..fbd4a43 --- /dev/null +++ b/css/vibration-master.css @@ -0,0 +1,77 @@ +/* -------------- */ +/* GAMEPAD MASTER */ +/* -------------- */ + +@charset 'UTF-8'; + +.vibration-master { + display: flex; + flex-direction: column; + justify-content: flex-start; + gap: 16px; +} + +.message-box { + text-align: center; +} + +.device-box { + display: flex; + flex-direction: column; + justify-content: space-between; + gap: 16px; + text-align: center; +} + + .device-list { + display: flex; + flex-direction: row; + justify-content: space-around; + gap: 16px; + } + + .list-item { + max-width: 100%; + padding: 16px; + border: 4px solid var(--color-background); + outline: 2px solid var(--color-border-alpha); + border-radius: 4px; + display: flex; + flex-direction: column; + justify-content: space-between; + gap: 16px; + } + + @media only screen and (min-width: 640px) { + .list-item { + max-width: 50%; + } + } + + .list-item_selected { + outline: 2px solid var(--color-border); + } + + .list-item__info { + padding: 16px; + display: flex; + flex-direction: column; + gap: 16px; + } + + .list-item__info > div { + display: grid; + grid-template-columns: repeat(3, 1fr); + } + +.controls-banner { + width: 100%; + text-align: center; +} + + .controls-banner__list { + display: flex; + flex-direction: column; + justify-content: space-between; + } + diff --git a/index.html b/index.html new file mode 100644 index 0000000..4f02344 --- /dev/null +++ b/index.html @@ -0,0 +1,134 @@ + + +
+