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

css: Add compatibility rules for ipl's FileElement #112

Merged
merged 1 commit into from
Mar 1, 2023
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
35 changes: 35 additions & 0 deletions asset/css/compat.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
// General input styles

.icinga-controls {
.uploaded-files {
background-color: @default-input-bg;
}
}

form.icinga-form {
.uploaded-files {
flex: 1 1 auto;
width: 0;
}
}

.icinga-controls {
.uploaded-files {
font-size: inherit;
padding: .5em;
}
}

// Button styles

// The `form` selector is only required to overrule the hover effect applied by Icinga Web.
// It's not required if done by Icinga Web itself, only here because this is applied earlier
// as it's part of a library.
form.icinga-controls {
button[type="submit"].remove-uploaded-file {
all: unset;
}
}

// Schedule Element styles

.icinga-form > .schedule-element,
.icinga-form > .schedule-element > fieldset {
margin-top: 1em;
Expand Down