mirror of
https://github.com/wekan/wekan.git
synced 2026-02-09 09:44:22 +01:00
327 lines
No EOL
6.8 KiB
CSS
327 lines
No EOL
6.8 KiB
CSS
.pop-over {
|
|
background: #ededed;
|
|
border-bottom-color: #c2c2c2;
|
|
box-shadow: 0 0.2vh 0.8vh rgba(0, 0, 0, 0.3);
|
|
/* so they can easily travel with mouse */
|
|
position: fixed;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
resize: both;
|
|
pointer-events: all;
|
|
max-height: 100vh;
|
|
|
|
.content-wrapper {
|
|
width: auto;
|
|
height: auto;
|
|
position: relative;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.content-wrapper >* {
|
|
/* low specificity so that it can be transparently overriden,
|
|
but could have side effects if no display is explicitely specific in inner content */
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
.pop-over a:has(.fa-plus)+ :not(*) {
|
|
min-height: 1.5lh;
|
|
aspect-ratio: 1/1;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 0.2lh;
|
|
}
|
|
.pop-over hr {
|
|
margin: 0.3lh 0;
|
|
/* below everything in the same stacking context when
|
|
after, child or explicit z-index */
|
|
z-index: 0;
|
|
}
|
|
.pop-over {
|
|
/* feels like it's too ad-hod */
|
|
input, a:not(.js-board-template, .member, .edit-avatar) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 1ch;
|
|
min-height: 1.5lh;
|
|
}
|
|
}
|
|
.pop-over .sub-name {
|
|
max-width: clamp(30vw, 500px, 80%);
|
|
}
|
|
.pop-over .header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 1ch;
|
|
align-items: center;
|
|
padding: 0 1ch;
|
|
background: #f7f7f7;
|
|
border-bottom: 1px solid #dcdcdc;
|
|
color: #666;
|
|
min-height: 2lh;
|
|
}
|
|
.pop-over .header .header-title {
|
|
display: flex;
|
|
font-weight: bold;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 1.2em;
|
|
flex: 1;
|
|
cursor: grab !important;
|
|
}
|
|
.pop-over .back-btn {
|
|
float: left;
|
|
overflow: hidden;
|
|
transition: width 0.2s;
|
|
}
|
|
.pop-over .back-btn.is-hidden {
|
|
width: 0;
|
|
}
|
|
|
|
.pop-over.no-title .header {
|
|
background: none;
|
|
}
|
|
|
|
.pop-over {
|
|
.content-wrapper, .header {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
.pop-over:has(.header) .content {
|
|
/* inner content has full width available,
|
|
so it is also responsive for margins, sizes, etc */
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.popup-placeholder {
|
|
/* This gives relative coordinates but height/width cannot fit the parent's
|
|
without it having position: relative; we need to get them programmatically */
|
|
position: absolute;
|
|
/* Take all size of parent so it can be useful in computations */
|
|
visibility: hidden;
|
|
display: none;
|
|
}
|
|
|
|
.pop-over .content-container {
|
|
display: flex;
|
|
align-items: stretch;
|
|
flex: 1;
|
|
}
|
|
|
|
/* Allow dynamic max-height to override default constraint for content-container */
|
|
.pop-over[style*="max-height"] .content-container {
|
|
max-height: inherit;
|
|
}
|
|
|
|
.pop-over .popup-drag-handle {
|
|
cursor: move;
|
|
}
|
|
|
|
body.mobile-mode {
|
|
.popup-drag-handle, .close-btn {
|
|
font-size: 1.4em;
|
|
align-self: center;
|
|
}
|
|
.pop-over:has(.pop-over-list) {
|
|
min-width: 70vw;
|
|
}
|
|
}
|
|
|
|
.pop-over .header-controls {
|
|
display: flex;
|
|
gap: 1ch;
|
|
}
|
|
.pop-over .pop-over-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
font-size: 1.1rem;
|
|
padding: 0 1ch;
|
|
>li>a {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
grid-auto-columns: fit-content;
|
|
justify-content: start;
|
|
padding: 0 0.5ch;
|
|
column-gap: 1ch;
|
|
.sub-name {
|
|
text-align: end;
|
|
}
|
|
}
|
|
}
|
|
/* Utility: remove left gutter inside specific popups */
|
|
.pop-over .content .flush-left {
|
|
margin-left: 0;
|
|
padding-left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Swimlane popups: remove left gutter, align content fully left */
|
|
.pop-over .content form.swimlane-color-popup,
|
|
.pop-over .content .swimlane-height-popup {
|
|
margin-left: 0;
|
|
padding-left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Color selection popups: ensure proper alignment */
|
|
.pop-over .content form.swimlane-color-popup .palette-colors,
|
|
.pop-over .content form.edit-label .palette-colors,
|
|
.pop-over .content form.create-label .palette-colors {
|
|
margin-left: 0;
|
|
padding-left: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
}
|
|
|
|
/* Color palette items: ensure proper positioning */
|
|
.pop-over .content .palette-colors .palette-color {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
outline: 0.1ch solid black;
|
|
}
|
|
.pop-over.search-over {
|
|
background: #f0f0f0;
|
|
min-height: 14vh;
|
|
}
|
|
.pop-over.search-over .header {
|
|
display: none;
|
|
}
|
|
.pop-over.search-over .content {
|
|
padding: 8px 4px 8px 10px;
|
|
margin-right: 8px;
|
|
}
|
|
.pop-over .at-form .at-error,
|
|
.pop-over .at-form .at-result {
|
|
padding: 8px 12px;
|
|
margin: 0 0 10px 0;
|
|
}
|
|
.pop-over .at-form .at-error {
|
|
background: #ef9a9a;
|
|
}
|
|
.pop-over .at-form .at-result {
|
|
background: #b2dfdb;
|
|
}
|
|
.pop-over .sk-spinner {
|
|
margin: 40px auto;
|
|
}
|
|
.select-members-list,
|
|
.select-avatars-list {
|
|
margin-bottom: 8px;
|
|
}
|
|
.pop-over-list li {
|
|
display: block;
|
|
clear: both;
|
|
}
|
|
.pop-over-list li > a {
|
|
clear: both;
|
|
cursor: pointer;
|
|
display: block;
|
|
font-weight: 700;
|
|
padding-inline: 2vmin 10vmin;
|
|
position: relative;
|
|
margin: 0;
|
|
text-decoration: none;
|
|
overflow: hidden;
|
|
display:flex;
|
|
align-items: center;
|
|
color: #000 !important;
|
|
}
|
|
.pop-over-list li > a > .member{
|
|
align-self: flex-start;
|
|
flex:0 0 auto;
|
|
}
|
|
.pop-over-list li > a .item-name {
|
|
display: block;
|
|
width: auto;
|
|
}
|
|
.pop-over-list li > a:not(.disabled):hover {
|
|
background-color: #005377;
|
|
color: #fff;
|
|
}
|
|
.pop-over-list li > a:not(.disabled):hover .sub-name,
|
|
.pop-over-list li > a:not(.disabled):hover .quiet {
|
|
color: #eee;
|
|
}
|
|
.pop-over-list li > a:not(.disabled):hover .unread-indicator {
|
|
background: #fff;
|
|
}
|
|
.pop-over-list li > a .sub-name {
|
|
color: #8c8c8c;
|
|
display: block;
|
|
font-size: 0.8em;
|
|
font-weight: 400;
|
|
line-height: 1.2em;
|
|
}
|
|
.pop-over-list li > a.current {
|
|
background-color: #e2e6e9;
|
|
}
|
|
.pop-over-list li > a:active {
|
|
background-color: #2e85b8;
|
|
}
|
|
.pop-over-list li > a.disabled {
|
|
color: #8c8c8c;
|
|
cursor: default;
|
|
}
|
|
.pop-over-list li > a.disabled .vis-icon {
|
|
opacity: 0.35;
|
|
}
|
|
.pop-over-list li > a.disabled:hover {
|
|
background: none;
|
|
}
|
|
.pop-over-list li > a.disabled:hover .sub-name,
|
|
.pop-over-list li > a.disabled:hover .quiet {
|
|
color: #8c8c8c;
|
|
}
|
|
.pop-over-list li > a.disabled:active {
|
|
background: none;
|
|
}
|
|
.pop-over-list.inset li > a {
|
|
border-radius: 3px;
|
|
margin: 0;
|
|
}
|
|
.pop-over-list .pop-over-list.checkable .fa-check {
|
|
display: none;
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 12px;
|
|
color: #3cb500;
|
|
}
|
|
.pop-over-list .pop-over-list.checkable li.active a {
|
|
padding-right: 28px;
|
|
}
|
|
.pop-over-list .pop-over-list.checkable li.active a .fa-check {
|
|
display: block;
|
|
}
|
|
/* Grey check icons when grey icons setting is enabled */
|
|
body.grey-icons-enabled .pop-over-list .pop-over-list.checkable .fa-check {
|
|
color: #7a7a7a;
|
|
}
|
|
|
|
.pop-over .content > form {
|
|
padding: 0 1ch;
|
|
gap: 0.2lh;
|
|
display: flex;
|
|
max-width: clamp(20vw, 400px, 50vw);
|
|
}
|
|
|
|
body.mobile-mode .pop-over .content>form {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.pop-over .board-subtask-settings {
|
|
>h3 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
} |