add: pc版のスタイルシートを追加

This commit is contained in:
yuki540 2018-04-19 18:35:35 +09:00
parent 3e52a49357
commit b86fc06348

View File

@ -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; }
}
}
}