You are here

fpa.admin.css in Fast Permissions Administration 8.2

Same filename and directory in other branches
  1. 3.0.x css/fpa.admin.css
/**
 *   Prevent page width change when scroll is required.
 *   Helps reduce screen redraws.
 */
body.page-admin-people-permissions {
  overflow-y: scroll;
}
#user-admin-permissions.ctools-use-modal-processed .compact-link {
  display: none;
}
/* Disable the hand tool styling that admin_menu adds for module rows. */
.fpa-container tr.admin-menu-tweak-permissions-processed {
  cursor: default;
}
.fpa-container .form-submit {
  margin: 1em;
}
/**
 *   Prevent vertical jitter of dummy checkboxes.
 */
.fpa-container .dummy-checkbox {
  vertical-align: middle;
}
.fpa-container {
  width: 100%;
}
/**
 *   Override admin_menu's "Collapse module groups on the Permissions page" functionality.
 */
.fpa-container tr.element-hidden {
  display: table-row;
}
.fpa-left-section,
.fpa-right-section {
  display: table-cell;
  border: 1px solid #D6DBDE;
  vertical-align: top;
}
.fpa-left-section {
  background-color: #F6F6F6;
  width: 1px;
  /* Keep column as small as possible. Table cells automatically push wider. */
}
.fpa-left-section .item-list ul {
  background-color: #EFEFEF;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.fpa-left-section .item-list li {
  background-color: inherit;
  border-bottom: 1px solid #D6DBDE;
  cursor: pointer;
  font-size: 90%;
  line-height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  position: relative;
  /* Fix for IE disappearing bg with negative margin */
}
.fpa-left-section .item-list li > div {
  display: table;
  width: 100%;
}
.fpa-left-section .item-list li a,
.fpa-left-section .item-list li .fpa-perm-total {
  display: table-cell;
  padding: 0.5em;
}
.fpa-left-section .item-list li .fpa-perm-total {
  min-width: 6em;
}
.fpa-left-section .item-list li a {
  text-decoration: none;
  color: inherit;
}
.fpa-left-section .item-list li .fpa-perm-total {
  text-align: right;
}
.fpa-right-section {
  width: 100%;
  background-color: white;
  border-left-width: 0;
}
.fpa-filter-form .form-item {
  display: inline-block;
  padding: 3px 10px;
  vertical-align: top;
  float: none;
}
.fpa-filter-form .form-checkboxes .form-type-checkbox,
.fpa-filter-form .form-radios .form-type-radio {
  display: block;
}
.fpa-filter-form .clear-search {
  cursor: pointer;
  display: inline-block;
}
.fpa-right-section .fpa-table-wrapper {
  padding: 10px;
}
/**
 *   Module filter 2.x has a simple permissions filter. Hide this if FPA is enabled.
 */
.fpa-table-wrapper .module-filter-inputs-wrapper .form-item-module-filter-name {
  display: none;
}
/**
 *   CTools attempts some styling to compact forms, looks bad with FPA.
 */
div.ctools-modal-content .fpa-container .form-item label {
  float: none;
  width: auto;
}
/*
 * Rubik has some aggressive styling which makes FPA look poor, reset it here.
 */
.fpa-container .block,
.fpa-container .item-list,
.fpa-container .help-items ul,
.fpa-container .form-item,
.fpa-container .confirmation ul,
.fpa-container .admin-list,
.fpa-container .node-type-list,
.fpa-container .admin-panel {
  border-width: 0;
}
/**
 *   Styling for matching permissions counter.
 */
.fpa-left-section li[fpa-module] {
  counter-reset: fpa-module-permissions;
}
.fpa-perm-counter {
  display: inline;
  counter-increment: fpa-module-permissions;
}
.fpa-perm-total:before {
  content: counter(fpa-module-permissions);
}
.fpa-perm-total:after {
  content: " of " attr(fpa-total);
}
.fpa-toggle-container {
  padding: 0.5em;
}
.fpa-toggle-container a {
  margin: 0.5em;
}
.fpa-hide-descriptions table#permissions .description {
  display: none;
}
.fpa-table-wrapper tr:before {
  white-space: nowrap;
}
.fpa-hide-system-names .fpa-table-wrapper tr:before {
  display: none;
}
.fpa-table-wrapper thead tr:before {
  content: "System Name";
  display: table-cell;
  border-bottom: 3px solid #ccc;
  padding-right: 1em;
  text-align: left;
  vertical-align: middle;
  padding: 8px 10px;
  border: 0;
  color: #000;
  text-transform: uppercase;
  background: #e1e2dc;
  font-weight: normal;
  border-width: 1px;
  border-style: solid;
  border-color: #bebfb9;
}
.fpa-table-wrapper tbody tr:before {
  content: attr(fpa-system-name);
  display: table-cell;
  vertical-align: middle;
  padding: 8px 10px;
  border: 0;
  color: #000;
  text-align: left;
}
.fpa-table-wrapper tbody tr.fpa-module-row:before {
  font-weight: bold;
}
.fpa-table-wrapper tbody tr.fpa-permission-row:before {
  padding-left: 1.5em;
}
/**
 *   Styling for injected checkboxes.
 */
.fpa-table-wrapper th.checkbox {
  vertical-align: bottom;
}
.fpa-table-wrapper th input[type="checkbox"] {
  display: block;
  margin: 0.5em auto;
}
.fpa-hide-descriptions a[fpa-toggle-class="fpa-hide-descriptions"]:before {
  content: attr(show);
}
a[fpa-toggle-class="fpa-hide-descriptions"]:before {
  content: attr(hide);
}
.fpa-hide-system-names a[fpa-toggle-class="fpa-hide-system-names"]:before {
  content: attr(show);
}
a[fpa-toggle-class="fpa-hide-system-names"]:before {
  content: attr(hide);
}
#user-admin-permissions .form-submit.fpa-clear-search {
  margin: 0;
}
.fpa-mobile input[type="checkbox"] {
  width: 4em;
  height: 4em;
}
.fpa-permission-container {
  display: table;
  width: 100%;
}
.fpa-row-toggle-container {
  display: table-cell;
  vertical-align: middle;
  width: 2em;
  text-align: center;
}
td.checkbox,
.fpa-row-toggle-container {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#permissions td {
  text-align: center;
}
#permissions td.permission,
#permissions td.module {
  text-align: left;
}
#permissions td.module {
  font-weight: bold;
}
#permissions td.permission {
  padding-left: 1.5em;
}
/**
 * [checked] is HTML attribute. ':checked' selector is based on DOM property.
 *
 * IE: Both :checked and box-shadow are only supported on IE9+, so <=IE8 will not see this feature at all.
 */
.fpa-table-wrapper td.checkbox input[type="checkbox"] {
  border-collapse: separate;
}
.fpa-table-wrapper td.checkbox input[type="checkbox"]:not([checked]):checked {
  box-shadow: 0px 0px 10px 6px rgba(0, 255, 0, 0.5);
}
.fpa-table-wrapper td.checkbox input[type="checkbox"][checked]:not(:checked) {
  box-shadow: 0px 0px 10px 6px rgba(255, 0, 0, 0.5);
}
/**
 * Hide aspects of FPA that depend on JS.
 */
.fpa-checkboxes-toggle {
  visibility: hidden;
}
html.js .fpa-checkboxes-toggle {
  visibility: inherit;
}
.fpa-filter-form {
  display: none;
}
html.js .fpa-filter-form {
  display: block;
}
/**
 * Tweak how the table is initially displayed to prevent premature reflow.
 * 
 * The table is displayed with a <style /> tag immediately after in the HTML.
 */
#permissions {
  display: none;
}
.fpa-table-wrapper {
  background-repeat: no-repeat;
  background-position: center -18px;
  background-image: url('data:image/gif;base64,R0lGODlhDwAoAMQAAAAAAAhzvQx7vRh7xhyExjWQykaczlqi02uv2Iu/4bW1taDO57XW7729vb3e78bGxs7OztbW1t7e3sri89bn997v9+fn5+fv9+f3/+/v7+/3//f39/f3//f//////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBgAAACwAAAAADwAoAAAFxiAgApkUWduoAhukvC+UqlujNFD0vI2nuo8ZyRYZZW5C0VExkyiKK8DOIoooJFGAFQtwQldTJXK1FAKFGSLNpsjtbj6aC/ZMqkone3bP7/v/gIGCfhQJCAsVexUGAY2NBxorFQIBAgQBl5gcKowFFQkBCROXCCMUlRceoAkeE42RAAsBCB6qobWMDCIIt7asHrwJIqC0HgwHDLgBugCnAqm1ta4BsACdFdETA7Mqk40GCIyaKxfijgjVKxQLh4mD7/Dx8vIhAAAh+QQFBgAAACwAABQADQANAAAFRyAgAtOSANqoriI3XgQQFEchFunqcUQwvCpPImBwiC6rikxpc5wQooNKulgApIALwjVyTGQskcAzinVZ5qsNsA5HkSvkaRUCACH5BAUGAAAALAAAFAANAA0AAAU/ICAC11iNY4mKKnCKxsqtoudNwjgBweg5hZ7AIzqwjAECDSVI0BAoVYEFyK0cvFZhJ+KmRtOYSGNazlZe8igEACH5BAUGAAAALAAAFAANAA0AAAVIICACVIKMKFClooYKAIwYIsGmtkjFqOdNgIALcAI4EsiEjXFKiJyBaACARDEO2MNydwMChqLVTQUDGIoAAmd0YSHAo91JLAoBACH5BAUGAAAALAAAFAANAA0AAAVJICAC05IA2qiuIjdeBBAUx1ikbH7lgCPuqgvi4vEUeieEqCZIeGqLBaAG2AUChKNjIlM5CgGAwDOKjRyClXl6BLR5U2AQcFqFAAAh+QQFBgAAACwAABQADQANAAAFQCAgAtdYjWOJiipwigZQjNy6DuMEBLYueKIDqgaI2UQJ4AohqvAqShJAMEoEDI5dq6DjEHio7UpjOhJROhF5FAIAIfkEBQYAAAAsAAAUAA0ADQAABUUgIAIUgIwoUKWihgoAjBgiwaa2WMJ34JoiR8KBYpwSIuToqEwCEh4AjVEaJQLQSQtVuSYmAy6PEMgROKMLC/FDlU6rUQgAIfkEBQYAAAAsAAAUAA0ADQAABUYgIAITkADaqK4iN14EEBTHWKRsfuWAI+6qCwJX6J0QohoSUFssmL2AACdylAKAQmDhGQm6osHM4/GtYtlDMcsbHYBBEysEACH5BAUGAAAALAAAFAANAA0AAAVBICAC11iNY4mKKnCKBlCM3LoO4wQEti54ooPoVAPEUJwEzwYj8BCjGUkUMFCAAMeuRZhgdagWbKQxMYsoMKA8CgEAIfkEBQYAAAAsAAAUAA0ADQAABUkgIAJUgowoUKWihgoAjBgiwaa2SMU3EGgJAOFAPDBQjFNgKQoCTs5CYppwiGiMneDi8YwmrVFh1avAAIZTjTO6sBCu1O5EFoUAACH5BAUGAAAALAAAFAANAA0AAAVIICAC05IA2qiuIjdeBBAUx1ikY8yKlxwYlJGDtwAYCIEAAlcAOE4IzgmAENWKgIPHU4mqHBPZDiDw5L4sXbYJYI+zvVVvqgoBACH5BAUGAAAALAAAFAANAA0AAAVBICAC11iNY4mKKnCixcitQSwO48QWwSLqAo/o4HEABCPDyuM5rFAIFkAjspWQK2OgVdD9VlyAUkQVvVazlXeKCgEAOw==');
  min-height: 18px;
}
.fpa-role-styles,
.fpa-perm-styles {
  display: none;
}
.fpa-wrapper {
  display: table;
}
.dummy-checkbox {
  display: none;
}
.fpa-authenticated-role-behavior input[type="checkbox"] {
  display: none;
}
.fpa-authenticated-role-behavior input[type="checkbox"].rid-anonymous,
.fpa-authenticated-role-behavior input[type="checkbox"].rid-authenticated,
.fpa-authenticated-role-behavior input[type="checkbox"].dummy-checkbox {
  display: inline-block;
}

File

css/fpa.admin.css
View source
  1. /**
  2. * Prevent page width change when scroll is required.
  3. * Helps reduce screen redraws.
  4. */
  5. body.page-admin-people-permissions {
  6. overflow-y: scroll;
  7. }
  8. #user-admin-permissions.ctools-use-modal-processed .compact-link {
  9. display: none;
  10. }
  11. /* Disable the hand tool styling that admin_menu adds for module rows. */
  12. .fpa-container tr.admin-menu-tweak-permissions-processed {
  13. cursor: default;
  14. }
  15. .fpa-container .form-submit {
  16. margin: 1em;
  17. }
  18. /**
  19. * Prevent vertical jitter of dummy checkboxes.
  20. */
  21. .fpa-container .dummy-checkbox {
  22. vertical-align: middle;
  23. }
  24. .fpa-container {
  25. width: 100%;
  26. }
  27. /**
  28. * Override admin_menu's "Collapse module groups on the Permissions page" functionality.
  29. */
  30. .fpa-container tr.element-hidden {
  31. display: table-row;
  32. }
  33. .fpa-left-section,
  34. .fpa-right-section {
  35. display: table-cell;
  36. border: 1px solid #D6DBDE;
  37. vertical-align: top;
  38. }
  39. .fpa-left-section {
  40. background-color: #F6F6F6;
  41. width: 1px;
  42. /* Keep column as small as possible. Table cells automatically push wider. */
  43. }
  44. .fpa-left-section .item-list ul {
  45. background-color: #EFEFEF;
  46. list-style: none;
  47. margin: 0;
  48. padding: 0;
  49. text-align: left;
  50. }
  51. .fpa-left-section .item-list li {
  52. background-color: inherit;
  53. border-bottom: 1px solid #D6DBDE;
  54. cursor: pointer;
  55. font-size: 90%;
  56. line-height: 100%;
  57. margin: 0;
  58. padding: 0;
  59. list-style: none;
  60. white-space: nowrap;
  61. position: relative;
  62. /* Fix for IE disappearing bg with negative margin */
  63. }
  64. .fpa-left-section .item-list li > div {
  65. display: table;
  66. width: 100%;
  67. }
  68. .fpa-left-section .item-list li a,
  69. .fpa-left-section .item-list li .fpa-perm-total {
  70. display: table-cell;
  71. padding: 0.5em;
  72. }
  73. .fpa-left-section .item-list li .fpa-perm-total {
  74. min-width: 6em;
  75. }
  76. .fpa-left-section .item-list li a {
  77. text-decoration: none;
  78. color: inherit;
  79. }
  80. .fpa-left-section .item-list li .fpa-perm-total {
  81. text-align: right;
  82. }
  83. .fpa-right-section {
  84. width: 100%;
  85. background-color: white;
  86. border-left-width: 0;
  87. }
  88. .fpa-filter-form .form-item {
  89. display: inline-block;
  90. padding: 3px 10px;
  91. vertical-align: top;
  92. float: none;
  93. }
  94. .fpa-filter-form .form-checkboxes .form-type-checkbox,
  95. .fpa-filter-form .form-radios .form-type-radio {
  96. display: block;
  97. }
  98. .fpa-filter-form .clear-search {
  99. cursor: pointer;
  100. display: inline-block;
  101. }
  102. .fpa-right-section .fpa-table-wrapper {
  103. padding: 10px;
  104. }
  105. /**
  106. * Module filter 2.x has a simple permissions filter. Hide this if FPA is enabled.
  107. */
  108. .fpa-table-wrapper .module-filter-inputs-wrapper .form-item-module-filter-name {
  109. display: none;
  110. }
  111. /**
  112. * CTools attempts some styling to compact forms, looks bad with FPA.
  113. */
  114. div.ctools-modal-content .fpa-container .form-item label {
  115. float: none;
  116. width: auto;
  117. }
  118. /*
  119. * Rubik has some aggressive styling which makes FPA look poor, reset it here.
  120. */
  121. .fpa-container .block,
  122. .fpa-container .item-list,
  123. .fpa-container .help-items ul,
  124. .fpa-container .form-item,
  125. .fpa-container .confirmation ul,
  126. .fpa-container .admin-list,
  127. .fpa-container .node-type-list,
  128. .fpa-container .admin-panel {
  129. border-width: 0;
  130. }
  131. /**
  132. * Styling for matching permissions counter.
  133. */
  134. .fpa-left-section li[fpa-module] {
  135. counter-reset: fpa-module-permissions;
  136. }
  137. .fpa-perm-counter {
  138. display: inline;
  139. counter-increment: fpa-module-permissions;
  140. }
  141. .fpa-perm-total:before {
  142. content: counter(fpa-module-permissions);
  143. }
  144. .fpa-perm-total:after {
  145. content: " of " attr(fpa-total);
  146. }
  147. .fpa-toggle-container {
  148. padding: 0.5em;
  149. }
  150. .fpa-toggle-container a {
  151. margin: 0.5em;
  152. }
  153. .fpa-hide-descriptions table#permissions .description {
  154. display: none;
  155. }
  156. .fpa-table-wrapper tr:before {
  157. white-space: nowrap;
  158. }
  159. .fpa-hide-system-names .fpa-table-wrapper tr:before {
  160. display: none;
  161. }
  162. .fpa-table-wrapper thead tr:before {
  163. content: "System Name";
  164. display: table-cell;
  165. border-bottom: 3px solid #ccc;
  166. padding-right: 1em;
  167. text-align: left;
  168. vertical-align: middle;
  169. padding: 8px 10px;
  170. border: 0;
  171. color: #000;
  172. text-transform: uppercase;
  173. background: #e1e2dc;
  174. font-weight: normal;
  175. border-width: 1px;
  176. border-style: solid;
  177. border-color: #bebfb9;
  178. }
  179. .fpa-table-wrapper tbody tr:before {
  180. content: attr(fpa-system-name);
  181. display: table-cell;
  182. vertical-align: middle;
  183. padding: 8px 10px;
  184. border: 0;
  185. color: #000;
  186. text-align: left;
  187. }
  188. .fpa-table-wrapper tbody tr.fpa-module-row:before {
  189. font-weight: bold;
  190. }
  191. .fpa-table-wrapper tbody tr.fpa-permission-row:before {
  192. padding-left: 1.5em;
  193. }
  194. /**
  195. * Styling for injected checkboxes.
  196. */
  197. .fpa-table-wrapper th.checkbox {
  198. vertical-align: bottom;
  199. }
  200. .fpa-table-wrapper th input[type="checkbox"] {
  201. display: block;
  202. margin: 0.5em auto;
  203. }
  204. .fpa-hide-descriptions a[fpa-toggle-class="fpa-hide-descriptions"]:before {
  205. content: attr(show);
  206. }
  207. a[fpa-toggle-class="fpa-hide-descriptions"]:before {
  208. content: attr(hide);
  209. }
  210. .fpa-hide-system-names a[fpa-toggle-class="fpa-hide-system-names"]:before {
  211. content: attr(show);
  212. }
  213. a[fpa-toggle-class="fpa-hide-system-names"]:before {
  214. content: attr(hide);
  215. }
  216. #user-admin-permissions .form-submit.fpa-clear-search {
  217. margin: 0;
  218. }
  219. .fpa-mobile input[type="checkbox"] {
  220. width: 4em;
  221. height: 4em;
  222. }
  223. .fpa-permission-container {
  224. display: table;
  225. width: 100%;
  226. }
  227. .fpa-row-toggle-container {
  228. display: table-cell;
  229. vertical-align: middle;
  230. width: 2em;
  231. text-align: center;
  232. }
  233. td.checkbox,
  234. .fpa-row-toggle-container {
  235. -webkit-touch-callout: none;
  236. -webkit-user-select: none;
  237. -khtml-user-select: none;
  238. -moz-user-select: none;
  239. -ms-user-select: none;
  240. user-select: none;
  241. }
  242. #permissions td {
  243. text-align: center;
  244. }
  245. #permissions td.permission,
  246. #permissions td.module {
  247. text-align: left;
  248. }
  249. #permissions td.module {
  250. font-weight: bold;
  251. }
  252. #permissions td.permission {
  253. padding-left: 1.5em;
  254. }
  255. /**
  256. * [checked] is HTML attribute. ':checked' selector is based on DOM property.
  257. *
  258. * IE: Both :checked and box-shadow are only supported on IE9+, so <=IE8 will not see this feature at all.
  259. */
  260. .fpa-table-wrapper td.checkbox input[type="checkbox"] {
  261. border-collapse: separate;
  262. }
  263. .fpa-table-wrapper td.checkbox input[type="checkbox"]:not([checked]):checked {
  264. box-shadow: 0px 0px 10px 6px rgba(0, 255, 0, 0.5);
  265. }
  266. .fpa-table-wrapper td.checkbox input[type="checkbox"][checked]:not(:checked) {
  267. box-shadow: 0px 0px 10px 6px rgba(255, 0, 0, 0.5);
  268. }
  269. /**
  270. * Hide aspects of FPA that depend on JS.
  271. */
  272. .fpa-checkboxes-toggle {
  273. visibility: hidden;
  274. }
  275. html.js .fpa-checkboxes-toggle {
  276. visibility: inherit;
  277. }
  278. .fpa-filter-form {
  279. display: none;
  280. }
  281. html.js .fpa-filter-form {
  282. display: block;
  283. }
  284. /**
  285. * Tweak how the table is initially displayed to prevent premature reflow.
  286. *
  287. * The table is displayed with a