Skip to content

Commit

Permalink
Working on removing Material Design 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bbalganjjm committed Jun 25, 2024
1 parent 7955c78 commit 25a1b34
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 21 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ html [lang] {
}

/* input element styles */
input:not([type='radio'], [type='checkbox']), select, textarea {
input:not([type='radio'], [type='checkbox'], [type='button']), select, textarea {
color: var(--md-sys-color-on-surface);
vertical-align: middle;
box-sizing: border-box;
Expand All @@ -55,8 +55,8 @@ input:not([type='radio'], [type='checkbox']), select, textarea {
margin: 2px 0;
}

input:not([type='radio'], [type='checkbox']):hover, select:hover, textarea:hover,
input:not([type='radio'], [type='checkbox']):focus, select:focus, textarea:focus {
input:not([type='radio'], [type='checkbox'], [type='button']):hover, select:hover, textarea:hover,
input:not([type='radio'], [type='checkbox'], [type='button']):focus, select:focus, textarea:focus {
border: 1px solid var(--md-sys-color-outline-variant);
}

Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/static/css/common.pub.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
@charset "utf-8";

.icon-search {
display: inline-block;
height: 27px;
width: 27px;
background-image: var(--njs-icon-search);
background-size: 19px;
background-repeat: no-repeat;
background-position: 50%;
}

/* search-panel */
.view_context__ form:not(.select_input_container__) label {
white-space: nowrap;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/static/html/com/app/sample/type0201.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
<tr>
<td><input id="about" type="text"></td>
<td colspan="2">
<input id="deptNm" type="text" data-validate='[["required"]]' style="width: 75%;" readonly="readonly">
<button id="btnDept" data-opts='{ "size": "middle" }'>Q</button>
<input id="deptNm" type="text" data-validate='[["required"]]' style="max-width: 75%;" readonly="readonly">
<button id="btnDeptCd" data-opts='{ "type": "outlined" }' class="icon-search"></button>
</td>
<td colspan="2"><input id="greeting" type="text"></td>
</tr>
Expand Down Expand Up @@ -176,7 +176,7 @@
inst : "p.grid.master"
});
},
"e.btnDept.click" : function(e, idx) {
"e.btnDeptCd.click" : function(e, idx) {
e.preventDefault();

cont.selIdx = idx;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<span>Department</span>
<input id="deptNm" type="text" data-validate='[["required"]]' readonly="readonly" style="width: 70%;">
</label>
<button id="btnDeptCd" data-opts='{ "size": "middle" }'>Q</button>
<button id="btnDeptCd" data-opts='{ "type": "outlined" }' class="icon-search"></button>
</li>
<li>
<label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<span>Department</span>
<input id="deptNm" type="text" data-validate='[["required"]]' readonly="readonly" style="width: 70%;">
</label>
<button id="btnDeptCd" data-opts='{ "size": "middle" }'>Q</button>
<button id="btnDeptCd" data-opts='{ "type": "outlined" }' class="icon-search"></button>
</li>
<li>
<label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<span>Department</span>
<input id="deptNm" type="text" data-validate='[["required"]]' readonly="readonly" style="width: 70%;">
</label>
<button id="btnDeptCd" data-opts='{ "size": "middle" }'>Q</button>
<button id="btnDeptCd" data-opts='{ "type": "outlined" }' class="icon-search"></button>
</li>
<li>
<label>
Expand Down
16 changes: 8 additions & 8 deletions src/main/resources/static/js/natural_js/css/natural.ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,38 +314,38 @@ a.btn_tertiary_container__, input[type='button'].btn_tertiary_container__, butto
a.btn_primary__.btn_outlined__, input[type='button'].btn_primary__.btn_outlined__, button.btn_primary__.btn_outlined__ {
border: 1px solid var(--md-sys-color-primary);
color: var(--md-sys-color-on-surface);
background: none;
background-color: transparent;
}
a.btn_primary_container__.btn_outlined__, input[type='button'].btn_primary_container__.btn_outlined__, button.btn_primary_container__.btn_outlined__ {
border: 1px solid var(--md-sys-color-primary-container);
color: var(--md-sys-color-on-surface);
background: none;
background-color: transparent;
}
a.btn_secondary__.btn_outlined__, input[type='button'].btn_secondary__.btn_outlined__, button.btn_secondary__.btn_outlined__ {
border: 1px solid var(--md-sys-color-secondary);
color: var(--md-sys-color-on-surface);
background: none;
background-color: transparent;
}
a.btn_secondary_container__.btn_outlined__, input[type='button'].btn_secondary_container__.btn_outlined__, button.btn_secondary_container__.btn_outlined__ {
border: 1px solid var(--md-sys-color-secondary-container);
color: var(--md-sys-color-on-surface);
background: none;
background-color: transparent;
}
a.btn_tertiary__.btn_outlined__, input[type='button'].btn_tertiary__.btn_outlined__, button.btn_tertiary__.btn_outlined__ {
border: 1px solid var(--md-sys-color-tertiary);
color: var(--md-sys-color-on-surface);
background: none;
background-color: transparent;
}
a.btn_tertiary_container__.btn_outlined__, input[type='button'].btn_tertiary_container__.btn_outlined__, button.btn_tertiary_container__.btn_outlined__ {
border: 1px solid var(--md-sys-color-tertiary-container);
color: var(--md-sys-color-on-surface);
background: none;
background-color: transparent;
}

a.btn_elevated__, input[type='button'].btn_elevated__, button.btn_elevated__ {
border: 1px solid transparent;
color: var(--md-sys-color-on-surface);
background: none;
background-color: transparent;
box-shadow: var(--njs-elevation-s);;
}

Expand Down Expand Up @@ -609,7 +609,7 @@ a.btn_elevated__, input[type='button'].btn_elevated__, button.btn_elevated__ {
height: 22px;
width: 22px;
background: var(--njs-icon-search) 50% 50% no-repeat;
background-size: 18px;
background-size: 14px;
position: absolute;
right: 4px;
margin-top: 1px;
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/templates/common/app/file/manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
.file_manager__ .delete_file_item__ > span, .file_manager__ .delete_file__ > span {
display: inline-block;
text-indent: -1000px;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wIYCDkVrZsQowAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAADZSURBVDjLtZOxDgFBEIa/uIv23sA7aEm8BI03uUJDwRNodBoaCp6AggjRX0NBLSERxTU0u8lmM3PuEiaZbHbn3293Z2bhx1YBVsAQCBRNB9gBVQ1wAt7GpwJo4MRvEmjtCKxPHFBfiF/t5tCMCdDwwG0jvgCxcPvEXygDM+E0zTdAJOUlL2irAVzQvCig5M1T6a2OnYHnt17p5XjOOKOP6BZIrAiKFfEeWCqxkQ85KoDIJHshxO8+pAY8HMHBq4IPSoGWlJO6+RNaH9jyv4BmVnWCHL895B/2AShtccx+lX2aAAAAAElFTkSuQmCC') no-repeat right 4px;
background-size: 12px 12px;
background: var(--njs-icon-delete) no-repeat right 50%;
background-size: 16px 16px;
height: 20px;
width: 12px;
margin-left: 10px;
width: 16px;
margin-left: 6px;
}

.file_manager__ .desc > ul {
Expand Down

0 comments on commit 25a1b34

Please sign in to comment.