MediaWiki:Mobile.css — различия между версиями

Материал из ВикиМИРЭА
Перейти к: навигация, поиск
 
Строка 354: Строка 354:
 
#main-fri {
 
#main-fri {
 
background-color: #FFFFE0;
 
background-color: #FFFFE0;
}
 
 
 
/*
 
Информация о старом домене
 
*/
 
 
.main-text-old {
 
text-align: center;
 
font-size: smaller;
 
 
}
 
}
  

Текущая версия на 00:35, 16 сентября 2021

/* CSS placed here will affect users of the mobile site */
/* CSS placed here will affect users of the mobile site */

/*
 Стили для заглавной страницы.
*/


/*
 Взято из Википедии со страницы
 [https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F/styles.css Шаблон:Заглавная/styles.css]
*/

.main-header {
	border-bottom-color: transparent;
	margin-bottom: 0.25em;
	margin-top: 0;
	padding-bottom: 0;
	padding-top: 0;
}


/* Списки без оформления */

.main-plainlist>ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-plainlist li {
	margin-bottom: 0;
}


/* Ссылки-кнопки */

.main-top-right .mw-ui-quiet:hover,
.main-top-right .mw-ui-quiet:focus,
.main-footer .mw-ui-quiet:hover,
.main-footer .mw-ui-quiet:focus {
	color: #0645ad;
}


/*
 Скрытие нумерации заголовков, создаваемой опцией «Автоматически нумеровать заголовки»
 на [[Служебная:Настройки#mw-prefsection-rendering]]
*/

.mw-headline-number {
	display: none;
}


/*
Планшеты
*/

@media (min-width: 720px) {
	.main-wikimedia {
		padding-top: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}


/*
Стационарные компьютеры
*/

@media (min-width: 1000px) {
	.main-wrapper {
		display: flex;
		margin: 0 -0.75rem;
	}
	.main-wrapper-column {
		flex: 1;
		margin: 0 0.75rem;
	}
	.main-wikimedia {
		padding-top: 1.5rem;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}


/*
 Взято из Википедии
 со страницы [https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB_%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B9_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B/styles.css Шаблон:Раздел заглавной страницы/styles.css]
*/

.main-box {
	margin: 0 -1rem 1.5rem;
	padding: 1rem;
	background-color: #FFFAF0;
	border: 1px solid silver;
	border-color: #FF8C00;
	border-radius: 7px;
	border-spacing: 1px;
}

.main-box>p:last-child {
	margin-bottom: 0;
}


/* Изображение дня */

.main-box-image-only>.main-box-content {
	margin: 0.5rem -1rem 0;
	text-align: center;
}

.main-box-image-only>.main-box-content img {
	height: auto;
	max-width: 100%;
}

.main-box-imageCaption {
	text-align: center;
}

.main-box-imageCaption>p {
	display: inline-block;
	margin-bottom: 0;
	text-align: left;
}


/* Надзаголовок */

.main-box-subtitle {
	color: #72777d;
	line-height: 1.25;
	margin-top: -.125em;
	/* Балансирование верхней границы надзаголовка из-за line-height: 1.25; */
}


/* Заголовок */

.main-box-header {
	margin-top: -.15em;
	/* Балансирование верхней границы заголовка из-за line-height: 1.3; */
	text-align: center;
}

.main-box-header a {
	color: inherit;
}

/*
 Сброс margin на стандартное значение при появлении надзаголовка
*/
.main-box-subtitle+.main-box-header {
	margin-top: 0;
}

.main-box-header a:focus,
.main-box:hover .main-box-header a,
.main-box:hover .main-featuredLists-item>a {
	color: #0645ad;
}

.main-box:last-child {
	margin-bottom: 0;
}


/* Подвал */

.main-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 1rem;
	position: relative;
}

.main-footer:empty {
	display: none;
}

.main-footer-actions {
	flex: 1;
}

.main-footer-actions>ul {
	align-items: center;
	display: flex;
}


/* Меню */

.main-footer-menu {
	align-items: stretch;
	display: flex;
}

.main-footer-menuToggle {
	align-items: center;
	display: flex;
	float: none;
	height: 100%;
	opacity: 0.87;
}

.main-footer-menuToggle:hover {
	opacity: 0.51;
}


/* Выпадайка */

.main-footer-menuDropdown {
	background: #fff;
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25);
	max-width: 15em;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 100;
}

.main-footer-menuDropdown .mw-ui-button {
	text-align: left;
	width: 100%;
}


/* Мы в соцсетях, Дружественные проекты, АК */

#main-soc p,
#main-fri p,
#main-pir p,
#main-img p {
	text-align: center;
}


/*
Мобильные
*/

@media (max-width: 719px) {
	.main-box-responsive-image>.floatleft,
	.main-box-responsive-image>.floatright {
		float: none;
		margin-left: -1rem;
		margin-right: -1rem;
		text-align: center;
	}
	.main-box-responsive-image>.floatleft>a,
	.main-box-responsive-image>.floatright>a {
		display: block;
	}
}


/*
Планшеты
*/

@media (min-width: 720px) {
	.main-box {
		margin-bottom: 1rem;
		margin-left: 0;
		margin-right: 0;
	}
}


/*
Стационарные компьютеры
*/

@media (min-width: 1000px) {
	.main-box {
		margin-bottom: 1.5rem;
		padding: 1.5rem;
	}
	.main-box-image-only>.main-box-content {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}
}


/*
Братские проекты
*/

.main-projects-wrapper-0 {
	width: 100%;
	background: #FFA500;
	border-radius: 7px;
	border-spacing: 0;
}

.main-projects-wrapper-1 {
	width: 100%;
	border-radius: 7px;
}

.main-projects-header {
	border: 0;
	text-align: center;
	padding-left: 1px;
	font-family: sans-serif;
	font-size: 100%;
}

.main-projects-table {
	width: 100%;
	font-size: 90%;
	border-radius: 7px;
	line-height: 110%;
	background: #FFFFFF;
}

.main-projects-list {
	width: 100%;
	background: white;
	display: flex;
	flex-wrap: wrap;
}

.main-project-item {
	flex: 1 1 40%;
	min-width: 200px;
}

.main-project-item-table {
	width: 100%;
}

.main-project-icon {
	width: 6%;
}

.main-project-title {
	width: 44%;
	border-bottom: 1px dashed #AAAAAA;
}

#main-wtr,
#main-prs,
#main-new,
#main-fri {
	background-color: #FFFFE0;
}


/*
Блок «Добро пожаловать»
 */

.main-top-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.main-top-header-welcome {
	text-align: center;
}

.main-top-header-welcome-bold {
	margin: 0;
	padding: .1em;
	font-family: sans-serif;
	font-size: 162%;
}

.main-top-header-categories {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

.main-top-header-patron {
	flex: 100%;
	text-align: center;
	font-size: 95%;
}


/*
 Прочее
 */

.main-layout-element {
	margin-bottom: 1rem;
}

.main-layout-element:last-child {
	margin-bottom: 0;
}