more fine grained access control
This commit is contained in:
@@ -100,3 +100,75 @@ progress { width: 100%; }
|
||||
.filters .wide { grid-column: span 1; }
|
||||
.page-head { display: block; }
|
||||
}
|
||||
|
||||
|
||||
/* Access administration uses the shared admin controls, colors and typography. */
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
|
||||
.access-message { padding: .7rem; margin-bottom: 1rem; border: 1px solid #aaa; }
|
||||
.access-message.failure { color: #900; }
|
||||
.access-workspace { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 1rem; align-items: start; }
|
||||
.access-browser, .access-detail { min-width: 0; border: 1px solid #aaa; background: #fff; }
|
||||
.access-browser { overflow: hidden; }
|
||||
.access-browser-head { display: grid; gap: .7rem; padding: .8rem; }
|
||||
.access-browser-head h2 { margin: 0; }
|
||||
.access-browser-head button { width: 100%; }
|
||||
.access-search, .access-status-filter { margin: 0 .8rem .65rem; }
|
||||
.access-list { border-top: 1px solid #ccc; max-height: 60vh; overflow-y: auto; }
|
||||
.access-list .access-list-item { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: .5rem .7rem; white-space: normal; }
|
||||
.access-list-item strong { font-weight: inherit; overflow-wrap: anywhere; }
|
||||
.access-list-item small { color: #555; font-size: .85rem; font-weight: normal; text-align: right; }
|
||||
.access-detail-head { display: flex; gap: 1rem; justify-content: space-between; align-items: start; padding: .8rem; }
|
||||
.access-detail-head h2 { margin: 0 0 .3rem; overflow-wrap: anywhere; }
|
||||
.access-detail-head p { color: #666; font-size: .9rem; margin: 0; max-width: 42rem; }
|
||||
.access-section { padding: .8rem; }
|
||||
.access-section + .access-section { border-top: 1px solid #ccc; }
|
||||
.access-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
|
||||
.access-section-head h3 { margin: 0; }
|
||||
.access-section-head p { font-size: .85rem; margin: .3rem 0 0; }
|
||||
.access-matrix-head { display: grid; grid-template-columns: minmax(150px,1.3fr) repeat(4,minmax(0,1fr)); align-items: end; font-size: .85rem; color: #555; padding-bottom: .5rem; gap: .3rem; }
|
||||
.access-matrix-head > span:not(:first-child) { text-align: center; }
|
||||
.access-matrix-head b { display: block; font-size: .9rem; margin-bottom: .15rem; color: #111; }
|
||||
.access-matrix-row { display: grid; grid-template-columns: minmax(150px,1.3fr) minmax(0,4fr); align-items: center; gap: .3rem; padding: .5rem 0; border-top: 1px solid #ccc; }
|
||||
.access-matrix-row strong { overflow-wrap: anywhere; }
|
||||
.access-matrix-row small { display: block; font-size: .85rem; color: #666; margin-top: .2rem; overflow-wrap: anywhere; }
|
||||
.access-users { max-height: 28rem; overflow-y: auto; }
|
||||
.access-level-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .3rem; }
|
||||
.access-level-options button { padding: .4rem .25rem; }
|
||||
.access-level-options button[aria-pressed="true"] { background: #ddd; border-color: #111; font-weight: bold; }
|
||||
.access-level-number { font-size: 1rem; }
|
||||
.access-level-caption { display: none; white-space: normal; }
|
||||
.access-savebar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid #aaa; padding: .8rem; }
|
||||
.access-savebar > span { color: #666; font-size: .85rem; }
|
||||
.access-savebar > div { display: flex; gap: .5rem; }
|
||||
.access-filter-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,.5fr); gap: .6rem; margin-bottom: .65rem; }
|
||||
.access-empty { padding: .8rem; color: #666; font-size: .9rem; }
|
||||
.access-empty h2 { color: #111; margin-bottom: .5rem; }
|
||||
.access-empty p { margin: 0; }
|
||||
.access-dialog { width: min(480px,calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); border: 1px solid #aaa; padding: 1rem; color: #111; background: #fff; }
|
||||
.access-dialog::backdrop { background: #0006; }
|
||||
.access-dialog p { font-size: .9rem; }
|
||||
.access-dialog-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
|
||||
.access-danger { color: #900; }
|
||||
@media (max-width: 1250px) {
|
||||
.access-workspace { grid-template-columns: 220px minmax(0,1fr); gap: .8rem; }
|
||||
.access-matrix-head { display: none; }
|
||||
.access-matrix-row { grid-template-columns: 1fr; gap: .5rem; padding: .7rem 0; }
|
||||
.access-level-caption { display: block; font-size: .75rem; margin-top: .2rem; }
|
||||
}
|
||||
@media (max-width: 950px) {
|
||||
.access-workspace { grid-template-columns: 1fr; }
|
||||
.access-browser-head { display: flex; align-items: center; justify-content: space-between; }
|
||||
.access-browser-head button { width: auto; }
|
||||
.access-list { max-height: 12rem; }
|
||||
.access-detail-head { flex-wrap: wrap; }
|
||||
}
|
||||
@media (max-width: 500px) {
|
||||
.access-filter-row { grid-template-columns: 1fr; }
|
||||
.access-section-head { align-items: start; flex-wrap: wrap; gap: .6rem; }
|
||||
.access-savebar { flex-direction: column; align-items: stretch; }
|
||||
.access-savebar > div { justify-content: flex-end; }
|
||||
.access-level-options { gap: .2rem; }
|
||||
.access-level-options button { padding: .4rem .1rem; }
|
||||
.access-level-caption { font-size: .72rem; }
|
||||
}
|
||||
.content:focus { outline: none; }
|
||||
|
||||
Reference in New Issue
Block a user