.menu { max-width: 1200px; width: 100%; margin: 1.5rem auto 0 auto; display: flex; -webkit-box-pack: center; justify-content: center; } .menu > div { width: 100px; word-break: keep-all; text-align: center; line-height: 1.1; font-weight: bold; font-size: 18px; } .menu > div:not(:first-child) { margin-left: 30px; } .menu > div.active { color: rgb(51, 102, 171); } .menu > div:hover{ color: rgb(51, 102, 171); cursor: pointer; } .mobile-menu { display: none; padding: 0.6rem 1rem; border-top: 1px solid rgb(230, 230, 230); justify-content: space-around; width: 100%; height: 80px; } .mobile-menu > div > div { filter: grayscale(1); background-size: 35px 35px; width: 100%; height: 35px; background-position: center; background-repeat: no-repeat; } .mobile-menu > div { font-weight: bold; padding-top : 5px; font-size: 11px; } .mobile-menu > div.active > div { filter: grayscale(0); } .mobile-menu > div.active { color: rgb(51, 102, 171); } .mobile-menu > div:nth-child(1) > div { background-image: url("/images/icon/menu_icon5-2.png"); } .mobile-menu > div:nth-child(2) > div { background-image: url("/images/icon/way.png"); } .cctvWrap { width: 100%; height: calc(100% - 199.8px); display: flex; justify-content: center; overflow: auto; } .cctvWrap .admin-header { width: 200px; height: 50px; margin: 24px auto; color: white; text-align: center; font: bold 18px / 40px NanumGothic; background: url('/images/background/bg_title.png') 0px 0px / contain no-repeat transparent; } .cctvWrap .container { max-width: 1200px; width: 95%; position: relative; display: flex; flex-direction: column; min-height: 700px; } .cctvWrap .header { padding: 2rem 0; margin-bottom: 0; color: rgb(51, 102, 171); text-align: center; border-bottom: 1px solid rgb(33, 84, 153); font-size: 2rem; } .cctvWrap .content { margin: 24px 0px; padding: 30px 60px; transition: all 0.3s ease 0s; box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 6px; height: calc(100% - 101px); } .cctvWrap .tab { width: 232px; height: 50px; align-items: center; margin-bottom: 5px; display: flex; transition: all 0.3s ease 0s; background-color: rgb(255, 255, 255); box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 6px; } .cctvWrap .tab > div { background-color: white; color: black; display: flex; align-items: center; justify-content: center; height: 100%; padding : 0 5px; cursor: pointer; } .cctvWrap .tab > div.active { background-color: rgb(51, 102, 171); color: white; } .state-1::before, .state-0::before{ content: ""; display: inline-block; vertical-align: middle; margin-right: 10px; width: 25px; height: 25px; /*background-image: url("/images/icon/true.png");*/ background-size: 25px 25px; background-repeat: no-repeat; background-position: center; } .state-0::before { background-image: url("/images/icon/false.png"); } .state-1::before { background-image: url("/images/icon/true.png"); } .cctvWrap .admin-content { width: 100%; height: calc(100% - 200px); min-height: 500px; padding: 20px; transition: all 0.3s ease 0s; display: flex; background-color: rgb(255, 255, 255); box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 6px; } .cctvWrap .admin-content .right { width: calc(100% - 320px); height: 100%; padding: 10px; border : 1px solid #c3c1c1; } .cctvWrap .admin-content .right .content{ width: 100%; height: calc(100% - 32px); margin: 10px 0 0 0; padding: 0; } .cctvWrap .admin-content .right .title{ width: 100%; display: flex; color: red; } .cctvWrap .admin-content .right .title .toggle-button { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; margin-left: auto; } [type="checkbox"] { appearance: none; position: relative; border-radius: 1.25em; width: 2.75em; height: 1.7em; background-color: rgb(204, 204, 204); } [type="checkbox"]::before { content: ""; position: absolute; left: 0; width: 1.7em; height: 1.7em; border-radius: 50%; transform: scale(0.8); background-color: white; transition: left 250ms linear; } [type="checkbox"]:checked::before { background-color: white; left: 1em; } [type="checkbox"]:checked { background-color: rgb(51, 102, 171); } .cctvWrap .admin-content .left { width: 300px; height: 100%; margin-right: 20px; } .cctvWrap .admin-content .left .list{ width: 100%; height: calc(100% - 50px); margin-top: 10px; border: 1px solid #c3c1c1; overflow: auto; } .cctvWrap .admin-content .left .list ul > div { padding: 10px; } .cctvWrap .admin-content .left .list ul > .cmra-list > li.active, .cctvWrap .admin-content .left .list ul.active > div { color: rgb(51, 102, 171); font-weight: bold; } .cctvWrap .admin-content .left .list ul > .cmra-list > li:hover, .cctvWrap .admin-content .left .list ul > div:hover{ color: rgb(51, 102, 171); font-weight: bold; cursor: pointer; } .cctvWrap .admin-content .left .list ul.active > .cmra-list { display: block; } .cctvWrap .admin-content .left .list ul > .cmra-list { display: none; padding-left: 35px; } .cctvWrap .admin-content .left .list ul > .cmra-list > li { padding: 5px; list-style: none; } .cctvWrap .admin-content .left .title { width: 100%; height: 40px; background-color: rgb(51, 102, 171); display: flex; align-items: center; justify-content: center; color: white; } @media (max-width: 920px) { .cctvWrap { height: calc(100% - 200.19px); } } @media (max-height: 765px) { .cctvWrap { height: calc(100% - 200.19px); } } @media (max-width: 720px) { .cctvWrap { height: calc(100% - 205.19px); } } @media (max-width: 547px) { .cctvWrap { height: calc(100% - 216.19px); } } @media (max-width: 420px) { .mobile-menu { display: flex; } .menu { display: none; } .cctvWrap { height: calc(100% - 149.19px); padding: 5px 0; } .cctvWrap .header { font-size: 1.2rem; padding: 1rem 0; } .cctvWrap .container { min-height: 0; } .cctvWrap .container.view { min-height: 450px; } .cctvWrap h2 { font-size: 14px; } .cctvWrap .content a { padding: 10px; font-size: 13px; } .cctvWrap .content a > div:nth-child(1) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: calc(100% - 135px); } .item-right{ width : 122px; font-size: 12px; } .item-right > div:nth-child(2) { display: none; } .cctvWrap .content.view { padding: 0px 20px; } }