jobdone-shared-files 1.0.22 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -403,8 +403,8 @@ import OOXX from '../../node_modules/jobdone-shared-files/OOXX.vue';
403
403
  | LayoutProject | Project 使用的共用樣式,含開合雙欄樣式 | 是 |
404
404
  | LayoutSinglePage | 單頁版面的樣式,如:登入、錯誤頁、條款等 | 是 |
405
405
  | LayoutTwoColumn | 雙欄可開合樣式 | 是 |
406
+ | LayoutInnerColumn | 針對 Project 雙欄樣式內的雙欄樣式 | 是 |
406
407
  | LayoutDocs | 針對條文調整的樣式 | 否 |
407
- | LayoutInnerColumn | 針對 Project 雙欄樣式內的雙欄樣式 | 否 |
408
408
  | LayoutOutside | 針對 (底層) Project 外的共用樣式 | 否 |
409
409
 
410
410
  ### Common
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,264 @@
1
+ @import "../../../../bootstrap/scss/functions";
2
+ @import "../Settings/bs-variables";
3
+ @import "../../../../bootstrap/scss/mixins";
4
+ @import "../Settings/custom-variables";
5
+ @import "../Settings/Mixins";
6
+ .main-content {
7
+ display: flex;
8
+ height: 100%;
9
+ width: 100%;
10
+ .sidebar-content, .detail-content {
11
+ border-radius: 0.25rem;
12
+ border-bottom-left-radius: 0;
13
+ border-bottom-right-radius: 0;
14
+ }
15
+ .sidebar-content {
16
+ flex-basis: 250px;
17
+ margin-right: 0.75rem;
18
+ height: 100%;
19
+
20
+ }
21
+ .detail-content {
22
+ flex-grow: 1;
23
+ flex-shrink: 1;
24
+ flex-basis: 500px;
25
+ .title-nav {
26
+ display: flex;
27
+ align-items: center;
28
+ position: sticky;
29
+ top: 0;
30
+ z-index: $zindex-sticky + 2;
31
+ height: 2.75rem;
32
+ }
33
+ }
34
+ }
35
+
36
+ .form-filter-input{
37
+ min-width: 18rem !important;
38
+ }
39
+
40
+ #col-main{
41
+ display: flex;
42
+ flex-direction: column;
43
+ height: 100%;
44
+ width: 100%;
45
+ .main-content{
46
+ height: auto;
47
+ overflow: hidden;
48
+ }
49
+ }
50
+
51
+ .sidebar-content{
52
+ .thead-sidebar{
53
+ top: calc( -0.5rem - #{$border-width} );
54
+ }
55
+ .table {
56
+ tbody {
57
+ .th-num {
58
+ @include tableTdNum();
59
+ }
60
+ tr {
61
+ cursor: pointer;
62
+ &.is-edit{
63
+ cursor: auto;
64
+ }
65
+ &.disabled, &:disabled{
66
+ cursor: not-allowed;
67
+ }
68
+ &.disabled, &:disabled, &.is-edit{
69
+ th, td{
70
+ color: $gray-500;
71
+ }
72
+ &.clicked th, &.clicked td{
73
+ background-color: $gray-200;
74
+ color: $gray-600;
75
+ }
76
+
77
+ &.clicked td:nth-last-child(1){
78
+ &:nth-last-child(1):after{
79
+ background-color: $gray-600;
80
+ }
81
+ }
82
+ }
83
+ }
84
+ .clicked {
85
+ th,
86
+ td {
87
+ background-color: rgba($primary, 0.1);
88
+ color: $primary;
89
+ }
90
+ td:nth-last-child(1) {
91
+ position: relative;
92
+ &:after {
93
+ content: "";
94
+ position: absolute;
95
+ height: 100%;
96
+ width: 0.25rem;
97
+ right: 0;
98
+ top: 0;
99
+ z-index: 1;
100
+ background-color: $primary;
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+
108
+ .fs-7 {
109
+ font-size: 0.85rem;
110
+ }
111
+
112
+
113
+ $w-shadow: 10px;
114
+
115
+ .th-shadow-end, .th-shadow-start{
116
+ position: relative;
117
+ &:after {
118
+ content: "";
119
+ display: block;
120
+ position: absolute;
121
+ top: 0;
122
+ bottom: 0;
123
+ width: $w-shadow;
124
+ pointer-events: none;
125
+ }
126
+
127
+ }
128
+ .th-shadow-end{
129
+ &:after {
130
+ right: -$w-shadow;
131
+ background: linear-gradient(90deg, rgba($primary, 0.1) 0%, rgba($primary, 0) 100%);
132
+ }
133
+ }
134
+ .th-shadow-start{
135
+ &:after{
136
+ left: -$w-shadow;
137
+ background: linear-gradient(90deg, rgba($primary, 0) 0%, rgba($primary, 0.1) 100%);
138
+ }
139
+ }
140
+
141
+
142
+ .th-num, .th-code, .th-name, .th-end {
143
+ position: sticky;
144
+ z-index: $zindex-dropdown + 1;
145
+ }
146
+
147
+ .th-num {
148
+ left: 0;
149
+ }
150
+
151
+ .th-code {
152
+ left: 39px;
153
+ }
154
+
155
+ .th-name{
156
+ left: 166px;
157
+ > div{
158
+ display: flex;
159
+ }
160
+ }
161
+
162
+ .th-end{
163
+ right: 0;
164
+ }
165
+
166
+ .title-nav, .nav-paginate{
167
+ position: sticky;
168
+ top: 0;
169
+ left: 0;
170
+ }
171
+
172
+ .btn-more{
173
+ transition: .5s;
174
+ }
175
+
176
+ .text-title:not(.text-line-clamp-1){
177
+ + .btn-more{
178
+ transform: rotate(-180deg);
179
+ }
180
+ }
181
+
182
+
183
+ // TODO: 統一 UI
184
+ $check-full-width: 23rem;
185
+ .check-btn{
186
+ position: relative;
187
+ display: inline-block;
188
+ margin: 1rem;
189
+ .check-btn-label{
190
+ width: $check-full-width;
191
+ padding: 1rem 1rem;
192
+ color: var(--gray-500);
193
+ border: $border-width solid $border-color;
194
+ border-radius: $border-radius;
195
+ text-align: center;
196
+ cursor: pointer;
197
+ transition: $transition-base;
198
+ &:hover{
199
+ color: $info;
200
+ border-color: $info;
201
+ background-color: $table-hover-bg;
202
+ }
203
+ &.check-btn-label-lg{
204
+ padding: 2rem 1rem;
205
+ width: 10.5rem;
206
+ }
207
+ }
208
+ .material-icons{
209
+ font-size: 4rem;
210
+ }
211
+ input[type="checkbox"], input[type="radio"]{
212
+ position: absolute;
213
+ pointer-events: none;
214
+ @include size(0);
215
+ opacity: 0;
216
+ &:checked ~ .check-btn-label{
217
+ color: $primary;
218
+ border-color: $primary;
219
+ background-color: $table-hover-bg;
220
+
221
+ }
222
+ }
223
+ }
224
+
225
+ .list-group-flush{
226
+ --bs-list-group-bg: transparent;
227
+ }
228
+
229
+
230
+
231
+
232
+ .modal-belong-options{
233
+ .content-options, .content-items{
234
+ padding: .5rem;
235
+ background-color: $gray-600;
236
+ }
237
+ .content-options{
238
+ padding-bottom: 0;
239
+ }
240
+ .content-items{
241
+ $line-h: 1.5rem;
242
+ position: relative;
243
+ padding-left: 2.25rem;
244
+ .overflow-y-auto{
245
+ height: 62vh;
246
+ }
247
+ &:before, &:after{
248
+ content: "";
249
+ position: absolute;
250
+ }
251
+ &:before{
252
+ left: 1.5rem;
253
+ top: 0;
254
+ height: $line-h;
255
+ border-left: 4px solid $gray-500;
256
+ }
257
+ &:after{
258
+ left: 1.5rem;
259
+ top: $line-h;
260
+ width: .7rem;
261
+ border-top: 4px solid $gray-500;
262
+ }
263
+ }
264
+ }
package/treeItem.vue CHANGED
@@ -231,7 +231,6 @@
231
231
  position: relative;
232
232
  flex-grow: 1;
233
233
  transition: $transition-base;
234
- z-index: 2;
235
234
  }
236
235
  }
237
236