User:Eoc/timeless.css:修订间差异

来自蠢狗维基
跳转到导航 跳转到搜索
imported>Eoc
无编辑摘要
imported>Eoc
无编辑摘要
第1行: 第1行:
/* make the background behind the content area and the tabs a light grey */
{
#content, #content table
"name": "Timeless",
#p-cactions ul li a { background: #f5f5f5; }
"version": "0.8.1",
 
"author": "Isarra Yos",
/* stop background image from scrolling with content area */
"url": "https://www.mediawiki.org/wiki/Skin:Timeless",
body { background-attachment: fixed; }
"descriptionmsg": "timeless-desc",
 
"namemsg": "skinname-timeless",
/* replace the book in the background with something else */
"license-name": "GPL-2.0-or-later",
body { background: Purple; }
"type": "skin",
 
"requires": {
/* changes the colour of pre areas  */
"MediaWiki": ">= 1.31.0"
pre { background: White }
},
 
"ValidSkinNames": {
/* change the logo */
"timeless": "Timeless"
#p-logo a { background: url(http://en.wikipedia.org/upload/wiki.png) 35% 50% no-repeat !important; }
},
 
"MessagesDirs": {
/* don't use any logo, move the boxes onto that area instead */
"Timeless": [
#p-logo { display: none }
"i18n"
#column-one { padding-top: 0; }
]
 
},
/* suppress the person icon by your username */
"ResourceModules": {
li#pt-userpage { background: none }
"skins.timeless": {
 
"targets": [ "desktop", "mobile" ],
/* use browser prefs for text size and font */
"class": "ResourceLoaderSkinModule",
body, #globalWrapper { font: inherit !important; }
"styles": {
 
"resources/libraries/normalise.css": {
/* always underline links */
"media": "screen"
a { text-decoration: underline; }
},
 
"resources/forms.less": {
/* change colour of unselected tabs */
"media": "screen"
#p-cactions ul li a { background: #C7FDC7; }
},
 
"resources/screen-common.less": {
/* change colour of selected tabs */
"media": "screen"
#p-cactions ul li.selected a { background: white; }
},
 
"resources/screen-desktop.less": {
/* change border colour of selected tabs */
"media": "screen and (min-width: 851px)"
#p-cactions li.selected { border-color: #aaaaaa; }
},
 
"resources/screen-desktop-full.less": {
/* tab bottom not removed on hover */
"media": "screen and (min-width: 1340px)"
#p-cactions li a:hover { z-index: 0; text-decoration: none; }
},
#p-cactions li.selected a:hover { z-index: 3; }
"resources/screen-desktop-mid.less": {
 
"media": "screen and (min-width: 1100px) and (max-width: 1339px)"
/* style the search box and the buttons below it */
},
input.searchButton {
"resources/screen-desktop-small.less": {
    background-color: #efefef !important;
"media": "screen and (min-width: 851px) and (max-width: 1099px)"
    border: 1px outset !important; 
},
"resources/screen-mobile.less": {
"media": "screen and (max-width: 850px)"
},
"resources/print.css": {
"media": "print"
}
},
"@NOTE": "Remember to also update variables.less if you change the width cutoffs here. screen-misc.less and mobile.js may also need updating."
},
"skins.timeless.misc": {
"targets": [ "desktop", "mobile" ],
"styles": [
"resources/screen-misc.less"
]
},
"skins.timeless.js": {
"targets": [ "desktop" ],
"scripts": [
"resources/main.js"
],
"dependencies": [
"jquery.tabIndex"
]
},
"skins.timeless.mobile": {
"targets": [ "desktop", "mobile" ],
"scripts": [
"resources/mobile.js"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteSkinPath": "Timeless"
},
"ResourceModuleSkinStyles": {
"timeless": {
"+oojs-ui-core.styles": "resources/ooui.less",
"+ext.echo.styles.badge": "resources/extensions/Echo.less",
"+ext.visualEditor.core": "resources/extensions/VisualEditor.core.less",
"+ext.visualEditor.desktopArticleTarget.noscript": "resources/extensions/VisualEditor.article.less",
"+ext.dismissableSiteNotice.styles": "resources/extensions/DismissableSiteNotice.less"
}
},
"AutoloadClasses": {
"SkinTimeless": "includes/SkinTimeless.php",
"TimelessTemplate": "includes/TimelessTemplate.php"
},
"manifest_version": 1
}
}
#searchInput { border: 1px inset !important; }
/* standard link colors */
a { color: #0000FF; }
a:visited { color: #7F007F; }
a:active, a.new { color: #FF0000; }
a.interwiki, a.external { color: #3366BB; }
a.stub { color: #772233; }
/* put scrollbar on pre sections instead of ugly cutoff/overlap in firefox */
pre { overflow: auto; }

2019年4月12日 (五) 02:43的版本

{
	"name": "Timeless",
	"version": "0.8.1",
	"author": "Isarra Yos",
	"url": "https://www.mediawiki.org/wiki/Skin:Timeless",
	"descriptionmsg": "timeless-desc",
	"namemsg": "skinname-timeless",
	"license-name": "GPL-2.0-or-later",
	"type": "skin",
	"requires": {
		"MediaWiki": ">= 1.31.0"
	},
	"ValidSkinNames": {
		"timeless": "Timeless"
	},
	"MessagesDirs": {
		"Timeless": [
			"i18n"
		]
	},
	"ResourceModules": {
		"skins.timeless": {
			"targets": [ "desktop", "mobile" ],
			"class": "ResourceLoaderSkinModule",
			"styles": {
				"resources/libraries/normalise.css": {
					"media": "screen"
				},
				"resources/forms.less": {
					"media": "screen"
				},
				"resources/screen-common.less": {
					"media": "screen"
				},
				"resources/screen-desktop.less": {
					"media": "screen and (min-width: 851px)"
				},
				"resources/screen-desktop-full.less": {
					"media": "screen and (min-width: 1340px)"
				},
				"resources/screen-desktop-mid.less": {
					"media": "screen and (min-width: 1100px) and (max-width: 1339px)"
				},
				"resources/screen-desktop-small.less": {
					"media": "screen and (min-width: 851px) and (max-width: 1099px)"
				},
				"resources/screen-mobile.less": {
					"media": "screen and (max-width: 850px)"
				},
				"resources/print.css": {
					"media": "print"
				}
			},
			"@NOTE": "Remember to also update variables.less if you change the width cutoffs here. screen-misc.less and mobile.js may also need updating."
		},
		"skins.timeless.misc": {
			"targets": [ "desktop", "mobile" ],
			"styles": [
				"resources/screen-misc.less"
			]
		},
		"skins.timeless.js": {
			"targets": [ "desktop" ],
			"scripts": [
				"resources/main.js"
			],
			"dependencies": [
				"jquery.tabIndex"
			]
		},
		"skins.timeless.mobile": {
			"targets": [ "desktop", "mobile" ],
			"scripts": [
				"resources/mobile.js"
			]
		}
	},
	"ResourceFileModulePaths": {
		"localBasePath": "",
		"remoteSkinPath": "Timeless"
	},
	"ResourceModuleSkinStyles": {
		"timeless": {
			"+oojs-ui-core.styles": "resources/ooui.less",
			"+ext.echo.styles.badge": "resources/extensions/Echo.less",
			"+ext.visualEditor.core": "resources/extensions/VisualEditor.core.less",
			"+ext.visualEditor.desktopArticleTarget.noscript": "resources/extensions/VisualEditor.article.less",
			"+ext.dismissableSiteNotice.styles": "resources/extensions/DismissableSiteNotice.less"
		}
	},
	"AutoloadClasses": {
		"SkinTimeless": "includes/SkinTimeless.php",
		"TimelessTemplate": "includes/TimelessTemplate.php"
	},
	"manifest_version": 1
}