css수정(기본적으로 xit-web-res 내부 CSS 사용하고, 필요에 따라 스타일 덮어쓰기)

main
이범준 5 months ago
parent 00638009e4
commit 465ddfb6c7

@ -23,10 +23,15 @@
<link rel="stylesheet" href="<c:url value="/resources/fonts/material-icons.css"/>" /> <link rel="stylesheet" href="<c:url value="/resources/fonts/material-icons.css"/>" />
<link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" /> <link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" />
<!-- Core CSS --> <!-- Core CSS -->
<link rel="stylesheet" href="<c:url value="/resources/css/xit-core.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/core.css"/>" class="template-customizer-core-css" />
<link rel="stylesheet" href="<c:url value="/resources/css/xit-extend.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/theme-default.css"/>" class="template-customizer-theme-css" />
<link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/overwrite.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/applib.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/resources/css/fims.css?${ver}"/>" />
<!-- Vendors CSS --> <!-- Vendors CSS -->
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" />

@ -23,10 +23,15 @@
<link rel="stylesheet" href="<c:url value="/resources/fonts/material-icons.css"/>" /> <link rel="stylesheet" href="<c:url value="/resources/fonts/material-icons.css"/>" />
<link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" /> <link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" />
<!-- Core CSS --> <!-- Core CSS -->
<link rel="stylesheet" href="<c:url value="/resources/css/xit-core.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/core.css"/>" class="template-customizer-core-css" />
<link rel="stylesheet" href="<c:url value="/resources/css/xit-extend.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/theme-default.css"/>" class="template-customizer-theme-css" />
<link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/overwrite.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/applib.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/resources/css/fims.css?${ver}"/>" />
<!-- Vendors CSS --> <!-- Vendors CSS -->
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" />
<link rel="stylesheet" href="<c:url value="/resources/libs/fims/paintweb/style/style.css"/>?${ver}" /> <link rel="stylesheet" href="<c:url value="/resources/libs/fims/paintweb/style/style.css"/>?${ver}" />

@ -16,8 +16,14 @@
<link rel="stylesheet" href="/webjars/3rd-party/sneat/fonts/fontawesome.css" /> <link rel="stylesheet" href="/webjars/3rd-party/sneat/fonts/fontawesome.css" />
<link rel="stylesheet" href="/resources/fonts/xit-icon.css" /> <link rel="stylesheet" href="/resources/fonts/xit-icon.css" />
<!-- Core CSS --> <!-- Core CSS -->
<link rel="stylesheet" href="/resources/css/xit-core.css" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/core.css"/>" class="template-customizer-core-css" />
<link rel="stylesheet" href="/resources/css/xit-extend.css" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/theme-default.css"/>" class="template-customizer-theme-css" />
<link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/overwrite.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/applib.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/resources/css/fims.css?${ver}"/>" />
<!-- Vendors CSS --> <!-- Vendors CSS -->
<link rel="stylesheet" href="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css" /> <link rel="stylesheet" href="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css" />

@ -24,12 +24,14 @@
<link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" /> <link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" />
<!-- Core CSS --> <!-- Core CSS -->
<link rel="stylesheet" href="<c:url value="/resources/css/xit-core.css?${ver}"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/core.css"/>" class="template-customizer-core-css" />
<link rel="stylesheet" href="<c:url value="/resources/css/xit-layout.css?${ver}"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/theme-default.css"/>" class="template-customizer-theme-css" />
<link rel="stylesheet" href="<c:url value="/resources/css/xit-extend.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/overwrite.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/applib.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/resources/css/fims.css?${ver}"/>" />
<!-- Vendors CSS --> <!-- Vendors CSS -->
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/jstree/jstree.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/jstree/jstree.css"/>" />

@ -55,6 +55,7 @@
<!-- 버튼 설정 --> <!-- 버튼 설정 -->
<script src="<c:url value="/resources/js/fims/cmmn/button.js?${ver}"/>"></script> <script src="<c:url value="/resources/js/fims/cmmn/button.js?${ver}"/>"></script>
<!-- 커스텀UI --> <!-- 커스텀UI -->
<script src="<c:url value="/webjars/applib/js/componentization.js?${ver}"/>"></script>
<script src="<c:url value="/resources/js/fims/cmmn/componentization.js?${ver}"/>"></script> <script src="<c:url value="/resources/js/fims/cmmn/componentization.js?${ver}"/>"></script>
<!-- endbuild --> <!-- endbuild -->

@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- Navbar --> <!-- Navbar -->
<nav id="layout-navbar" <nav id="layout-navbar"
class="container-xxl navbar navbar-expand-xl navbar-detached align-items-center mt-1 mx-0 flex-nowrap"> class="layout-navbar navbar container-xxl navbar-expand-xl navbar-detached align-items-center mt-1 mx-0 flex-nowrap">
<div class="layout-menu-toggle navbar-nav align-items-xl-center me-3 me-xl-0 d-xl-none"> <div class="layout-menu-toggle navbar-nav align-items-xl-center me-3 me-xl-0 d-xl-none">
<a class="nav-item nav-link px-0 me-xl-4" href="javascript:void(0)"> <a class="nav-item nav-link px-0 me-xl-4" href="javascript:void(0)">
<i class="bx bx-menu bx-sm"></i> <i class="bx bx-menu bx-sm"></i>

@ -13,7 +13,7 @@
<div class="sticky-wrapper"> <div class="sticky-wrapper">
<div class="sticky-element"> <div class="sticky-element">
<jsp:include page="/WEB-INF/jsp/include/top.jsp" /> <jsp:include page="/WEB-INF/jsp/include/top.jsp" />
<ul id="menu-tabs" class="nav nav-tabs" role="tablist" <ul id="menu-tabs" class="nav nav-tabs mt-1" role="tablist"
style="--bs-nav-link-padding-y: .125rem; background-image: linear-gradient(#8AB9DB, whitesmoke);"> style="--bs-nav-link-padding-y: .125rem; background-image: linear-gradient(#8AB9DB, whitesmoke);">
</ul> </ul>
</div> </div>

@ -24,10 +24,15 @@
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/fonts/fontawesome.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/fonts/fontawesome.css"/>" />
<link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" /> <link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" />
<!-- Core CSS --> <!-- Core CSS -->
<link rel="stylesheet" href="<c:url value="/resources/css/xit-core.css?${ver}"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/core.css"/>" class="template-customizer-core-css" />
<link rel="stylesheet" href="<c:url value="/resources/css/xit-extend.css?${ver}"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/theme-default.css"/>" class="template-customizer-theme-css" />
<link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/overwrite.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/applib.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/resources/css/fims.css?${ver}"/>" />
<link rel="stylesheet" href="<c:url value="/resources/css/fims-login.css?${ver}"/>" /> <link rel="stylesheet" href="<c:url value="/resources/css/fims-login.css?${ver}"/>" />
<!-- Vendors CSS --> <!-- Vendors CSS -->
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" /> <link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css"/>" />

@ -0,0 +1,202 @@
@charset "UTF-8";
/** 앱 공통 */
input[type=text]:disabled,
input[type=text]:read-only {
background-color: #eceef1;
}
input[data-fmt-type=number] {
text-align: right;
padding-right: 10px;
}
/* 셀내용에 관계없이 셀 너비 고정 */
.table-layout-fixed {
table-layout: fixed;
padding-right : 10px;
}
.dummy-th {
width:auto;
background-color: #ECEEF1!important;
}
.dummy-td {
background-color: #ECEEF1;
}
/* 스크롤 시에도 그리드 타이틀 표시 */
.sticky-thead {
position: sticky;
top: 0;
}
table:has(.sticky-thead) {
border-collapse: separate;
border-spacing: 0;
}
table:has(.sticky-thead) th,
table:has(.sticky-thead) td {
border-width: 1px;
border-color: #d9dee3;
}
/** 텍스트,배경,선 색상 추가 */
.text-red {
--bs-text-opacity: 1;
color: red !important;
}
.text-orange {
--bs-text-opacity: 1;
color: orange !important;
}
.bg-bordergray {
background-color: #D9DEE3;
}
.bg-orange {
--bs-bg-opacity: 1;
background-color: orange !important;
}
.bg-yellow {
--bs-bg-opacity: 1;
background-color: yellow !important;
}
.bg-green {
--bs-bg-opacity: 1;
background-color: green !important;
}
.bg-yellowgreen {
--bs-bg-opacity: 1;
background-color: yellowgreen !important;
}
.border-card {
border: 1px solid #d9dee3;
}
/** 루트 탭 */
#main-tab-content {
padding-bottom: 0px;
}
/* 조회조건 영역 */
.container-search {
clear: both;
position: relative;
padding: 10px 15px;
background-color: var(--bs-nav-link-color);
border: 1px solid #d0d0d0;
box-shadow: rgb(0 0 0 / 15%) 1.95px 1.95px 2.6px;
line-height: 24px;
}
.container-search-detail {
background-color: #f2f2f2;
}
.form-search-title {
display: inline-block;
min-width: 6.25rem;
}
.form-search-linebox {
display: inline-block;
width: max-content;
}
/* 날짜입력 */
.form-date, .form-time {
width: 7.5rem;
color: #515151;
border: 1px solid #a9a9a9;
text-align: center;
}
/* 버튼영역 */
.container-page-btn {
min-height : 30px;
margin:8px 0;
clear: both;
position: relative;
overflow: hidden;
display: flex;
justify-content: space-between;
align-items: center;
}
.container-page-btn .btn{
margin:0 3px;
}
.container-window-btn-right {
display: flex;
align-items: center;
margin-left: auto;
column-gap: 3px;
}
.btns .btn {
margin:0 3px;
}
/* 버튼 추가 */
.btn-search {
--bs-btn-color: #fff;
--bs-btn-bg: #44539e;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg:#44539e;
}
.btn-excel {
--bs-btn-color: #fff;
--bs-btn-bg: #217346;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg:#217346;
}
.btn-open-detail {
--bs-btn-color: #fff;
--bs-btn-bg: #44539e;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg:#44539e;
float:right;
}
.resize-handle {
position: absolute;
top: 0; width: 7px; height: 40px;
background: transparent;
cursor: col-resize;
}
.ox-auto {
overflow-x: auto;
}
.oy-auto {
overflow-y: auto;
}
.ox-scroll {
overflow-x: scroll;
}
.oy-scroll {
overflow-y: scroll;
}

@ -1,5 +1,62 @@
@charset "UTF-8"; @charset "UTF-8";
:root{
--bs-font-sans-serif: "Noto Sans Korean", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
.btn {
--bs-btn-font-family: "Noto Sans Korean";
}
kbd {
background-color: #eee;
border-radius: 3px;
border: 1px solid #b4b4b4;
box-shadow:
0 1px 1px rgba(0, 0, 0, 0.2),
0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
color: #333;
display: inline-block;
font-weight: 700;
line-height: 1;
padding: 2px 4px;
white-space: nowrap;
}
.bg-top-checkbox {
background-color: #d9dee3;
}
/* 필수 항목 캡션 */
label.required:after,
.form-label.required:after,
.col-form-label.required:after {
content: '*';
color: red;
}
table.compress-cell-w > :not(caption) > * > * {
padding-left: 7px !important;
padding-right: 7px !important;
}
table.compress-cell-h > :not(caption) > * > * {
padding-top: 4px !important;
padding-bottom: 4px !important;
}
table.compress-cell > :not(caption) > * > * {
padding-left: 7px !important;
padding-right: 7px !important;
padding-top: 4px !important;
padding-bottom: 4px !important;
}
.border-default {
border : black solid 1px !important;
}
select { select {
--pdf-red : rgb(255,0,0); --pdf-red : rgb(255,0,0);
--pdf-green : rgb(0,255,0); --pdf-green : rgb(0,255,0);
@ -49,12 +106,6 @@ select {
padding: 0 5px padding: 0 5px
} }
#main-tab-content {
padding-bottom: 0px;
}
.wrapper-dashboard { .wrapper-dashboard {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
@ -132,6 +183,7 @@ span.skeleton {
animation: highlight 0.4s; animation: highlight 0.4s;
} }
.wrapper-list { .wrapper-list {
min-height: 760px; min-height: 760px;
overflow-y: auto; overflow-y: auto;
@ -142,63 +194,9 @@ span.skeleton {
padding: 5px 20px 5px 20px; padding: 5px 20px 5px 20px;
} }
/* 조회조건 영역 */
.container-search {
clear: both;
position: relative;
padding: 10px 15px;
background-color: var(--bs-nav-link-color);
border: 1px solid #d0d0d0;
box-shadow: rgb(0 0 0 / 15%) 1.95px 1.95px 2.6px;
line-height: 24px;
}
.container-search-detail {
background-color: #f2f2f2;
}
.form-search-title {
display: inline-block;
min-width: 6.25rem;
}
.form-search-linebox {
display: inline-block;
width: max-content;
}
/* 날짜입력 */
.form-date, .form-time {
width: 7.5rem;
color: #515151;
border: 1px solid #a9a9a9;
text-align: center;
}
/* 탭,내비게이션 */
.nav-link-closeable{
padding-right: calc(0.8em + (0.5em * 2));
}
.nav-link-closeable + .btn-close{
font-size: 16px;
margin-left: calc((0.8em + (0.5em * 2)) * -1);
height: 100%;
}
.nav-tabs.nav-tabs-ifr{ /** 버튼 */
--bs-nav-tabs-padding-top : .3em;
--bs-nav-tabs-padding-left : .3em;
--bs-nav-tabs-border-radius: 0.1875rem;
--bs-nav-tabs-bg-image: linear-gradient(#8AB9DB,whitesmoke);
--bs-nav-link-color: #2e6e9e;
--bs-nav-link-bg-image: linear-gradient(#dfeffc,white);
--bs-nav-tabs-link-active-color: #e17009;
--bs-nav-tabs-link-active-bg : #fff;
}
/* 버튼 */
.btn-red { .btn-red {
--bs-btn-color: #fff; --bs-btn-color: #fff;
--bs-btn-bg:#e60012; --bs-btn-bg:#e60012;
@ -243,31 +241,6 @@ span.skeleton {
aspect-ratio: 1 / 1 !important; aspect-ratio: 1 / 1 !important;
} }
.btn-search {
--bs-btn-color: #fff;
--bs-btn-bg: #44539e;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg:#44539e;
}
.btn-excel {
--bs-btn-color: #fff;
--bs-btn-bg: #217346;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg:#217346;
}
.btn-open-detail {
--bs-btn-color: #fff;
--bs-btn-bg: #44539e;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg:#44539e;
float:right;
}
.btn-pagination { .btn-pagination {
border:1px solid #e1e1e1; border:1px solid #e1e1e1;
@ -277,35 +250,7 @@ span.skeleton {
--bs-btn-disabled-bg: #F5F5F5; --bs-btn-disabled-bg: #F5F5F5;
} }
/** 길이,높이 설정 */
/* 버튼영역 */
.container-page-btn {
min-height : 30px;
margin:8px 0;
clear: both;
position: relative;
overflow: hidden;
display: flex;
justify-content: space-between;
align-items: center;
}
.container-page-btn .btn{
margin:0 3px;
}
.container-window-btn-right {
display: flex;
align-items: center;
margin-left: auto;
column-gap: 3px;
}
.btns .btn {
margin:0 3px;
}
.w-form-select { .w-form-select {
width: max-content !important; width: max-content !important;
min-width: 6.25rem !important; min-width: 6.25rem !important;
@ -320,146 +265,8 @@ span.skeleton {
min-width: auto !important; min-width: auto !important;
} }
.resize-handle {
position: absolute;
top: 0; width: 7px; height: 40px;
background: transparent;
cursor: col-resize;
}
/* 배경색, 외곽선 */
.traffic {
}
.cleanparking {
--program-border : 1px solid #B5B9BB;
--program-border-shadow : 0 0 0 1px inset #FCFFFF;
--program-bg : #E3E6E8;
--program-title-bg : #EEC575;
--program-btn-bg : #F0F0F0;
--program-popup-bg : #E2E6E9;
}
.cleanparking.green {
--program-title-bg : #ADD773;
}
.border-program {
box-shadow: var(--program-border-shadow) !important;
border : var(--program-border) !important;
}
.bg-program {
background-color: var(--program-bg) !important;
}
.bg-program-btn {
background-color: var(--program-btn-bg) !important;
}
.bg-program-popup {
background-color: var(--program-popup-bg)!important;
}
.bg-program-title {
background-color: var(--program-title-bg) !important;
}
.no-bgi {
background-image: none !important;
}
/* pdf출력 설정 */
select.option-style-select[data-option-style='FILL_STROKE']{ font-weight: bold; }
select.option-style-select > option[value='FILL_STROKE']{ font-weight: bold; }
select.option-style-select[data-option-style='gulimche']{ font-family: gulimche; }
select.option-style-select[data-option-style='gulim']{ font-family: gulim; }
select.option-style-select[data-option-style='batangche']{ font-family: batangche; }
select.option-style-select[data-option-style='batang']{ font-family: batang; }
select.option-style-select[data-option-style='dotumche']{ font-family: dotumche; }
select.option-style-select[data-option-style='dotum']{ font-family: dotum; }
select.option-style-select[data-option-style='gungsuhche']{ font-family: gungsuhche; }
select.option-style-select[data-option-style='gungsuh']{ font-family: gungsuh; }
select.option-style-select > option[value='gulimche']{ font-family: gulimche; }
select.option-style-select > option[value='gulim']{ font-family: gulim; }
select.option-style-select > option[value='batangche']{ font-family: batangche; }
select.option-style-select > option[value='batang']{ font-family: batang; }
select.option-style-select > option[value='dotumche']{ font-family: dotumche; }
select.option-style-select > option[value='dotum']{ font-family: dotum; }
select.option-style-select > option[value='gungsuhche']{ font-family: gungsuhche; }
select.option-style-select > option[value='gungsuh']{ font-family: gungsuh; }
select.option-style-select[data-option-style='RED']{ color: var(--pdf-red);background-color: var(--pdf-red); }
select.option-style-select[data-option-style='GREEN']{ color: var(--pdf-green);background-color: var(--pdf-green); }
select.option-style-select[data-option-style='BLUE']{ color: var(--pdf-blue);background-color: var(--pdf-blue); }
select.option-style-select[data-option-style='YELLOW']{ color: var(--pdf-yellow);background-color: var(--pdf-yellow); }
select.option-style-select[data-option-style='ORANGE']{ color: var(--pdf-orange);background-color: var(--pdf-orange); }
select.option-style-select[data-option-style='YELLOW_GREEN']{ color: var(--pdf-yellow-green);background-color: var(--pdf-yellow-green); }
select.option-style-select[data-option-style='CYAN']{ color: var(--pdf-cyan);background-color: var(--pdf-cyan); }
select.option-style-select[data-option-style='GREEN_CYAN']{ color: var(--pdf-green-cyan);background-color: var(--pdf-green-cyan); }
select.option-style-select[data-option-style='CYAN_BLUE']{ color: var(--pdf-cyan-blue);background-color: var(--pdf-cyan-blue); }
select.option-style-select[data-option-style='MAGENTA']{ color: var(--pdf-magenta);background-color: var(--pdf-magenta); }
select.option-style-select[data-option-style='VIOLET']{ color: var(--pdf-violet);background-color: var(--pdf-violet); }
select.option-style-select[data-option-style='DEEP_PINK']{ color: var(--pdf-deep-pink);background-color: var(--pdf-deep-pink); }
select.option-style-select[data-option-style='WHITE']{ color: var(--pdf-white);background-color: var(--pdf-white); }
select.option-style-select[data-option-style='LIGHT_GREY']{ color: var(--pdf-light-grey);background-color: var(--pdf-light-grey); }
select.option-style-select[data-option-style='GREY']{ color: var(--pdf-grey);background-color: var(--pdf-grey); }
select.option-style-select[data-option-style='DARK_GREY']{ color: var(--pdf-dark-grey);background-color: var(--pdf-dark-grey); }
select.option-style-select[data-option-style='BLACK']{ color: var(--pdf-black);background-color: var(--pdf-black); }
select.option-style-select > option[value='RED']{ color: var(--pdf-red);background-color: var(--pdf-red); }
select.option-style-select > option[value='GREEN']{ color: var(--pdf-green);background-color: var(--pdf-green); }
select.option-style-select > option[value='BLUE']{ color: var(--pdf-blue);background-color: var(--pdf-blue); }
select.option-style-select > option[value='YELLOW']{ color: var(--pdf-yellow);background-color: var(--pdf-yellow); }
select.option-style-select > option[value='ORANGE']{ color: var(--pdf-orange);background-color: var(--pdf-orange); }
select.option-style-select > option[value='YELLOW_GREEN']{ color: var(--pdf-yellow-green);background-color: var(--pdf-yellow-green); }
select.option-style-select > option[value='CYAN']{ color: var(--pdf-cyan);background-color: var(--pdf-cyan); }
select.option-style-select > option[value='GREEN_CYAN']{ color: var(--pdf-green-cyan);background-color: var(--pdf-green-cyan); }
select.option-style-select > option[value='CYAN_BLUE']{ color: var(--pdf-cyan-blue);background-color: var(--pdf-cyan-blue); }
select.option-style-select > option[value='MAGENTA']{ color: var(--pdf-magenta);background-color: var(--pdf-magenta); }
select.option-style-select > option[value='VIOLET']{ color: var(--pdf-violet);background-color: var(--pdf-violet); }
select.option-style-select > option[value='DEEP_PINK']{ color: var(--pdf-deep-pink);background-color: var(--pdf-deep-pink); }
select.option-style-select > option[value='WHITE']{ color: var(--pdf-white);background-color: var(--pdf-white); }
select.option-style-select > option[value='LIGHT_GREY']{ color: var(--pdf-light-grey);background-color: var(--pdf-light-grey); }
select.option-style-select > option[value='GREY']{ color: var(--pdf-grey);background-color: var(--pdf-grey); }
select.option-style-select > option[value='DARK_GREY']{ color: var(--pdf-dark-grey);background-color: var(--pdf-dark-grey); }
select.option-style-select > option[value='BLACK']{ color: var(--pdf-black);background-color: var(--pdf-black); }
.min-w-max-c {
min-width: max-content;
}
#divdashboard {
max-height: 800px;
overflow-y:auto;
}
.modal-body-min {
min-height:10em;
min-width:30%;
}
.ox-auto {
overflow-x: auto;
}
.oy-auto {
overflow-y: auto;
}
.ox-scroll {
overflow-x: scroll;
}
.oy-scroll {
overflow-y: scroll;
}
.min-w-px-50 { .min-w-px-50 {
min-width: 50px; min-width: 50px;
@ -590,6 +397,124 @@ select.option-style-select > option[value='BLACK']{ color: var(--pdf-black);back
max-height: 800px; max-height: 800px;
} }
.min-w-max-c {
min-width: max-content;
}
/* 배경색, 외곽선 */
.traffic {
}
.cleanparking {
--program-border : 1px solid #B5B9BB;
--program-border-shadow : 0 0 0 1px inset #FCFFFF;
--program-bg : #E3E6E8;
--program-title-bg : #EEC575;
--program-btn-bg : #F0F0F0;
--program-popup-bg : #E2E6E9;
}
.cleanparking.green {
--program-title-bg : #ADD773;
}
.border-program {
box-shadow: var(--program-border-shadow) !important;
border : var(--program-border) !important;
}
.bg-program {
background-color: var(--program-bg) !important;
}
.bg-program-btn {
background-color: var(--program-btn-bg) !important;
}
.bg-program-popup {
background-color: var(--program-popup-bg)!important;
}
.bg-program-title {
background-color: var(--program-title-bg) !important;
}
.no-bgi {
background-image: none !important;
}
/* pdf출력 설정 */
select.option-style-select[data-option-style='FILL_STROKE']{ font-weight: bold; }
select.option-style-select > option[value='FILL_STROKE']{ font-weight: bold; }
select.option-style-select[data-option-style='gulimche']{ font-family: gulimche; }
select.option-style-select[data-option-style='gulim']{ font-family: gulim; }
select.option-style-select[data-option-style='batangche']{ font-family: batangche; }
select.option-style-select[data-option-style='batang']{ font-family: batang; }
select.option-style-select[data-option-style='dotumche']{ font-family: dotumche; }
select.option-style-select[data-option-style='dotum']{ font-family: dotum; }
select.option-style-select[data-option-style='gungsuhche']{ font-family: gungsuhche; }
select.option-style-select[data-option-style='gungsuh']{ font-family: gungsuh; }
select.option-style-select > option[value='gulimche']{ font-family: gulimche; }
select.option-style-select > option[value='gulim']{ font-family: gulim; }
select.option-style-select > option[value='batangche']{ font-family: batangche; }
select.option-style-select > option[value='batang']{ font-family: batang; }
select.option-style-select > option[value='dotumche']{ font-family: dotumche; }
select.option-style-select > option[value='dotum']{ font-family: dotum; }
select.option-style-select > option[value='gungsuhche']{ font-family: gungsuhche; }
select.option-style-select > option[value='gungsuh']{ font-family: gungsuh; }
select.option-style-select[data-option-style='RED']{ color: var(--pdf-red);background-color: var(--pdf-red); }
select.option-style-select[data-option-style='GREEN']{ color: var(--pdf-green);background-color: var(--pdf-green); }
select.option-style-select[data-option-style='BLUE']{ color: var(--pdf-blue);background-color: var(--pdf-blue); }
select.option-style-select[data-option-style='YELLOW']{ color: var(--pdf-yellow);background-color: var(--pdf-yellow); }
select.option-style-select[data-option-style='ORANGE']{ color: var(--pdf-orange);background-color: var(--pdf-orange); }
select.option-style-select[data-option-style='YELLOW_GREEN']{ color: var(--pdf-yellow-green);background-color: var(--pdf-yellow-green); }
select.option-style-select[data-option-style='CYAN']{ color: var(--pdf-cyan);background-color: var(--pdf-cyan); }
select.option-style-select[data-option-style='GREEN_CYAN']{ color: var(--pdf-green-cyan);background-color: var(--pdf-green-cyan); }
select.option-style-select[data-option-style='CYAN_BLUE']{ color: var(--pdf-cyan-blue);background-color: var(--pdf-cyan-blue); }
select.option-style-select[data-option-style='MAGENTA']{ color: var(--pdf-magenta);background-color: var(--pdf-magenta); }
select.option-style-select[data-option-style='VIOLET']{ color: var(--pdf-violet);background-color: var(--pdf-violet); }
select.option-style-select[data-option-style='DEEP_PINK']{ color: var(--pdf-deep-pink);background-color: var(--pdf-deep-pink); }
select.option-style-select[data-option-style='WHITE']{ color: var(--pdf-white);background-color: var(--pdf-white); }
select.option-style-select[data-option-style='LIGHT_GREY']{ color: var(--pdf-light-grey);background-color: var(--pdf-light-grey); }
select.option-style-select[data-option-style='GREY']{ color: var(--pdf-grey);background-color: var(--pdf-grey); }
select.option-style-select[data-option-style='DARK_GREY']{ color: var(--pdf-dark-grey);background-color: var(--pdf-dark-grey); }
select.option-style-select[data-option-style='BLACK']{ color: var(--pdf-black);background-color: var(--pdf-black); }
select.option-style-select > option[value='RED']{ color: var(--pdf-red);background-color: var(--pdf-red); }
select.option-style-select > option[value='GREEN']{ color: var(--pdf-green);background-color: var(--pdf-green); }
select.option-style-select > option[value='BLUE']{ color: var(--pdf-blue);background-color: var(--pdf-blue); }
select.option-style-select > option[value='YELLOW']{ color: var(--pdf-yellow);background-color: var(--pdf-yellow); }
select.option-style-select > option[value='ORANGE']{ color: var(--pdf-orange);background-color: var(--pdf-orange); }
select.option-style-select > option[value='YELLOW_GREEN']{ color: var(--pdf-yellow-green);background-color: var(--pdf-yellow-green); }
select.option-style-select > option[value='CYAN']{ color: var(--pdf-cyan);background-color: var(--pdf-cyan); }
select.option-style-select > option[value='GREEN_CYAN']{ color: var(--pdf-green-cyan);background-color: var(--pdf-green-cyan); }
select.option-style-select > option[value='CYAN_BLUE']{ color: var(--pdf-cyan-blue);background-color: var(--pdf-cyan-blue); }
select.option-style-select > option[value='MAGENTA']{ color: var(--pdf-magenta);background-color: var(--pdf-magenta); }
select.option-style-select > option[value='VIOLET']{ color: var(--pdf-violet);background-color: var(--pdf-violet); }
select.option-style-select > option[value='DEEP_PINK']{ color: var(--pdf-deep-pink);background-color: var(--pdf-deep-pink); }
select.option-style-select > option[value='WHITE']{ color: var(--pdf-white);background-color: var(--pdf-white); }
select.option-style-select > option[value='LIGHT_GREY']{ color: var(--pdf-light-grey);background-color: var(--pdf-light-grey); }
select.option-style-select > option[value='GREY']{ color: var(--pdf-grey);background-color: var(--pdf-grey); }
select.option-style-select > option[value='DARK_GREY']{ color: var(--pdf-dark-grey);background-color: var(--pdf-dark-grey); }
select.option-style-select > option[value='BLACK']{ color: var(--pdf-black);background-color: var(--pdf-black); }
.modal-body-min {
min-height:10em;
min-width:30%;
}
.border-separator-y { .border-separator-y {
border-top:1px solid #dfdfdf; border-top:1px solid #dfdfdf;
border-bottom:1px solid #dfdfdf; border-bottom:1px solid #dfdfdf;
@ -607,8 +532,6 @@ select.option-style-select > option[value='BLACK']{ color: var(--pdf-black);back
object-fit: contain; object-fit: contain;
} }
body:not(.root-privacy-on) td.privacy-cell span:nth-child(1){ body:not(.root-privacy-on) td.privacy-cell span:nth-child(1){
display:block; display:block;
} }
@ -623,4 +546,3 @@ body.root-privacy-on td.privacy-cell span:nth-child(1){
body.root-privacy-on td.privacy-cell span:nth-child(2){ body.root-privacy-on td.privacy-cell span:nth-child(2){
display:block; display:block;
} }

@ -0,0 +1,313 @@
@charset "UTF-8";
/** 스타일 재정의 */
/** 컨테이너 사이즈 */
@media (min-width: 1400px) {
.container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
max-width: 1600px;
}
}
/** 기본 폰트,버튼 배경 */
:root{
--bs-font-sans-serif: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
--bs-root-font-size: 14px;
--bs-body-font-size: 14px; /* body 폰트사이즈 */
--bs-body-bg: #ffffff;
--bs-btn-hover-bg : #eee;
--bs-btn-active-bg : #d2d2d2;
--bs-btn-disabled-bg : #676767;
}
/** 버튼 폰트,패딩,높이,색상 */
.btn {
--bs-btn-font-family: "Public Sans";
--bs-btn-padding-x: 0.9375rem;
--bs-btn-padding-y: 0.9375rem;
--bs-btn-font-size: 1rem;
--bs-btn-height: var(--bs-btn-font-size);
--bs-btn-font-weight: 600;
--bs-btn-line-height: 1.875rem;
--bs-btn-hover-bg: #eee;
}
.btn-xl, .btn-group-xl > .btn {
--bs-btn-font-size: 1.25rem;
--bs-btn-padding-x: 2.125rem;
--bs-btn-padding-y: 1.25rem;
--bs-btn-border-radius: 0.625rem;
}
/** 카드 */
.card {
--bs-card-title-spacer-y: 0.175rem;
--bs-card-border-width: 1px;
--bs-card-body-border-width: 0;
--bs-card-box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
--bs-card-cap-padding-y: 0.75rem;
--bs-card-cap-padding-x: 0.75rem;
}
/** 모달 해더 패딩 */
.modal {
--bs-modal-header-padding: 0.5rem 1.5rem 0.25rem;
}
/** 네비게이션 링크 폰트 크기,굵기*/
.nav {
--bs-nav-link-font-size: 1rem;
--bs-nav-link-font-weight: 600;
}
/** 모달 닫기 버튼 */
.modal .modal-header .btn-close {
margin-top: 0;
}
.modal-header .btn-close {
margin-top: 0;
margin-right: calc(-0.5* var(--bs-modal-header-padding-x));
margin-bottom: calc(-0.5* var(--bs-modal-header-padding-y));
margin-left: auto;
}
/** 모달 마진 */
.modal-dialog:not(.modal-dialog-centered) {
margin-top: 30px;
}
/** 카드 헤더 */
.card-header {
border-bottom: var(--bs-card-body-border-width) solid var(--bs-card-border-color);
}
/** 내비게이션 탭 */
.nav-tabs {
--bs-nav-tabs-border-radius: 0rem;
--bs-nav-tabs-link-border-radius: 0.375rem;
--bs-nav-tabs-bg-image: none;
--bs-nav-tabs-padding-top: 0rem;
--bs-nav-tabs-padding-left: 0rem;
padding-top: var(--bs-nav-tabs-padding-top);
padding-left: var(--bs-nav-tabs-padding-left);
border-radius: var(--bs-nav-tabs-border-radius);
}
/** 내비게이션 아이템 */
ul.nav-tabs > li.nav-item {
align-items: center;
}
/** 내비게이션 링크 */
.nav-link {
height: 1.875rem
}
.nav-tabs .nav-item .nav-link {
border: 1px solid #d9dee3;
}
.menu-vertical .menu-item .menu-link {
font-size: 1rem;
}
/** 메뉴 링크 */
.bg-menu-theme .menu-sub > .menu-item > .menu-link:before {
display: none;
}
ol > li::marker {
font-weight: bold
}
/** 내비게이션 링크 */
.nav-align-top .nav-tabs .nav-item .nav-link.active, .nav-align-top .nav-tabs .nav-item .nav-link:active {
border-bottom-color: #fff;
}
.nav-tabs .nav-item .nav-link.active, .nav-tabs .nav-item .nav-link:active {
box-shadow: none !important;
}
/** 폼 컨트롤 길이 */
.form-control {
width: initial;
}
/** 레이아웃 네비게이션바 */
.layout-navbar {
height: 4rem;
color : #000000;
}
/** 라벨 폰트사이즈 */
.form-label, .col-form-label {
font-size: 1rem;
}
/** 모달 닫기 버튼 */
.modal .modal-header .btn-close {
border: 1px solid black !important;
}
/** 버튼 */
.btn {
min-width: max-content;
height: 1rem;
}
.btn-outline-dark {
background: white;
}
/** 체크박스,라디오 */
.custom-option-basic .custom-option-content {
padding: 0.2rem;
}
/** 레이아웃 네비게이션바 컨테이너 */
.layout-navbar.navbar-detached.container-xxl {
max-width: 1600px;
}
/** 굵은 글씨 */
b,
strong {
font-weight: 700;
}
/** 폼컨트롤 폰트크기,패딩,디스플레이 */
.form-control {
font-size: 1rem;
display: inline-block;
padding: 0.25rem 0.625rem;
}
/** 폼셀렉트 */
.form-select {
display: inline-block;
color: #515151;
font-size: 1rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
padding-left: 0.625rem;
padding-right: 1.25rem;
background-position: right 0.25rem center;
width: max-content;
min-width: 6.25rem;
max-width: 16.25rem;
}
/** 테이블 */
.table-responsive {
overflow-x: auto;
border: solid 1px #d9dee3;
}
.table > :not(caption) > * > * {
padding: 0.625rem 1rem;
}
/* 그리드 테이블 */
.dataTable thead{
background-color:#FCFDFD;
}
.dataTable th{
text-align: center;
}
.dataTable td,
.dataTable th {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* 모달 사이즈 */
.modal-sm { min-width: 250px; --bs-modal-width: 310px; }
.modal-md { min-width: 400px; --bs-modal-width: 500px; }
.modal-lg { min-width: 800px; --bs-modal-width: 1000px; }
.modal-xl { min-width: 1000px; --bs-modal-width: 1140px; }
.modal-xxl { min-width: 1400px; --bs-modal-width: 1600px; }
/** 길이,높이 설정 추가 */
.w-px-10 { width: 10px !important; }
.w-px-60 { width: 60px !important; }
.w-px-70 { width: 70px !important; }
.w-px-80 { width: 80px !important; }
.w-px-90 { width: 90px !important; }
.w-px-110 { width: 110px !important; }
.w-px-120 { width: 120px !important; }
.w-px-130 { width: 130px !important; }
.w-px-140 { width: 140px !important; }
.w-px-160 { width: 160px !important; }
.w-px-170 { width: 170px !important; }
.w-px-180 { width: 180px !important; }
.w-px-190 { width: 190px !important; }
.w-px-210 { width: 210px !important; }
.w-px-220 { width: 220px !important; }
.w-px-230 { width: 230px !important; }
.w-px-240 { width: 240px !important; }
.w-px-300 { width: 300px !important; }
.w-px-320 { width: 320px !important; }
.w-px-450 { width: 450px !important; }
.w-px-550 { width: 550px !important; }
.w-px-900 { width: 900px !important; }
.w-px-1000 { width: 1000px !important; }
.w-px-1100 { width: 1100px !important; }
.w-px-1150 { width: 1150px !important; }
.w-px-1200 { width: 1200px !important; }
.w-px-1300 { width: 1300px !important; }
.w-px-1400 { width: 1400px !important; }
.w-px-1500 { width: 1500px !important; }
.w-10 { width: 10% !important; }
.w-15 { width: 15% !important; }
.w-20 { width: 20% !important; }
.w-30 { width: 30% !important; }
.w-35 { width: 35% !important; }
.w-40 { width: 40% !important; }
.w-45 { width: 45% !important; }
.w-55 { width: 55% !important; }
.w-60 { width: 60% !important; }
.w-65 { width: 65% !important; }
.w-70 { width: 70% !important; }
.w-78 { width: 78% !important; }
.w-80 { width: 80% !important; }
.w-85 { width: 85% !important; }
.w-87 { width: 87% !important; }
.w-90 { width: 90% !important; }
.w-95 { width: 95% !important; }
.h-px-10 { height: 10px !important; }
.h-px-25 { height: 25px !important; }
.h-px-60 { height: 60px !important; }
.h-px-70 { height: 70px !important; }
.h-px-80 { height: 80px !important; }
.h-px-125 { height: 125px !important; }
.h-px-175 { height: 175px !important; }
.h-px-450 { height: 450px !important; }
.h-px-550 { height: 550px !important; }
.h-px-650 { height: 650px !important; }
.h-px-750 { height: 750px !important; }
.h-px-850 { height: 850px !important; }
.h-px-900 { height: 900px !important; }
.h-px-950 { height: 950px !important; }
/** 폰트 사이즈 재정의 */
.fs-1 { font-size: 2.375rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.625rem !important; }
.fs-4 { font-size: 1.375rem !important; }
.fs-5 { font-size: 1.125rem !important; }
.fs-6 { font-size: 0.9375rem !important; }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -15,9 +15,14 @@
<link rel="stylesheet" href="/resources/fonts/xit-icon.css" /> <link rel="stylesheet" href="/resources/fonts/xit-icon.css" />
<!-- Core CSS --> <!-- Core CSS -->
<link rel="stylesheet" href="/resources/css/xit-core.css" /> <link rel="stylesheet" href="/webjars/3rd-party/sneat/css/rtl/core.css" class="template-customizer-core-css" />
<link rel="stylesheet" href="/resources/css/xit-extend.css" /> <link rel="stylesheet" href="/webjars/3rd-party/sneat/css/rtl/theme-default.css" class="template-customizer-theme-css" />
<link rel="stylesheet" href="/webjars/css/styles.css"/> <link rel="stylesheet" href="/webjars/css/styles.css" />
<link rel="stylesheet" href="/webjars/applib/css/overwrite.css" />
<link rel="stylesheet" href="/webjars/applib/css/applib.css" />
<link rel="stylesheet" href="/resources/css/fims.css" />
<!-- Vendors CSS --> <!-- Vendors CSS -->
<link rel="stylesheet" href="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css" /> <link rel="stylesheet" href="/webjars/3rd-party/sneat/libs/perfect-scrollbar/perfect-scrollbar.css" />

@ -196,57 +196,6 @@ function fnMakeRowNumberingTable(tbody, markerFinder, markerSetter){
mo.observe(tbody, {childList : true}); mo.observe(tbody, {childList : true});
} }
/**************************************************************************
* 스크롤 테이블
**************************************************************************/
function fnMakeScrollableTable(tableScrollEl, thisScrollendEvent){
tableScrollEl.thisScrollendEvent = thisScrollendEvent;
tableScrollEl.changeContent = function(content, initScrollPosition, noMore){
var beforeRender = this.scrollTop;
$(this).find("tbody").html(content);
this.scrollTop = 0;
var min = this.scrollTop;
this.scrollTop = this.scrollHeight;
var max = this.scrollTop;
var hasScroll = (min != max);
var more = document.createElement("tr");
if(hasScroll && !noMore){
more.classList.add("h-px-30");
$(this).find("tbody").append(more);
var ioCallbackFunc = function(entries, observer){
var entry = entries[0];
var target = entry.target;
if(entry.isIntersecting){
observer.unobserve(target);
tableScrollEl.thisScrollendEvent();
}
};
var io = new IntersectionObserver(ioCallbackFunc, {threshold : 0});
io.observe(more);
}
if(initScrollPosition){
this.scrollTop = 0;
} else {
var afterRender = this.scrollTop;
if(beforeRender < afterRender){
this.scrollTop = beforeRender;
}
}
};
}
/************************************************************************** /**************************************************************************
* 단일 업로드 이미지 뷰어 * 단일 업로드 이미지 뷰어
@ -281,131 +230,3 @@ function fnMakeSingleImageViewer(imgEl, fileInputEl, dataAttributeForFilePath, d
}); });
} }
/**************************************************************************
* 드래그 가능한 다이얼로그
**************************************************************************/
function fnMakeDraggableDialog(dialogEl) {
var currentDialog;
var currentPosX = 0, currentPosY = 0, previousPosX = 0, previousPosY = 0;
function fnDragMouseDown(e) {
e.preventDefault();
currentDialog = this.targetDialog;
previousPosX = e.clientX;
previousPosY = e.clientY;
document.onmouseup = fnCloseDragElement;
document.onmousemove = fnElementDrag;
}
function fnElementDrag(e) {
e.preventDefault();
currentPosX = previousPosX - e.clientX;
currentPosY = previousPosY - e.clientY;
previousPosX = e.clientX;
previousPosY = e.clientY;
currentDialog.style.top = (currentDialog.offsetTop - currentPosY) + 'px';
currentDialog.style.left = (currentDialog.offsetLeft - currentPosX) + 'px';
}
function fnCloseDragElement() {
document.onmouseup = null;
document.onmousemove = null;
}
$(dialogEl).find(".modal-header")[0].targetDialog = dialogEl;
$(dialogEl).find(".modal-header")[0].onmousedown = fnDragMouseDown;
}
/**************************************************************************
* 컬럼 크기 조절 테이블
**************************************************************************/
function fnMakeResizableTable(containerEl){
var cur_container, cur_handle, cur_index, cur_col, cur_col_width;
var cursorStart = 0, dragStart = false;
function fnMouseDown(e){
e.preventDefault();
cur_handle = this;
cur_container = cur_handle.tableContainer;
cur_index = parseInt(cur_handle.getAttribute("data-resizecol"))-1;
var thEls = $(cur_container.getElementsByTagName("table")[0]).find("th").not(".dummy-th");
cur_col = thEls[cur_index];
cur_col_width = cur_col.getBoundingClientRect().width;
dragStart = true;
cursorStart = event.pageX;
document.onmouseup = fnCloseResize;
document.onmousemove = fnMouseMove;
}
function fnMouseMove(e){
e.preventDefault();
if(dragStart){
var cursorPosition = event.pageX;
var mouseMoved = (cursorPosition - cursorStart);
var newWidth = cur_col_width + mouseMoved;
if(newWidth > 30){
cur_col.style.width = newWidth+"px";
}
}
}
function fnCloseResize(e){
document.onmousemove = null;
document.onmouseup = null;
cur_container.removeHandle();
cur_container.addHandle();
}
containerEl.style.position = "relative";
containerEl.addHandle = function(){
var thEls = $(this.getElementsByTagName("table")[0]).find("th").not(".dummy-th");
var th_length = thEls.length;
var widthAcc = 0;
for(var i=0; i < th_length; i++){
widthAcc += thEls[i].getBoundingClientRect().width;
var yDiv = document.createElement("div");
yDiv.className = "resize-handle";
yDiv.setAttribute("data-resizecol",i+1);
yDiv.style.cssText = "left: "+widthAcc+"px;";
this.append(yDiv);
}
handleEls = this.getElementsByClassName("resize-handle");
var handle_length = handleEls.length;
for(var i = 0; i < handle_length; i++){
handleEls[i].tableContainer = this;
handleEls[i].onmousedown = fnMouseDown;
}
};
containerEl.removeHandle = function(){
$(this).find(".resize-handle").remove();
}
containerEl.changeColumn = function(ths){
this.removeHandle();
$(this).find("table thead tr").html(ths);
this.addHandle();
}
containerEl.addHandle();
}
Loading…
Cancel
Save