Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:Card/styles.css

Материал из Wormix Station
Версия от 07:49, 18 октября 2026; Ylianko (обсуждение | вклад) (Новая страница: «.link-card { display: inline-flex; flex-direction: column; position: relative; min-width: 110px; text-align: center; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); →Вместо color-mix используем rgba для светло‑серого фона с прозрачностью: background-color: rgba(224, 224, 224, 0.9); transition: all 0.1s ease; min-height: calc(32px + 4px); } .link-card__image { flex: 0 0 auto...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
.link-card {
	display: inline-flex;
	flex-direction: column;
	position: relative;
	min-width: 110px;
	text-align: center;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	/* Вместо color-mix используем rgba для светло‑серого фона с прозрачностью */
	background-color: rgba(224, 224, 224, 0.9);
	transition: all 0.1s ease;
	min-height: calc(32px + 4px);
}

.link-card__image {
    flex: 0 0 auto;
	position: relative;
	text-align: center;
	align-content: center;
	padding: 6px;
	min-width: 32px;
}

.link-card__name {
	position: relative;
	width: 100%;
	padding: 2px 4px;

	font-size: 12px;
	box-sizing: border-box;

	background: rgba(0, 0, 0, 0.2);
	font-weight: bold;
	flex-grow: 2;
}

.link-card.brightness-overlay::before {
	border-radius: 8px;
}

.link-card__pin {
	top: 0;
	right: 4px;
}

@media (min-width: 800px) {
	.link-card-hover:not(.link-card__side):hover  {
	
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
		transform: translateY(-4px);
	}
}

@media (max-width: 800px) {
	.link-card {
		flex-direction: row;
		width: 100%;
		text-align: left;
		
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
		min-width: 0;
	}

	.link-card__name {
	
		background: rgba(0, 0, 0, 0.13);
		padding: 4px 8px;
		
		font-size: 11px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: nowrap;
	}

	.link-card__image {
		padding: 4px;
	}
}

.link-card__side {
	flex-direction: row;
	width: 100%;
	text-align: left;
	justify-content: center;
	
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.link-card__side .link-card__name {
	
	background: rgba(0, 0, 0, 0.13);
	padding: 4px 8px;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
}

.link-card__side .link-card__image {
	padding: 4px;
}


.card-container {
  display: flex;
  flex-direction: row;
}