“MediaWiki:Gadget-inspect.css”的版本间差异

来自BanG Dream! Wiki
跳到导航 跳到搜索
 
(导入1个版本)
 

2022年4月7日 (四) 20:19的最新版本

#inspector {
	float: right;
	width: 50%;
	min-width: 350px;
	top: 7px;
	left: 0 !important;
	height: calc(100vh - 7px) !important;
	box-sizing: border-box;
	padding-left: 1em;
	z-index: 100;
}
@media screen and (max-width:720px) {
	#inspector {
		display: none;
	}
}
#inspector > .CodeMirror {
	border: 1px solid;
	height: calc(100% - 46px);
}
#inspector .cm-mw-template-name {
	cursor: pointer;
}
#inspector-btns {
	text-align: center;
	position: absolute;
	bottom: 0;
	right: 0;
	width: 100%;
}
#inspector .oo-ui-buttonWidget {
	margin: 0.5em;
}
#inspector .oo-ui-buttonWidget:first-child {
	margin-left: 1.5em;
}
#inspector .oo-ui-buttonWidget:nth-child(2) {
	position: relative;
}
.inspector-variant {
	position: absolute;
}
.inspector-variant .oo-ui-menuSelectWidget {
	width: auto;
	bottom: 100%;
}
.inspector-menu {
	display: none;
	position: absolute;
	z-index: 7; /* 浮于vscrollbar上方 */
	background-color: #f7f7f7;
	border: 1px solid #a2a9b1;
	border-radius: 0 0 2px 2px;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.25);
	font-size: 14px;
	white-space: nowrap;
}
.inspector-menu > div {
	padding: 5px;
	cursor: pointer;
	transition: background-color 100ms;
}
.inspector-menu > div:hover {
	background-color: #e7e9ee;
}
.inspector-menu > span {
	padding: 5px;
}
.inspector-field {
	position: fixed;
	top: 20%;
	left: 30%;
	border: 1px #ccc solid;
	box-shadow: 0 0 15px #ccc;
	padding: 10px 20px;
	background-color: #fff;
	font-size: 14px;
	min-height: 60px;
	background-position-y: 80%;
}
.inspector-field > :nth-child(n+2) {
	margin-top: 0.85714286em;
}
.inspector-field .oo-ui-textInputWidget {
	display: inline-block;
	width: calc(100% - 3em);
}
.inspector-field textarea {
	height: 2.28571429em;
}
.inspector-field .oo-ui-fieldLayout {
	display: inline-block;
	margin: 0 1em 0 0;
	vertical-align: middle;
}
#inspector-field-title {
	font-size: 1rem;
	font-weight: bold;
	text-align: center;
}
/* [[category:桌面版小工具]] [[category:维护工具]] [[category:CSS小工具]] [[category:需要自确用户权限的小工具]] */
/* {{DEFAULTSORT:inspect.css}} */