“MediaWiki:Common.js”的版本间的差异
跳到导航
跳到搜索
(以“mediawiki”替换内容) 标签:替换 |
LapisLazuli33(讨论 | 贡献) |
||
第1行: | 第1行: | ||
− | + | (function ($, mw) { | |
+ | function tabs() { | ||
+ | var defaultStyle = { | ||
+ | purple: { | ||
+ | labelColor: ' ', //anti check | ||
+ | labelBackgroundColor: '#9070c0', | ||
+ | labelBorderColor: '#b090e0 #7050a0 #9070c0 #b090e0', | ||
+ | labelPadding: '.2em .3em .2em .3em', | ||
+ | textBorderColor: '#9070c0', | ||
+ | textBackgroundColor: '#f0edf5', | ||
+ | textPadding: '1em' | ||
+ | }, | ||
+ | green: { | ||
+ | labelColor: ' ', | ||
+ | labelBackgroundColor: '#75c045', | ||
+ | labelBorderColor: '#90d060 #60b030 #75c045 #90d060', | ||
+ | labelPadding: '.2em .3em .2em .3em', | ||
+ | textBorderColor: '#75c045 #60b030 #60b030 #75c045', | ||
+ | textBackgroundColor: '#f5fffa', | ||
+ | textPadding: '1em' | ||
+ | }, | ||
+ | red: { | ||
+ | labelColor: ' ', | ||
+ | labelBackgroundColor: '#FF0000', | ||
+ | labelBorderColor: '#FF8888 #CC0000 #FF0000 #FF8888', | ||
+ | labelPadding: '.2em .3em .2em .3em', | ||
+ | textBorderColor: '#FF0000 #CC0000 #CC0000 #FF0000', | ||
+ | textBackgroundColor: '#fffafa', | ||
+ | textPadding: '1em' | ||
+ | }, | ||
+ | blue: { | ||
+ | labelColor: ' ', | ||
+ | labelBackgroundColor: '#5b8dd6', | ||
+ | labelBorderColor: '#88abde #3379de #5b8dd6 #88abde', | ||
+ | labelPadding: '.2em .3em .2em .3em', | ||
+ | textBackgroundColor: '#f0f8ff', | ||
+ | textBorderColor: '#5b8dd6 #3379de #3379de #5b8dd6', | ||
+ | textPadding: '1em' | ||
+ | }, | ||
+ | yellow: { | ||
+ | labelColor: ' ', | ||
+ | labelBackgroundColor: '#ffe147', | ||
+ | labelBorderColor: '#ffe977 #ffd813 #ffe147 #ffe977', | ||
+ | labelPadding: '.2em .3em .2em .3em', | ||
+ | textBackgroundColor: '#fffce8', | ||
+ | textBorderColor: '#ffe147 #ffd813 #ffd813 #ffe147', | ||
+ | textPadding: '1em' | ||
+ | }, | ||
+ | orange: { | ||
+ | labelColor: ' ', | ||
+ | labelBackgroundColor: '#ff9d42', | ||
+ | labelBorderColor: '#ffac5d #ff820e #ff9d42 #ffac5d', | ||
+ | labelPadding: '.2em .3em .2em .3em', | ||
+ | textBackgroundColor: '#ffeedd', | ||
+ | textBorderColor: '#ff9d42 #ff820e #ff820e #ff9d42', | ||
+ | textPadding: '1em' | ||
+ | }, | ||
+ | black: { | ||
+ | labelColor: ' ', | ||
+ | labelBackgroundColor: '#7f7f7f', | ||
+ | labelBorderColor: '#999999 #4c4c4c #7f7f7f #999999', | ||
+ | labelPadding: '.2em .3em .2em .3em', | ||
+ | textBackgroundColor: '#e5e5e5', | ||
+ | textBorderColor: '#7f7f7f #4c4c4c #4c4c4c #7f7f7f', | ||
+ | textPadding: '1em' | ||
+ | } | ||
+ | }; | ||
+ | $('body').addClass('tab'); | ||
+ | } | ||
+ | })(jQuery, mediaWiki); |
2019年4月27日 (六) 21:12的版本
(function ($, mw) { function tabs() { var defaultStyle = { purple: { labelColor: ' ', //anti check labelBackgroundColor: '#9070c0', labelBorderColor: '#b090e0 #7050a0 #9070c0 #b090e0', labelPadding: '.2em .3em .2em .3em', textBorderColor: '#9070c0', textBackgroundColor: '#f0edf5', textPadding: '1em' }, green: { labelColor: ' ', labelBackgroundColor: '#75c045', labelBorderColor: '#90d060 #60b030 #75c045 #90d060', labelPadding: '.2em .3em .2em .3em', textBorderColor: '#75c045 #60b030 #60b030 #75c045', textBackgroundColor: '#f5fffa', textPadding: '1em' }, red: { labelColor: ' ', labelBackgroundColor: '#FF0000', labelBorderColor: '#FF8888 #CC0000 #FF0000 #FF8888', labelPadding: '.2em .3em .2em .3em', textBorderColor: '#FF0000 #CC0000 #CC0000 #FF0000', textBackgroundColor: '#fffafa', textPadding: '1em' }, blue: { labelColor: ' ', labelBackgroundColor: '#5b8dd6', labelBorderColor: '#88abde #3379de #5b8dd6 #88abde', labelPadding: '.2em .3em .2em .3em', textBackgroundColor: '#f0f8ff', textBorderColor: '#5b8dd6 #3379de #3379de #5b8dd6', textPadding: '1em' }, yellow: { labelColor: ' ', labelBackgroundColor: '#ffe147', labelBorderColor: '#ffe977 #ffd813 #ffe147 #ffe977', labelPadding: '.2em .3em .2em .3em', textBackgroundColor: '#fffce8', textBorderColor: '#ffe147 #ffd813 #ffd813 #ffe147', textPadding: '1em' }, orange: { labelColor: ' ', labelBackgroundColor: '#ff9d42', labelBorderColor: '#ffac5d #ff820e #ff9d42 #ffac5d', labelPadding: '.2em .3em .2em .3em', textBackgroundColor: '#ffeedd', textBorderColor: '#ff9d42 #ff820e #ff820e #ff9d42', textPadding: '1em' }, black: { labelColor: ' ', labelBackgroundColor: '#7f7f7f', labelBorderColor: '#999999 #4c4c4c #7f7f7f #999999', labelPadding: '.2em .3em .2em .3em', textBackgroundColor: '#e5e5e5', textBorderColor: '#7f7f7f #4c4c4c #4c4c4c #7f7f7f', textPadding: '1em' } }; $('body').addClass('tab'); } })(jQuery, mediaWiki);