.convenience a:before, .itemInner a:before { content: ""; margin-right: 10px; width: 19px; height: 19px; min-width: 19px; background: url(https://img.hmv.co.jp/morecos/svg/info_icon.svg) no-repeat 0 0 / contain !important; }

ランキング すべて見る

  • すべて

  • スキンケア

  • ベースメイク

  • メイクアップ

  • ボディケア

  • ネイル

  • ヘアケア

  • 日焼け対策・UVケア

カテゴリーから探すすべて見る

  • スキンケア

  • ベースメイク

  • メイクアップ

  • ボディケア

  • ネイル

  • ヘアケア

  • 日焼け対策・UVケア

  • フレグランス

  • グッズ

  • 日用品

  • メンズ

.color-list { position: relative; display: flex; flex-flow: row wrap; align-items: stretch; margin-top: 20px; padding: 10px; padding-top: 0; gap: 15px; list-style-type: none; white-space: nowrap; } .color-list > li { position: relative; width: calc((100% - 60px) / 5); /*min-width: 5em;*/ text-align: center; cursor: pointer; } .color-list li .color-tab { position: relative; } .color-list li.current .color-tab::before { content: ""; display: block; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); border: solid 10px; border-color: transparent transparent #894d46 transparent; } .color-list li.current .color-tab::after { content: ""; display: block; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border: solid 10px; border-color: transparent transparent #fff transparent; z-index: 2; } .color-list [class*="color-list_"] { display: block; width: 80%; border-radius: 50%; aspect-ratio: 1; margin: 0 auto; } .color-list_pink { background-color: #f5b2b2; } .color-list_brown { background-color: #6b3f31; } .color-list_beige { background-color: #eedcb3; } .color-list_red { background-color: #ea5550; } .color-list_orange { background-color: #f3981d; } .color-list_black { background-color: #000; } .color-list_purple { background-color: #9b72b0; } .color-list_grey { background-color: #7d7d7d; } .color-list_blue { background-color: #0075c2; } .color-list_green { background-color: #00a960; } .color-list_gold { /*background-color: #c1ab05;*/ background: linear-gradient(45deg, #c1ab05, #fae64c, #c1ab05); } .color-list_white { background-color: #fff; border: solid 1px #f4f3f0; } .color-list_silver { /*background-color: #c9caca;*/ background: linear-gradient(45deg, #c9caca, #f8f8f8, #c9caca); } .color-list_yellow { background-color: #ffdc00; } .color-list_clear { /*background-color: #fff;*/ background: linear-gradient(45deg, #9efeff, #e7ffff, #9efeff); } .color-list li.current [class*="color-list_"] { border: solid 2px #aa4c4c; } .color-list li .color-name { font-size: 12px; } .color-list [class*="color-list_"] + .color-name { margin-top: 0.5em; } .category-list { position: relative; display: none; flex-flow: row wrap; white-space: nowrap; gap: 15px; width: calc(100vw - 20px); margin-top: 8px; padding: 13px 10px; box-sizing: border-box; border: solid 1px #894d46; background: #fff; list-style-type: none; z-index: 1; } .color-list li.current .category-list { display: flex; } .category-list li { cursor: pointer; } @media screen and (min-width: 961px) { #color { padding-bottom: 60px; } .color-list { padding: 0; } .color-list > li { width: calc((100% - 135px) / 10); } .color-list li, .color-list li .color-name { font-size: 16px } .category-list { width: calc(100vw - 80px); max-width: 1200px; padding: 20px; gap: 20px 40px; } } let pc = $(window).outerWidth() >= 961 ? true : false; $(window).resize(function(){ pc = $(window).outerWidth() >= 961 ? true : false; console.log(pc); }); let c = 'current'; let pos = 0; $('.color-list').find('li').on('click', function(){ let balloon; let $this = $(this); if(!$this.hasClass(c)){ $this.siblings('.'+c).removeClass(c); $this.addClass(c); pos = pc ? ($this.offset().left - $this.offsetParent().offset().left) * -1 : ($this.offset().left - 10) * -1; balloon = $this.find('.category-list'); balloon.css({ 'margin-left' : pos }); } else { $this.removeClass(c); } });

レビュー すべて見る