X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fsass%2Fcommon.scss;h=1f73fb450a0c0ca07ba6390e6393f6ad7625b98f;hb=1b9629ce7f600b4aa9c9d51a281e514031871828;hp=15ec4ef1b639e5e3717b4e8cd880b463b5508026;hpb=01c03862db4c9d7da371fb3500aab566d36366ff;p=alttp.git diff --git a/resources/sass/common.scss b/resources/sass/common.scss index 15ec4ef..1f73fb4 100644 --- a/resources/sass/common.scss +++ b/resources/sass/common.scss @@ -11,6 +11,18 @@ h1 { margin-bottom: 2rem; } +.aspect-box-container { + position: relative; + padding-top: 100%; +} +.aspect-box-content { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + .button-bar { margin: -0.5ex; > * { @@ -23,6 +35,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 { @@ -35,16 +84,47 @@ h1 { } } +.raw-html { + img[type="image/apng"] { + cursor: pointer; + } +} + +.slider-container { + overflow: hidden; + height: 100%; + width: 100%; + + > .slider-slides { + transition: transform 600ms; + } + &.horizontal { + > .slider-slides { + height: 100%; + white-space: nowrap; + > .slider-slide { + display: inline-block; + width: 100%; + } + } + } + &.vertical { + > .slider-slides { + width: 100%; + } + } +} + .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; @@ -190,6 +270,7 @@ h1 { position: relative; display: inline-flex; align-items: center; + vertical-align: middle; width: 2em; height: 2em; @@ -198,6 +279,11 @@ h1 { max-width: 100%; max-height: 100%; } + .item-map-icon { + display: inline-block; + width: 100%; + height: 100%; + } .strike { position: absolute; top: 0;