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

提供: MochiuWiki : SUSE, EC, PCB

編集の要約なし
編集の要約なし
10行目: 10行目:
}
}
}
}
/* ライトモードの場合のスタイル */
/* ライトモードの場合のスタイル */
@media (prefers-color-scheme: light) {
@media (prefers-color-scheme: light) {
30行目: 31行目:
}
}


.mw-highlight-lang-css {
/* ダークモードの場合のスタイル */
background-color:  rgba(230, 230, 230, 1.0) !important;
@media (prefers-color-scheme: dark) {
.mw-highlight-lang-css {
background-color:  rgba(230, 230, 230, 1.0) !important;
}
}
}


/* 数式は黒文字で描画するため、ダークモードを使用している場合、見えにくい可能性がある */
/* ダークモードの場合のスタイル */
/* この時、CSSを以下に示すように記述することにより、数式画像の明るさを反転させることができる */
@media (prefers-color-scheme: dark) {
.mwe-math-fallback-image-inline, .mwe-math-fallback-image-display {
    background-color: #EFEFEF !important;
/* 数式は黒文字で描画するため、ダークモードを使用している場合、見えにくい可能性がある */
  border: solid 1px #5050C0;
/* この時、CSSを以下に示すように記述することにより、数式画像の明るさを反転させることができる */
  border-radius: 5px;
.mwe-math-fallback-image-inline, .mwe-math-fallback-image-display {
    font-family: "Latin Modern Math";
    /*background-color: #EFEFEF !important;*/
    font-weight: bold;
  /*border: solid 1px #5050C0;*/
    margin: 0px 0px 3px; /* 外側の余白 : 上0px 下0px, 左右3px */
  /*border-radius: 5px;*/
    padding: 0px 3px; /* 内側の余白 : 上下3px, 左右3px */
font-family: "Latin Modern Math";
    /*filter: hue-rotate(180deg) invert(1);*/
        font-weight: bold;
    /*display: none !important;*/
    margin: 0px 0px 3px; /* 外側の余白 : 上0px 下0px, 左右3px */
}
    padding: 0px 3px; /* 内側の余白 : 上下3px, 左右3px */
 
    filter: hue-rotate(180deg) invert(1);
pre .mwe-math-fallback-image-inline, pre .mwe-math-fallback-image-display {
    /*display: none !important;*/
    /*color: black !important;*/
}
  /*background-color: #EFEFEF !important;*/
  border: solid 1px #5050C0;
pre .mwe-math-fallback-image-inline, pre .mwe-math-fallback-image-display {
  border-radius: 5px;
    /*color: black !important;*/
    font-family: "Latin Modern Math";
  /*background-color: #EFEFEF !important;*/
    font-weight: bold;
  border: solid 1px #5050C0;
    margin: 1px 2px; /* 外側の余白 : 上下0px, 左右2px */
  border-radius: 5px;
    padding: 3px 3px;  /* 内側の余白 : 上下3px, 左右3px */
    font-family: "Latin Modern Math";
    /*box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);*/
    font-weight: bold;
    filter: hue-rotate(180deg) invert(1);
    margin: 1px 2px; /* 外側の余白 : 上下0px, 左右2px */
    /*display: none !important;*/
    padding: 3px 3px;  /* 内側の余白 : 上下3px, 左右3px */
}
    /*box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);*/
 
    filter: hue-rotate(180deg) invert(1);
th .mwe-math-element {
    /*display: none !important;*/
  /*border: solid 1px #5050C0;*/
}
  /*border-radius: 5px;*/
  background-color: inherit;
th .mwe-math-element {
    font-family: "Latin Modern Math";
  /*border: solid 1px #5050C0;*/
    font-weight: bold;
  /*border-radius: 5px;*/
    margin: 1px 2px; /* 外側の余白 : 上下0px, 左右2px */
  background-color: inherit;
    padding: 3px 3px;  /* 内側の余白 : 上下3px, 左右3px */
    font-family: "Latin Modern Math";
}
    font-weight: bold;
 
    margin: 1px 2px; /* 外側の余白 : 上下0px, 左右2px */
td .mwe-math-element {
    padding: 3px 3px;  /* 内側の余白 : 上下3px, 左右3px */
  /*border: solid 1px #5050C0;*/
}
  /*border-radius: 5px;*/
    font-family: "Latin Modern Math";
td .mwe-math-element {
    font-weight: bold;
  /*border: solid 1px #5050C0;*/
    margin: 1px 2px; /* 外側の余白 : 上下0px, 左右2px */
  /*border-radius: 5px;*/
    padding: 3px 3px;  /* 内側の余白 : 上下3px, 左右3px */
    font-family: "Latin Modern Math";
    font-weight: bold;
    margin: 1px 2px; /* 外側の余白 : 上下0px, 左右2px */
    padding: 3px 3px;  /* 内側の余白 : 上下3px, 左右3px */
}
/*.mwe-math-mathml-a11y {*/
/*    clip: auto !important;*/
/*    overflow: visible !important;*/
/*    position: static !important;*/
/*    width: auto !important;*/
/*    height: auto !important;*/
/*    opacity: 1 !important;*/
/*}*/
/*td .mwe-math-mathml-inline, td .mwe-math-mathml-a11y {*/
/*    clip: auto !important;*/
/*    overflow: visible !important;*/
/*    position: static !important;*/
/*    width: auto !important;*/
/*    height: auto !important;*/
/*    opacity: 1 !important;*/
/*}*/
}
}
/*.mwe-math-mathml-a11y {*/
/*    clip: auto !important;*/
/*    overflow: visible !important;*/
/*    position: static !important;*/
/*    width: auto !important;*/
/*    height: auto !important;*/
/*    opacity: 1 !important;*/
/*}*/
/*td .mwe-math-mathml-inline, td .mwe-math-mathml-a11y {*/
/*    clip: auto !important;*/
/*    overflow: visible !important;*/
/*    position: static !important;*/
/*    width: auto !important;*/
/*    height: auto !important;*/
/*    opacity: 1 !important;*/
/*}*/


mtext {
mtext {
107行目: 115行目:
}
}


/* mw-highlightクラス内のpreタグの設定 */
/* ダークモードの場合のスタイル */
div.mw-highlight pre {
@media (prefers-color-scheme: dark) {
color: #202020 !important;
    background-color: rgba(240, 240, 240, 1.0) !important;
/* mw-highlightクラス内のpreタグの設定 */
}
div.mw-highlight pre {
color: #202020 !important;
    background-color: rgba(240, 240, 240, 1.0) !important;
}


/* 通常のpreタグの設定 */
/* 通常のpreタグの設定 */
pre {
pre {
/*color: #fefefe !important;*/
color: #fefefe !important;
/*background-color: rgba(25, 25, 25, 1.0) !important;*/
background-color: rgba(25, 25, 25, 1.0) !important;
background-color: var(--body-background-color);
/*background-color: var(--body-background-color);*/
font-family: "DejaVu Sans Mono" !important;
font-family: "DejaVu Sans Mono" !important;
}
}
}


129行目: 141行目:
}
}


table {
/* ダークモードの場合のスタイル */
border-collapse: collapse;
@media (prefers-color-scheme: dark) {
border: solid 2px blue;/*表全体を線で囲う*/
/*background-color: #202020 !important;*/
text-align: center;
}


th {/*thに対して*/
table {
  /*color: #000000;*/
border-collapse: collapse;
  font-weight: bold;
border: solid 2px blue;/*表全体を線で囲う*/
  text-align: center !important;
background-color: #202020 !important;
  border: dashed 1px blue;
text-align: center;
  background-color: #3399CC !important;
}
}
 
th {/*thに対して*/
td {/*tdに対して*/
color: #fefefe;
color: #000000;
font-weight: bold;
text-align: left;
text-align: center !important;
border: dashed 1px blue;
border: dashed 1px blue;
background-color: #3399CC !important;
}
td {/*tdに対して*/
color: #fefefe;
text-align: left;
border: dashed 1px blue;
}
}
}


178行目: 194行目:


.mw-parser-output a.new:visited {
.mw-parser-output a.new:visited {
color: #DE7231;
color: #FEA261;
font-weight: bold;
font-weight: bold;
}
}

2024年1月10日 (水) 10:25時点における版

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

/* ダークモードの場合のスタイル */
@media (prefers-color-scheme: dark) {
	.mw-body-content {
		/*font-family: "DejaVu Sans" !important;*/
		font-family: "Droid Sans" !important;
		/*background-color:  rgba(48, 48, 48, 1.0) !important;*/
		background-color:  #2A2A2A;
	}
}

/* ライトモードの場合のスタイル */
@media (prefers-color-scheme: light) {
	.mw-body-content {
		/*font-family: "DejaVu Sans" !important;*/
		font-family: "Droid Sans" !important;
		/*background-color:  rgba(48, 48, 48, 1.0) !important;*/
		/*background-color:  #2A2A2A;*/
	}
}

.mw-content-ltr {
	font-size:15px;
}

.mw-editfont-monospace {
	font-size:14px;
	/*font-family: 'Noto Sans JP', sans-serif !important;*/
	font-family: monospace !important;
}

/* ダークモードの場合のスタイル */
@media (prefers-color-scheme: dark) {
	.mw-highlight-lang-css {
		background-color:  rgba(230, 230, 230, 1.0) !important;
	}
}

/* ダークモードの場合のスタイル */
@media (prefers-color-scheme: dark) {
	
	/* 数式は黒文字で描画するため、ダークモードを使用している場合、見えにくい可能性がある */
	/* この時、CSSを以下に示すように記述することにより、数式画像の明るさを反転させることができる */
	.mwe-math-fallback-image-inline, .mwe-math-fallback-image-display {
    	/*background-color: #EFEFEF !important;*/
   		/*border: solid 1px #5050C0;*/
   		/*border-radius: 5px;*/
		font-family: "Latin Modern Math";
        font-weight: bold;
    	margin: 0px 0px 3px;	/* 外側の余白 : 上0px 下0px, 左右3px */
    	padding: 0px 3px;	/* 内側の余白 : 上下3px, 左右3px */
    	filter: hue-rotate(180deg) invert(1);
    	/*display: none !important;*/
	}
	
	pre .mwe-math-fallback-image-inline, pre .mwe-math-fallback-image-display {
    	/*color: black !important;*/
   		/*background-color: #EFEFEF !important;*/
   		border: solid 1px #5050C0;
   		border-radius: 5px;
    	font-family: "Latin Modern Math";
    	font-weight: bold;
    	margin: 1px 2px;	/* 外側の余白 : 上下0px, 左右2px */
    	padding: 3px 3px;   /* 内側の余白 : 上下3px, 左右3px */
    	/*box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);*/
    	filter: hue-rotate(180deg) invert(1);
    	/*display: none !important;*/
	}
	
	th .mwe-math-element {
   		/*border: solid 1px #5050C0;*/
   		/*border-radius: 5px;*/
   		background-color: inherit;
    	font-family: "Latin Modern Math";
    	font-weight: bold;
    	margin: 1px 2px;	/* 外側の余白 : 上下0px, 左右2px */
    	padding: 3px 3px;   /* 内側の余白 : 上下3px, 左右3px */
	}
	
	td .mwe-math-element {
   		/*border: solid 1px #5050C0;*/
   		/*border-radius: 5px;*/
    	font-family: "Latin Modern Math";
    	font-weight: bold;
    	margin: 1px 2px;	/* 外側の余白 : 上下0px, 左右2px */
    	padding: 3px 3px;   /* 内側の余白 : 上下3px, 左右3px */
	}
	
	/*.mwe-math-mathml-a11y {*/
	/*    clip: auto !important;*/
	/*    overflow: visible !important;*/
	/*    position: static !important;*/
	/*    width: auto !important;*/
	/*    height: auto !important;*/
	/*    opacity: 1 !important;*/
	/*}*/
	
	/*td .mwe-math-mathml-inline, td .mwe-math-mathml-a11y {*/
	/*    clip: auto !important;*/
	/*    overflow: visible !important;*/
	/*    position: static !important;*/
	/*    width: auto !important;*/
	/*    height: auto !important;*/
	/*    opacity: 1 !important;*/
	/*}*/
}

mtext {
    font-family: Latin Modern Roman !important;
}

math {
    font-family: Latin Modern Math !important;
}

/* ダークモードの場合のスタイル */
@media (prefers-color-scheme: dark) {
	
	/* mw-highlightクラス内のpreタグの設定 */
	div.mw-highlight pre {
		color: #202020 !important;
    	background-color: rgba(240, 240, 240, 1.0) !important;
	}

	/* 通常のpreタグの設定 */
	pre {
		color: #fefefe !important;
		background-color: rgba(25, 25, 25, 1.0) !important;
		/*background-color: var(--body-background-color);*/
		font-family: "DejaVu Sans Mono" !important;
	}
}

caption {
	color: #cfcfcf;
	font-weight: bold;
	border: solid 1px blue !important;
	/*background-color:  rgba(30, 170, 30, 1.0) !important;*/
	background-color:  rgba(50, 50, 180, 1.0) !important;
}

/* ダークモードの場合のスタイル */
@media (prefers-color-scheme: dark) {

	table {
		border-collapse: collapse;
		border: solid 2px blue;/*表全体を線で囲う*/
		background-color: #202020 !important;
		text-align: center;
	}
	
	th {/*thに対して*/
		color: #fefefe;
		font-weight: bold;
		text-align: center !important;
		border: dashed 1px blue;
		background-color: #3399CC !important;
	}
	
	td {/*tdに対して*/
		color: #fefefe;
		text-align: left;
		border: dashed 1px blue;
	}
}

/* self links */
a.interwiki {
	color: #FF560A;
	font-weight: bold;
}

/* External Links */
.mw-parser-output a.external {
	color: #DE7231;
	font-weight: bold;
}

code a.external {
    color: #EE803F !important;
    font-weight: bold;
}

a.external {
    color: #DE7231 !important;
    font-weight: bold;
}

table.wikitable td a {
    color: #5050EF !important;
    font-weight: bold;
}

.mw-parser-output a.new:visited {
	color: #FEA261;
	font-weight: bold;
}

code {
	color: #dfdfdf;
	font-weight: bold;
	background-color: #1166A0;
	/*background-color: rgba(150, 150, 150, 0.5) !important;*/
	border: solid 1px rgba(255, 255, 255, 0.3);
	border-radius: 5px;
	padding: 1px 5px;  /* 内側の余白 : 上下1px, 左右5px */
}


/* カテゴリのタイトルのフォントサイズを変更 */
.catlinks a {
    font-size: 14px;
    color: #DE7231;
    font-weight: bold;
    font-family: "Droid Sans" !important;
}

.catlinks ul {
    font-size: 14px;
    color: #DE7231;
    font-weight: bold;
    font-family: "Droid Sans" !important;
}


/* Extension:AmazonSearch */
DIV.amazonsearch {
	clear: both;
	width: 100%;
	min-height: 180px;
	margin: 0 auto;
	padding: 0.5em;
	border: 1px solid #444;
	overflow: hidden;
}

DIV.amazonsearch IMG.amazonsearchimg {
	float: left;
	margin: 0.1em 1em 0.1em 0.1em;
}

DIV.amazonsearch P.amazonsearchname {
	margin: 0;
	font-size: 90%;
	text-indent: 0;
}

DIV.amazonsearch P.amazonsearchauthor {
	margin: 0;
	font-size: 80%;
	text-indent: 0;
}

DIV.amazonsearch UL {
	margin: 0;
}

DIV.amazonsearch UL LI {
	display: inline-block;
	text-align: center;
	list-style: none;
	font-size: 90%;
	width: 12em;
	margin: 0.2em;
	padding: 0.2em 0.5em 0.2em 0.5em;
	border-radius: 0.5em;
	white-space: nowrap;
}
DIV.amazonsearch P.amazonsearchauthor::before {
	background-color: #bbb;
	border-radius: 10%;
	color: #fff;
	font-size: smaller;
	padding: 0 0.5em 0 0.5em;
	margin-right: 0.5em;
	content: "広告";
}
DIV.amazonsearch UL LI A {
	color: #fff;
}
DIV.amazonsearch UL LI.shoplinkamazon {
	background-color: #f90;
}