Skip to content

Commit 7e39493

Browse files
committed
style tweaks for delete document confirmation and insert document modal buttons
1 parent 9a011e8 commit 7e39493

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

src/internal-packages/crud/lib/component/cancel-insert-button.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CancelInsertButton extends React.Component {
2424
render() {
2525
return (
2626
<button
27-
className='btn btn-default btn-xs cancel'
27+
className='btn btn-default'
2828
type='button'
2929
onClick={this.props.handler}>
3030
Cancel

src/internal-packages/crud/lib/component/insert-button.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class InsertButton extends React.Component {
2424
render() {
2525
return (
2626
<button
27-
className='btn btn-default btn-xs insert'
27+
className='btn btn-primary'
2828
type='button'
2929
onClick={this.props.handler}>
3030
Insert

src/internal-packages/crud/styles/crud.less

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
li.document-list-item.editing {
2-
box-shadow: 2px 5px 8px gainsboro;
2+
box-shadow: 2px 5px 8px rgba(0,0,0,0.2);
33
}
44

55
li.document-list-item.deleting {
6-
box-shadow: 2px 5px 8px salmon;
7-
border: 1px solid salmon;
8-
padding-top: 5px;
6+
box-shadow: 2px 5px 8px rgba(0,0,0,0.2);
7+
border: 1px solid @alertRed;
8+
// padding-top: 5px;
99
}
1010

1111
.column.main {
@@ -72,13 +72,23 @@ li.document-list-item.deleting {
7272
background-color: @green2;
7373
}
7474
&.error {
75-
background-color: red;
75+
background-color: @alertRed;
7676

7777
.document-footer-actions {
7878

7979
.cancel {
8080
color: @alertRedBg;
8181
}
82+
.error {
83+
color: @pw;
84+
background: rgba(255,255,255,0.2);
85+
border: 1px solid rgba(255,255,255,0.4);
86+
87+
&:hover {
88+
background: rgba(255,255,255,0.4);
89+
border: 1px solid rgba(255,255,255,0.6);
90+
}
91+
}
8292
}
8393
}
8494
&.viewing {
@@ -398,11 +408,3 @@ input.editable-value {
398408
}
399409
}
400410
}
401-
402-
.modal-footer {
403-
.btn.insert {
404-
border-color: green;
405-
background-color: @green2;
406-
color: #FFFFFF;
407-
}
408-
}

0 commit comments

Comments
 (0)