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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Метка: ручная отмена
Строка 10: Строка 10:


.tooltip {
.tooltip {
    position: relative;
position: relative;
    display: inline-block;
display: inline;
    cursor: help;
    border-bottom: 1px dotted var(--theme-text-color-dark);  
}
}


.tooltip .tooltiptext {
.tooltiptext {
    visibility: hidden;
position: absolute;
    opacity: 0;
min-width: 240px;
    background: rgba(20, 24, 31, 0.5);  
max-width: 100%;
    color: var(--theme-text-color);
left: -240px;
    text-align: center;
right: -240px;
    border: 1px solid #402e75;  
top: 125%;
    box-shadow: 0 0 1px #14181780;
margin-left: auto;
    padding: 12px;
margin-right: auto;
    border-radius: 1.4rem;
z-index: 99;
    position: absolute;
padding: 22px;
    z-index: 1500 !important;
pointer-events: none;
    min-width: 240px;
visibility: hidden;
    max-width: 100%;
transition: all 0.05s;
    left: 50%;
border: 1px solid var(--color-contrast);
    bottom: 125%;  
border-radius: 1.4rem;
    transform: translateX(-50%) translateY(10px);
background: var(--ooui--bg-color);
    transition: opacity 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: initial;
}
}


.tooltip:hover .tooltiptext {
.tooltip:hover>.tooltiptext {
    visibility: visible;
visibility: visible;
    opacity: 1;
opacity: 1;
    transform: translateX(-50%) translateY(0);
}
}


@media screen and (min-width: 851px) {
@media screen and (min-width: 851px) {
    .mobile {
.mobile {
        display: none;
display:none
    }
}


    .headder {
.headder {
        width: 25%;
width: 25%;
        float: right;
float: right;
        margin-left: 1em;
margin-left: 1em
    }
}


    .stiky {
.stiky {
        position: sticky;
position: sticky;
        top: 0.1em;
top: 0.1em
    }
}
}
}


@media screen and (max-width: 850px) {
@media screen and (max-width: 850px) {
    .nomobile {
.nomobile {
        display: none !important;
display: none !important;
    }
}


    .headder {
.headder {
        width: 100%;
width: 100%;
        margin-left: 0;
margin-left: 0;
    }
}


    .tooltip {
.tooltip {
        position: static;
position: static;
        border-bottom: none;
}
    }


    .tooltip .tooltiptext {
.tooltiptext {
        position: fixed !important;
box-shadow: var(--box-shadow-overlay);
        width: 80vw !important;
position: fixed!important;
        top: 40vh !important;
width: 80vw !important;
        left: 0 !important;
top: 40vh !important;
        right: 0 !important;
left: 0 !important;
        bottom: auto !important;
margin: 0 auto !important;
        margin: 0 auto !important;
right: 0!important;
        transform: none !important;
}
        padding: 22px;
/*
    }
.mobilefont {
 
font-size: 80%
    .mobile-image img {
}
        width: 32px;
*/
        height: 32px;
    }
.mobile-image img {
width: 32px;
height: 32px;
}
}
}

Версия от 14:23, 31 мая 2025

/* Hide title and edit tools on main page */
.page-Заглавная_страница .mw-body-header,
.page-Заглавная_страница .mw-body-footer {
	display: none!important;
}

.page-Заглавная_страница .citizen-body-container {
	margin: 0!important;
}

.tooltip {
	position: relative;
	display: inline;
}

.tooltiptext {
	position: absolute;
	min-width: 240px;
	max-width: 100%;
	left: -240px;
	right: -240px;
	top: 125%;
	margin-left: auto;
	margin-right: auto;
	z-index: 99;
	padding: 22px;
	pointer-events: none;
	visibility: hidden;
	transition: all 0.05s;
	border: 1px solid var(--color-contrast);
	border-radius: 1.4rem;
	background: var(--ooui--bg-color);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tooltip:hover>.tooltiptext {
	visibility: visible;
	opacity: 1;
}

@media screen and (min-width: 851px) {
	.mobile {
		display:none
	}

	.headder {
		width: 25%;
		float: right;
		margin-left: 1em
	}

	.stiky {
		position: sticky;
		top: 0.1em
	}
}

@media screen and (max-width: 850px) {
	.nomobile {
		display: none !important;
	}

	.headder {
		width: 100%;
		margin-left: 0;
	}

	.tooltip {
		position: static;
	}

	.tooltiptext {
		box-shadow: var(--box-shadow-overlay);
		position: fixed!important;
		width: 80vw !important;
		top: 40vh !important;
		left: 0 !important;
		margin: 0 auto !important;
		right: 0!important;
	}
	/*
	.mobilefont {
		font-size: 80%
	}
	*/
	
	.mobile-image img {
		width: 32px;
		height: 32px;
	}
}