mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
3ee8f505b7
The main benefit of this is so that authors who make use of .editorconfig don't end up with whitespace changes in their PRs. Spaces vs. tabs has been left alone, although that could do with a tidy-up in SS4 after the switch to PSR-1/2. The command used was this: for match in '*.ss' '*.css' '*.scss' '*.html' '*.yml' '*.php' '*.js' '*.csv' '*.inc' '*.php5'; do find . -path ./thirdparty -not -prune -o -path ./admin/thirdparty -not -prune -o -type f -name "$match" -exec sed -E -i '' 's/[[:space:]]+$//' {} \+ find . -path ./thirdparty -not -prune -o -path ./admin/thirdparty -not -prune -o -type f -name "$match" | xargs perl -pi -e 's/ +$//' done
52 lines
1.1 KiB
SCSS
52 lines
1.1 KiB
SCSS
.permissioncheckboxset, .permissioncheckboxsetfield_readonly {
|
|
h5 {
|
|
margin: 0;
|
|
}
|
|
.optionset {
|
|
overflow: auto;
|
|
|
|
li {
|
|
float: none;
|
|
width: auto;
|
|
clear: both;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
}
|