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

提供:作業療法大百科事典OtWiki
編集の要約なし
編集の要約なし
143行目: 143行目:
}
}


/************************************
/* 丸いSNSボタン */
** SNS ボタンをまとめて丸くする from: https://www.satokobo.net/cocoon/1164
************************************/


/*シェア・フォローボタンの枠組み*/
.btn-social-circle {
.sns-share.ss-top .sns-share-buttons,
  display: inline-block;
.sns-share.ss-bottom .sns-share-buttons,
  position: relative;
.sns-follow.sf-bottom .sns-follow-buttons,
  box-sizing: border-box;
.sns-follow.sf-widget .sns-follow-buttons {
  text-decoration: none;
justify-content: center; /*中央に寄せる*/
  color: #FFF;
flex-wrap: wrap; /*折り返す*/
  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;
.sns-share.ss-top .sns-buttons a,
.sns-share.ss-bottom .sns-buttons a,
.sns-follow.sf-bottom .sns-buttons a,
.sns-follow.sf-widget .sns-buttons a {
width: 40px; /*横幅*/
height: 40px; /*高さ*/
margin-right: 4px; /*右側の余白*/
margin-left: 4px; /*左側の余白*/
border-radius: 50%; /*丸み*/
}
 
/*プロフィールウィジェットのリンク*/
.sns-follow.sf-profile .sns-buttons a {
border-radius: 50%; /*丸み*/
}
}
 
.btn-social-circle:hover {
/*シェアボタンのアイコン*/
  box-shadow: none;
.sns-share.ss-top .sns-buttons a .social-icon,
.sns-share.ss-bottom .sns-buttons a .social-icon {
font-size: 18px; /*アイコンの大きさ*/
}
}


/*フォローボタンのアイコン*/
.btn-social-circle--twitter {
.sns-follow.sf-bottom .sns-follow-buttons .follow-button,
  background: #1da1f3;
.sns-follow.sf-widget .sns-follow-buttons .follow-button {
  border: solid 5px #1da1f3;
font-size: 24px; /*アイコンの大きさ*/
}
}


/*シェアボタンのキャプション*/
.btn-social-circle--facebook {
.sns-share.ss-top .sns-buttons a .button-caption,
  background: #3b75d4;
.sns-share.ss-bottom .sns-buttons a .button-caption {
  border: solid 5px #3b75d4;
display: none; /*非表示*/
}
}


/*シェア・フォローボタンのシェア数*/
.btn-social-circle--pocket {
.sns-share.ss-top .sns-buttons a .share-count,
  background: #ef4d4d;
.sns-share.ss-bottom .sns-buttons a .share-count,
  border: solid 5px #ef4d4d;
.sns-follow.sf-bottom .sns-buttons a .follow-count,
.sns-follow.sf-widget .sns-buttons a .follow-count {
right: -2px; /*右側からの距離*/
bottom: -2px; /*下側からの距離*/
padding: 2px; /*内側の余白*/
font-size: 10px; /*文字の大きさ*/
border: solid 1px; /*線*/
border-radius: 3px; /*丸み*/
background-color: inherit; /*背景色*/
}
}


/*シェア数の表示が必要ないシェア・フォローボタン*/
.btn-social-circle--feedly {
.sns-share.ss-top .sns-buttons a .share-count:empty,
  background: #7ece46;
.sns-share.ss-bottom .sns-buttons a .share-count:empty,
  border: solid 5px #7ece46;
.sns-follow.sf-bottom .sns-buttons a .follow-count:empty,
.sns-follow.sf-widget .sns-buttons a .follow-count:empty {
padding: 0; /*内側の余白*/
border: 0; /*線*/
}
}

2024年5月29日 (水) 05:01時点における版

.youtubes {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.youtubes iframe {
  width: 100%;
  height: 100%;
}

/* CSSコード */
html {
scroll-behavior: smooth;
}

/* トップへ戻るボタン */
.page_top_btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-weight: bold;
  padding: 0.7em;
  text-align: center;
  background: rgb(255, 0, 0);
  color: #fff;
  transition: 0.3s0;
  z-index: 100000000
}

/* マウスオーバー時 */
.page_top_btn:hover {
  background: rgb(255, 0, 0, 0.8);
  color: rgb(255, 255, 255, 0.8);
}

/* ここに記述した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: relative;
  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: #1da1f3;
  border: solid 5px #1da1f3;
}

.btn-social-circle--facebook {
  background: #3b75d4;
  border: solid 5px #3b75d4;
}

.btn-social-circle--pocket {
  background: #ef4d4d;
  border: solid 5px #ef4d4d;
}

.btn-social-circle--feedly {
  background: #7ece46;
  border: solid 5px #7ece46;
}