bcd160cca2
- Directory modal's Associated LDAP Groups tab now lets you view/add/remove members and owners of each associated group directly, reusing the same PUT/DELETE group/:group/:uid routes and member-mapping pattern already used on the Groups page -- no backend change needed. - Groups page: the search/sort bar is now sticky, staying visible while scrolling through a long group list. Introduces --sw-content-offset (set in top.ejs alongside #spa-shell's margin-top) so an in-page sticky element can offset itself below the fixed navbar/update-banner instead of being hidden behind them at the viewport's true top:0. - Directory table: Kind/Name/Env/Host merged into a single "Resource" column, matching the same information more compactly. - app-base.js (byte-identical across the 3 apps): added app.util.revealItem(), which scrolls a just-added/-edited element into view and flashes its background -- wired into the Directory table, the Groups tab's member list, and the Groups page's create-group flow. - Bumped @simpleworkjs/frontend to ^0.2.7 (published with the same revealItem() addition for any future consumer of its app.js, even though none of the 3 apps currently load that file directly -- they use the legacy app-base.js instead).
120 lines
2.3 KiB
CSS
Executable File
120 lines
2.3 KiB
CSS
Executable File
nav.navbar{
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
/* Height of the fixed navbar (plus the update banner, while shown --
|
|
see top.ejs's showUpdateBanner/dismissUpdateBanner). Lets an in-page
|
|
sticky element offset itself below both fixed elements via
|
|
`top: var(--sw-content-offset)` instead of colliding with them at the
|
|
viewport's true top:0. */
|
|
--sw-content-offset: 4.5rem;
|
|
}
|
|
|
|
#spa-shell {
|
|
margin-top: 4.5rem;
|
|
padding-bottom: 1em;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.card-title{
|
|
font-weight: bold;
|
|
}
|
|
|
|
div.card:not(:last-child){
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.group-required{
|
|
display: none;
|
|
}
|
|
|
|
/*.actionMessage{
|
|
position: fixed;
|
|
}*/
|
|
|
|
*{
|
|
transition: all .4s ease;
|
|
}
|
|
|
|
a:hover, button:hover, div.form-group:hover, header nav a{
|
|
color: inherit;
|
|
transition: all .4s ease;
|
|
background-color: inherit;
|
|
-ms-transform: scale(1.05);
|
|
-webkit-transform: scale(1.05);
|
|
transform: scale(1.05); /* Standard syntax */
|
|
z-index: 999999;
|
|
}
|
|
|
|
/* ── Reusable tag / token input (app.ui.tagInput / groupSelect) ────────────── */
|
|
.tag-input{
|
|
position: relative;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: .25rem;
|
|
min-height: calc(1.5em + .75rem + 2px);
|
|
height: auto;
|
|
cursor: text;
|
|
}
|
|
.tag-input .tag-chips{
|
|
display: contents;
|
|
}
|
|
.tag-input .tag-chip{
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: .35rem;
|
|
background-color: #0d6efd;
|
|
color: #fff;
|
|
font-size: .85em;
|
|
font-weight: 500;
|
|
padding: .25rem .5rem;
|
|
border-radius: .5rem;
|
|
}
|
|
.tag-input .tag-chip .tag-remove{
|
|
color: #fff;
|
|
opacity: .8;
|
|
text-decoration: none;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.tag-input .tag-chip .tag-remove:hover{ opacity: 1; transform: none; }
|
|
.tag-input .tag-typeahead{
|
|
flex: 1 1 8ch;
|
|
min-width: 8ch;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
padding: .15rem 0;
|
|
}
|
|
.tag-input .tag-menu{
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1080;
|
|
background: #fff;
|
|
border: 1px solid rgba(0,0,0,.15);
|
|
border-radius: .375rem;
|
|
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
|
|
max-height: 12rem;
|
|
overflow-y: auto;
|
|
margin-top: .15rem;
|
|
}
|
|
.tag-input .tag-option{
|
|
padding: .35rem .6rem;
|
|
cursor: pointer;
|
|
}
|
|
.tag-input .tag-option:hover,
|
|
.tag-input .tag-option.active{
|
|
background-color: #0d6efd;
|
|
color: #fff;
|
|
transform: none;
|
|
}
|