コピペOK!RMSスマホ カテゴリをカードデザイン風にカスタマイズ

今回は久々に楽天のカスタマイズについて書きたいと思います。楽天スマホの商品一覧(カテゴリ)のページをいじってみました。
今流行り?のカードデザイン風に!既存の楽天で設定されてるCSSをカスタマイズするだけなので、下記コードをコピペで簡単に設定すればカスタマイズできます!ぜひ皆さんもお試しください!

完成イメージ


 

CSS


#sCSLContainer {
    padding: 10px 10px 10px 0 !important;
    vertical-align: top !important;
    text-align: left !important;
}



#sCSLContainer > a {
    display: inline-block !important;
    width: 33.3% !important;
    box-sizing: border-box !important;
    padding: 0 0 0 10px !important;
    margin: 0 0 10px 0!important;
}

.sCSLBox01 {
    display: inline-block !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 10px 10px 0 10px !important;
    margin: 0 !important;
    border: 1px solid #eeeeee !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

.sCSLBox02 {
    display: inline-block !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 10px 10px 0 10px !important;
    margin: 0 !important;
    border: 1px solid #eeeeee !important;
    background-image: none !important;
    background-color: #ffffff !important;
}


.inLeft {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.inLeft img {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 5px !important;
}

.inRight {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    float: left !important;
    text-align: left !important;
}


.txtheight {
    display: block !important;
    width: 100% !important;
    min-height: 30px !important;
    padding: 0 !important;
    color: #666666 !important;
}

#sCSLContainer > a > div > div.inRight > div.txtheight > div.ctgItemNormal {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 10px !important;
    height: 30px !important;
    background-color: #fff !important;
    position: relative !important;
    padding-right: 10px !important;
    padding-top: 1px !important;
    padding-left: 0 !important;
    overflow: hidden !important;
    font-size: 10px !important;
    background-image: none !important;
}


#sCSLContainer > a > div > div.inRight > div.txtheight > div.ctgItemNormal:before {
    content: "..." !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    display: inline-block !important;
    width: 1em !important;
}

#sCSLContainer > a > div > div.inRight > div.txtheight > div.ctgItemNormal:after {
    content: "" !important;
    position: relative !important;
    right: -1em !important;
    float: right !important;
    width: 1em !important;
    height: 100% !important;
    background-color: inherit !important;
}


.right {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 5px 0 0 0 !important;
    float: left !important;
    text-align: left !important;
}


#sCSLContainer > a > div > div.inRight > div.right > p.txtprice {
    padding: 0 !important;
    color: #cc0000 !important;
}


#sCSLContainer > a > div > div.inRight > div.right > p.txtprice > span:nth-child(1) {
    color: #cc0000 !important;
    font-weight: bold !important;
}

#sCSLContainer > a > div > div.inRight > div.right > p.txtprice > span:nth-child(2) {
    font-size: 10px !important;
    color: #000000 !important;
    line-height: 1em !important;
    position: relative !important;
    bottom: 8px !important;
}


#sCSLContainer > a > div > div.inRight > div.right > p.txtprice > span:nth-child(1):after {
    content: "\A" !important;
    white-space: pre !important;
}


#sCSLContainer .txtprice .shippingCost_free {
    display: inline-block!important;
    padding: 0 2px!important;
    margin-left: 3px;
    word-wrap: initial!important;
    background: #bf0000!important;
    color: white!important;
    white-space: nowrap!important;
    width: initial!important;
    line-height: 1.6;
}

 

デモページ

 
デモページ