Template:Project Board/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| (97 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
.project-board { |
|||
.amaranth-columns-container { |
|||
display: flex; |
|||
flex-direction: row; |
|||
flex-wrap: nowrap; |
|||
justify-content: start; |
|||
overflow-x: auto; |
|||
align-items: start; |
|||
overflow-y: hidden; |
|||
gap: var(--space-md); |
|||
width: 100%; |
|||
padding: 1em 0; |
|||
overflow-x: scroll; |
|||
background: #fff; |
|||
border-radius: 10px; |
|||
text-align: left; |
|||
color: #111; |
|||
white-space: nowrap; |
|||
min-height: 350px; |
|||
border: 1px solid #dadada; |
|||
} |
} |
||
.project-board-fullscreen { |
|||
.amaranth-column { |
|||
display: grid; |
|||
grid-template-columns: repeat(4, minmax(0, 1fr)); |
|||
flex-direction: column; |
|||
padding: var(--space-md); |
|||
gap: 1em; |
|||
background: var(--color-surface-1); |
|||
min-width: 320px; |
|||
border: var(--border-base); |
|||
max-width: 320px; |
|||
overflow: hidden; |
|||
background: transparent; |
|||
padding: 0 0.4em; |
|||
flex-shrink: 0; |
|||
white-space: normal; /* allows card contents to wrap vertically */ |
|||
box-sizing: border-box; |
|||
} |
} |
||
@media (max-width: 639px) and (orientation: portrait) { |
|||
.amaranth-column-header { |
|||
.project-board-fullscreen { |
|||
color: #4b4b4b; |
|||
grid-template-columns: 1fr; |
|||
font-family: 'Cinzel', serif; |
|||
} |
|||
font-size: 1.15em; |
|||
font-weight: bold; |
|||
margin-bottom: 0.6em; |
|||
margin-left: 0.5em; |
|||
letter-spacing: 1px; |
|||
} |
} |
||
@media (max-height: 639px) and (orientation: landscape) { |
|||
.amaranth-card { |
|||
.project-board-fullscreen { |
|||
background: #fff; |
|||
grid-template-columns: repeat(3, 1fr); |
|||
color: #111; |
|||
} |
|||
border-radius: 14px; |
|||
box-shadow: 0 4px 18px 0 rgba(0,0,0,0.11), 0 1.5px 6px 0 rgba(0,0,0,0.12); |
|||
margin-bottom: 0.75em; |
|||
padding: 1em 1.1em 1em 1.1em; |
|||
border: 1px solid #eaeaea; |
|||
display: flex; |
|||
flex-direction: column; /* ensures vertical stacking */ |
|||
gap: 0.5em; |
|||
width: 100%; /* ensures card uses the available width */ |
|||
min-width: 0; /* fixes overflow bug in flexbox */ |
|||
max-width: 320px; /* keeps all cards the same width as columns */ |
|||
box-sizing: border-box; |
|||
} |
} |
||
@media (min-width: 640px) and (max-width: 1119px) and (orientation: portrait) { |
|||
.amaranth-card-img, |
|||
.project-board-fullscreen { |
|||
img.amaranth-card-img { |
|||
grid-template-columns: repeat(3, 1fr); |
|||
width: 100%; |
|||
} |
|||
max-width: 280px; |
|||
max-height: 120px; |
|||
border-radius: 10px; |
|||
margin-bottom: 0.8em; |
|||
object-fit: contain; |
|||
box-shadow: 0 2px 6px #0002; |
|||
background: #f3f4f6; |
|||
display: block; |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
} |
||
.project-board-fullscreen .project-board-card-content { |
|||
.amaranth-card-labels { |
|||
text-align: center; |
|||
margin-top: 0.6em; /* Adds space below the image */ |
|||
margin-bottom: 0.3em; /* Optional: adds space below the labels */ |
|||
text-align: center; /* Keeps multi-labels nicely centered under the image */ |
|||
display: block; |
|||
} |
} |
||
.project-board-column { |
|||
display: flex; |
|||
flex-direction: column; |
|||
flex-wrap: nowrap; |
|||
align-items: center; |
|||
gap: var(--space-md); |
|||
padding: var(--space-md); |
|||
background: var(--color-surface-1); |
|||
border: var(--border-base); |
|||
flex: 0 0 var(--template-arg-column-basis); |
|||
max-width: var(--template-arg-column-basis); |
|||
} |
|||
.project-board-column > .mw-heading { |
|||
.amaranth-label { |
|||
margin: 0; |
|||
display: inline-block; |
|||
text-align: center; |
|||
padding: 0.18em 0.9em 0.18em 0.9em; |
|||
word-break: keep-all; |
|||
margin: 0 0.15em 0.15em 0; |
|||
border-radius: 1em; |
|||
font-size: 0.85em; |
|||
font-family: 'Inter', 'Segoe UI', Arial, sans-serif; |
|||
font-weight: 600; |
|||
letter-spacing: 0.02em; |
|||
vertical-align: middle; |
|||
} |
} |
||
.project-board-card { |
|||
.amaranth-label-pink { background: #ffe0f4; color: #b50060; } |
|||
display: flex; |
|||
.amaranth-label-purple { background: #e5e0ff; color: #7200c7; } |
|||
flex-direction: column; |
|||
.amaranth-label-gray { background: #f0f1f3; color: #222; } |
|||
flex-wrap: nowrap; |
|||
.amaranth-label-green { background: #d0fae7; color: #277e4d; } |
|||
gap: var(--space-sm); |
|||
.amaranth-label-yellow { background: #fff3c1; color: #b68d00; } |
|||
padding: var(--space-sm); |
|||
.amaranth-label-blue { background: #daeafd; color: #1466a2; } |
|||
background: var(--color-surface-2); |
|||
border: var(--border-base); |
|||
border-radius: var(--border-radius-base); |
|||
flex: 1; |
|||
word-break: keep-all; |
|||
width: 100%; |
|||
} |
|||
. |
.project-board-card > .mw-heading { |
||
margin: 0; |
|||
font-family: 'Cinzel', serif; |
|||
text-align: center; |
|||
font-weight: bold; |
|||
font-size: 1.08em; |
|||
margin-bottom: 0.18em; |
|||
} |
} |
||
. |
.project-board-card-file { |
||
margin: 0; |
|||
font-size: 0.97em; |
|||
color: #678; |
|||
margin-bottom: 0.25em; |
|||
font-weight: 500; |
|||
font-family: 'Inter', 'Segoe UI', Arial, sans-serif; |
|||
} |
} |
||
.project-board-card-file > a:first-child { |
|||
/* COLLAPSIBLE BODY */ |
|||
border-radius: 0; |
|||
.amaranth-card-details { |
|||
width: 100%; |
|||
} |
} |
||
.amaranth-card-summary { |
|||
.project-board-card-file img { |
|||
cursor: pointer; |
|||
max-width: 100%; |
|||
font-family: 'Inter', 'Segoe UI', Arial, sans-serif; |
|||
height: auto; |
|||
font-size: 0.98em; |
|||
object-fit: contain; |
|||
font-weight: 600; |
|||
text-align: center; |
|||
margin: 0.7em 0 0.7em 0; |
|||
color: #474797; |
|||
} |
} |
||
.amaranth-card-body, |
|||
. |
.project-board-card-labels { |
||
display: flex; |
|||
width: 100%; |
|||
flex-direction: row; |
|||
display: block; |
|||
flex-wrap: wrap; |
|||
text-align: center; |
|||
gap: var(--space-xs); |
|||
justify-content: center; |
|||
justify-content: center; |
|||
margin: 0 auto; |
|||
padding: 0.7em 0.3em 0.5em 0.3em; |
|||
font-size: 0.98em; |
|||
color: #111; |
|||
font-family: 'Inter', 'Segoe UI', Arial, sans-serif; |
|||
word-break: break-word; |
|||
white-space: normal; /* CRUCIAL: makes text wrap and card grow vertically */ |
|||
overflow-wrap: break-word; |
|||
box-sizing: border-box; |
|||
} |
} |
||
details.amaranth-card-details[open] .amaranth-card-summary::after { |
|||
.project-board-card-label { |
|||
content: " ▲"; |
|||
display: inline-block; |
|||
font-size: 0.85em; |
|||
padding: var(--space-xxs) var(--space-xs); |
|||
border: var(--border-base); |
|||
border-radius: var(--border-radius-base); |
|||
background: var(--label-template-arg-background); |
|||
color: var(--label-template-arg-color); |
|||
} |
} |
||
details.amaranth-card-details .amaranth-card-summary::after { |
|||
.project-board-card-summary { |
|||
content: " ▼"; |
|||
text-align: center; |
|||
font-size: 0.85em; |
|||
font-size: var(--font-size-large); |
|||
font-weight: bold; |
|||
color: var(--color-emphasized); |
|||
} |
|||
.project-board-card-content-wrapper[open] > .project-board-card-summary { |
|||
padding-block-end: var(--space-sm); |
|||
} |
|||
.project-board-card-content { |
|||
word-break: break-word; |
|||
} |
|||
.project-board-card-content > p:first-of-type { |
|||
margin-block-start: 0; |
|||
} |
|||
.project-board-card-content > p:last-of-type { |
|||
margin-block-end: 0; |
|||
} |
} |
||
Latest revision as of 08:16, July 9, 2025
.project-board {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: start;
align-items: start;
gap: var(--space-md);
width: 100%;
overflow-x: scroll;
}
.project-board-fullscreen {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
padding: var(--space-md);
background: var(--color-surface-1);
border: var(--border-base);
overflow: hidden;
}
@media (max-width: 639px) and (orientation: portrait) {
.project-board-fullscreen {
grid-template-columns: 1fr;
}
}
@media (max-height: 639px) and (orientation: landscape) {
.project-board-fullscreen {
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 640px) and (max-width: 1119px) and (orientation: portrait) {
.project-board-fullscreen {
grid-template-columns: repeat(3, 1fr);
}
}
.project-board-fullscreen .project-board-card-content {
text-align: center;
}
.project-board-column {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
gap: var(--space-md);
padding: var(--space-md);
background: var(--color-surface-1);
border: var(--border-base);
flex: 0 0 var(--template-arg-column-basis);
max-width: var(--template-arg-column-basis);
}
.project-board-column > .mw-heading {
margin: 0;
text-align: center;
word-break: keep-all;
}
.project-board-card {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: var(--space-sm);
padding: var(--space-sm);
background: var(--color-surface-2);
border: var(--border-base);
border-radius: var(--border-radius-base);
flex: 1;
word-break: keep-all;
width: 100%;
}
.project-board-card > .mw-heading {
margin: 0;
text-align: center;
}
.project-board-card-file {
margin: 0;
}
.project-board-card-file > a:first-child {
border-radius: 0;
}
.project-board-card-file img {
max-width: 100%;
height: auto;
object-fit: contain;
}
.project-board-card-labels {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: var(--space-xs);
justify-content: center;
}
.project-board-card-label {
display: inline-block;
padding: var(--space-xxs) var(--space-xs);
border: var(--border-base);
border-radius: var(--border-radius-base);
background: var(--label-template-arg-background);
color: var(--label-template-arg-color);
}
.project-board-card-summary {
text-align: center;
font-size: var(--font-size-large);
font-weight: bold;
color: var(--color-emphasized);
}
.project-board-card-content-wrapper[open] > .project-board-card-summary {
padding-block-end: var(--space-sm);
}
.project-board-card-content {
word-break: break-word;
}
.project-board-card-content > p:first-of-type {
margin-block-start: 0;
}
.project-board-card-content > p:last-of-type {
margin-block-end: 0;
}