mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Add styles for roles form
This commit is contained in:
parent
1b4b42a465
commit
f57fc96b57
@ -181,7 +181,7 @@ class RoleForm extends RepositoryForm
|
|||||||
[
|
[
|
||||||
'decorators' => ['ViewHelper'],
|
'decorators' => ['ViewHelper'],
|
||||||
'value' => '<h3>' . ($moduleName !== 'application'
|
'value' => '<h3>' . ($moduleName !== 'application'
|
||||||
? sprintf($this->translate('Module: %s'), $moduleName)
|
? sprintf('%s <em>%s</em>', $moduleName, $this->translate('Module'))
|
||||||
: 'Icinga Web 2') . '</h3>'
|
: 'Icinga Web 2') . '</h3>'
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
@ -242,7 +242,7 @@ class RoleForm extends RepositoryForm
|
|||||||
['Fieldset', [
|
['Fieldset', [
|
||||||
'class' => 'collapsible',
|
'class' => 'collapsible',
|
||||||
'data-toggle-element' => 'h3',
|
'data-toggle-element' => 'h3',
|
||||||
'data-visible-height' => 64
|
'data-visible-height' => 32
|
||||||
]]
|
]]
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
@ -23,6 +23,53 @@ form.icinga-form {
|
|||||||
max-width: 70em;
|
max-width: 70em;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
||||||
|
> fieldset {
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
h3 em {
|
||||||
|
font-size: .857em;
|
||||||
|
font-weight: normal;
|
||||||
|
color: @text-color-light;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.collapsible:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:last-of-type) .collapsible-control {
|
||||||
|
border-bottom: 1px solid @gray-light
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapsed .collapsible-control {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapsible-control:before {
|
||||||
|
content: "\f103";
|
||||||
|
display: inline-block;
|
||||||
|
font-family: 'ifont';
|
||||||
|
font-weight: normal;
|
||||||
|
padding: 0 .25em;
|
||||||
|
margin-right: .25em;
|
||||||
|
width: 1em;
|
||||||
|
opacity: .6;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.collapsed .collapsible-control:before {
|
||||||
|
content: "\e87b";
|
||||||
|
}
|
||||||
|
|
||||||
|
.permission-heading {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.control-group {
|
.control-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user