// 資料庫 @import './partials/variable'; @import './partials/mixin'; .compareInfo { .pageTitleBox { margin-bottom: 50px; h1 { margin-bottom: 30px; } .info { text-align: center; } } .compareTable { width: 100%; max-width: 960px; margin: 0 auto; .selectInfo { margin: 0; font-size: 14px; font-weight: 400; color: #666; } select { width: 100%; padding: 5px 10px; } .phoneBox { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 10px; padding-bottom: 10px; .phoneList { position: relative; .phone { position: absolute; top: 0; left: 0; opacity: 0; @include transition(all, 0.5); display: flex; flex-direction: column; gap: 10px; &:first-child { position: relative; opacity: 1; } &.active { opacity: 1; } } .pic { height: 200px; text-align: center; img { height: 100%; } } .title { text-align: center; } } .colorList { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; li { width: 14px; height: 14px; margin: 5px; border: 1px solid #bbb; cursor: pointer; margin: 0; @include transition(all, 0.3); } } } .tr { display: flex; & > * { &:first-child { width: 145px; @include screen('tablet') { width: 100px; } } &:not(:first-child) { width: calc((100% - 145px) / 3); @include screen('tablet') { width: calc((100% - 100px) / 2); } } &:nth-child(4) { @include screen('tablet') { display: none; } } } &:not(:first-child) { border-bottom: 1px solid #ccc; } } .th { vertical-align: top; text-align: left; font-weight: bold; } .th, .td { padding: 15px 20px; @include screen('tablet') { font-size: 13px; padding: 15px 10px; } } } }