/*Cocoon用記事ボックス*/ /* .navi-card-wrap { background-color: $white; &.a-wrap { position: relative; padding: 5px 3px; line-height: 1.3; margin-top: 0px; margin-bottom: 10px; } } .navi-card-box { //background-color: $white; padding: 0; position: relative; } .navi-card-wrap { &:after { display: block; content: ''; position: absolute; top: 50%; bottom: 0; right: 20px; width: 6px; height: 6px; border-top: solid 2px #697b91; border-right: solid 2px #697b91; transform: rotate(45deg); margin-top: -3px; } .navi-card-thumb { float: left; margin: 6px 10px; width: 120px; } .navi-card-content{ margin: 0 24px 0 140px; } .navi-card-title { margin: 2px 0 6px; font-size: 0.9em; color: $text_color; font-weight: 700; } .navi-card-snippet { margin: 0px 0 2px; font-size: 0.7em; color: $pallid_text_color; } } */ /* リボン部分 */ /* リボンCSSはnxworld様のページの斜めリボンを改変して利用。 多くのカスタマイズを公開していらっしゃるので 「リボン css nxworld」などgoogle検索すると便利。 Copyright (c) https://www.nxworld.net/tips/pure-css-corner-ribbon.html https://codepen.io/nxworld/pen/oLdoWb */ .ribbon { width: 80px; height: 80px; overflow: hidden; position: absolute; z-index: 1; &:before, &:after { position: absolute; z-index: 0; content: ''; display: block; border: 4px solid #224963; } span { position: absolute; display: block; width: 185px; padding: 5px 0; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); color: $white; font: 700 11px/1 'Lato',sans-serif; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); text-transform: uppercase; text-align: center; } } .ribbon-color-1 span { background-color: #ea7e7e; } .ribbon-color-2 span { background-color: #7e95ea; } .ribbon-color-3 span { background-color: #f7c114; } .ribbon-color-4 span { background-color: #dc669b; } .ribbon-color-5 span { background-color: #e9546b; } /* top left*/ .ribbon-top-left { top: -3px; left: -9px; &::before, &::after { border-top-color: transparent; border-left-color: transparent; } &:before { top: -1px; right: 4px; } &::after { bottom: 4px; left: 1px; } span { right: -45px; top: 18px; transform: rotate(-45deg); } } // .navi-card-box .ribbon-top-left { // top: -3px; // left: -3px; // } .border-square .ribbon-top-left { top: -13px; left: -13px; } .card-large-image .ribbon-top-left { top: -7px; left: -9px; }