Skip to content

Commit

Permalink
Elastic: .proplist improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed May 21, 2018
1 parent 750827a commit d6c1943
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
6 changes: 4 additions & 2 deletions plugins/acl/acl.php
Expand Up @@ -313,6 +313,8 @@ function templ_user($attrib)
{
// Create username input
$attrib['name'] = 'acluser';
$class = $attrib['class'];
unset($attrib['class']);

$textfield = new html_inputfield($attrib);

Expand Down Expand Up @@ -340,11 +342,11 @@ function templ_user($attrib)
. $val);
}

$out = html::tag('ul', array('id' => 'usertype', 'class' => $attrib['class']), $ul, html::$common_attrib);
$out = html::tag('ul', array('id' => 'usertype', 'class' => $class), $ul, html::$common_attrib);
}
// Display text input alone
else {
$out = $fields['user'];
$out = html::div($class, $fields['user']);
}

return $out;
Expand Down
26 changes: 18 additions & 8 deletions skins/elastic/styles/widgets/forms.less
Expand Up @@ -619,20 +619,25 @@ html.ms .propform {

td.editfield { width: 99%; /* TODO */ }


ul.proplist {
@proplist-record-height: 2rem;
.proplist {
margin-bottom: 0;

@media screen and (min-width: (@screen-width-bs-phone + 1px)) {
.formcontent > &,
fieldset > & {
padding-left: 0;
}

li {
list-style-type: none;
line-height: 2.4rem;
line-height: @proplist-record-height;
margin-bottom: .25rem;
display: flex;

&:last-child {
margin-bottom: 0;
}

input[type=radio] {
vertical-align: middle;
margin-right: .5em;
Expand All @@ -644,16 +649,22 @@ ul.proplist {

label {
margin: 0;
line-height: @proplist-record-height;
}

.icon-checkbox {
height: 2.4rem !important;
height: @proplist-record-height;
margin-left: -1.2em;

& + label {
height: 2rem;
height: @proplist-record-height;
margin-right: .5rem;
padding: 0;
padding: 0 !important;
line-height: 1.25;

html.touch &:before {
line-height: 1.1;
}
}
}

Expand All @@ -664,7 +675,6 @@ ul.proplist {
}
}


.checklist {
.form-check-input + label {
margin-right: .25rem;
Expand Down
4 changes: 0 additions & 4 deletions skins/elastic/styles/widgets/toolbar.less
Expand Up @@ -844,10 +844,6 @@ a.button.icon.toolbar-button {
}

ul.proplist {
li {
margin: 0;
}

& + div {
margin-top: 1rem;
}
Expand Down

0 comments on commit d6c1943

Please sign in to comment.