「MediaWiki:Common.css」の版間の差分

提供: Tomatopedia
ナビゲーションに移動 検索に移動
17行目: 17行目:
  
 
/* ボタンの背景色を変更 */
 
/* ボタンの背景色を変更 */
    .mw-ui-button.mw-ui-constructive {
+
.mw-ui-button.mw-ui-constructive {
        background: #fff7f0;
+
    background: none repeat scroll 0% 0% #7EC0EE;
        color: #fff;
+
    color: #D3D7CF;
        border: 1px solid #fff7f0;
+
    border: 1px solid #7EC0EE;
        text-shadow: 0 1px rgba(0, 0, 0, .1)
+
    text-shadow: 0px 1px rgba(0, 0, 0, 0.1);
    }
+
}
   
 
    .mw-ui-button.mw-ui-constructive:hover,
 
    .mw-ui-button.mw-ui-constructive:focus {
 
        box-shadow: 0 1px rgba(0, 0, 0, .1), inset 0 -3px rgba(0, 0, 0, .2);
 
        border-bottom-color: #008c6e;
 
        outline: 0
 
    }
 
   
 
    .mw-ui-button.mw-ui-constructive:hover::-moz-focus-inner,
 
    .mw-ui-button.mw-ui-constructive:focus::-moz-focus-inner {
 
        border-color: transparent
 
    }
 
   
 
    .mw-ui-button.mw-ui-constructive:active,
 
    .mw-ui-button.mw-ui-constructive.mw-ui-checked {
 
        background: #008c6e;
 
        box-shadow: none
 
    }
 
   
 
    .mw-ui-button.mw-ui-constructive:disabled {
 
        background: #DDD;
 
        border-color: #DDD
 
    }
 
   
 
    .mw-ui-button.mw-ui-constructive:disabled:hover,
 
    .mw-ui-button.mw-ui-constructive:disabled:active,
 
    .mw-ui-button.mw-ui-constructive:disabled.mw-ui-checked {
 
        box-shadow: none
 
    }
 
  
  

2021年8月17日 (火) 08:21時点における版

/* ここに記述したCSSはすべての外装に反映されます */

/* 各ページの下部と左側の背景色を、ロゴの半分の背景色を変更 */
body {
  background: #fcf1f1;
}
/* ロゴの上半分の背景色と各ページの上部の背景色を変更 */
#mw-page-base {
  background: -moz-linear-gradient(top, #FFF, #fcf1f1);
  background: -webkit-linear-gradient(top, #FFF, #fcf1f1);
  background: linear-gradient(to bottom, #FFF, #fcf1f1);
}
.mw-body {
  border: 1px solid #f9a7a7;
}


/* ボタンの背景色を変更 */
.mw-ui-button.mw-ui-constructive {
    background: none repeat scroll 0% 0% #7EC0EE;
    color: #D3D7CF;
    border: 1px solid #7EC0EE;
    text-shadow: 0px 1px rgba(0, 0, 0, 0.1);
}




/* タブの背景色を変更 */
.vectorTabs {
  background-image: -moz-linear-gradient(top, #fdf7f7, #F5d0d0);
  background-image: -webkit-linear-gradient(top, #fdf7f7, #F5d0d0);
  background-image: linear-gradient(to bottom, #fdf7f7, #F5d0d0);
}
.vectorTabs span, .vectorMenu {
  background-image: -moz-linear-gradient(top, #fdf7f7, #F5d0d0);
  background-image: -webkit-linear-gradient(top, #fdf7f7, #F5d0d0);
  background-image: linear-gradient(to bottom, #fdf7f7, #F5d0d0);
}
.vectorTabs li:not(.selected), .vectorMenu {
  background-image: -moz-linear-gradient(top, #fdf7f7, #F5d0d0);
  background-image: -webkit-linear-gradient(top, #fdf7f7, #F5d0d0);
  background-image: linear-gradient(to bottom, #fdf7f7, #F5d0d0);
}

/* ------------------------------------------------------ */

/* タブのボーダー色の変更 */
.vectorTabs { 
  background-image('images/tab-normal-fade.png');
  background-image('images/tab-current-fade.png');
  background-image('images/tab-break.png');
  background-image('images/tab-separator.png');
  background: linear-gradient(to bottom, #fdf7f7, #f9a7a7);
}


.vector-menu-tabs. li {
  background-image: url( images/tab-normal-fade.png );
  background-image: linear-gradient( to top, @border-color-content--tabs-inactive 0, #fdf7f7, #f9a7a7 );
}
.vector-menu-tabs li a {
  background-image: url( images/tab-normal-fade.png );
  background-image: url( images/tab-break.png );
  background-image: linear-gradient( to top, @border-color-content--tabs-inactive 0, #fdf7f7, #f9a7a7 );
}
.vector-menu-tabs li selected {
  background-image: url( images/tab-current-fade.png );
  background-image: linear-gradient( to top, @border-color-content--tabs-inactive 0, #fdf7f7, #f9a7a7 );
}

/* タブ(その他)のボーダー色の変更 */
#mw-head .vector-menu-dropdown h3 {
  background-image: url( images/tab-separator.png );
  background-image: linear-gradient( to bottom, #fdf7f7, #f9a7a7 @border-color-content 100% );
}

/* ------------------------------------------------------ */

/* 目次の背景色を変更*/
#toc {
  background: #fcf1f1;
}
/* 画像枠内の背景色を変更*/
.thumbinner {
    background: #fcf1f1 !important;
}
.thumbcaption {
    background: #fcf1f1 !important;
}

/* 表題の背景色を変更*/
.wikitable th {
    background: #F5d0d0 !important;
}
/* 表の背景色を変更*/
.wikitable {
    background: #fcf1f1 !important;
}


/* ギャラリー枠内の背景色を変更*/
.gallerybox .thumb {
    background: #fcf1f1 !important;
}

/* カテゴリ枠内の背景色を変更*/
.catlinks {
    background: #fcf1f1 !important;
}


/* メインページレイアウト */
body.page-メインページ h1.firstHeading {
	display:none;
}
body.page-メインページ #contentSub {
	display:none;
}

/* {{pp-template}} */
.mainpage-content {
	text-align: left;
	position: relative;
	overflow: auto;
}

.mainpage-heading {
	position: relative;
	margin: 0.2em 0 0 0;
	padding: 0;
	line-height: normal;
	overflow: visible;
	white-space: nowrap;
	border-bottom: 0;
}

.mainpage-heading:after {
	content: none !important; /* Timeless */
}

.mainpage-heading-image {
	position: relative;
	left: 3px;
	top: -0.1em;
	z-index: 2;
}

.mainpage-heading-title {
	position:relative;
	margin-left: -38px;
	z-index: 1;
	padding-left: 45px;
	padding-right: 8px;
	font-size: 85%;
	font-size: 1.2rem;
	font-weight: bold;
	text-align: left;
	border:0 solid transparent;
    border-radius: 5px / 50%;
    background: rgb(244, 155, 155, 3);	/* ブラウザがlinear-gradientに対応していない場合 */
	background: linear-gradient(to right, rgb(244, 155, 155, 3), rgba(244, 0, 0, 0));
}

.mainpage-content-text {
	margin: 4px 6px 16px 6px;
}


/* {{pp-template}} */
.mainpage-frame {
	overflow-x: auto;
	margin: 0 5px 10px 5px;
	padding: 8px;
	border: 1px solid #f9a7a7;
	border-radius: 10px;
}
#frame-main2 {
	background: #fffbfb;
}
#frame-interlang {
	background: #fcf1f1;
}
#frame-welcome {
	line-height: 1.25;
        height: 125px;
}
#welcome {
	font-size: 180%;
	margin-top: 10px;
	margin-bottom: 0.3em;
}
#about {
	margin-left: 0.5em;
	font-size: 85%;
}
#about ~ div {
	margin-top: 0.3em;
	font-size: 95%;
	text-align: right;
}
#number {
	padding-top: 0.8em;
}

.mainpage-flexbox {
	display: flex;
	flex-wrap: wrap;
}

#frame-main1 {
	flex-basis: 380px;
	flex-grow: 3;
}
#frame-main2 {
	flex-basis: 310px;
	flex-grow: 1;
}

/* 画面の横幅が大きけれはロゴ画像を表示させ、フォントを一部大きくする */
@media ( min-width: 40em ) {
	body.skin-timeless #frame-welcome {
		background-image: url("https://tomato.international/w/resources/assets/Tomatopedia-logo-v2-200px-transparent.png");
		background-repeat: no-repeat;
		background-position: -40px -15px;
		padding-left: 165px;
	}
}
@media ( min-width: 43em ) {
	body.skin-minerva #frame-welcome {
		background-image: url("https://tomato.international/w/resources/assets/Tomatopedia-logo-v2-200px-transparent.png");
		background-repeat: no-repeat;
		background-position: -40px -15px;
		padding-left: 165px;
	}
}
@media ( min-width: 48em ) {
	body.skin-vector #frame-welcome,
	body.skin-modern #frame-welcome,
	body.skin-monobook #frame-welcome,
	body.skin-cologneblue #frame-welcome {
		background-image: url("https://tomato.international/w/resources/assets/Tomatopedia-logo-v2-200px-transparent.png");
		background-repeat: no-repeat;
		background-position: -40px -15px;
		padding-left: 165px;
	}
}

.mainpage-content-text .hlist-slash {
	margin-top: 0.5em;
	text-align: right;
}

#portals .CategoryTreeTag {
	margin-left: 0.5em;
	font-size: 90%;
}

#fa_picture .mainpage-content-text > div {
	margin-left: auto;
	margin-right: auto;
}
.mainpage-gallery {
	text-align: center;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-around;
	justify-content: space-evenly;
}


/* [[Category:テンプレートスタイル]] */
<style data-mw-deduplicate="TemplateStyles:r81072500">.mw-parser-output .mainpage-content{text-align:left;position:relative;overflow:auto}.mw-parser-output .mainpage-heading{position:relative;margin:0.2em 0 0 0;padding:0;line-height:normal;overflow:visible;white-space:nowrap;border-bottom:0}.mw-parser-output .mainpage-heading:after{content:none!important}.mw-parser-output .mainpage-heading-image{position:relative;left:3px;top:-0.1em;z-index:2}.mw-parser-output .mainpage-heading-title{position:relative;margin-left:-38px;z-index:1;padding-left:45px;padding-right:8px;font-size:85%;font-size:1.2rem;font-weight:bold;text-align:left;border:0 solid transparent;border-radius:5px/50%;background:rgb(244,155,155,3);background:linear-gradient(to right,rgb(244,155,155, 3),rgba(244,155,155,0))}.mw-parser-output .mainpage-content-text{margin:4px 6px 16px 6px}</style>