From b86fc0634809df084d92592e958ed6895a5eb44b Mon Sep 17 00:00:00 2001 From: yuki540 Date: Thu, 19 Apr 2018 18:35:35 +0900 Subject: [PATCH] =?UTF-8?q?add:=20pc=E7=89=88=E3=81=AE=E3=82=B9=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E3=82=B7=E3=83=BC=E3=83=88=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scss/modules/pc/_product-page.scss | 82 ++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 src/scss/modules/pc/_product-page.scss diff --git a/src/scss/modules/pc/_product-page.scss b/src/scss/modules/pc/_product-page.scss new file mode 100644 index 0000000..f9acc7a --- /dev/null +++ b/src/scss/modules/pc/_product-page.scss @@ -0,0 +1,82 @@ +@include pc-layout { + .product-page {} + + .product-box { + width: 600px; + margin: 0 auto; + margin-top: 50px; + + .sub-title { + position: relative; + width: 100%; height: 50px; + font-size: 26px; + color: $theme-light-purple; + line-height: 50px; + text-align: center; + margin: 0 auto; + margin-bottom: 20px; + + &:before, + &::after { + position: absolute; + content: ""; display: block; + width: 70%; height: 1px; + background-color: $theme-light-purple; + opacity: 0.6; + } + &::before { top: 0; left: 0; } + &::after { bottom: 0; right: 0; } + } + + section { + margin-bottom: 50px; + + a { + position: relative; + float: left; + display: block; + width: 290px; height: 300px; + background-color: #fff; + box-shadow: 0 0 5px #999; + margin-left: 10px; + margin-bottom: 10px; + overflow: hidden; + padding: 5px; + box-sizing: border-box; + transition: all 0.35s ease 0s; + + .name { + font-size: 16px; + color: $theme-purple; + padding: 5px; + box-sizing: border-box; + } + + .description { + font-size: 12px; + padding: 15px 10px; + box-sizing: border-box; + color: $theme-light-purple; + } + + .date { + position: absolute; + bottom: 0; right: 0; + font-size: 12px; + text-align: right; + padding: 5px; + box-sizing: border-box; + color: $theme-light-purple; + } + + img { + width: 100%; + } + } + a:nth-child(2n) { margin-right: 0; } + a:hover { opacity: 0.6; } + + &::after { content: ""; display: block; clear: both; } + } + } +}