/************************************ ** ウィジェット ************************************/ label.screen-reader-text{ display: none; } // /*ウィジェットリスト*/ // .widget{ // margin-bottom: 38px; // ul{ // @include list_cancel; // } // } /*タグクラウド*/ .tagcloud { display: flex; flex-wrap: wrap; a { @include tagcloud_a; } } /*ウィジェット(カテゴリー・アーカイブなど)*/ .widget_recent_entries, .widget_categories, .widget_archive, .widget_pages, .widget_meta, .widget_rss, .widget_nav_menu, .widget_block{ ul{ @include list_cancel; li{ ul{ padding-left: 20px; margin: 0; } a{ @include link_cancel; padding: 10px 0; display: block; padding-right: 4px; padding-left: 4px; &:hover { @include bgc_hover; } // .post-count{ // display: block; // float: right; // } } } } } .widget_categories ul li a .post-count, .widget_archive ul li a .post-count { display: block; float: right; } .widget_recent_comments{ li{ padding: 10px 0; } } /*カレンダー*/ .calendar_wrap{ margin: 20px 0; } .wp-block-calendar .wp-calendar-table{ max-width: 400px; } .wp-calendar-table { border-collapse: collapse; border-top-width: 1px; border-right-width: 1px; border-top-style: solid; border-right-style: solid; border-top-color: var(--cocoon-x-thin-color); border-right-color: var(--cocoon-x-thin-color); width: 100%; max-width: $widget_max_width; text-align: center; caption { font-weight: bold; text-align: center; } [id$="today"] { background-color: #ffe6b2; a{ background-color: #ffe6b2; &:hover{ background-color: #ffd67e; } } } tr{ &:nth-of-type(2n+1){ background-color: transparent; } } td { padding: 0px; a{ color: var(--cocoon-text-color); display: block; background-color: #ffface; &:hover{ background-color: #fff69b; } } } } /************************************ ** 新着記事ウィジェット(デフォルト) ************************************/ .widget-entry-card-thumb{ @extend %card_thumb; } .widget-entry-cards{ .a-wrap{ padding: 5px; line-height: 1.3; margin-bottom: 4px; } figure{ width: 120px; } } .widget-entry-card{ font-size: 16px; position: relative; } .widget-entry-card-content{ margin-left: 126px; } .widget-entry-card-snippet{ margin-top: 6px; font-size: 12px; opacity: 0.8; } .widget-entry-card-info{ display: flex; flex-wrap: wrap; align-items: center; } .widget-entry-card-comment{ font-size: 0.7em; padding: 4px 2px 2px 2px; } .widget-entry-card-pv{ margin-left: 5px; font-style: italic; font-size: 0.8em; } .border-partition .a-wrap { border-bottom: 2px dotted var(--cocoon-x-thin-color); &:first-of-type { border-top: 2px dotted var(--cocoon-x-thin-color); } } .border-partition.is-list-horizontal .a-wrap { border: 0; } .border-square .a-wrap { border-radius: var(--cocoon-basic-border-radius); border: 1px solid var(--cocoon-thin-color); } .card-title-bold .card-title{ font-weight: 700; } .card-arrow{ .a-wrap{ position: relative; &::after { content: '\f105'; font-family: 'FontAwesome'; font-size: 16px; font-weight: 900; line-height: 1; margin-top: -8px; position: absolute; right: 20px; top: 50%; } } .card-content{ margin-right: 22px; } } .font-awesome-5 .card-arrow .a-wrap::after{ font-family: 'Font Awesome 5 Free'; } /************************************ ** 新着記事・人気記事・ナビカードウィジェット(タイトルを重ねた大きなサムネイル以外) ************************************/ .widget-entry-cards:not(.large-thumb-on){ .card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; } .card-snippet{ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; } } /************************************ ** 新着記事ウィジェット(大きなサムネイル) ************************************/ .widget-entry-cards.card-large-image{ .a-wrap{ max-width: $widget_max_width; } .e-card{ font-size: var(--cocoon-default-text-size); } figure{ float: none; width: 100%; img{ width: 100%; display: block; } } .card-content{ margin: 0 0 0.5em; padding: 0.4em 0; } .widget-entry-card-pv{ opacity: 0.7; position: absolute; top: 0; right: 0; padding: 3px 6px; background-color: #333; color: #fff; } } /************************************ ** 新着記事ウィジェット(タイトルを重ねた大きなサムネイル) ************************************/ .widget-entry-cards.large-thumb-on{ .a-wrap{ overflow: hidden; &:hover{ opacity: 0.8; .card-content{ margin-bottom: -4em; transition: all 0.5s; opacity: 0; } } } .e-card{ position: relative; } .card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .card-content{ margin: 0; position: absolute; width: 100%; bottom: 0; padding: .6em; background: linear-gradient(180deg, transparent, #555); color: var(--cocoon-white-color); // max-height: 40%; transition: all 0.5s; } .card-snippet{ margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } } /************************************ ** 人気記事ウィジェットランキング表示 ************************************/ .widget-entry-cards.ranking-visible{ counter-reset: p-rank; .no-1 .card-thumb::before{ background: #cca11f; } .no-2 .card-thumb::before{ background: #b1b1b3; } .no-3 .card-thumb::before{ background: #b37036; } .a-wrap{ counter-increment: p-rank; } .card-thumb{ &::before{ content: counter(p-rank); position: absolute; top: 0; left: 0; padding: 4px; width: 18px; height: 18px; line-height: 18px; background-color: #666; color: #fff; opacity: 0.9; text-align: center; font-size: 13px; z-index: 1; } } } /************************************ ** 最近のコメントウィジェット ************************************/ .recent-comments { line-height: 1.3; display: flex; flex-direction: column; gap: 12px; } .recent-comment-avatar{ float: left; margin-right: 10px; } .recent-comment-author{ font-weight: bold; } .recent-comment-info, .recent-comment-article{ font-size: 16px; } .recent-comment-article{ margin-top: 3px; > span { margin-right: 6px; } } .recent-comment-content { position: relative; background: var(--cocoon-white-color); border: 1px solid var(--cocoon-thin-color); padding: 6px; margin-top: 4px; font-size: 0.9em; border-radius: 5px; &::after, &::before { bottom: 100%; left: 18px; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } &::after { border-color: rgba(255, 255, 255, 0); border-bottom-color: var(--cocoon-white-color); border-width: 6px; margin-left: -6px; } &::before { border-color: rgba(221, 221, 221, 0); border-bottom-color: var(--cocoon-thin-color); border-width: 9px; margin-left: -9px; } } /************************************ ** フォーローボタウィジェット ************************************/ .nwa{ .author-box .sns-follow-buttons{ justify-content: center; } .sns-follow-buttons{ column-gap: 1%; a{ width: 48%; } } } /////////////////////////////////////// // テーマ独自ウィジェット /////////////////////////////////////// .widget_mobile_text, .widget_mobile_ad{ display: none; } .widget{ h2{ font-size: 20px; } } .entry-content .main-widget-label{ display: none; } .widget_recent_comments{ ul{ padding-left: 0; li{ list-style: none; } } } .wp-block-latest-comments{ padding-left: 0; } .widget_search { .wp-block-search__input { line-height: normal; } } .wp-block-categories-list, .wp-block-archives-list, ul.wp-block-archives { list-style: none; padding-left: 0; }