Template:Menu/styles.css

    来自真佛百科
    < Template:Menu
    蓮花祖泉讨论 | 贡献2024年3月2日 (六) 16:47的版本 (导入1个版本)
    (差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
    /**
     * [[Category:Template style pages]]
     */
    .menu {
    	background: #f8f9fa;
    	border: 1px solid #a2a9b1;
    	box-sizing: border-box;
    	clear: both;
    	float: right;
    	margin: 0 0 1em 1em;
    	overflow: hidden;
    	text-align: center;
    	width: 332px;
    }
    .menu-header {
    	background: #1b476a;
    	color: white;
    	cursor: pointer;
    	font-weight: bold;
    	margin: .5em;
    	position: relative;
    }
    .menu-header img:first-of-type {
    	filter: invert(1);
    	float: left;
    	margin: 3px 5px 3px 5px;
    }
    .menu-header img:last-of-type {
    	filter: invert(1);
    	float: right;
    	margin: 5px;
    }
    .menu-header a {
    	color: inherit;
    	text-decoration: underline;
    }
    .menu-content {
    	margin: .5em;
    	overflow: hidden;
    }
    .menu-logo,
    .menu-image {
    	margin: .5em;
    }
    .menu-logo img,
    .menu-image img {
    	vertical-align: middle;
    	margin: auto;
    }
    .menu-title {
    	font-size: large;
    	margin: 7px;
    	text-align: center;
    }
    .menu-subtitle {
    	margin: .5em;
    }
    .menu-text {
    	margin: .5em;
    }
    .menu-group {
    	font-weight: bold;
    	margin-top: 1em;
    	text-align: left;
    }
    .menu-list {
    	margin: 1em .5em;
    	text-align: left;
    }
    
    /**
     * Collapse
     */
    .menu-collapse .menu-content {
    	display: none;
    }
    
    /**
     * Center
     */
    .menu-center .menu-group,
    .menu-center .menu-list {
    	text-align: center;
    }
    .menu-center ul {
    	list-style: none;
    	margin: 0;
    }
    
    /**
     * Special features
     */
    .menu-persistent-button {
    	position: relative;
    }
    .menu-persistent-button .mw-ui-button:hover:after {
    	background: #a2a9b1;
    	border-radius: 2px;
    	color: white;
    	content: attr( title );
    	opacity: .8;
    	padding: .5em;
    	position: absolute;
    	left: 50%;
    	transform: translateX( -50% );
    	top: 2.5em;
    }
    
    .menu-progress-buttons {
    	margin: .5em;
    	text-align: center;
    }
    .menu-progress-buttons a:nth-child(2) {
    	margin-left: .5em;
    }
    .menu-progress-bar {
    	background: #a2a9b1;
    	margin: .5em;
    	text-align: center;
    }
    .menu-progress {
    	background: #3366cc;
    	color: white;
    	margin: 0;
    }
    .menu-no-progress {
    	margin-left: .5em;
    	width: 0;
    }
    .menu-book {
    	margin: .5em;
    	text-align: center;
    }
    
    /**
     * Dark mode
     */
    body.poncho-dark-mode .menu {
    	background: #303134;
    	border-color: #3c4043;
    	color: #bdc1c6;
    }
    
    /**
     * Small screens
     */
    @media screen and (max-width:600px) {
    	.menu {
    		float: none;
    		margin: 1em 0;
    		width: 100%;
    	}
    	.menu-logo,
    	.menu-image {
    		float: none;
    	}
    	.menu .selflink {
    		font-weight: bold;
    	}
    	.menu-content {
    		display: none;
    	}
    }