silverstripe-cms/scss/_CMSMain.scss

73 lines
1.4 KiB
SCSS
Raw Normal View History

/**
* Style custom to the CMSMain admin interface. CMSMain extends the built in
* SilverStripe admin section styles. As much as possible we want to use those
* built in styles. If anything in this file can be implemented in a generic
* way then it should be include in the admin scss files.
*
* @package cms
*/
/** ------------------------------------------------------------------
* Page History Section.
* ----------------------------------------------------------------- */
#cms-page-history-versions {
tr {
&.loading {
color: #999;
td {
&:hover {
cursor: none;
}
}
}
}
td {
&:hover {
cursor: pointer;
}
}
}
.CMSPageHistoryController {
ins {
background-color: #DFD;
padding: 2px;
text-decoration: none;
}
del {
background-color: #FDD;
padding: 2px;
color: darken(#FDD, 30%);
}
}
/** --------------------------------------------
* Tree View (collapsed for sidebar)
* -------------------------------------------- */
#cms-content-treeview {
.cms-tree-expand-trigger {
display: none; // Don't show trigger in expanded mode
}
}
.cms-content-tools { // Hide certain elements when shown in "sidebar mode"
#cms-content-treeview {
.cms-tree-view-modes,
.cms-content-batchactions {
display: none;
}
.cms-tree-expand-trigger {
display: inline-block;
}
.cms-tree {
.badge,
a > .jstree-icon {
display: none;
}
}
}
}