User:Erin Umbreon/Sandbox/Tooltip/styles.css

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
.tooltip {
	font-family: sans-serif;
	font-size: small;

	color: var(--tooltip-color, #4f3731);

	background: #f7d9b3;
	background-image: linear-gradient(to bottom, #fae7d0, #f7d9b3 10px);
	border-radius: 5px;
	box-shadow: 0 0 3px 1px rgb(0 0 0 / 75%), 0 0 2px 0 rgb(0 0 0 / 75%);

	padding: 6px 8px;
}

.tooltip__header {
	display: flex;
	height: 48px;
	gap: 8px;
	margin-bottom: 4px;
}
.tooltip__headline {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}
.tooltip__title {
	font-size: initial;
}
.tooltip__subtitle {
	color: var(--tooltip-color-detail, #8b694e);
}
.tooltip__ability-info dl {
	display: grid;
	grid-template-rows: auto auto;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	text-align: right;
	gap: 0 4px;
}
.tooltip__ability-info dt {
	color: var(--tooltip-color-muted, #866f60);
	font-weight: normal;
}
.tooltip__ability-info dd {
	font-family: "Oswald";
	font-size: 1.5em;
	margin: 0;
	margin-top: -0.5em;
	position: relative;
	z-index: 0;
	padding-right: 2px;
}
.tooltip__ability-info dd::after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0.2em;
	right: 0;
	left: 0;
	height: 6px;
	background: rgb(0 0 0 / 8%);
	z-index: -1;
	border-radius: 9999px;
}

.tooltip__section-title {
	color: var(--tooltip-color-muted, #866f60);
}
.tooltip__section-title::after {
	content: "";
	display: block;
	border-top: 1px solid var(--tooltip-color-muted, #866f60);
	border-bottom: 1px solid rgb(0 0 0 / 0.2);
}
.tooltip__attribute-table dl {
	display: grid;
	grid-template-columns: 40% auto;
	margin: 0 0 0.75em;
}
.tooltip__attribute-table dt {
	color: var(--tooltip-color-detail, #8b694e);
	font-weight: normal;
}
.tooltip__attribute-table dd {
	margin: 0;
}

.tooltip__description::before {
	content: "";
	display: block;
	width: 100%;
	border-top: 1px solid var(--tooltip-color-muted, #866f60);
	border-bottom: 1px solid rgb(0 0 0 / 12.5%);
	margin-bottom: 0.25em;
}
.tooltip__description p:first-child {
	margin-top: 0;
}
.tooltip__description p:last-child {
	margin-bottom: 0;
}

.tooltip__effect-list ul {
	margin: 0 0 0.75em;
	padding-left: 3px;
	list-style: none;
}
.tooltip__effect-list li {
	margin: 0;
}

.tooltip__property-list ul {
	margin: 0.25em 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25em;
}

.tooltip--detail {
	color: var(--tooltip-color-detail, #8b694e);
}
.tooltip--muted {
	color: var(--tooltip-color-muted, #866f60);
}