html,body{ margin: 0; height: 100%; } body{ background-color: #141414; overflow: hidden; } *{ box-sizing: border-box; } .root{ gap: 10px; padding: 10px; height: 100%; display: flex; flex-wrap: nowrap; flex-direction: row; box-sizing: border-box; overflow: hidden; } .videolist{ width: 100%; height: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(40vh, 1fr)); grid-template-rows: repeat(auto-fit, minmax(23vh, 1fr)); gap: 10px; justify-content: center; align-items: center; overflow: hidden; } .videolist .frame{ border: solid 2px white; width: 100%; height: 100%; max-width: 100%; max-height: 100%; align-items: center; border-radius: 20px; box-sizing: border-box; padding: 1px; overflow: hidden; position: relative; } .videolist .frame > video{ width: 100%; height: 100%; object-fit: cover; } .videolist .frame.active{ border: solid 3px green; box-shadow: 0px 0px 20px -10px green; } video{ image-rendering: pixelated; } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: white; border-radius: 10px; } ::-webkit-scrollbar-track { background-color: #ffffff1f; } .tool-container{ position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; } .tool-container > .tools{ margin: auto; background-color: rgba(0, 0, 0, 0.5); border-radius: 10px; overflow: hidden; } .tool-container > .tools > button{ border: none; color: white; vertical-align: middle; cursor: pointer; padding: 0 10px; } .tool-container > .tools > button:not(:hover){ background-color: transparent; } .tool-container > .tools > button:hover{ background-color: rgba(255,255,255,0.2); } .tool-container > .tools > button i{ vertical-align: middle; line-height: 2; }