Шаблон:LinkCard/styles.css: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
Строка 13: | Строка 13: | ||
.link-card__image { | .link-card__image { | ||
position: relative; | position: relative; | ||
text-align: center; | |||
align-content: center; | |||
padding: 6px; | padding: 6px; | ||
} | } | ||
Строка 23: | Строка 24: | ||
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.2); | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
Строка 54: | Строка 55: | ||
.link-card__name { | .link-card__name { | ||
background: rgba(0, 0, 0, 0.15); | |||
padding: 4px 8px; | padding: 4px 8px; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
Строка 64: | Строка 66: | ||
.link-card__image { | .link-card__image { | ||
padding: 4px; | padding: 4px; | ||
height: calc(32px - 4px); | |||
width: 32px; | |||
} | } | ||
} | } | ||
Строка 76: | Строка 78: | ||
justify-content: center; | justify-content: center; | ||
box-shadow: var(--box-shadow); | box-shadow: var(--box-shadow); | ||
} | } | ||
.link-card__side .link-card__name { | .link-card__side .link-card__name { | ||
background: rgba(0, 0, 0, 0.15); | |||
padding: 4px 8px; | padding: 4px 8px; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
Строка 90: | Строка 92: | ||
.link-card__side .link-card__image { | .link-card__side .link-card__image { | ||
padding: 4px; | padding: 4px; | ||
height: calc(32px - 4px); | |||
width: 32px; | |||
width | |||
} | } |
Версия от 18:50, 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;
text-align: center;
align-content: center;
padding: 6px;
}
.link-card__name {
position: relative;
width: 100%;
padding: 2px 4px;
font-size: 0.8em;
box-sizing: border-box;
background: rgba(0, 0, 0, 0.2);
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 {
background: rgba(0, 0, 0, 0.15);
padding: 4px 8px;
font-size: 0.9em;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
}
.link-card__image {
padding: 4px;
height: calc(32px - 4px);
width: 32px;
}
}
.link-card__side {
display: flex ;
width: 100%;
text-align: left;
justify-content: center;
box-shadow: var(--box-shadow);
}
.link-card__side .link-card__name {
background: rgba(0, 0, 0, 0.15);
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;
height: calc(32px - 4px);
width: 32px;
}