{"id":3268,"date":"2016-12-15T08:50:38","date_gmt":"2016-12-14T23:50:38","guid":{"rendered":"http:\/\/agn.jp\/blog\/?p=3268"},"modified":"2016-12-14T18:37:31","modified_gmt":"2016-12-14T09:37:31","slug":"css%e3%81%a0%e3%81%91%e3%81%a7%e3%83%ac%e3%82%b9%e3%83%9d%e3%83%b3%e3%82%b7%e3%83%96%e3%81%aa%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"http:\/\/agn.jp\/blog\/?p=3268","title":{"rendered":"CSS\u3060\u3051\u3067\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u4f5c\u308b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3270\" src=\"http:\/\/agn.jp\/blog\/wp-content\/uploads\/2016\/12\/teamblog_title161214.jpg\" alt=\"teamblog_title161214\" width=\"1000\" height=\"630\" srcset=\"http:\/\/agn.jp\/blog\/wp-content\/uploads\/2016\/12\/teamblog_title161214.jpg 1000w, http:\/\/agn.jp\/blog\/wp-content\/uploads\/2016\/12\/teamblog_title161214-300x189.jpg 300w, http:\/\/agn.jp\/blog\/wp-content\/uploads\/2016\/12\/teamblog_title161214-768x484.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>\u5148\u65e5\u5236\u4f5c\u3057\u305f\u6848\u4ef6\u3067\u3001\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\uff08\u904e\u53bb\u2192\u672a\u6765\uff09\u304c\u3042\u3063\u305f\u3093\u3067\u3059\u306d\u3002<br \/>\n\u3053\u3046\u3044\u3046\u306e\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3269\" src=\"http:\/\/agn.jp\/blog\/wp-content\/uploads\/2016\/12\/timeline161214.jpg\" alt=\"timeline161214\" width=\"630\" height=\"300\" srcset=\"http:\/\/agn.jp\/blog\/wp-content\/uploads\/2016\/12\/timeline161214.jpg 630w, http:\/\/agn.jp\/blog\/wp-content\/uploads\/2016\/12\/timeline161214-300x143.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u304c\u30a4\u30e9\u30ec\u3067\u6765\u3066\u3044\u3066\u3001\u3055\u3066\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u304b\u3001\u3068\u3002<br \/>\n\u3082\u3061\u308d\u3093\u753b\u50cf\u3067\u3082OK\u306a\u3093\u3067\u3059\u304c\u3001\u6a2a\u9577\u3092\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u30b9\u30de\u30db\u3067\u898b\u305f\u3089\u5c0f\u3055\u304f\u3066\u898b\u3048\u306a\u3044\u3002<br \/>\n\u304b\u3068\u3044\u3063\u3066\u7e26\u9577\u306e\u753b\u50cf\u306f\u4f5c\u308a\u305f\u304f\u306a\u3044\u3002\u203b\u305d\u308c\u306a\u308a\u306b\u6570\u304c\u3042\u3063\u305f\u306e\u3067\u3002<br \/>\n\u305d\u308c\u3058\u3083CSS\u3060\u3051\u3067\u5b9f\u88c5\u3057\u307e\u3057\u3087\u3001\u3068\u3046\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/agn.jp\/blog\/examples\/161209_sample_timline.html\" target=\"_blank\">\u3010DEMO\u3011<\/a><\/p>\n<h2>\u3084\u3063\u3066\u307f\u3088\u3046<\/h2>\n<h3>\u6761\u4ef6<\/h3>\n<ul>\n<li>\u5e83\u3044\u753b\u9762\u3067\u306f\u6a2a\u578b\u3001\u72ed\u304f\u306a\u3063\u305f\u3089\u7e26\u578b\u306b\u3059\u308b<\/li>\n<li>\u9805\u76ee\u6570\u306f\u5909\u52d5\u3059\u308b<\/li>\n<li>\u30dd\u30a4\u30f3\u30c8\u3054\u3068\u306b\u76ee\u5370\u3092\u3064\u3051\u308b<\/li>\n<\/ul>\n<p>\u3082\u3061\u308d\u3093\u3001\u307e\u305a\u4e00\u76f4\u7dda\u3092\u5f15\u3044\u3066\u3001\u305d\u306e\u4e0a\u306b\u7d76\u5bfe\u914d\u7f6e\u3067\u30dd\u30a4\u30f3\u30c8\u3092\u6253\u3064\u306e\u3082\u30a2\u30ea\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u57fa\u672c\u5f62\u3092\u5143\u306b\u3061\u3087\u3063\u3068\u3044\u308d\u3044\u308d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u3051\u3069\u3042\u3093\u307e\u308a\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u3002\u3002\u3002<br \/>\n\u3064\u3044\u3067\u306bCSS\u304c\u3044\u308d\u3044\u308d\u6c5a\u67d3\u3057\u307e\u304f\u3063\u3066\u60aa\u3044\u898b\u672c\u307f\u305f\u3044\u306b\u306a\u3063\u3066\u307e\u3059\u3002<br \/>\n\u304a\u76ee\u6c5a\u3057\u3067\u3059\u304c\u3001\u3088\u304b\u3063\u305f\u3089\u3069\u3046\u305e\u3002\u3002\u3002<\/p>\n<h3>\u57fa\u672c\u5f62<\/h3>\n<h4>HTML<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"\">&lt;div class=&quot;timeline&quot;&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u524d&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u3058\u3064\u306f\u307e\u3060\u5b66\u751f\u3067\u3057\u305f\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item now&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u73fe\u5728&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7d50\u69cb\u3044\u3044\u5e74\u3067\u3059\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;Web\u306f\u307e\u3060\u5927\u4e08\u592b\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;20\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u30b9\u30ca\u30d5\u30ad\u30f3\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u305d\u306e\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u4ed9\u4eba\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;<\/pre>\n<h4>SASS<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sass\" data-enlighter-title=\"\">.timeline{\n    padding: 3rem 5rem;\n    background-color: #f0f0f0;\n    &amp;-item{\n        position: relative;\n        border-left: 1px solid #000;\n        padding: 0 0 30px 30px;\n        &amp;:before{\n            content: &#039;&#039;;\n            display: block;\n            width: 10px;\n            height: 10px;\n            position: absolute;\n            left: 0;\n            top: 0;\n            border-radius: 100%;\n            background-color: #000;\n            transform: translateX(-50%) translateY(-50%);\n        }\n        &amp;:last-of-type{\n            padding-bottom: 0;\n            &amp;:before{\n                width: 0;\n                height: 0;\n                border-style: solid;\n                border-width: 10px 5px 0 5px;\n                border-color: #000000 transparent transparent transparent;\n                border-radius: 0;\n                background-color: transparent;\n                top: auto;\n                bottom: 0;\n                transform: translateX(-50%) translateY(0);\n            }\n        }\n    }\n    @media(min-width : 768px){\n        display: table;\n        table-layout: fixed;\n        width: 100%;\n        &amp;-item{\n            display: table-cell;\n            vertical-align: top;\n            padding: 0;\n            border:{\n                top: 1px solid #000;\n                bottom: 0;\n                left: 0;\n            }\n            &amp;:last-of-type{\n                padding-bottom: 0;\n                text-align: right;\n                &amp;:before{\n                    border-width: 5px 0 5px 10px;\n                    border-color: transparent transparent transparent #000000;\n                    top: 0;\n                    right: 0;\n                    bottom: auto;\n                    left: auto;\n                    transform: translateX(0) translateY(-50%);\n                }\n\n                p{\n                    text-align: left;\n                }\n            }\n        }\n        &amp;-label,\n        &amp;-content{\n            transform: translateX(-50%);\n            text-align: left;\n            display: block;\n            max-width: 70%;\n        }\n        &amp;-label{\n            text-align: center;\n            position: absolute;\n            top: 0;\n            left: 0;\n            transform: translateX(-50%) translateY(-120%);\n        }\n        &amp;-content{\n            margin-top: 10px;\n        }\n        &amp;-item:last-of-type &amp;-label,\n        &amp;-item:last-of-type &amp;-content{\n            transform: translateX(50%);\n            text-align: left;\n            display: inline-block;\n            max-width: 70%;\n        }\n        &amp;-item:last-of-type &amp;-label{\n            left: auto;\n            right: 0;\n            transform: translateX(50%) translateY(-120%);\n        }\n    }\n}\n\/* \u73fe\u5728\u5730 *\/\n.timeline-item.now:before{\n    background-color: #f00;\n}<\/pre>\n<h3>\u3084\u3063\u3066\u308b\u3053\u3068<\/h3>\n<p>\u305d\u3093\u306a\u306b\u96e3\u3057\u3044\u3053\u3068\u306f\u3057\u3066\u307e\u305b\u3093\u3002<br \/>\ndisplay\u3092\u5207\u308a\u66ff\u3048\u3066\u3001\u30dc\u30fc\u30c0\u30fc\u5f15\u304f\u5834\u6240\u3092\u5909\u3048\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u72ed\u3044\u753b\u9762\u3067\u306f\u7e26\u578b\u306a\u306e\u3067display: block;\u3067\u3044\u3044\u3067\u3059\u306d\u3002\u30dc\u30fc\u30c0\u30fc\u306f\u5de6\u306b\u5f15\u304d\u307e\u3057\u305f\u3002<br \/>\n\u6a2a\u578b\u306e\u5834\u5408\u306f\u3001\u89aa\u8981\u7d20\u3092table\u306b\u3001\u5b50\u8981\u7d20\u3092table-cell\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002(\u203bflex\u3067\u3082\u3046\u307e\u304f\u3044\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002)<br \/>\n\u305d\u308c\u304b\u3089\u89aa\u8981\u7d20\u306btablelayout: fixed;\u3092\u6307\u5b9a\u3057\u3066\u5747\u7b49\u306b\u5272\u308a\u307e\u3059\u3002<br \/>\n\u6587\u5b57\u3084\u6642\u9593\u306e\u9577\u3055\u306b\u9577\u77ed\u304c\u3042\u308b\u5834\u5408\u306f\u5b50\u8981\u7d20\u306ewidth\u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u3067\u6307\u5b9a\u3057\u3066\u3042\u3052\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u76ee\u5370\u306f\u5b50\u8981\u7d20\u306e\u64ec\u4f3c\u8981\u7d20\u3067\u3002<br \/>\n\u57fa\u672c\u7684\u306b\u306f\u5de6\u4e0a\u306b\u7d76\u5bfe\u914d\u7f6e\u3057\u3066\u3001\u81ea\u5206\u306e\u5927\u304d\u3055\u5206\u3060\u3051\u79fb\u52d5(transform: translateX(-50%) translateY(-50%);)\u3057\u307e\u3059\u3002<br \/>\n\u6700\u5f8c\u306e\u5b50\u8981\u7d20\u3060\u3051\u306f\u77e2\u5370\u3063\u307d\u304f\u3057\u305f\u3044\u306e\u3067\u3001\u4e09\u89d2\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u7e26\u6a2a\u3067\u5411\u304d\u3092\u5909\u3048\u3066\u3042\u3052\u3066\u304f\u3060\u3055\u3044\u306d\u3002<br \/>\n\u73fe\u5728\u5730\u306f\u5c02\u7528\u306e\u30af\u30e9\u30b9\u3092\u632f\u3063\u3066\u6587\u5b57\u8272\u3092\u5909\u3048\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/agn.jp\/blog\/examples\/161209_sample_timline.html\" target=\"_blank\">\u3010DEMO\u3011<\/a>\u306b\u306e\u3063\u3051\u305f\u4ed6\u306e\u3084\u3064\u306e\u30b3\u30fc\u30c9\u3082\u4e00\u5fdc\u8f09\u305b\u3068\u304d\u307e\u3059\u306d\u3002<br \/>\n\u672c\u5f53\u306f\u80cc\u666f\u3092\u77e2\u5370\u3063\u307d\u304f\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u884c\u304d\u305f\u304b\u3063\u305f\u3093\u3067\u3059\u3051\u3069\u3001\u30d1\u30c3\u3068\u601d\u3044\u3064\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\u3002<br \/>\n\u5e74\u672b\u9032\u884c\u3067\u304a\u5fd9\u3057\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u307f\u306a\u3055\u3093\u304a\u4f53\u306b\u6c17\u3092\u3064\u3051\u3066\u9811\u5f35\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h4>HTML<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"\">&lt;h2&gt;\u57fa\u672c\u5f62&lt;\/h2&gt;\n&lt;div class=&quot;timeline&quot;&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u524d&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u3058\u3064\u306f\u307e\u3060\u5b66\u751f\u3067\u3057\u305f\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item now&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u73fe\u5728&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7d50\u69cb\u3044\u3044\u5e74\u3067\u3059\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;Web\u306f\u307e\u3060\u5927\u4e08\u592b\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;20\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u30b9\u30ca\u30d5\u30ad\u30f3\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u305d\u306e\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u4ed9\u4eba\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;h2&gt;\u6570\u304c\u6e1b\u3063\u3066\u3082\u5927\u4e08\u592b&lt;\/h2&gt;\n&lt;div class=&quot;timeline&quot;&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u524d&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u3058\u3064\u306f\u307e\u3060\u5b66\u751f\u3067\u3057\u305f\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item now&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u73fe\u5728&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7d50\u69cb\u3044\u3044\u5e74\u3067\u3059\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;30\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7159\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u305d\u306e\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u4ed9\u4eba\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;h2&gt;\u6570\u304c\u5897\u3048\u3066\u3082\u5927\u4e08\u592b&lt;\/h2&gt;\n&lt;div class=&quot;timeline&quot;&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u524d&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u3058\u3064\u306f\u307e\u3060\u5b66\u751f\u3067\u3057\u305f\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item now&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u73fe\u5728&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7d50\u69cb\u3044\u3044\u5e74\u3067\u3059\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;Web\u306f\u307e\u3060\u5927\u4e08\u592b\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;20\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u30b9\u30ca\u30d5\u30ad\u30f3\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;30\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7159\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u305d\u306e\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u4ed9\u4eba\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n\n&lt;h2&gt;\u30dc\u30fc\u30c0\u30fc\u6709\u308a&lt;\/h2&gt;\n&lt;div class=&quot;timeline border-dashed&quot;&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u524d&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u3058\u3064\u306f\u307e\u3060\u5b66\u751f\u3067\u3057\u305f\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item now&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u73fe\u5728&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7d50\u69cb\u3044\u3044\u5e74\u3067\u3059\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;Web\u306f\u307e\u3060\u5927\u4e08\u592b\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;20\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u30b9\u30ca\u30d5\u30ad\u30f3\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u305d\u306e\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u4ed9\u4eba\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n\n&lt;h2&gt;\u30b9\u30c8\u30e9\u30a4\u30d7\u80cc\u666f&lt;\/h2&gt;\n&lt;div class=&quot;timeline bg-stripe&quot;&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u524d&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u3058\u3064\u306f\u307e\u3060\u5b66\u751f\u3067\u3057\u305f\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item now&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u73fe\u5728&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u7d50\u69cb\u3044\u3044\u5e74\u3067\u3059\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;Web\u306f\u307e\u3060\u5927\u4e08\u592b\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;20\u5e74\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u30b9\u30ca\u30d5\u30ad\u30f3\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;timeline-item&quot;&gt;\n        &lt;p class=&quot;timeline-label&quot;&gt;\u305d\u306e\u5f8c&lt;\/p&gt;\n        &lt;p class=&quot;timeline-content&quot;&gt;\u4ed9\u4eba\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n\n\n&lt;h2&gt;\u30b9\u30c8\u30e9\u30a4\u30d7\u80cc\u666f&lt;\/h2&gt;\n&lt;div class=&quot;timeline-wrapper&quot;&gt;\n    &lt;div class=&quot;timeline bg-arrow&quot;&gt;\n        &lt;div class=&quot;timeline-item&quot;&gt;\n            &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u524d&lt;\/p&gt;\n            &lt;p class=&quot;timeline-content&quot;&gt;\u3058\u3064\u306f\u307e\u3060\u5b66\u751f\u3067\u3057\u305f\u3002&lt;\/p&gt;\n        &lt;\/div&gt;\n        &lt;div class=&quot;timeline-item now&quot;&gt;\n            &lt;p class=&quot;timeline-label&quot;&gt;\u73fe\u5728&lt;\/p&gt;\n            &lt;p class=&quot;timeline-content&quot;&gt;\u7d50\u69cb\u3044\u3044\u5e74\u3067\u3059\u3002&lt;\/p&gt;\n        &lt;\/div&gt;\n        &lt;div class=&quot;timeline-item&quot;&gt;\n            &lt;p class=&quot;timeline-label&quot;&gt;10\u5e74\u5f8c&lt;\/p&gt;\n            &lt;p class=&quot;timeline-content&quot;&gt;Web\u306f\u307e\u3060\u5927\u4e08\u592b\u3002&lt;\/p&gt;\n        &lt;\/div&gt;\n        &lt;div class=&quot;timeline-item&quot;&gt;\n            &lt;p class=&quot;timeline-label&quot;&gt;20\u5e74\u5f8c&lt;\/p&gt;\n            &lt;p class=&quot;timeline-content&quot;&gt;\u30b9\u30ca\u30d5\u30ad\u30f3\u306b\u306a\u308a\u305f\u3044\u3002&lt;\/p&gt;\n        &lt;\/div&gt;\n        &lt;div class=&quot;timeline-item&quot;&gt;\n            &lt;p class=&quot;timeline-label&quot;&gt;\u305d\u306e\u5f8c&lt;\/p&gt;\n            &lt;p class=&quot;timeline-content&quot;&gt;\u4ed9\u4eba\u3002&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;<\/pre>\n<h4>SASS<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sass\" data-enlighter-title=\"\">.timeline{\n    padding: 3rem 5rem;\n    background-color: #f0f0f0;\n    &amp;-item{\n        position: relative;\n        border-left: 1px solid #000;\n        padding: 0 0 30px 30px;\n        &amp;:before{\n            content: &#039;&#039;;\n            display: block;\n            width: 10px;\n            height: 10px;\n            position: absolute;\n            left: 0;\n            top: 0;\n            border-radius: 100%;\n            background-color: #000;\n            transform: translateX(-50%) translateY(-50%);\n        }\n        &amp;:last-of-type{\n            padding-bottom: 0;\n            &amp;:before{\n                width: 0;\n                height: 0;\n                border-style: solid;\n                border-width: 10px 5px 0 5px;\n                border-color: #000000 transparent transparent transparent;\n                border-radius: 0;\n                background-color: transparent;\n                top: auto;\n                bottom: 0;\n                transform: translateX(-50%) translateY(0);\n            }\n        }\n    }\n    @media(min-width : 768px){\n        display: table;\n        table-layout: fixed;\n        width: 100%;\n        &amp;-item{\n            display: table-cell;\n            vertical-align: top;\n            padding: 0;\n            border:{\n                top: 1px solid #000;\n                bottom: 0;\n                left: 0;\n            }\n            &amp;:last-of-type{\n                padding-bottom: 0;\n                text-align: right;\n                &amp;:before{\n                    border-width: 5px 0 5px 10px;\n                    border-color: transparent transparent transparent #000000;\n                    top: 0;\n                    right: 0;\n                    bottom: auto;\n                    left: auto;\n                    transform: translateX(0) translateY(-50%);\n                }\n\n                p{\n                    text-align: left;\n                }\n            }\n        }\n        &amp;-label,\n        &amp;-content{\n            transform: translateX(-50%);\n            text-align: left;\n            display: block;\n            max-width: 70%;\n        }\n        &amp;-label{\n            text-align: center;\n            position: absolute;\n            top: 0;\n            left: 0;\n            transform: translateX(-50%) translateY(-120%);\n        }\n        &amp;-content{\n            margin-top: 10px;\n        }\n        &amp;-item:last-of-type &amp;-label,\n        &amp;-item:last-of-type &amp;-content{\n            transform: translateX(50%);\n            text-align: left;\n            display: inline-block;\n            max-width: 70%;\n        }\n        &amp;-item:last-of-type &amp;-label{\n            left: auto;\n            right: 0;\n            transform: translateX(50%) translateY(-120%);\n        }\n    }\n\n\n\n\n    \/* \u30dc\u30fc\u30c0\u30fc\u6709\u308a *\/\n    &amp;.border-dashed &amp;-item{\n        border-top: 1px dashed #ccc;\n        padding: 10px;\n        &amp;:last-of-type{\n            border: {\n                top: none;\n                bottom: 1px dashed #ccc;\n            }\n        }\n\n\n        @media(min-width : 768px){\n            padding: 0;\n            border:{\n                top: 1px solid #000;\n                left: 1px dashed #ccc;\n            }\n            &amp;:last-of-type{\n                border: {\n                    top: 1px solid #000;\n                    right: 1px dashed #ccc;\n                    bottom: 0;\n                }\n            }\n        }\n    }\n\n    \/* \u30b9\u30c8\u30e9\u30a4\u30d7\u80cc\u666f *\/\n    &amp;.bg-stripe &amp;-item{\n        &amp;:nth-of-type(odd){\n            background-color: #e8e8e8;\n        }\n        &amp;:nth-of-type(even){\n            background-color: #fff;\n        }\n    }\n    @media(min-width : 768px){\n        &amp;.bg-stripe &amp;-label,\n        &amp;.bg-stripe &amp;-content{\n            transform: translateX(0);\n            text-align: left;\n            display: block;\n            max-width: 70%;\n        }\n        &amp;.bg-stripe &amp;-label{\n            transform: translateX(0) translateY(-120%);\n        }\n        &amp;.bg-stripe &amp;-content{\n            display: inline-block;\n        }\n    }\n\n    \/* PC\u306e\u6642\u306f\u77e2\u5370\u3063\u307d\u304f *\/\n    &amp;-wrapper{\n        padding: 3rem 5rem;\n        background-color: #f0f0f0;\n    }\n    &amp;.bg-arrow{\n        padding: 0;\n    }\n    &amp;.bg-arrow &amp;-item{\n        position: relative;\n        border: {\n            top: none;   \n        }\n\n       \n    }\n    @media(min-width : 768px){        \n        &amp;.bg-arrow{\n            padding: 20px 0 0;\n            overflow: hidden;\n        }\n        &amp;.bg-arrow &amp;-item{\n            &amp;:before{\n                height: 100%;\n                width: 100%;\n                top: 0;\n                left: 0;\n                right: 0;\n                bottom: 0;\n                border:{\n                    color: transparent;\n                    radius: 0;\n                }\n                box-shadow: 1px -1px 2px rgba(125, 125, 125, 0.8);\n                transform: skew(-45deg);\n                transform-origin:0 0;\n                background: -moz-linear-gradient(45deg,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%); \/* FF3.6-15 *\/\n                background: -webkit-linear-gradient(45deg,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%); \/* Chrome10-25,Safari5.1-6 *\/\n                background: linear-gradient(45deg,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%); \/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ *\/\n            }        \n        }\n        \n        &amp;.bg-arrow &amp;-label,\n        &amp;.bg-arrow &amp;-content{\n            transform: translateX(0);\n            text-align: left;\n            display: block;\n            max-width: 70%;\n        }\n        &amp;.bg-arrow &amp;-label{\n            transform: translateX(0) translateY(-120%);\n        }\n        &amp;.bg-arrow &amp;-content{\n            display: inline-block;\n        }\n        &amp;.bg-arrow &amp;-item:last-of-type{\n            padding-bottom: 0;\n            text-align: right;\n            &amp;:before{\n                border: none;\n                top: 0;\n                left: 0;\n                right: 0;\n                bottom: 0;\n                transform: translateX(0) translateY(0) skew(-45deg);\n            }\n            p{\n                text-align: left;\n                display: block;\n            }\n        }\n    }\n}\n\n\/* \u73fe\u5728\u5730 *\/\n.timeline-item.now:before{\n    background-color: #f00;\n}\n<\/pre>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/http:\/\/agn.jp\/blog\/?p=3268\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"CSS\u3060\u3051\u3067\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u4f5c\u308b\" data-hatena-bookmark-layout=\"simple-balloon\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img loading=\"lazy\" decoding=\"async\" src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>        <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"http:\/\/agn.jp\/blog\/?p=3268\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>        <div class=\"wsbl_facebook_share\"><div id=\"fb-root\"><\/div><fb:share-button href=\"http:\/\/agn.jp\/blog\/?p=3268\" type=\"button_count\" ><\/fb:share-button><\/div>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/agn.jp\/blog\/?p=3268\" data-text=\"CSS\u3060\u3051\u3067\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u4f5c\u308b\" data-lang=\"ja\">Tweet<\/a><\/div>        <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"http:\/\/agn.jp\/blog\/?p=3268\" ><\/g:plusone><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u5236\u4f5c\u3057\u305f\u6848\u4ef6\u3067\u3001\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\uff08\u904e\u53bb\u2192\u672a\u6765\uff09\u304c\u3042\u3063\u305f\u3093\u3067\u3059\u306d\u3002 \u3053\u3046\u3044\u3046\u306e\u3067\u3059\u3002 \u30c7\u30b6\u30a4\u30f3\u304c\u30a4\u30e9\u30ec\u3067\u6765\u3066\u3044\u3066\u3001\u3055\u3066\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u304b\u3001\u3068\u3002 \u3082\u3061\u308d\u3093\u753b\u50cf\u3067\u3082OK\u306a\u3093\u3067\u3059\u304c\u3001\u6a2a\u9577\u3092\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u30b9\u30de\u30db\u3067\u898b\u305f\u3089\u5c0f\u3055\u304f\u3066\u898b\u3048\u306a &hellip; <a href=\"http:\/\/agn.jp\/blog\/?p=3268\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">CSS\u3060\u3051\u3067\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u4f5c\u308b<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[42],"tags":[],"class_list":["post-3268","post","type-post","status-publish","format-standard","hentry","category-css"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3268"}],"version-history":[{"count":0,"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3268\/revisions"}],"wp:attachment":[{"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3268"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/agn.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}