Jump to content
Menü aufrufen
Toggle preferences menu
Persönliches Menü aufrufen
Nicht angemeldet
Ihre IP-Adresse wird öffentlich sichtbar sein, wenn Sie Änderungen vornehmen.

Modul:Mbox/styles.css: Unterschied zwischen den Versionen

Aus DragonballWiki
Inhalt gelöscht Inhalt hinzugefügt
Gokussj7
Gokussj7 (Diskussion | Beiträge) (Die Seite wurde neu angelegt.)
 
 
Zeile 1: Zeile 1:
.mbox {
.mbox {
position: relative;
position: relative;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
margin-top: var( --space-xs );
margin-block: var(--space-md);
margin-bottom: var( --space-md );
background-color: var(--color-surface-1);
background-color: var( --color-surface-2 );
border: 1px solid var(--border-color-base);
border-radius: var( --border-radius--medium );
border-radius: var(--border-radius-medium);
color: var( --color-base--subtle );
font-size: var(--font-size-small);
⚫
line-height: var(--line-height-xx-small);
font-size: 0.875rem;
⚫
line-height: var( --line-height-xs );
}
}


.mbox.mbox-high {
.mbox.mbox-high {
background-color: var(--background-color-destructive-subtle);
/* FIXME: Update back to Citzen CSS var when patched */
background-color: rgba( 221, 51, 51, 0.1 );
}
}


.mbox.mbox-med {
.mbox.mbox-med {
background-color: var(--background-color-warning-subtle);
/* FIXME: Update back to Citzen CSS var when patched */
background-color: rgba( 255, 204, 51, 0.1 );
}
}


.mbox-title {
.mbox-title {
display: flex;
display: flex;
align-items: center;
align-items: center;
padding: var( --space-sm ) var( --space-md );
padding: var(--space-sm) var(--space-md);
}
}


.mbox-icon img {
.mbox-icon img {
display: block;
width: 14px;
width: var(--font-size-small);
height: auto;
height: auto;
margin-right: var( --space-xs );
margin-right: var(--space-xs);
opacity: 0.5;
opacity: var(--opacity-icon-base);
⚫
filter: var(--filter-invert);
}
}


.mbox-text {
.mbox-text {
position: absolute;
position: absolute;
top: 100%;
top: 100%;
z-index: 10;
z-index: 10;
padding: var( --space-md );
padding: var(--space-md);
width: 100%;
width: 100%;
box-sizing: border-box;
box-sizing: border-box;
background-color: var( --color-surface-1 );
background-color: var(--color-surface-1);
border-bottom-left-radius: var( --border-radius--medium );
border-bottom-left-radius: var(--border-radius-medium);
border-bottom-right-radius: var( --border-radius--medium );
border-bottom-right-radius: var(--border-radius-medium);
box-shadow: var( --box-shadow-dialog );
box-shadow: var(--box-shadow-drop-xx-large);
opacity: 0;
opacity: 0;
visibility: hidden;
visibility: hidden;
}
}


.mbox:hover {
.mbox:hover {
/* Merge with popup */
/* Merge with popup */
border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
box-shadow: var( --box-shadow-dialog );
box-shadow: var(--box-shadow-drop-xx-large);
}
}


.mbox:hover .mbox-text {
.mbox:hover .mbox-text {
opacity: 1;
opacity: 1;
visibility: visible;
visibility: visible;
}

/* Dark mode */
html.skin-citizen-dark .mbox-icon img {
⚫
filter: invert( 1 );
}
}

Aktuelle Version vom 12. Februar 2025, 22:43 Uhr

.mbox {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-block: var(--space-md);
	background-color: var(--color-surface-1);
	border: 1px solid var(--border-color-base);
	border-radius: var(--border-radius-medium);
	font-size: var(--font-size-small);
	line-height: var(--line-height-xx-small);
}

.mbox.mbox-high {
	background-color: var(--background-color-destructive-subtle);
}

.mbox.mbox-med {
	background-color: var(--background-color-warning-subtle);
}

.mbox-title {
	display: flex;
	align-items: center;
	padding: var(--space-sm) var(--space-md);
}

.mbox-icon img {
	display: block;
	width: var(--font-size-small);
	height: auto;
	margin-right: var(--space-xs);
	opacity: var(--opacity-icon-base);
	filter: var(--filter-invert);
}

.mbox-text {
	position: absolute;
	top: 100%;
	z-index: 10;
	padding: var(--space-md);
	width: 100%;
	box-sizing: border-box;
	background-color: var(--color-surface-1);
	border-bottom-left-radius: var(--border-radius-medium);
	border-bottom-right-radius: var(--border-radius-medium);
	box-shadow: var(--box-shadow-drop-xx-large);
	opacity: 0;
	visibility: hidden;
}

.mbox:hover {
	/* Merge with popup */
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: var(--box-shadow-drop-xx-large);
}

.mbox:hover .mbox-text {
	opacity: 1;
	visibility: visible;
}
Cookies helfen uns bei der Bereitstellung von DragonballWiki. Durch die Nutzung von DragonballWiki erklärst du dich damit einverstanden, dass wir Cookies speichern.