html, body { padding-bottom: 0; padding-left: 0; padding-right: 0; } main { position: relative; width: 100%; height: 100%; max-width: 100vw; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .contents-wrapper { width: 100%; height: 100%; justify-content: space-between; align-content: flex-start; align-items: flex-start; flex-wrap: wrap; box-shadow: inset -5px 5px 5px #1111, inset -5px -5px 5px #1111; overflow-y: scroll; overflow-x: hidden; } .contents-wrapper:after { content: ""; flex: auto; } .menu-wrapper { display: none; flex-direction: column; justify-content: center; align-items: center; position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 0; background-color: #0008; } .menu { display: none; flex-direction: column; justify-content: flex-start; background-color: #eee; box-shadow: 0 0 0.5vw black; border-radius: 16px; margin: 10px; width: calc(100% - 20px); max-width: 120vmin; height: 100%; transition: 0.3s; overflow: hidden; } #menu-file-view { margin: 0; width: 100%; max-width: 120vmin; border-radius: 0; overflow-x: hidden; overflow-y: scroll; } #preview { max-width: 100%; max-height: 90vh; object-fit: contain; object-position: center; } form { flex: 1 1 auto; padding: 2vw 2vw; min-height: 0; } .list { flex: 1 1 auto; display: flex; flex-direction: row; justify-content: space-between; align-content: flex-start; align-items: flex-start; flex-wrap: wrap; padding: 8px 0; box-shadow: inset -5px 5px 5px #1111, inset -5px -5px 5px #1111; overflow-y: scroll; -webkit-overflow-scrolling: touch; overflow-x: hidden; } #menu-file-view form { min-height: initial; } #menu-file-view .list { height: 50vh; } .list:after { content: ""; flex: auto; } .sasa { position: relative; margin: 8px; padding: 0; width: 160px; height: 160px; border-radius: 20px; overflow: hidden; cursor: pointer; } .sasa .thumb { width: 100%; height: 100%; object-fit: cover; object-position: center; } .sasa .overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: #0000; } .sasa:hover .overlay { background-color: #0002; } .sasa.selected .overlay { background-color: #0004; } .tanzaku { margin: 5px; padding: 7px; border: 1px solid #555; border-radius: 7px; cursor: default; } .tanzaku:hover, .tanzaku.selected:hover { background-color: #0004; } .tanzaku.selected { background-color: #0002; }