X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fsass%2Fcommon.scss;h=4d603f06a3b4926d0a8706e4e1ffdd0cf35477fa;hb=d518ede5ffe8d4e44b0194279a9f32839bc1f903;hp=83e5b9045416cb42b541a0b6cd1f9b96dbca1be1;hpb=18759929710746d45d0f69e4f09205db3ddc74af;p=alttp.git diff --git a/resources/sass/common.scss b/resources/sass/common.scss index 83e5b90..4d603f0 100644 --- a/resources/sass/common.scss +++ b/resources/sass/common.scss @@ -12,15 +12,9 @@ h1 { } .button-bar { + margin: -0.5ex; > * { - margin-left: 0.5ex; - margin-right: 0.5ex; - } - > :first-child { - margin-left: 0; - } - > :last-child { - margin-right: 0; + margin: 0.5ex; } } @@ -29,6 +23,43 @@ h1 { max-width: none !important; } +.pic-end { + float: right; + margin-left: 1rem; + margin-bottom: 1rem; +} + +.pic-start { + float: left; + margin-right: 1rem; + margin-bottom: 1rem; +} + +.png-player { + display: flex; + flex-direction: column; + align-items: center; + + .screen { + background: black; + display: flex; + width: 100%; + height: auto; + + canvas { + flex-grow: 1; + -ms-interpolation-mode: nearest-neighbor; + image-rendering: crisp-edges; + image-rendering: pixelated; + } + } + + .controls { + margin-top: 0.5rem; + margin-bottom: 0.5rem; + } +} + .quote-alert { position: relative; &::after { @@ -41,16 +72,22 @@ h1 { } } +.raw-html { + img[type="image/apng"] { + cursor: pointer; + } +} + .snes-button-a, .snes-button-b, .snes-button-x, .snes-button-y { display: inline-block; - width: 1.5em; + width: 2em; height: 0; - padding: .75em 0; + padding: 1em 0; box-shadow: .125ex .125ex .125ex rgba(0, 0, 0, .5); - border-radius: .75em; + border-radius: 1em; font-size: 90%; font-weight: bold; text-align: center; @@ -193,6 +230,7 @@ h1 { } .zelda-icon { + position: relative; display: inline-flex; align-items: center; width: 2em; @@ -203,4 +241,27 @@ h1 { max-width: 100%; max-height: 100%; } + .strike { + position: absolute; + top: 0; + left: 0; + width: 2em; + height: 2em; + display: flex; + align-items: center; + justify-content: center; + pointer-events: none; + + svg { + width: 100%; + height: 100%; + } + + path { + fill: red; + stroke: black; + stroke-width: 1px; + vector-effect: non-scaling-stroke; + } + } }