silverstripe-framework/admin/scss/_SecurityAdmin.scss

49 lines
1.2 KiB
SCSS
Raw Normal View History

2012-01-07 18:57:14 +01:00
.SecurityAdmin {
// Same rules in .member-profile-form
.permissioncheckboxset, .permissioncheckboxsetfield_readonly {
2012-01-07 18:57:14 +01:00
.optionset {
li {
float: none;
width: auto;
}
}
}
}
/* For user permissions the readonly checkboxes are set as display none and are replaced with a <span> that has a
green tick icon as a background this is created using compass generated classes and hardcoded in the php */
.permissioncheckboxsetfield_readonly {
.optionset {
li {
&.odd, &.even {
margin-left:$grid-x*2; // aligns the labels after input is set to display none.
}
&.help{
width:$grid-x*48;
}
input {
display:none;
}
label {
position:relative; // needs to be set to position the span element correctly
span { // background set using compass generated classes (background is green tick icon)
position:absolute;
left:$grid-x*-2;
top:-2px;
}
}
}
}
}
.cms .cms-content .SecurityAdmin { //datagrid overflow on Security Admin
.cms-content-fields {
overflow-y:auto;
.aligned-right-label { //align the label with the parent group field in add new group
margin-left:$grid-x*23;
padding:$grid-x 0;
}
}
}