「MediaWiki:Common.css」の版間の差分
提供:作業療法大百科事典OtWiki
編集の要約なし |
編集の要約なし |
||
| (同じ利用者による、間の13版が非表示) | |||
| 10行目: | 10行目: | ||
/* CSSコード */ | /* CSSコード */ | ||
html { | html { | ||
scroll-behavior: smooth; | scroll-behavior: smooth; | ||
} | } | ||
/* トップへ戻るボタン */ | /* トップへ戻るボタン */ | ||
. | .pagetop { | ||
height: 50px; | |||
width: 50px; | |||
position: fixed; | |||
right: 30px; | |||
bottom: 30px; | |||
background: #fff; | |||
border: solid 2px #000; | |||
border-radius: 50%; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
z-index: 2; | |||
box-shadow: 0 4px 6px rgb(0 0 0 / 30%); | |||
} | |||
.pagetop__arrow { | |||
height: 10px; | |||
width: 10px; | |||
border-top: 3px solid #000; | |||
border-right: 3px solid #000; | |||
transform: translateY(20%) rotate(-45deg); | |||
} | } | ||
/* マウスオーバー時 */ | /* マウスオーバー時 */ | ||
@media (hover: hover) and (pointer: fine) { | |||
.pagetop:hover, .pagetop:hover .pagetop__arrow { | |||
border-color: #3293e7; | |||
} | |||
} | |||
/* 任意のユーザーが作成したページへの内部リンクのフォントサイズを大きくし、下線に点線を追加 */ | |||
a[href^="/wiki/"] { | |||
font-size: 110%; /* フォントサイズを調整 */ | |||
border-bottom: 1px dotted; /* 点線の下線を追加 */ | |||
text-decoration: none; /* 通常の下線を削除 */ | |||
} | |||
/* 記事本文内のフォントを変更 */ | |||
.mw-parser-output { | |||
font-family: "Sawarabi Mincho", sans-serif; /* フォントファミリーを指定 */ | |||
font-size: 14px; /* フォントサイズを指定 */ | |||
} | } | ||
/* ここに記述したCSSはすべての外装に反映されます */ | /* ここに記述したCSSはすべての外装に反映されます */ | ||
| 172行目: | 198行目: | ||
.btn-social-circle--twitter { | .btn-social-circle--twitter { | ||
background: # | background: #0F1419; | ||
border: solid 5px # | border: solid 5px #0F1419; | ||
position: fixed; | |||
bottom: 10px; | |||
left: 10px; | |||
} | } | ||
| 179行目: | 208行目: | ||
background: #3b75d4; | background: #3b75d4; | ||
border: solid 5px #3b75d4; | border: solid 5px #3b75d4; | ||
position: fixed; | |||
bottom: 10px; | |||
left: 70px; | |||
} | } | ||
| 185行目: | 216行目: | ||
background: #ef4d4d; | background: #ef4d4d; | ||
border: solid 5px #ef4d4d; | border: solid 5px #ef4d4d; | ||
position: fixed; | |||
bottom: 10px; | |||
left: 130px; | |||
} | |||
.btn-social-circle--line { | |||
background: #00b900; | |||
border: solid 5px #00b900; | |||
position: fixed; | |||
bottom: 10px; | |||
left: 190px; | |||
} | } | ||
.btn-social-circle-- | .btn-social-circle--hatena { | ||
background: # | background: #01A5DF; | ||
border: solid 5px # | border: solid 5px #01A5DF; | ||
position: fixed; | |||
bottom: 10px; | |||
left: 250px; | |||
} | } | ||
2024年7月11日 (木) 09:33時点における最新版
.youtubes {
width: 100%;
aspect-ratio: 16 / 9;
}
.youtubes iframe {
width: 100%;
height: 100%;
}
/* CSSコード */
html {
scroll-behavior: smooth;
}
/* トップへ戻るボタン */
.pagetop {
height: 50px;
width: 50px;
position: fixed;
right: 30px;
bottom: 30px;
background: #fff;
border: solid 2px #000;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
z-index: 2;
box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}
.pagetop__arrow {
height: 10px;
width: 10px;
border-top: 3px solid #000;
border-right: 3px solid #000;
transform: translateY(20%) rotate(-45deg);
}
/* マウスオーバー時 */
@media (hover: hover) and (pointer: fine) {
.pagetop:hover, .pagetop:hover .pagetop__arrow {
border-color: #3293e7;
}
}
/* 任意のユーザーが作成したページへの内部リンクのフォントサイズを大きくし、下線に点線を追加 */
a[href^="/wiki/"] {
font-size: 110%; /* フォントサイズを調整 */
border-bottom: 1px dotted; /* 点線の下線を追加 */
text-decoration: none; /* 通常の下線を削除 */
}
/* 記事本文内のフォントを変更 */
.mw-parser-output {
font-family: "Sawarabi Mincho", sans-serif; /* フォントファミリーを指定 */
font-size: 14px; /* フォントサイズを指定 */
}
/* ここに記述したCSSはすべての外装に反映されます */
#searchform{
position: -webkit-fixed;
position: fixed;
top: 0;
z-index: 100;
width: 66%;
padding: 0.5em 0 0;
}
#mw-content-text > div > h2 {
padding: .3em;
border-bottom: 2px solid #64B5F6;
box-shadow:0px 4px 0px 0px #0D47A1;
}
.mw-body h3 {
padding: .3em;
border-bottom: 2px dashed #29B6F6;
margin:1em 0.5em;
}
.mw-body h4{
position: relative;
overflow: hidden;
padding: .3em;
margin:0.8em 0.7em;
}
h4::before,
h4::after{
content: "";
position: absolute;
bottom: 0;
}
h4:before{
border-bottom: 4px solid #F4511E;
width: 100%;
}
h4:after{
border-bottom: 4px solid #000000;
width: 100%;
}
.mw-body h5 {
position: relative;
padding: .4em .3em .4em 1em;
border: 1px solid #00BCD4;
margin:1em 1em;
}
h5::after {
position: absolute;
top: .5em;
left: .5em;
content: '';
width: 6px;
height: -webkit-calc(100% - 1em);
height: calc(100% - 1em);
background-color: #00BCD4;
border-radius: 4px;
}
.mw-body h6 {
padding: 0.25em 0.5em;/*上下 左右の余白*/
color: #494949;/*文字色*/
background: transparent;/*背景透明に*/
border-left: solid 5px #7db4e6;/*左線*/
margin-left:2.2em;
}
blockquote{
position:relative;
border-top:1px solid #7A87B0;
border-bottom:1px solid #7A87B0;
padding:10px;
}
blockquote:before{
position:absolute;
background-color:#FFFFFF;
color:#7A87B0;
font-family:'FontAwesome';
content:'\f10d';
line-height:1;
text-align:center;
top:-20px;
left:-10px;
padding:10px;
font-size:20px;
}
blockquote:after{
position:absolute;
right:-10px;
bottom:-20px;
background-color:#FFFFFF;
padding:10px;
color:#7A87B0;
font-family:'FontAwesome';
content:'\f10e';
line-height:1;
text-align:center;
font-size:20px;
}
blockquote cite {
display: block;
padding-right:30px;
font-size: 0.8rem;
text-align: right;
color: #808080;
}
/* 丸いSNSボタン */
.btn-social-circle {
display: inline-block;
position: fixed;
bottom: 10px;
left: 10px;
box-sizing: border-box;
text-decoration: none;
color: #FFF;
width: 50px;
height: 50px;
line-height: 30px;
padding: 5px;
font-size: 25px;
border-radius: 50%;
text-align: center;
font-weight: bold;
box-shadow: inset 0 2px 0px rgba(255, 255, 255, 0.25), inset 0 -2px 0px rgba(0, 0, 0, 0.18);
transition: .2s;
}
.btn-social-circle .fa {
line-height: 30px;
}
.btn-social-circle:hover {
box-shadow: none;
}
.btn-social-circle--twitter {
background: #0F1419;
border: solid 5px #0F1419;
position: fixed;
bottom: 10px;
left: 10px;
}
.btn-social-circle--facebook {
background: #3b75d4;
border: solid 5px #3b75d4;
position: fixed;
bottom: 10px;
left: 70px;
}
.btn-social-circle--pocket {
background: #ef4d4d;
border: solid 5px #ef4d4d;
position: fixed;
bottom: 10px;
left: 130px;
}
.btn-social-circle--line {
background: #00b900;
border: solid 5px #00b900;
position: fixed;
bottom: 10px;
left: 190px;
}
.btn-social-circle--hatena {
background: #01A5DF;
border: solid 5px #01A5DF;
position: fixed;
bottom: 10px;
left: 250px;
}