diff --git a/web/public/css/general.css b/web/public/css/general.css index c167241..5084389 100644 --- a/web/public/css/general.css +++ b/web/public/css/general.css @@ -29,6 +29,7 @@ header { h1 { margin: 0; + margin-top: 36px; padding: 0; color: white; font-family: Epilogue, sans-serif; @@ -39,10 +40,10 @@ h1 { } main { - margin-top: 50px; + margin-top: 36px; background-color: #fff8; box-shadow: 0 0 0.5vw black; - border-radius: 1.5vw; + border-radius: 16px; width: 80vw; max-width: 700px; transition: 0.3s; diff --git a/web/public/css/tfm.css b/web/public/css/tfm.css index 5dfd06e..3bd3f5e 100644 --- a/web/public/css/tfm.css +++ b/web/public/css/tfm.css @@ -1,7 +1,17 @@ +html, +body { + padding-bottom: 0; + padding-left: 0; + padding-right: 0; +} + main { position: relative; - height: 70vh; - max-width: 100%; + width: 100%; + height: 100%; + max-width: 100vw; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; } .contents-wrapper { @@ -17,7 +27,7 @@ main { overflow-x: hidden; } -.item { +.sasa { position: relative; margin: 16px; padding: 0; @@ -28,9 +38,10 @@ main { background-size: cover; background-position: center; overflow: hidden; + cursor: pointer; } -.item .overlay { +.sasa .overlay { position: absolute; top: 0; right: 0; @@ -39,11 +50,11 @@ main { background-color: #0000; } -.item:hover .overlay { +.sasa:hover .overlay { background-color: #0002; } -.item.selected .overlay { +.sasa.selected .overlay { background-color: #0004; } @@ -76,17 +87,36 @@ main { overflow: hidden; } -form#sasa-menu { - margin: 0; +#sasa-form { padding: 2vw 2vw; - width: 100%; - display: flex; - flex-direction: column; - justify-content: center; } #tanzaku-list { - height: 40vh; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: flex-start; + flex-wrap: wrap; + padding: 8px 0; + height: 39vh; + box-shadow: inset -5px 5px 5px #1111, inset -5px -5px 5px #1111; overflow-y: scroll; overflow-x: hidden; } + +.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; +} diff --git a/web/public/js/tfm.js b/web/public/js/tfm.js index 0e098e4..9a01bd9 100644 --- a/web/public/js/tfm.js +++ b/web/public/js/tfm.js @@ -13,7 +13,7 @@ function sasa_load(id) { if (id < 0) { sasahyou = resp.data; sasahyou.forEach((sasa) => { - $(".contents-wrapper").append(`