diff --git a/css/style.css b/css/style.css index e9a73a2..c1c9004 100644 --- a/css/style.css +++ b/css/style.css @@ -1,4 +1,7 @@ -* { margin: 0; padding: 0 } +* { + margin: 0; + padding: 0; +} body { overflow: hidden; @@ -16,7 +19,7 @@ iframe { /* The bed of the Machine */ .machine { - background: url('/images/Metal Panel.svg'); + background: url("/images/Metal Panel.svg"); background-repeat: repeat-x; bottom: 0; height: 4rem; @@ -29,10 +32,12 @@ iframe { label { background-color: #202123; - text-shadow: 1px -1px 0px #42464dFF, -1px 1px 0px #ffffff1A; + text-shadow: + 1px -1px 0px #42464dff, + -1px 1px 0px #ffffff1a; color: #eeeeee; display: block; - font: 0.625rem 'Arial Rounded MT Bold'; + font: 0.625rem "Arial Rounded MT Bold"; padding: 0.0625rem 0.3125rem; text-transform: uppercase; transform: rotate(-5deg); @@ -47,7 +52,7 @@ label { top: 0; .grater-bed { - background: url('/images/Grater Bed.svg'); + background: url("/images/Grater Bed.svg"); background-repeat: no-repeat; background-position: bottom; position: absolute; @@ -56,9 +61,9 @@ label { width: 8.5rem; &::before { - background: url('/images/Sausage.svg'); + background: url("/images/Sausage.svg"); background-repeat: no-repeat; - content: ' '; + content: " "; display: block; height: 3em; opacity: 0; @@ -72,7 +77,7 @@ label { } .grater-blade { - background: url('/images/Grater Blade.svg'); + background: url("/images/Grater Blade.svg"); height: 0.625rem; left: var(--graterTravel); position: absolute; @@ -88,7 +93,7 @@ label { width: 6.125rem; .stem { - background: url('/images/Lever Handle.svg'); + background: url("/images/Lever Handle.svg"); height: 3.4375rem; position: absolute; width: 3.0625rem; @@ -107,9 +112,9 @@ label { } &::before { - background: url('/images/Lever Back.svg'); + background: url("/images/Lever Back.svg"); bottom: -0.5rem; - content: ''; + content: ""; height: 1.375rem; left: 2.25rem; position: absolute; @@ -117,9 +122,9 @@ label { } &::after { - background: url('/images/Lever Front.svg'); + background: url("/images/Lever Front.svg"); bottom: -0.5rem; - content: ''; + content: ""; height: 1.0625rem; left: 2.40625rem; position: absolute; @@ -149,22 +154,22 @@ label { } .ready-to-grate { - background: url('/images/Red Unlit Light.svg'); + background: url("/images/Red Unlit Light.svg"); } .ready-to-load { - background: url('/images/Green Unlit Light.svg'); + background: url("/images/Green Unlit Light.svg"); } [data-current-state="readyToGrate"] .ready-to-grate { - background: url('/images/Red Lit Light.svg'); + background: url("/images/Red Lit Light.svg"); } [data-current-state="readyToLoad"] .ready-to-load { - background: url('/images/Green Lit Light.svg'); + background: url("/images/Green Lit Light.svg"); } /* The Link Loader Wheel and Chain Mechanism */ .chain { - background: url('/images/Chain Link.svg'); + background: url("/images/Chain Link.svg"); background-position-y: var(--chainOffset); background-repeat: repeat-y; height: 100vh; @@ -184,7 +189,7 @@ label { width: 6rem; .body { - background: url('/images/Wheel.svg'); + background: url("/images/Wheel.svg"); height: 6rem; left: 0; position: absolute; @@ -212,27 +217,28 @@ label { /* Make a Sausage */ .sausage { - background: url('/images/Sausage.svg'); + align-items: center; + background: url("/images/Sausage.svg"); background-position: top; background-repeat: no-repeat; color: #fff; - display: block; - font: 0.625rem 'Arial Rounded MT Bold'; + display: flex; + font: 0.625rem "Arial Rounded MT Bold"; height: calc(3rem - var(--grateLevel)); + justify-content: center; overflow: hidden; position: absolute; top: var(--grateLevel); left: 0; text-align: center; + text-overflow: ellipsis; text-transform: uppercase; width: 8.125rem; + white-space: nowrap; z-index: 0; - display: flex; - align-items: center; - justify-content: center; } /* Util */ .no-select { - user-select: none + user-select: none; } diff --git a/example.html b/example.html index 07901ff..7bc0f99 100644 --- a/example.html +++ b/example.html @@ -1,1791 +1,15654 @@ - - -
- -