Шаблон:Заглавная/Кнопка/styles.css

Материал из Википедии — свободной энциклопедии
Перейти к навигации Перейти к поиску
/* Основано на https://doc.wikimedia.org/codex/latest/components/demos/button.html#demos */
.main-cdx-button-link > a {
	background-color: #f8f9fa;
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	padding: 0 0.85em;
	transition-property: background-color,color,border-color,box-shadow;
	transition-duration: .1s;
	
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	max-width: 28em;
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-transform: none;
	
	text-decoration: none;
	color: #0645ad;
}

body.skin-vector-2022 .main-cdx-button-link > a,
body.skin-minerva .main-cdx-button-link > a,
body.skin-timeless .main-cdx-button-link > a {
	color: #36c;
}

body.skin-monobook .main-cdx-button-link > a {
	color: #002bb8;
}

.main-cdx-button-link > a:focus {
	outline: 1px solid transparent;
}

.main-cdx-button-link > a:focus:not(:active) {
	border-color: #36c;
	box-shadow: inset 0 0 0 1px #36c;
}

.main-cdx-button-link > a:hover {
	border-color: #447ff5;
	background-color: #fff;
}

body.skin-vector-2022 .main-cdx-button-link > a:hover,
body.skin-minerva .main-cdx-button-link > a:hover,
body.skin-timeless .main-cdx-button-link > a:hover {
	color: #447ff5;
}

.main-cdx-button-link > a:active {
	background-color: #eaf3ff;
	border-color: #2a4b8d;
}

.main-cdx-button-link.is-quiet > a {
	background-color: rgba(255, 255, 255, 0);
	border-color: transparent;
}

.main-cdx-button-link.is-quiet > a:hover {
	background-color: #eaf3ff;
}

body.skin-vector-2022 .main-cdx-button-link.is-quiet > a:hover,
body.skin-minerva .main-cdx-button-link.is-quiet > a:hover,
body.skin-timeless .main-cdx-button-link > a:hover {
	color: #447ff5;
}

.main-cdx-button-link.is-quiet > a:active {
	background-color: #2a4b8d;
	border-color: #2a4b8d;
	color: #fff;
}

/* [[Категория:Шаблоны:Подстраницы CSS]] */