Skip to content

Commit

Permalink
css: Add compatibility rules for ipl's FileElement
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Mar 1, 2023
1 parent e0b4e25 commit 4c2c0db
Showing 1 changed file with 35 additions and 0 deletions.
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

0 comments on commit 4c2c0db

Please sign in to comment.