Шаблон:LinkCard/styles.css: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
Строка 23: | Строка 23: | ||
font-size: 0.8em; | font-size: 0.8em; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: rgba(0, 0, 0, 0. | background: rgba(0, 0, 0, 0.23); | ||
font-weight: bold; | font-weight: bold; | ||
} | } |
Версия от 18:37, 30 марта 2025
.link-card {
display: inline-block;
position: relative;
min-width: 110px;
text-align: center;
border: var(--border-outset);
border-radius: 0.3em;
box-shadow: var(--box-shadow-medium);
background: var(--background-color);
transition: all 0.15s ease;
}
.link-card__image {
position: relative;
padding: 6px;
align-content: center;
}
.link-card__name {
position: relative;
width: 100%;
padding: 2px 4px;
font-size: 0.8em;
box-sizing: border-box;
background: rgba(0, 0, 0, 0.23);
font-weight: bold;
}
.link-card.brightness-overlay::before {
border-radius: 0.3em;
}
.link-card__pin {
top: 0;
right: 4px;
}
@media (min-width: 800px) {
.link-card-hover:not(.link-card__side):hover {
box-shadow: var(--box-shadow-high);
transform: translateY(-4px);
}
}
@media (max-width: 800px) {
.link-card {
display: flex;
width: 100%;
text-align: left;
justify-content: center;
box-shadow: var(--box-shadow);
min-width: 0;
}
.link-card__name {
padding: 4px 8px;
font-size: 0.9em;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
}
.link-card__image {
padding: 4px;
min-width: calc(32px - 4px);
min-height: calc(32px - 4px);
text-align: center;
}
}
.link-card__side {
display: flex ;
width: 100%;
text-align: left;
justify-content: center;
box-shadow: var(--box-shadow);
min-width: 0;
}
.link-card__side .link-card__name {
padding: 4px 8px;
font-size: 0.9em;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
}
.link-card__side .link-card__image {
padding: 4px;
min-width: calc(32px - 4px);
min-height: calc(32px - 4px);
text-align: center;
}
.link-card__side img {
width: 32px;
height: 32px;
}