Cocoonの子テーマにあるカスタマイズコードのバックアップ用ページ【2021.3.17】

スポンサーリンク

Cocoon Child

/*矢印固定リスト*/
.list-s {
  position: relative;
  margin: 0 20%;
  list-style-type: none;
  left: -27px;
}
.list-s li {
  background:#6ec4db;
  color:#fff;
  border-radius: 5px;
  position: relative;
  padding: 10px;
}
.list-s li a {
  position: relative;
  display: block;
  font-weight: bold;
  font-size: 12pt;
  text-decoration: none;
  color: #fff;
  padding-right:15px;
}
.list-s li a ::after {
  font-family: FontAwesome;
  font-size:13px;
  position: absolute;
  content: "\F054";
  right: 2px;
  color: #fff;
  display:inline-block;
  top:50%;
  margin-top:-11px;
}

/*リスト3*/
.list-3 {
  position: relative;
  padding-top: 3px;
  margin-left: 0;
  list-style-type: none;
  border: none;
}
.list-3 li {
  line-height: 2em;
  background-color: #fff;
}
.list-3 li a {
  text-decoration: none;
}
.list-3 li::before {
  font-family: FontAwesome;
  position: absolute;
  content: "\F058";
  color: #696969;
  font-weight: bold;
  left : 0.8em;
}
.list-3 li:last-of-type {
  border-bottom: none;
}

/*リスト6矢印固定*/
.list-6 {
  position: relative;
  list-style-type: none;
  max-width: 600px;
}
.list-6 li {
  line-height: 3em;
  border-bottom: solid 1px #f5f4f9;
  position: relative;
}
.list-6 li a {
  font-weight: bold;
  font-size: 9pt;
  text-decoration: none;
  color: #5f5f5f;
  display: block;
}
.list-6 li a ::after {
  font-family: FontAwesome;
  position: absolute;
  content: "\F054";
  right: 5px;
}
.list-6 li a ::before {
  font-family: FontAwesome;
  position: absolute;
  content: "\F0c8";
  left: -1.8em;
}

/**数字リスト2**/
.o2 {
  font-family:'Noto Sans JP', sans-serif;
  color: #747474;
  padding-top: 0.5em;
}

/**見出し**/
.article h1 {
  font-size: 23pt;
  padding: 0.2em;
  font-family: 'Noto Sans JP', sans-serif;
}
.article h2 {
  position: relative;
  color: #fff;
  background: #454537;
  line-height: 2;
  padding: 0.3em 0.3em 0.3em 0.5em;
  border-radius : 7px;
  font-size: 13pt;
  font-family: 'Noto Sans JP', sans-serif;
}
.article h3 {
  padding: 0.4em;
  color: #333;
  font-size: 12.5pt;
  background: #ffffff;
  border-left: solid 4px #fb6542;
  border-top: none;
  border-right: none;
  border-bottom: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.article h4 {
  position: relative;
  padding: 0 0 0 18px;
  border-bottom: none;
  border-top: none;
  color: #454545;
  font-size: 10.5pt;
}
.article h4:before {
  font-family: FontAwesome;
  content: "\f0c8";
  position: absolute;
  left : 0em;
  color: #ddee5e;
  padding-top: 0;
}

.article h5 {
  margin: 5px 2%;
  border:1px gray solid;
  line-height: 3em;
  text-align: center;
  color: gray;
  font-family: 'Baloo Thambi 2', noto sans jp;
  font-weight: bold;
}

.article h6 {
  margin: 10px 10%;
  background: #000;
  color: red;
  font-size: 25px;
  font-family: 'Ultra', serif;
  text-align: center;
}

/*装飾見出し1*/
.midashi1 {
  color: #5f5f5f;
  font-size: 12pt;
  text-align:center;
  font-family: 'Baloo Thambi 2', noto sans jp;
  font-weight: bold;
}

/*装飾見出し2*/
.midashi2 {
  color: #444;
  font-size: 16pt;
  text-align:center;
  font-family: 'Rubik Mono One', noto sans jp;
  font-weight: bold;
  line-height: 1em;
}

/*装飾見出し3 背景色が変化*/
.midashi3 {
  animation: bg-color 2.2s forwards;
  animation-duration: 2.2s;
  color: #e73e92;
  font-size: 15pt;
  text-align:center;
  font-family: 'Baloo Thambi 2', noto sans jp;
  font-weight: bold;
  padding: 7px;
}
.midashi3 a {
  color: #e73e92;
  text-decoration: none;
  display: block;
}
@keyframes bg-color {
  0% { background-color: #fff; }
  30% { background-color: #eee; }
  60% { background-color: #bbb; }
  100% { background-color: #393939; }
}

/*装飾見出し4 トップページ用*/
.midashi4 {
  background: #3f3f33;
  font-size: 15pt;
  text-align:center;
  font-weight: bold;
  padding: auto;
  padding-top:2%;
}
.midashi4 a {
  color: #ff1493;
  font-family: 'Luckiest Guy', noto sans jp;
  text-decoration: none;
  display: block;
}

/**カルーセル**/
.slider {
  width: 100vw;
  margin:0;
  padding:0;
  overflow: hidden;
}

/**slickドット**/
.slick-dotted.slick-slider {
  margin-bottom: 0px; 
  padding-bottom: 20px;
  box-shadow:0 2px 3px -3px rgba(0,0,0,.8);
  background: #f8f8fe;
  opacity: 0.8;
}
.slick-dots2 {
  position: absolute;
  bottom: -8px;
  list-style: none;
  display: block;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%; 
  background: none;
}
.slick-dots2 li {
  position: relative;
  display: inline-block;
  height: 20px;
  width: 20px;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}
.slick-dots2 li.slick-active     
  button::before {
  color: #5f5f5f;
  opacity: 0.9;
}
.slick-dots2 li button {
  background: transparent;
  border:0;
  font-size: 0;
}
.slick-dots2 li button::before {  
  position: absolute;
  top: 0;
  left: 0;
  content: "•";
  width: 20px;
  height: 20px;
  font-family: "slick";
  font-size: 6px;
  line-height: 20px;
  text-align: center;
  color: #B0C4DE;
  opacity: 0.5;
}

/**記事下カテゴリとタグ表示**/
.cat-link {
  background-color: #4ABDAC !important;
  color: #fff !important;
  padding: 2px 10px;
  font-size: 10px;
}
.tag-link {
  background-color: #e37222 !important;
  color: #fff !important;
  padding: 2px 10px;
  font-size: 10px;
  border: none;
}

/*見出し付きリスト*/
.boxw {
  position: relative;
  margin: 10px 0px;
  border: solid 2px #fc9db8;
  padding: 15px 5px 10px 10px;
}
.boxw .box-title {
  position: absolute;
  display: inline-block;
  top: -8px;
  left: 13px;
  line-height: 1;
  font-size: 15px;
  background-color: #fff;
  color: #6f89a2;
  font-weight: bold;
}

/*見出し付きリスト2*/
.boxw2 {
  position: relative;
  margin: 1em auto;
  padding: 35px 5px 10px 11px;
  background: #ffe5ee;
  border-radius: 1.5px;
  max-width: 600px;
}
.boxw2 .box-title {
  position: absolute;
  display: inline-block;
  top: 0.6em;
  left:2.2em;
  line-height: 1.5;
  color: #444;
  font-weight: bold;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11pt;
}
.boxw2 .box-title ::before {
  font-family: FontAwesome;
  position: absolute;
  content: "\F27a";
  color: #696969;
  font-weight: bold;
  left : -1.3em;
}
.boxw2 li {
  background: transparent;
}

/*見出し付きリスト3*/
.boxw3 {
  margin: 1em auto;
  background: #fef9ed;
  border-radius:4px;
  border: solid #fc9db8 1px;
  max-width:600px;
  padding: 40px 5px 10px 10px;
  position:relative;
}
.boxw3 .box-title {
  background: #fc9db8;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 2.5em;
  padding: 1px;
  text-align: center;
  border-radius: 4px 4px 0px 0px;
  position:absolute;
  left:0;
  top:0;
  width:100%;
  font-family: 'Noto Sans JP', sans-serif;
}
.boxw3 ul li {
  background: #fef9ed;
  color: #333;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
}
.boxw3 li::before {
  color: #fc9db8;
}

/*見出し付きリスト4*/
.boxw4 {
  background: #fef9ed;
  border: solid #fc9db8 1px;
  max-width:600px;
  padding: 10 5 0 10px;
  position:relative;
}
.boxw4 ul li {
  background: #fef9ed;
  color: #333;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
}
.boxw4 :last-child{
  margin-bottom:8px;
}
.boxw4 li::before {
  color: #fc9db8;
}

/*見出し付きリスト5 ブラック*/
.boxw5 {
  margin: 10px -13.5px;
  background: #000;
  position:relative;
  padding : 5em 0.5em 1em 1em;
}
.boxw5 .box-title {
  background: #000;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  margin-top: -3em;
  position: absolute;
  font-family: 'Noto Sans JP', sans-serif;
}
.boxw5 p {
  background: #000;
  color: #fff;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
}
.boxw5 ul li{
  background: transparent;
  color: #fff;
}
/*見出し付きリスト マリオ*/
.boxm {
  position: relative;
  margin: 0.5em auto;
  padding: 1.8em auto;
  max-width: 640px;
  border: 10px #f2f2f2 solid;
}
.boxm .box-title {
  position: relative;
  display: inline-block;
  background: #f2f2f2;
  color: #5f5f5f;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10pt;
  font-weight: bold;
  border-radius: 20px;
  padding: 2px 1em;
  margin: 0.5em;
}
.boxm ul {
  background: transparent;
  font-size: 10pt;
  margin-left: 1em;
}
.boxm p {
  margin-left: 25px;
}

/*カテ・タグページの各記事タイトル*/
.entry-card-title {
  font-size: 10pt;
  font-weight: normal;
  font-family: 'Baloo Thambi 2', noto sans jp;
}

/*タグクラウド*/
.widget_tag_cloud .tagcloud a {
  border-bottom: 0.5px #FFC9D2 solid;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius:0;
  width:98%;
  font-family:'Noto Sans JP';
}

/* エントリーカードラベル */
.entry-card .cat-label {
  display: none;
}
.cat-label {
  display: none;
}

/*新着記事の投稿日*/
.widget_new_entries .display-none {
  display: block;
  position: absolute;
  right: 0.2px;
  bottom: 0.2px;
  font-size: 14px;
}
.widget-entry-card-update-date {
  display: none;
}

/*人気記事のPV数*/
.popular-entry-card-pv {
  position: absolute;
  right:0;
  bottom:0;
}

/*サイト内検索*/
.search-box {
  border: none !important;
  background: none;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.25) !important;
  transition: .3s;
}
.search-edit {
  font-family: 'Baloo Thambi 2', noto sans jp;
}
.search-form {
  color: #000;
}
.search-submit {
  border: #000;
}

/*サイドバーウィジェット記事タイトル*/
.widget-entry-card-content {
  font-size: 12px;
}

/*サイドバーコンテンツ間のスペース*/
.widget-sidebar {
  padding-bottom: 30px;
}

/***サイドバータイトル***/
.sidebar h3 {
  line-height: 10px;
  color: #444;
  padding: 8px;
  font-weight: bold;
  font-size: 16px;
  background-color:transparent;
  border-bottom:none;
  text-align:center;
  font-family: 'Rubik Mono One', cursive;	
}
/*関連記事*/
.related-entry-heading {
  color: #444;
  text-align:center;
  font-family: 'Rubik Mono One', cursive;
 font-size: 16px;
}

/*サイドバーのアーカイブプルダウン*/
#sidebar select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  border: 1px solid #5f5f5f;
  border-radius: 20px;
  padding: 10px 20px;
  font-size:10pt;
  color: #5f5f5f;
  overflow: hidden;
  margin-bottom:50px;
}
#sidebar select::-ms-expand {
  display: none;
}
#sidebar .widget_archive {
  position: relative;
}
#sidebar .widget_archive::after {
  font-family: FontAwesome;
  content: '\f0d7';
  position: absolute;
  top: 50px;
  right: 12px;
  color: #5f5f5f;
}

/*カテゴリーやタグページのタイトル*/
.archive-title {
  color: #e73e92;
  text-align: center;
  font-family: 'Baloo Thambi 2', noto sans jp;
}
.archive-title :before {
  display: none;
}

/******グローバルナビ******/
nav#navi, .menu-header .sub-menu {
  box-shadow:0 2px 5px -6px rgba(0,0,0,.8);
}
.menu-header .sub-menu .item-label {
  font-size: 70%;
  color: #696969;
}
.menu-header .menu-item:hover {
  transition: all 1s ease;
}
.menu-header .current-menu-item>a .item-label,
.menu-header .current-menu-ancestor>a .item-label,
.menu-header .item-label:hover {
  color: #5ebaba !important;
  transition: all .2s ease;
  border-bottom: none;	
}

/**目次**/
.toc {
  display: block;
  padding: 0px;
  max-width: 600px;
  border: 1.2px #6ec4db solid !important;
  font-family: 'Noto Sans JP', sans-serif;
}
.toc-title {
  position: relative;
  padding: 10px 0;
  background: #6ec4db;
  color: #fff;
  font-weight: bold;
}
.toc .toc-content {
  padding: 15px 20px;
  background-color: #fff7ee;
}
.toc-list > li li a {
  font-weight: normal;
  font-size: 95%;
  color: #708090;
  margin-left: -10px;
}
.toc-list > li li ::before {
  content: '';
  width: 5px;
  height: 5px;
  display: inline-block;
  left: -15px;
  border-radius: 100%;
  background: #cdcdcd;
  position: relative;
  margin-bottom: 2px;
}
.article .toc-list > li li {
  list-style: none;
}

/**SNSシェアボタン**/
.button-caption {
  display: none;
}
.sns-share-buttons {
  justify-content: center !important;
}
.sns-share-buttons a {
  border-radius: 50%;
  margin: 5px;
}
#main .sns-share a {
  height: 30px;
  width: 30px;
  margin-bottom: 0.5em;
}
.social-icon {
  font-size: 14px;
}

/*snsフォロー*/
.sns-follow {
  border: none;
}
.sns-follow-buttons a {
  background: none !important;
  border-radius: 50%;
  border: gray 1px solid;
  color: gray;
  width: 40px !important;
  height: 40px;
  margin: 0 15px;
  font-size: 30px;
}
.sns-follow-buttons a:last-child {
  margin-right: 3%;
}
.sns-follow-buttons {
  justify-content: center !important;
}
.sns-follow-buttons a:hover {
  color: pink;
}

/*コメントの中身系*/
.commets-list .avatar {
  float: left;
  border-radius: 50%;
  margin-right: 10px;
}
.comment-content {
  background: #e2e2e2;
  padding: 2px 10px;
  margin: 20px 0 6px 0;
  border-radius: 10px;
  position: relative;
}
.comment-content::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50px;
  border-style: solid;
  border-color: transparent transparent #e2e2e2 transparent;
  border-width: 0 20px 20px 0;
}
.comment-content p {
  font-size: 14px;
  margin: 1em 0;
  line-height: 1.5em;
}
/*コメントの見た目系*/
.comment-title {
  color: #444;
  font-size: 12pt;
  text-align:center;
  font-family: 'Rubik Mono One', cursive;
}
.comment-btn {
  color: #5f5f5f;
  background: #fff;
  border: 2px #5f5f5f solid;
  width: 80%;
  margin-left:10%; 
}

/**ページネーション**/
.pagination-next-link {
  font-family: 'Noto Sans JP', sans-serif;
  color: #fff;
  font-size: 13px;
  background: #444;
  line-height:1em;
  border-radius: 10px;
  margin-top: 30px;
  max-width: 365px;
  margin: auto;
}
.page-numbers {
  color: #444;
  border :#444 0.5px solid;
  border-radius: 50px;
}

/**指定固定記事タイトル非表示**/
#post-2242 .entry-title {
  display:none;
}

/** 指定固定記事の日付非表示 **/
.page-id-2242 .date-tags,
.post-1180 .date-tags {
  display: none;
}

/** SNS share 非表示**/
.page-id-1171 .sns-share,
.page-id-2242 .sns-share,
#post-244 .sns-share,
#post-1180 .sns-share {
  display: none;
}

/*ヘッダー系*/	
#header .site-name-text {
  font-size: 15px;
}
.logo {
  text-align: center;
  padding-left: 10px;
  background-color: #fff;
  height: 60px;
  margin-top: 0;
  padding-top: 0px;
  margin-bottom: 5px;
}

/**フッター**/
.source-org, .navi-footer-in a {
  font-family: 'Baloo Thambi 2', noto sans jp;
}

/*アイキャッチ画像の最大幅*/
.entry-header .eye-catch {
  max-width:812px!important;
}

/*デフォルトカルーセル非表示*/
.carousel {
  display: none !important;
}

/*隠すやつ*/
.hidden_box {
  margin: auto;
}
.hidden_box label {
  padding: 10px;
  color: #797979;
  border: solid 2px #b7b3b2;
}
.hidden_box input {
  display: none;
}
.hidden_box .hidden_show {
  height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.8s;
}
.hidden_box input:checked ~ .hidden_show {
  padding: 10px 0;
  height: auto;
  opacity: 1;
}

/**テーブル**/
.tdtop {
  vertical-align: top;
  border: none;
  background: #fff;
  width: 50%;
}
.ta1 {
  width: 100%;
  border-collapse: collapse;
  border: solid 2px #fff;
  font-family: 'Noto Sans JP', sans-serif;
  vertical-align: top;
}
.ta1 tr {
  border: solid 2px #fff;
  line-height: 1em;
}
.ta1 th {
  padding: 10px 0;
  text-align: center;
  width: 25%;
  background: #52c2ee;
  color: #fff;
  border: solid 2px #fff;
}
.ta1 th:first-child {
  width: 20%;
}
.ta1 td {
  width: 75%;
  text-align: center;
  background: #eee;
  border: solid 2px #fff;
}
.ta1 a {
  text-decoration: none;
}

/*テーブル2*/
.ta2 {
  font-size: 13px;
  width: 100%;
  border-collapse: collapse;
  border: solid 0.5px #fff;
  font-family: 'Noto Sans JP', sans-serif;
}
.ta2 tr {
  border: solid 2px #fff;
  line-height: 0.5em;
}
.ta2 th {
  padding: 10px 0;
  text-align: center;
  background: #b0dce1;
  color: #556;
  border: solid 2px #fff;
}
.ta2 td {
  text-align: center;
  background: #eee;
  border: solid 2px #fff;
}

/*テーブル3*/
.ta3 {
  border-collapse: collapse;
  border: solid 0.5px #123;
  table-layout: fixed;
  font-family: 'Noto Sans JP', sans-serif;
}
.ta3 tr {
  border: solid 2px red;
  line-height: 1.5em;
}
.ta3 th {
  background: skyblue;
}
.ta3 th:first-child {
  width: 60%;
  background: #123;
  color: #fff;
}
.ta3 td {
  text-align: center;
  background: #eee;
  border: solid 2px #fff;
}
.ta3 td:first-child {
  text-align: left;
  background: #fee;
}

/**シンプルなリンクボタン*/
.btn-2 {
  margin: 10px 10%;
  line-height: 3em;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: .3s;
  border: 1px #444 solid;
}
.btn-2 a {
  color: #444;
  font-size: 13px;
  text-align: center;
  font-family: 'Rubik Mono One', noto sans jp;
  text-decoration:none;
  display: block;
}

/*snsセンターよせ*/
.video-container, 
.instagram-container, 
.facebook-container,
.twitter-tweet,
.instagram-media { 
  margin: 30px auto !important;
}

/*トップへ戻るボタン*/
.go-to-top .go-to-top-button {
  background: transparent;
  font-size: 25pt;
}

/*投稿日か更新日*/
.date-tags {
  font-size: 14pt;
  font-family:'Baloo Thambi 2';
}

/*プロフィールボックス*/
.author-name a {
  font-size: 15px;
  padding: 1em;
  color: #fff;
  border-radius: 100% 81px / 81px 100%;
  background-color: #ea64a7;
  width:200px;
  z-index:2;
  text-decoration: none;
}
.author-name a:before {
  content:"";
  position: absolute;
  font-size: 12px;
  padding: 1em;
  color: #fff;
  border-radius: 100% 80px / 80px 100%;
  background-color: #ff1493;
  width:50px;
  height:20px;
  opacity:0.2;
  margin-top:-8px;
  z-index:1;
}
.author-box {
  border: 3px #ff1493 solid;
  background: #fff;
  padding-bottom:0!important;
}
.author-content {
  background: transparent;
  padding:20px 0px!important;
}
.author-thumb {
  width: 150px!important;
}
.author-description {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10pt;
  margin-top: 29px;
  margin-bottom:20px;
  color:#123;
}
.author-follows .follow-button {
  border-radius: 50%!important;
  border-color:#ff1493!important;
  width:35px!important;
  height:35px!important;
  font-size:27px!important;
  color: #ff1493!important;
  background:#fff!important;
}

/*コード*/
.wp-block-code {
  max-width: 750px;
  margin: auto;
}

Google Fonts API

<link href="https://fonts.googleapis.com/css2?family=Baloo+Thambi+2&family=Luckiest+Guy&family=Rubik+Mono+One&family=Sigmar+One&family=Ultra&family=Noto+Sans+JP:wght@500&display=swap" rel="stylesheet">

Comment

タイトルとURLをコピーしました