Skip to content

Commit 7c2e758

Browse files
committed
737830a0b42b34e0ab888086db72dfe982c28ef4 Fix: Improved layout for StateRestore modals
DD-2795 and others Sync to source repo @737830a0b42b34e0ab888086db72dfe982c28ef4
1 parent de7e1e6 commit 7c2e758

3 files changed

Lines changed: 20 additions & 97 deletions

File tree

css/stateRestore.jqueryui.css

Lines changed: 18 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@ div.dtsr-creation {
1212
box-sizing: border-box;
1313
padding: 2em;
1414
}
15-
div.dtsr-confirmation button,
16-
div.dtsr-creation button {
17-
display: inline-block;
18-
margin: 1em;
19-
padding: 0.5em 1em;
20-
border-radius: 0.5em;
21-
border: 1px solid rgba(0, 0, 0, 0.175);
22-
background-color: #f6f6f6;
23-
text-align: left;
24-
cursor: pointer;
25-
}
26-
div.dtsr-confirmation button:hover,
27-
div.dtsr-creation button:hover {
28-
background-color: #ebebeb;
29-
}
3015
div.dtsr-confirmation div.dtsr-creation-text,
3116
div.dtsr-confirmation div.dtsr-confirmation-title-row,
3217
div.dtsr-creation div.dtsr-creation-text,
@@ -37,6 +22,7 @@ div.dtsr-confirmation div.dtsr-creation-text h2,
3722
div.dtsr-confirmation div.dtsr-confirmation-title-row h2,
3823
div.dtsr-creation div.dtsr-creation-text h2,
3924
div.dtsr-creation div.dtsr-confirmation-title-row h2 {
25+
padding-left: 0;
4026
border-bottom: 0px;
4127
margin-top: 0px;
4228
padding-top: 0px;
@@ -86,34 +72,36 @@ div.dtsr-creation div.dtsr-creation-form div.dtsr-name-row {
8672
}
8773
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row,
8874
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row {
75+
display: flex;
8976
margin: 0.5em 0;
9077
}
9178
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row:first-child,
9279
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row:first-child {
93-
margin-top: 0;
80+
margin-top: 1em;
81+
margin-bottom: 1em;
9482
}
9583
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row:last-child,
9684
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row:last-child {
9785
margin-bottom: 0;
9886
}
99-
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row label.dtsr-name-label,
100-
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row label.dtsr-name-label {
87+
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row label,
88+
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row label {
10189
width: 25%;
102-
display: inline-block;
90+
padding-right: 1em;
10391
text-align: right;
104-
padding-right: 15px;
105-
padding-left: 15px;
92+
padding-top: 2px;
10693
}
107-
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row input.dtsr-name-input,
108-
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row input.dtsr-name-input {
109-
width: 66.6%;
110-
display: inline-block;
94+
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input,
95+
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input {
96+
width: 75%;
11197
}
112-
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row input.dtsr-check-box,
113-
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row input.dtsr-check-box {
114-
margin-left: 25%;
115-
margin-right: 14px;
116-
display: inline-block;
98+
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label,
99+
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label {
100+
margin-bottom: 0.5em;
101+
}
102+
div.dtsr-confirmation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label input,
103+
div.dtsr-creation div.dtsr-creation-form div.dtsr-form-row div.dtsr-input div.dtsr-check-label input {
104+
margin-right: 0.5em;
117105
}
118106
div.dtsr-confirmation div.dtsr-confirmation-text,
119107
div.dtsr-creation div.dtsr-confirmation-text {
@@ -131,12 +119,6 @@ div.dtsr-creation div.dtsr-confirmation-text input.dtsr-name-input {
131119
width: 66.6%;
132120
display: inline-block;
133121
}
134-
div.dtsr-confirmation div.dtsr-confirmation-text input.dtsr-check-box,
135-
div.dtsr-creation div.dtsr-confirmation-text input.dtsr-check-box {
136-
margin-left: 33.3%;
137-
margin-right: 14px;
138-
display: inline-block;
139-
}
140122
div.dtsr-confirmation div.dtsr-modal-foot,
141123
div.dtsr-creation div.dtsr-modal-foot {
142124
text-align: right;
@@ -221,62 +203,3 @@ html[data-bs-theme=dark] div.dtsr-confirmation button:hover,
221203
html[data-bs-theme=dark] div.dtsr-creation button:hover {
222204
background-color: #404549;
223205
}
224-
225-
div.dt-button-collection {
226-
z-index: 2002;
227-
}
228-
div.dt-button-collection div, div.dt-button-collection ul {
229-
background: none;
230-
}
231-
232-
span.dtsr-emptyStates {
233-
background: white;
234-
padding-top: 2px !important;
235-
}
236-
237-
div.dt-btn-split-wrapper {
238-
display: inline-block !important;
239-
width: 100%;
240-
}
241-
div.dt-btn-split-wrapper button.ui-button {
242-
display: inline-block !important;
243-
width: calc(100% - 24px);
244-
}
245-
div.dt-btn-split-wrapper button.dt-btn-split-drop {
246-
display: inline-block !important;
247-
width: 24px;
248-
}
249-
250-
div.dt-button-split-left {
251-
padding-bottom: 0px;
252-
}
253-
div.dt-button-split-left button.dt-btn-split-drop-button {
254-
width: 100%;
255-
display: block;
256-
margin-bottom: 8px;
257-
}
258-
259-
span.dtsr-confirmation-message {
260-
padding-right: 3px;
261-
}
262-
263-
div.dtsr-creation-form div.dtsr-form-row label.dtsr-name-label {
264-
width: 33.3%;
265-
display: inline-block;
266-
text-align: left !important;
267-
padding-right: 0px;
268-
padding-left: 0px;
269-
}
270-
div.dtsr-creation-form div.dtsr-form-row input.dtsr-name-input {
271-
width: 57.6% !important;
272-
display: inline-block;
273-
}
274-
div.dtsr-creation-form div.dtsr-form-row input.dtsr-check-box {
275-
margin-left: calc(33.3% + 30px) !important;
276-
margin-right: 14px;
277-
display: inline-block;
278-
position: relative;
279-
}
280-
div.dtsr-creation-form div.dtsr-form-row label.dtsr-toggle-title {
281-
margin-right: calc(-33.3% - 30px) !important;
282-
}

css/stateRestore.jqueryui.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datatables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
],
1515
"src-repo": "http://github.com/DataTables/StateRestore",
1616
"last-tag": "1.3.0",
17-
"last-sync": "e0dcd2563a5e619cdb999e629b6457d037488bca"
17+
"last-sync": "737830a0b42b34e0ab888086db72dfe982c28ef4"
1818
}

0 commit comments

Comments
 (0)