Шаблон:PortalBox/styles.css: различия между версиями
Aylong (обсуждение | вклад) мНет описания правки |
Aylong (обсуждение | вклад) мНет описания правки |
||
Строка 7: | Строка 7: | ||
overflow: hidden; | overflow: hidden; | ||
position: relative; | position: relative; | ||
flex: 1; | |||
display: flex; | display: flex; | ||
background-color: var(--portalbox-transparent); | background-color: var(--portalbox-transparent); | ||
Строка 25: | Строка 26: | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
border-radius: var(--border-radius-small); | |||
} | } | ||
.portalbox.rainbow:before { | .portalbox.rainbow:before { | ||
filter: blur( | filter: blur(6px); | ||
z-index: -5; | z-index: -5; | ||
} | } |
Версия от 01:14, 30 мая 2025
.portalbox {
position: relative;
display: flex;
}
.portalbox-wrapper {
overflow: hidden;
position: relative;
flex: 1;
display: flex;
background-color: var(--portalbox-transparent);
outline: 1px outset var(--portalbox-light);
border-radius: var(--border-radius-small);
box-shadow: var(--template-shadow--small) -1px var(--portalbox-light);
transition-property: box-shadow;
transition-duration: var(--transition-time);
}
.portalbox:hover .portalbox-wrapper {
box-shadow: var(--template-shadow--small) -1px var(--portalbox-opaque);
}
.portalbox.rainbow:before,
.portalbox.rainbow:after {
content: '';
position: absolute;
inset: 0;
border-radius: var(--border-radius-small);
}
.portalbox.rainbow:before {
filter: blur(6px);
z-index: -5;
}
.portalbox.rainbow:after {
background: var(--color-primal-immutable);
z-index: -3;
}
.portalbox-role {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
width: 128px;
gap: 0.5rem;
padding: 0.5rem 0;
background-color: var(--portalbox-transparent);
border-right: 1px solid var(--portalbox-light);
box-shadow: var(--template-shadow--medium) -1px var(--portalbox-light);
}
.portalbox-image a {
transition-property: filter;
transition-duration: var(--transition-time);
}
.portalbox:active .portalbox-image a {
filter: drop-shadow(0 0 3px var(--portalbox-primary));
transition-duration: 0s;
}
.portalbox-name {
hyphens: auto;
font-weight: bold;
line-height: 1rem;
padding: 0 0.25rem;
}
.portalbox-name a {
color: var(--color-text);
}
.portalbox-name a:before {
content: '';
position: absolute;
inset: 0;
}
.portalbox-desc {
flex: 1;
line-height: 1.1rem;
padding: 0.5rem;
}
.portalbox-desc a {
position: relative;
z-index: 2;
}