Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fieldset#perms .yui-g:nth-child(2 of .yui-g) {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- gap: 0.5em;
- margin: 1em auto;
- }
- fieldset#perms .yui-u {
- flex-basis: 15em;
- flex-grow: 0;
- justify-content: start;
- position: relative;
- }
- fieldset#perms .yui-u .detail.user {
- overflow: hidden;
- padding: 1em 0.25em;
- }
- fieldset#perms .yui-u .detail div {
- display: none;
- font-weight: normal;
- }
- fieldset#perms .yui-u .detail div:first-of-type {
- margin-top: 0.5em;
- }
- fieldset#perms .yui-g:nth-child(1 of .yui-g) {
- display: block;
- }
- fieldset#perms .yui-g:nth-child(1 of .yui-g) .detail div {
- display: block;
- }
- fieldset#perms .yui-g:nth-child(1 of .yui-g) .yui-u,
- fieldset#perms .yui-u:empty,
- fieldset#perms .yui-u.new {
- background: transparent !important;
- border: none !important;
- }
- fieldset#perms .yui-u:empty {
- flex-basis: 100%;
- }
- fieldset#perms .yui-u.new {
- flex-grow: 2;
- }
- fieldset#perms .yui-u.new .detail div {
- display: block;
- }
- fieldset#perms .yui-u:hover {
- background: white;
- }
- fieldset#perms .yui-u:hover .detail.user {
- position: absolute;
- z-index: 99;
- width: 18em;
- overflow: visible;
- background: white;
- box-shadow: 2px 5px 10px black;
- font-weight: bold;
- }
- fieldset#perms .yui-u:hover .detail div {
- display: block;
- }
- /* výchozí: žádná práva */
- fieldset#perms .yui-u {
- border: 1px solid red;
- background: rgba(255,0,0,0.33);
- }
- /* může číst */
- fieldset#perms .yui-u:has(input[name^="curPermRead["]:checked) {
- border: 1px solid red;
- background: rgba(255,0,0,0.15);
- }
- /* může psát */
- fieldset#perms .yui-u:has(input[name^="curPermWrite["]:checked) {
- border: 1px solid silver;
- background: transparent;
- }
- /* může mazat a/nebo editovat */
- fieldset#perms .yui-u:has(input[name^="curPermDelete["]:checked),
- fieldset#perms .yui-u:has(input[name^="curPermEditTxt["]:checked) {
- border: 1px solid green;
- background: rgba(0,255,0,0.33);
- }
Advertisement
Add Comment
Please, Sign In to add comment