Template:Dialogue/styles.css: Difference between revisions

Template page
Content added Content deleted
mNo edit summary
mNo edit summary
Line 2: Line 2:
.dialogue {
.dialogue {
display: grid;
display: grid;
grid-gap: 0 15px;
align-content: center;
}
}


Line 46: Line 48:
grid-template-areas: "icon name"
grid-template-areas: "icon name"
"icon text";
"icon text";
grid-gap: 0 15px;
width: 800px;
width: 800px;
max-width: 100%;
max-width: 100%;
align-content: center;
margin: 1.5em auto;
margin: 1.5em auto;
}
}
Line 59: Line 59:
/* Compact */
/* Compact */
.dialogue.compact {
.dialogue.compact {
display: grid;
grid-template-columns: 150px 1fr;
grid-template-columns: 150px 1fr;
grid-template-areas: "icon text"
grid-template-areas: "icon text"
"name text";
"name text";
grid-gap: 0 15px;
margin: -1px 0;
align-content: center;
}
}



Revision as of 23:45, 11 December 2021

/* Core */
.dialogue {
	display: grid;
	grid-gap: 0 15px;
	align-content: center;
}

.dialogue-icon {
	grid-area: icon;
	padding-top: 5px;
	justify-self: right;
}

.dialogue-name {
	grid-area: name;
	align-self: center;
}

.dialogue-text {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	grid-area: text;
	padding: 0.5em 2em;
	background: var(--color-surface-2);
	border-color: var(--color-surface-3);
	border-width: 1px;
	border-style: solid;
}

.dialogue-text:hover {
	background: var(--color-surface-2--hover);
}

.dialogue-text.marked {
	background: var(--color-surface-2--active);
}

.dt-en,
.dt-jp {
	flex: 1 1 200px;
}

/* Cozy */
.dialogue.cozy {
	grid-template-columns: 50px 1fr;
	grid-template-rows: 2em 1fr;
	grid-template-areas: "icon name"
	"icon text";
	width: 800px;
	max-width: 100%;
	margin: 1.5em auto;
}

.dialogue.cozy .dialogue-text {
	border-radius: var(--border-radius--medium);
}

/* Compact */
.dialogue.compact {
	grid-template-columns: 150px 1fr;
	grid-template-areas: "icon text"
	"name text";
	margin: -1px 0;
}

.dialogue.compact .dialogue-icon {
	justify-self: center;
}

.dialogue.compact .dialogue-name {
	justify-self: center;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.