Guest User

Okoun perms CSS

a guest
Jun 21st, 2023
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.92 KB | None | 0 0
  1. fieldset#perms .yui-g:nth-child(2 of .yui-g) {
  2.     display: flex;
  3.     flex-direction: row;
  4.     flex-wrap: wrap;
  5.     gap: 0.5em;
  6.     margin: 1em auto;
  7. }
  8. fieldset#perms .yui-u {
  9.     flex-basis: 15em;
  10.     flex-grow: 0;
  11.     justify-content: start;
  12.     position: relative;
  13. }
  14. fieldset#perms .yui-u .detail.user {
  15.     overflow: hidden;
  16.     padding: 1em 0.25em;
  17. }
  18. fieldset#perms .yui-u .detail div {
  19.     display: none;
  20.     font-weight: normal;
  21. }
  22. fieldset#perms .yui-u .detail div:first-of-type {
  23.     margin-top: 0.5em;
  24. }
  25.  
  26. fieldset#perms .yui-g:nth-child(1 of .yui-g) {
  27.     display: block;
  28. }
  29. fieldset#perms .yui-g:nth-child(1 of .yui-g) .detail div {
  30.     display: block;
  31. }
  32. fieldset#perms .yui-g:nth-child(1 of .yui-g) .yui-u,
  33. fieldset#perms .yui-u:empty,
  34. fieldset#perms .yui-u.new {
  35.     background: transparent !important;
  36.     border: none !important;
  37. }
  38. fieldset#perms .yui-u:empty {
  39.     flex-basis: 100%;
  40. }
  41. fieldset#perms .yui-u.new {
  42.     flex-grow: 2;
  43. }
  44. fieldset#perms .yui-u.new .detail div {
  45.     display: block;
  46. }
  47.  
  48. fieldset#perms .yui-u:hover {
  49.     background: white;
  50. }
  51. fieldset#perms .yui-u:hover .detail.user {
  52.     position: absolute;
  53.     z-index: 99;
  54.     width: 18em;
  55.     overflow: visible;
  56.     background: white;
  57.     box-shadow: 2px 5px 10px black;
  58.     font-weight: bold;
  59. }
  60.  
  61. fieldset#perms .yui-u:hover .detail div {
  62.     display: block;
  63. }
  64.  
  65.  
  66. /* výchozí: žádná práva */
  67. fieldset#perms .yui-u {
  68.     border: 1px solid red;
  69.     background: rgba(255,0,0,0.33);
  70. }
  71. /* může číst */
  72. fieldset#perms .yui-u:has(input[name^="curPermRead["]:checked) {
  73.     border: 1px solid red;
  74.     background: rgba(255,0,0,0.15);
  75. }
  76. /* může psát */
  77. fieldset#perms .yui-u:has(input[name^="curPermWrite["]:checked) {
  78.     border: 1px solid silver;
  79.     background: transparent;
  80. }
  81. /* může mazat a/nebo editovat */
  82. fieldset#perms .yui-u:has(input[name^="curPermDelete["]:checked),
  83. fieldset#perms .yui-u:has(input[name^="curPermEditTxt["]:checked) {
  84.     border: 1px solid green;
  85.     background: rgba(0,255,0,0.33);
  86. }
Advertisement
Add Comment
Please, Sign In to add comment