cctv.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. .menu {
  2. max-width: 1200px;
  3. width: 100%;
  4. margin: 1.5rem auto 0 auto;
  5. display: flex;
  6. -webkit-box-pack: center;
  7. justify-content: center;
  8. }
  9. .menu > div {
  10. width: 100px;
  11. word-break: keep-all;
  12. text-align: center;
  13. line-height: 1.1;
  14. font-weight: bold;
  15. font-size: 18px;
  16. }
  17. .menu > div:not(:first-child) {
  18. margin-left: 30px;
  19. }
  20. .menu > div.active {
  21. color: rgb(51, 102, 171);
  22. }
  23. .menu > div:hover{
  24. color: rgb(51, 102, 171);
  25. cursor: pointer;
  26. }
  27. .mobile-menu {
  28. display: none;
  29. padding: 0.6rem 1rem;
  30. border-top: 1px solid rgb(230, 230, 230);
  31. justify-content: space-around;
  32. width: 100%;
  33. height: 80px;
  34. }
  35. .mobile-menu > div > div {
  36. filter: grayscale(1);
  37. background-size: 35px 35px;
  38. width: 100%;
  39. height: 35px;
  40. background-position: center;
  41. background-repeat: no-repeat;
  42. }
  43. .mobile-menu > div {
  44. font-weight: bold;
  45. padding-top : 5px;
  46. font-size: 11px;
  47. }
  48. .mobile-menu > div.active > div {
  49. filter: grayscale(0);
  50. }
  51. .mobile-menu > div.active {
  52. color: rgb(51, 102, 171);
  53. }
  54. .mobile-menu > div:nth-child(1) > div {
  55. background-image: url("/images/icon/menu_icon5-2.png");
  56. }
  57. .mobile-menu > div:nth-child(2) > div {
  58. background-image: url("/images/icon/way.png");
  59. }
  60. .cctvWrap {
  61. width: 100%;
  62. height: calc(100% - 199.8px);
  63. display: flex;
  64. justify-content: center;
  65. overflow: auto;
  66. }
  67. .cctvWrap .admin-header {
  68. width: 200px;
  69. height: 50px;
  70. margin: 24px auto;
  71. color: white;
  72. text-align: center;
  73. font: bold 18px / 40px NanumGothic;
  74. background: url('/images/background/bg_title.png') 0px 0px / contain no-repeat transparent;
  75. }
  76. .cctvWrap .container {
  77. max-width: 1200px;
  78. width: 95%;
  79. position: relative;
  80. display: flex;
  81. flex-direction: column;
  82. min-height: 700px;
  83. }
  84. .cctvWrap .header {
  85. padding: 2rem 0;
  86. margin-bottom: 0;
  87. color: rgb(51, 102, 171);
  88. text-align: center;
  89. border-bottom: 1px solid rgb(33, 84, 153);
  90. font-size: 2rem;
  91. }
  92. .cctvWrap .content {
  93. margin: 24px 0px;
  94. padding: 30px 60px;
  95. transition: all 0.3s ease 0s;
  96. box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 6px;
  97. height: calc(100% - 101px);
  98. }
  99. .cctvWrap .tab {
  100. width: 232px;
  101. height: 50px;
  102. align-items: center;
  103. margin-bottom: 5px;
  104. display: flex;
  105. transition: all 0.3s ease 0s;
  106. background-color: rgb(255, 255, 255);
  107. box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 6px;
  108. }
  109. .cctvWrap .tab > div {
  110. background-color: white;
  111. color: black;
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. height: 100%;
  116. padding : 0 5px;
  117. cursor: pointer;
  118. }
  119. .cctvWrap .tab > div.active {
  120. background-color: rgb(51, 102, 171);
  121. color: white;
  122. }
  123. .state-1::before,
  124. .state-0::before{
  125. content: "";
  126. display: inline-block;
  127. vertical-align: middle;
  128. margin-right: 10px;
  129. width: 25px;
  130. height: 25px;
  131. /*background-image: url("/images/icon/true.png");*/
  132. background-size: 25px 25px;
  133. background-repeat: no-repeat;
  134. background-position: center;
  135. }
  136. .state-0::before {
  137. background-image: url("/images/icon/false.png");
  138. }
  139. .state-1::before {
  140. background-image: url("/images/icon/true.png");
  141. }
  142. .cctvWrap .admin-content {
  143. width: 100%;
  144. min-width: 870px;
  145. height: calc(100% - 200px);
  146. min-height: 500px;
  147. padding: 20px;
  148. transition: all 0.3s ease 0s;
  149. display: flex;
  150. background-color: rgb(255, 255, 255);
  151. box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 6px;
  152. }
  153. .cctvWrap .admin-content .right {
  154. width: calc(100% - 320px);
  155. min-width: 300px;
  156. height: 100%;
  157. padding: 10px;
  158. border : 1px solid #c3c1c1;
  159. }
  160. .cctvWrap .admin-content .right .content{
  161. width: 100%;
  162. height: calc(100% - 32px);
  163. margin: 10px 0 0 0;
  164. padding: 0;
  165. }
  166. .cctvWrap .admin-content .right .title{
  167. width: 100%;
  168. display: flex;
  169. color: red;
  170. }
  171. .cctvWrap .admin-content .right .title .toggle-button {
  172. display: inline-flex;
  173. align-items: center;
  174. gap: 0.5rem;
  175. cursor: pointer;
  176. margin-left: auto;
  177. }
  178. [type="checkbox"] {
  179. appearance: none;
  180. position: relative;
  181. border-radius: 1.25em;
  182. width: 2.75em;
  183. height: 1.7em;
  184. background-color: rgb(204, 204, 204);
  185. }
  186. [type="checkbox"]::before {
  187. content: "";
  188. position: absolute;
  189. left: 0;
  190. width: 1.7em;
  191. height: 1.7em;
  192. border-radius: 50%;
  193. transform: scale(0.8);
  194. background-color: white;
  195. transition: left 250ms linear;
  196. }
  197. [type="checkbox"]:checked::before {
  198. background-color: white;
  199. left: 1em;
  200. }
  201. [type="checkbox"]:checked {
  202. background-color: rgb(51, 102, 171);
  203. }
  204. .cctvWrap .admin-content .left {
  205. width: 300px;
  206. height: 100%;
  207. min-width: 300px;
  208. margin-right: 20px;
  209. }
  210. .cctvWrap .admin-content .left .combo {
  211. width: 100%;
  212. height: 40px;
  213. border: 1px solid #c3c1c1;
  214. padding: 0 10px;
  215. box-sizing: border-box;
  216. margin-top: 10px;
  217. display: none;
  218. align-items: center;
  219. }
  220. .cctvWrap .admin-content .left .combo > div {
  221. margin-left: 10px;
  222. }
  223. .cctvWrap .admin-content .left .combo > label {
  224. margin-left: auto;
  225. margin-top : 5px;
  226. }
  227. .cctvWrap .admin-content .left .list{
  228. width: 100%;
  229. height: calc(100% - 50px);
  230. margin-top: 10px;
  231. border: 1px solid #c3c1c1;
  232. overflow: auto;
  233. }
  234. .cctvWrap .admin-content .left .list ul > div {
  235. padding: 10px;
  236. }
  237. .cctvWrap .admin-content .left .list ul > .cmra-list > li.active,
  238. .cctvWrap .admin-content .left .list ul.active > div {
  239. color: rgb(51, 102, 171);
  240. font-weight: bold;
  241. }
  242. .cctvWrap .admin-content .left .list ul > .cmra-list > li:hover,
  243. .cctvWrap .admin-content .left .list ul > div:hover{
  244. color: rgb(51, 102, 171);
  245. font-weight: bold;
  246. cursor: pointer;
  247. }
  248. .cctvWrap .admin-content .left .list ul.active > .cmra-list {
  249. display: block;
  250. }
  251. .cctvWrap .admin-content .left .list ul > .cmra-list {
  252. display: none;
  253. padding-left: 35px;
  254. }
  255. .cctvWrap .admin-content .left .list ul > .cmra-list > li {
  256. padding: 5px;
  257. list-style: none;
  258. }
  259. .cctvWrap .admin-content .left .title {
  260. width: 100%;
  261. height: 40px;
  262. background-color: rgb(51, 102, 171);
  263. display: flex;
  264. align-items: center;
  265. justify-content: center;
  266. color: white;
  267. }
  268. @media (max-width: 920px) {
  269. .cctvWrap {
  270. height: calc(100% - 200.19px);
  271. }
  272. }
  273. @media (max-height: 765px) {
  274. .cctvWrap {
  275. height: calc(100% - 200.19px);
  276. }
  277. }
  278. @media (max-width: 720px) {
  279. .cctvWrap {
  280. height: calc(100% - 205.19px);
  281. }
  282. }
  283. @media (max-width: 547px) {
  284. .cctvWrap {
  285. height: calc(100% - 216.19px);
  286. }
  287. }
  288. @media (max-width: 420px) {
  289. .mobile-menu {
  290. display: flex;
  291. }
  292. .menu {
  293. display: none;
  294. }
  295. .cctvWrap {
  296. height: calc(100% - 149.19px);
  297. padding: 5px 0;
  298. }
  299. .cctvWrap .header {
  300. font-size: 1.2rem;
  301. padding: 1rem 0;
  302. }
  303. .cctvWrap .container {
  304. min-height: 0;
  305. }
  306. .cctvWrap .container.view {
  307. min-height: 450px;
  308. }
  309. .cctvWrap h2 {
  310. font-size: 14px;
  311. }
  312. .cctvWrap .content a {
  313. padding: 10px;
  314. font-size: 13px;
  315. }
  316. .cctvWrap .content a > div:nth-child(1) {
  317. overflow: hidden;
  318. text-overflow: ellipsis;
  319. white-space: nowrap;
  320. width: calc(100% - 135px);
  321. }
  322. .item-right{
  323. width : 122px;
  324. font-size: 12px;
  325. }
  326. .item-right > div:nth-child(2) {
  327. display: none;
  328. }
  329. .cctvWrap .content.view {
  330. padding: 0px 20px;
  331. }
  332. }