Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Tess list entry/styles.css: Difference between revisions

Template page
Content deleted Content added
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
.template-tess-list-entry {
margin-block: var(--space-sm);
background: var(--color-surface-2);
padding: var(--space-sm);
border: var(--color-amaranth-legacy-scope) solid 4px;
box-shadow: var(--color-amaranth-legacy-scope) 0 0 10px;
text-align: center;
}

.template-tess-list-entry-title {
.template-tess-list-entry-title {
border-bottom: solid var(--border-width-thick) var(--color-amaranth-legacy-scope);
border-bottom: solid var(--border-width-thick) var(--color-amaranth-legacy-scope);
margin-bottom: var(--space-xs);
margin-bottom: var(--space-sm);
padding-bottom: var(--space-xs);
}
}


.template-tess-list-entry-subtitle {
.template-tess-list-entry-subtitle {
font-style: italic;
font-style: italic;
margin-bottom: var(--space-sm);
}
}


Line 22: Line 33:
max-width: 300px;
max-width: 300px;
margin: auto;
margin: auto;
}

.template-tess-list-entry-image img {
/* prevent overflowing */
object-fit: contain;
width: 100%;
height: auto;
}
}


Line 37: Line 41:


.template-tess-list-entry-labels {
.template-tess-list-entry-labels {
display: flex;
flex-direction: column;
gap: var(--space-xxs);
flex-grow: 1;
flex-grow: 1;
margin-block: auto;
margin-block: auto;
Line 44: Line 51:
display: flex;
display: flex;
align-items: center;
align-items: center;
flex-wrap: wrap;
}
}


.template-tess-list-entry-label-part {
.template-tess-list-entry-label-part {
word-break: break-all;
word-break: keep-all;
max-width: 40%;
max-width: 50%;
}
}


.template-tess-list-entry-label-space {
.template-tess-list-entry-label-space {
display: inline-block;
display: inline-block;
flex: 1 0;
flex: 1 0 1rem;
margin-inline: var(--space-xs);
margin-inline: var(--space-xs);
height: 0;
height: 0;
border-bottom: dotted var(--color-subtle) var(--border-width-thick);
border-bottom: dotted var(--color-subtle) var(--border-width-thick);
}

.template-tess-list-entry-description {
border-top: solid var(--border-width-thick) var(--color-amaranth-legacy-scope);
margin-top: var(--space-sm);
padding-top: var(--space-xs);
}
}


Line 64: Line 76:
flex-direction: column;
flex-direction: column;
}
}
}

.template-tess-list-entry-description {
background: var(--color-surface-2);
padding: var(--space-sm);
border: var(--color-amaranth-legacy-scope) solid 4px;
box-shadow: var(--color-amaranth-legacy-scope) 0 0 10px
}
}

Latest revision as of 02:50, June 29, 2025

.template-tess-list-entry {
	margin-block: var(--space-sm);
	background: var(--color-surface-2);
	padding: var(--space-sm);
	border: var(--color-amaranth-legacy-scope) solid 4px;
	box-shadow: var(--color-amaranth-legacy-scope) 0 0 10px;
	text-align: center;
}

.template-tess-list-entry-title {
	border-bottom: solid var(--border-width-thick) var(--color-amaranth-legacy-scope);
	margin-bottom: var(--space-sm);
	padding-bottom: var(--space-xs);
}

.template-tess-list-entry-subtitle {
	font-style: italic;
	margin-bottom: var(--space-sm);
}

.template-tess-list-entry-main {
	display: flex;
	justify-content: flex-start;
	gap: var(--space-sm);
}

.template-tess-list-entry-main > * {
	display: inline-block;
}

.template-tess-list-entry-image {
	width: 100%;
	max-width: 300px;
	margin: auto;
}

.template-tess-list-entry-image img[src$=".svg"] {
	/* background color for transparent SVGs */
	background: #eaecf0;
}

.template-tess-list-entry-labels {
	display: flex;
	flex-direction: column;
	gap: var(--space-xxs);
	flex-grow: 1;
	margin-block: auto;
}

.template-tess-list-entry-label {
	display: flex;
	align-items: center;
}

.template-tess-list-entry-label-part {
	word-break: keep-all;
	max-width: 50%;
}

.template-tess-list-entry-label-space {
	display: inline-block;
	flex: 1 0 1rem;
	margin-inline: var(--space-xs);
	height: 0;
	border-bottom: dotted var(--color-subtle) var(--border-width-thick);
}

.template-tess-list-entry-description {
	border-top: solid var(--border-width-thick) var(--color-amaranth-legacy-scope);
	margin-top: var(--space-sm);
	padding-top: var(--space-xs);
}

@media screen and (max-width: 639px) { 
	.template-tess-list-entry-main {
		flex-direction: column;
	}
}