Skip to content

Commit

Permalink
Merge pull request #10679 from nextcloud/fix/10667/dialog-button-layout
Browse files Browse the repository at this point in the history
switches the oc dialog button row to flex
  • Loading branch information
rullzer authored Aug 14, 2018
2 parents ba4c42a + db31bf8 commit 4b3587b
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions core/css/jquery.ocdialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
.oc-dialog-buttonrow {
position: relative;
display: block;
display: flex;
background: transparent;
right: 0;
bottom: 0;
Expand All @@ -32,24 +32,15 @@
background-image: linear-gradient(rgba(255, 255, 255, 0.0), var(--color-main-background));
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
clear: both;
button {
display: inline-block;

&.twobuttons {
justify-content: space-between;
}
}
/* align primary button to right, other buttons to left */
.oc-dialog-buttonrow.twobuttons button:nth-child(1) {
float: left;
}
.oc-dialog-buttonrow.twobuttons.aside button:nth-child(1) {
float: none;
}
.oc-dialog-buttonrow.twobuttons button:nth-child(2) {
float: right;
}

.oc-dialog-buttonrow.onebutton button {
float: right;
&.onebutton,
&.twobuttons.aside {
justify-content: flex-end;
}
}

.oc-dialog-close {
Expand Down

0 comments on commit 4b3587b

Please sign in to comment.