Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #999 - Right Justified Right Fields in Dialogs with Inputs #1007

Merged
merged 5 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions web/scadnano-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,34 @@ label + select {

.dialog-form-item {
align-self: flex-start;

/*float: left;*/
/*display: block;*/
}

/* Only modify the width of the dialog form items that contain these specific classes. */
.dialog-form-item:has(label > input[type="number"]),
.dialog-form-item:has(label > input[type="text"]),
.dialog-form-item:has(div > .radio-left) {
width: 100%;
}

/* Only apply to labels/divs that contain their specified elements. */
.dialog-form-item label:has(> input[type="number"]),
.dialog-form-item label:has(> input[type="text"]),
.dialog-form-item div:has(> .radio-left) {
display: flex;
gap: 10px;
align-items: center; /* Align items vertically */
}

/* Only affect specific inputs/classes that are part of the dialog form item. */
.dialog-form-item input[type="number"],
.dialog-form-item input[type="text"],
.dialog-form-item .radio-left {
margin-left: auto; /* Force label input toward the right. */
}

.dialog-button {
display: inline-block;
border-radius: 3px;
Expand Down
Loading