Jump to content

Template:MS Initiative/styles.css

From Meta, a Wikimedia project coordination wiki
/*
MS initiative pages styles
*/
/* Hide title auto-numbering */
.mw-headline-number {
    display: none;
}
/* For other designs */
h1, .mw-heading2, h3 {
	padding: 0;
	border-bottom: 0;
}

/* Основа */
.main-block {
    width: 100%;
    margin-top: 1rem;
    border: 1px #d7d7d7 solid;
    border-top: 3px #3366cc solid;
    padding: 1em 1.25em 1.25em;
    box-sizing: border-box;
    background: #fafafa;
}
/* Заголовок */
.main-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: .25em;
    margin-bottom: .5em;
}
.main-block-header > .mw-heading2 {
    margin: 0;
    border-bottom: 0;
    font-family: inherit;
}
/* Меню блоку */
.main-block-menu {
	position: relative;
}
.main-block-menuToggle:hover {
	opacity: 0.5;
}
.main-block-menuDropdown {
    display: none;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 100;
}
.main-block-menuDropdown ul {
    list-style: none;
    margin: 0;
}
.main-block-menuDropdown ul a {
    display: block;
    width: 100%;
    padding: .25em .75em;
    font-weight: bold;
}
/* Вміст блоку */
.main-block-content {
    margin: .5em 0;
}
/* Посилання внизу блоку */
.main-block-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .75em;
    font-weight: bold;
    clear: both;
}
.main-block-links > a:only-child {
    margin-left: auto;
}
.main-block-links .mw-ui-button {
    background: #fcfcfc;
    border-color: #bbb;
    border-radius: 3px;
    color: #000;
}
.main-block-links a:hover .mw-ui-button {
    color: #777;
    background: #fff;
}
/* Вибране зображення */
#feat-pic .main-block-content img {
    margin: .5em 0;
    height: auto;
	width: 75%;
	max-width: 500px;
}
/* Тематичні розділи */
#topics-list ul {
    columns: 3;
    column-width: 140px;
    margin: 0;
}
#topics-list ul > li {
    align-items: center;
    display: flex;
    margin-bottom: 0.5rem;
}
#topics-list ul > li > a:first-child {
    flex: 0 auto;
    width: 2em;
    justify-content: center;
    display: flex;
}
#topics-list ul > li > a:last-child {
	font-weight: bold;
    flex: 1;
    line-height: 30px;
    padding-left: .5em;
    display: flex;
    align-items: center;
}
#topics-list ul > li:hover > a:first-child {
    opacity: 0.67;
}
#topics-list ul > li:hover > a:last-child {
    text-decoration: underline;
}

/* Посилання з логотипом */
.logo-link {
    display: inline-flex;
}
.logo-link a:first-child {
    flex: 0 auto;
}
.logo-link a:last-child {
    padding-left: .25em;
}
.logo-link:hover a:last-child {
    text-decoration: underline;
}

/* Для мобільних */
@media (max-width: 767px) {
    .main-block-menu {
        display: none;
    }
}
/* Для планшетів */
@media (min-width: 768px) {
    .main-block {
        border-radius: 3px;
        border-top-left-radius: 5px 3px;
        border-top-right-radius: 5px 3px;
    }
}
/* Для стаціонарних комп'ютерів */
@media (min-width: 1024px) {
    .main-column {
        flex: 1;
        margin: 0 .75rem;
    }
    .main-block {
    	margin-top: 1.5rem;
        padding: 1.25em 2em 1.5em;
    }
}