Template:Project Board/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| (39 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.project-board { |
.project-board { |
||
position: relative; |
|||
display: flex; |
display: flex; |
||
flex-direction: row; |
flex-direction: row; |
||
| Line 8: | Line 7: | ||
gap: var(--space-md); |
gap: var(--space-md); |
||
width: 100%; |
width: 100%; |
||
overflow: scroll; |
overflow-x: scroll; |
||
| ⚫ | |||
| ⚫ | |||
display: grid; |
|||
grid-template-columns: repeat(4, minmax(0, 1fr)); |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
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); |
|||
} |
|||
} |
|||
| ⚫ | |||
text-align: center; |
|||
} |
} |
||
| Line 18: | Line 48: | ||
gap: var(--space-md); |
gap: var(--space-md); |
||
padding: var(--space-md); |
padding: var(--space-md); |
||
background: var(--color-surface- |
background: var(--color-surface-1); |
||
border: var(--border-base); |
border: var(--border-base); |
||
flex: 0 0 |
flex: 0 0 var(--template-arg-column-basis); |
||
max-width: var(--template-arg-column-basis); |
|||
} |
} |
||
| Line 26: | Line 57: | ||
margin: 0; |
margin: 0; |
||
text-align: center; |
text-align: center; |
||
word-break: |
word-break: keep-all; |
||
} |
} |
||
| Line 35: | Line 66: | ||
gap: var(--space-sm); |
gap: var(--space-sm); |
||
padding: var(--space-sm); |
padding: var(--space-sm); |
||
background: var(--color-surface- |
background: var(--color-surface-2); |
||
border: var(--border-base); |
border: var(--border-base); |
||
border-radius: var(--border-radius-base); |
border-radius: var(--border-radius-base); |
||
flex: 1; |
flex: 1; |
||
word-break: |
word-break: keep-all; |
||
width: 100%; |
width: 100%; |
||
} |
} |
||
| Line 54: | Line 85: | ||
.project-board-card-file > a:first-child { |
.project-board-card-file > a:first-child { |
||
border-radius: 0; |
border-radius: 0; |
||
} |
|||
.project-board-card-file img { |
|||
| ⚫ | |||
height: auto; |
|||
object-fit: contain; |
|||
} |
} |
||
| Line 61: | Line 98: | ||
flex-wrap: wrap; |
flex-wrap: wrap; |
||
gap: var(--space-xs); |
gap: var(--space-xs); |
||
justify-content: center; |
|||
} |
} |
||
| Line 70: | Line 108: | ||
background: var(--label-template-arg-background); |
background: var(--label-template-arg-background); |
||
color: var(--label-template-arg-color); |
color: var(--label-template-arg-color); |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
width: fit-content; |
|||
z-index: 2; |
|||
position: absolute; |
|||
left: 0; |
|||
right: 0; |
|||
| ⚫ | |||
border-radius: var(--border-radius-base); |
|||
| ⚫ | |||
| ⚫ | |||
margin-inline: var(--space-sm); |
|||
} |
} |
||
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;
}