Skip to content

Commit

Permalink
Issue #2313: Align AddRemove for Sets at top; Do not set field width …
Browse files Browse the repository at this point in the history
…to 100% for checkboxes to render them left aligned; Change FieldCell behaviour in Sets to match the outside - no grids.
  • Loading branch information
Sven authored and svenoe committed Apr 3, 2024
1 parent c4f04b0 commit c9bece2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 40 deletions.
60 changes: 23 additions & 37 deletions var/httpd/htdocs/skins/Agent/default/css/Core.Form.css
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ div.TooltipErrorMessage {

fieldset.TableLike > label:not(.ck-label),
fieldset.TableLike > .Row > label:not(.ck-label),
fieldset.TableLike > .Row > .FieldCell label:not(.ck-label) {
fieldset.TableLike .Row > .FieldCell label:not(.ck-label) {
display: block;
float: left;
line-height: 1.9em;
Expand All @@ -642,7 +642,7 @@ fieldset.TableLike > .Row > .FieldCell label:not(.ck-label) {
text-shadow: 0 1px 0 #FAFAFA;
}

fieldset.TableLike > .Row.MultiColumn > .FieldCell label {
fieldset.TableLike .Row.MultiColumn > .FieldCell label {
float: none;
line-height: 1.9em;
width: auto;
Expand All @@ -669,7 +669,7 @@ fieldset.TableLike > .Row.MultiColumn > .FieldCell label {

fieldset.TableLike > .Field,
fieldset.TableLike > .Row > .Field,
fieldset.TableLike > .Row > .FieldCell > .Field {
fieldset.TableLike .Row > .FieldCell > .Field {
line-height: 1.9em;
margin-left: 30%;
margin-right: 0;
Expand All @@ -680,7 +680,7 @@ fieldset.TableLike > .Row > .FieldCell > .Field {
min-height: 20px;
}

fieldset.TableLike > .Row.MultiValue {
fieldset.TableLike .Row.MultiValue {
grid-row-gap: 2px;
}

Expand All @@ -690,15 +690,15 @@ fieldset.TableLike > .Row.MultiColumn {
grid-column-gap: 16px;
}

fieldset.TableLike > .Row.MultiValue > .FieldCell > .Field {
fieldset.TableLike .Row.MultiValue > .FieldCell > .Field {
display: inline-block;
}

fieldset.TableLike > .Row.MultiValue > .FieldCell.MultiValue_0 > .Field {
fieldset.TableLike .Row.MultiValue > .FieldCell.MultiValue_0 > .Field {
margin-left: 0;
}

fieldset.TableLike > .Row.MultiColumn > .FieldCell > .Field {
fieldset.TableLike .Row.MultiColumn > .FieldCell > .Field {
display: inline-block;
margin-left: 0;
padding-left: 0;
Expand All @@ -714,48 +714,34 @@ fieldset.TableLike .DFSetOuterField {
}

fieldset.TableLike .DynamicFieldSet {
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}

fieldset.TableLike .DynamicFieldSet .Row > .FieldCell {
padding: 8px;
display: grid;
columns: 3;
grid-template-columns: 20% 1fr 32px;
}

fieldset.TableLike .DynamicFieldSet .Row.MultiColumn > .FieldCell {
padding: 8px;
display: grid;
columns: 2;
grid-template-columns: 1fr 32px;
fieldset.TableLike .DynamicFieldSet > .Row > .FieldCell label:not(.ck-label) {
width: 24%;
}

fieldset.TableLike > .Row > .FieldCell > .Field.DFSetOuterField .DynamicFieldSet label {
grid-column: 1;
padding-top: 0px;
padding-right: 10px;
width: 100%;
box-sizing: border-box;
text-align: right;
text-overflow: ellipsis;
overflow: hidden;
fieldset.TableLike .DynamicFieldSet > .Row > .FieldCell > .Field {
margin-left: 24%;
width: calc( 76% - 48px );
}

fieldset.TableLike > .Row > .FieldCell > .Field.DFSetOuterField .DynamicFieldSet .Row.MultiColumn label {
padding-left: 10px;
text-align: left;
text-overflow: ellipsis;
fieldset.TableLike .DynamicFieldSet > .Row.MultiValue > .FieldCell.MultiValue_0 > .Field {
margin-left: 0;
}

fieldset.TableLike > .Row > .FieldCell > .Field.DFSetOuterField .DynamicFieldSet .Field {
box-sizing: border-box;
grid-column: 2;
fieldset.TableLike .DynamicFieldSet > .Row.MultiColumn {
grid-column-gap: 8px;
padding-left: 8px;
}

fieldset.TableLike > .Row > .FieldCell > .Field.DFSetOuterField .DynamicFieldSet .Row.MultiColumn .Field {
grid-column: 1;
fieldset.TableLike .DynamicFieldSet > .Row.MultiColumn > .FieldCell > .Field {
display: inline-block;
margin-left: 0;
padding-left: 0;
width: calc(100% - 40px);
}

/* multivalue sets. necessary because of competing CSS specificities*/
Expand Down
5 changes: 2 additions & 3 deletions var/httpd/htdocs/skins/Agent/default/css/Core.InputFields.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ div.InputField_InputContainer .InputField_Search {
fieldset.TableLike > .Row.MultiColumn > .FieldCell > .Field > select.Modernize,
fieldset.TableLike > .Row.MultiColumn > .FieldCell > .Field > input.W75pc,
fieldset.TableLike > .Row.MultiColumn > .FieldCell > .Field > input.W50pc,
fieldset.TableLike > .Row.MultiColumn > .FieldCell > .Field > input,
fieldset.TableLike > .Row.MultiColumn > .FieldCell .InputField_InputContainer > input {
min-width: 0 !important;
width: calc( 100% - 7px ) !important;
Expand Down Expand Up @@ -246,8 +245,8 @@ fieldset.DynamicFieldSet {
}

.MultiValue .DFSetOuterField ~ .AddRemoveValueRow {
vertical-align: bottom;
padding-bottom: 16px;
vertical-align: top;
padding-top: 16px;
}

a.InputField_Action {
Expand Down

0 comments on commit c9bece2

Please sign in to comment.