Skip to content

Instantly share code, notes, and snippets.

@mvlwn
Last active October 17, 2017 12:39
Show Gist options
  • Save mvlwn/68d6a114eb6109d0c3c1c1cf8d5ca34e to your computer and use it in GitHub Desktop.
Save mvlwn/68d6a114eb6109d0c3c1c1cf8d5ca34e to your computer and use it in GitHub Desktop.
Tweakers TDS PriceComparator theme
/* Elements */
body {
min-width: 275px;
}
h1 {
display: none;
}
/* Base */
.pc {
font-family: "arial","helvetica","Liberation Sans",sans-serif;
min-width: 310px;
font-size: 14px;
color: black;
}
.pc-fc .pc-result__similar-shops-link,
.pc a {
font-family: "arial","helvetica","Liberation Sans",sans-serif;
color: #014a93;
}
/* Buttons */
.pc .pc-button,
.pc .pc-topbar a {
font-family: "arial","helvetica","Liberation Sans",sans-serif;
border-radius: 1px;
padding: 3px 20px;
font-size: 12px;
}
.pc .pc-button--opaque,
.pc .pc-button--primary {
background-color: #0a95cd;
background-image: -webkit-linear-gradient(top,#0a95cd,#0884b4);
background-image: -moz-linear-gradient(#0a95cd,#0884b4);
background-image: linear-gradient(to bottom,#0a95cd,#0884b4);
border: 1px solid #0884b4;
padding: 0 10px;
border-radius: 1px;
line-height: 24px;
color: white!important;
font-weight: normal;
}
.pc .pc-button--opaque:hover,
.pc .pc-button--primary:hover {
background-color:#0ba4e0;
background-image:-webkit-linear-gradient(top,#0ba4e0,#0992c8);
background-image:-moz-linear-gradient(#0ba4e0,#0992c8);
background-image:linear-gradient(to bottom,#0ba4e0,#0992c8);
border-color:#0a95cd;
color: white;
text-decoration: none;
}
.pc .pc-button--click-out {
background-color: #0a95cd;
background-image: -webkit-linear-gradient(top,#0a95cd,#0884b4);
background-image: -moz-linear-gradient(#0a95cd,#0884b4);
background-image: linear-gradient(to bottom,#0a95cd,#0884b4);
border: 1px solid #0884b4;
}
.pc .pc-button--click-out:hover {
background-color:#0ba4e0;
background-image:-webkit-linear-gradient(top,#0ba4e0,#0992c8);
background-image:-moz-linear-gradient(#0ba4e0,#0992c8);
background-image:linear-gradient(to bottom,#0ba4e0,#0992c8);
border-color:#0a95cd;
color:white;
text-decoration: none;
}
.pc .pc-result__links .pc-button--click-out {
padding: 0 10px;
border-radius: 1px;
line-height: 24px;
}
.pc .pc-button span.octicon {
margin-top: 3px!important;
}
/* Topbar mobile view */
.pc .pc-topbar a {
color: #014a93;
}
.pc .pc-topbar__results-btn,
.pc .pc-topbar__active-filter-count {
color: #014a93!important;
line-height: 24px;
}
/* Options */
.pc .pc-option-link__body,
.pc .pc-compare-options,
.pc-fc .pc-compare-subscription,
.pc-fc .pc-compare-advanced-options {
background-color: #FFF;
}
@media (min-width: 568px) {
.pc .pc-compare-options {
height: 260px;
margin-bottom: 20px;
}
.pc .pc-compare-options__subscription,
.pc .pc-compare-options__advanced-options {
margin: 0;
width: 100%;
}
.pc .pc-compare-subscription__unit:last-child {
border-right: none;
}
.pc .pc-compare-options__subscription {
padding: 20px 20px 0px 20px;
}
.pc .pc-compare-options__advanced-options {
padding: 0;
}
.pc-fc .pc-compare-options__advanced-options .pc-compare-advanced-options {
max-width: none;
}
.pc .pc-compare-subscription {
height: 160px;
}
.pc .pc-compare-advanced-options > .pc-option-link {
max-width: 200px;
}
.pc .pc-option-link {
margin-top: 0;
padding: 0;
height: 29px;
}
.pc .pc-option-link__body {
border: 1px #d9d9d9 solid;
top: 30px;
background-color: #F2F2F2;
border: 1px #ccc solid;
border-radius: 0;
-webkit-box-shadow: 0px 0px 14px 2px rgba(0,0,0,0.16);
-moz-box-shadow: 0px 0px 14px 2px rgba(0,0,0,0.16);
box-shadow: 0px 0px 14px 2px rgba(0,0,0,0.16);
}
.pc .pc-option-link__text {
width: calc(100% - 50px);
padding: 5px 10px;
}
.pc .pc-option-link__open:before,
.pc .pc-option-link__close:before,
.pc .pc-option-link__reset:before {
display: inline-block;
background-color: #F0F0F0;
width: 50px;
padding: 5px 6px;
border-left: 1px #aaa solid;
text-align: center;
color: #444;
}
.pc .pc-option-link__open:before {
content: 'wijzig';
}
.pc .pc-option-link__close:before {
content: 'sluit';
}
.pc .pc-option-link__reset:before {
content: 'wis';
}
.pc .pc-option-link__reset span.pc-option-link__icon,
.pc .pc-option-link__open span.pc-option-link__icon,
.pc .pc-option-link__close span.pc-option-link__icon {
display: none;
}
.pc .pc-option-link__triangle-up {
display: none;
}
.pc .pc-option-link__close-btn:before {
background-color:#0ba4e0;
content: 'x';
color: white;
font-family: "arial","helvetica","Liberation Sans",sans-serif;
border-radius: 0;
padding: 0 0 2px 0;
font-size: 18px;
width: 22px;
line-height: 20px;
font-weight: bold;
display: inline-block;
text-align: center;
background-image: -webkit-linear-gradient(top,#0a95cd,#0884b4);
background-image: -moz-linear-gradient(#0a95cd,#0884b4);
background-image: linear-gradient(to bottom,#0a95cd,#0884b4);
border: 1px solid #0884b4;
vertical-align: middle;
}
.pc .pc-option-link__close-btn:before:hover {
background-color:#0ba4e0;
background-image:-webkit-linear-gradient(top,#0ba4e0,#0992c8);
background-image:-moz-linear-gradient(#0ba4e0,#0992c8);
background-image:linear-gradient(to bottom,#0ba4e0,#0992c8);
border-color:#0a95cd;
color: white;
text-decoration: none;
}
}
@media (min-width: 960px) {
.pc .pc-compare-options {
height: 190px;
margin-bottom: 10px;
}
.pc .pc-compare-options__subscription {
padding: 20px 20px 40px 20px;
}
.pc .pc-compare-subscription {
height: 40px;
}
.pc .pc-compare-subscription__unit {
height: 150px;
border-right: 1px #d9d9d9 solid;
}
.pc .pc-option-link {
margin-top: 0px;
}
}
.pc-compare-options__subject {
display: none;
}
/* Main Options */
.pc .pc-compare-options__legend {
display: none;
}
.pc .pc-compare-subscription__unit {
padding: 0;
margin-bottom: 10px;
}
@media (min-width: 568px) {
.pc .pc-compare-subscription__unit {
margin-bottom: 0;
}
}
.pc .pc-slider {
padding-bottom: 10px;
}
@media (min-width: 568px) {
.pc .pc-slider {
padding-bottom: 0;
}
}
.pc .pc-slider__label {
font-size: 14px;
padding: 0;
}
@media (min-width: 960px) {
.pc .pc-slider__label {
min-height: auto;
}
}
.pc .pc-slider__unit {
font-size: 12px;
font-weight: bold;
}
.pc .pc-slider__value {
font-weight: bold;
color: #02658c;
font-size: 11px;
line-height: 18px;
}
/* Advanced options */
.pc .pc-option-link {
border-color: #aaa;
border-radius: 0;
background-color: #FFF;
}
.pc-fc .pc-compare-options__advanced-options .pc-option-link {
margin-right: 15px;
}
.pc .pc-option-link__text-xs {
font-weight: bold;
}
.pc .pc-result__similar-shops-link {
border-radius: 0;
color: #014a93;
border-color: #014a93;
padding-top: 6px;
padding-bottom: 6px;
}
.pc a:hover {
color: #b9133d;
text-decoration: underline;
}
/* Slider */
.pc .pc-slider__control {
position: relative;
}
@media (min-width: 960px) {
.pc .pc-slider__control {
max-width: 300px;
}
}
.slider.slider-horizontal .slider-track {
border-radius: 0;
}
.slider.slider-horizontal .slider-track,
.slider.slider-horizontal .slider-track-low,
.slider.slider-horizontal .slider-track-high,
.slider.slider-horizontal .slider-selection {
height: 6px;
}
.slider-selection {
background-color: #84b400;
background-image:-webkit-linear-gradient(top,#84b400,#80af00);
background-image:-moz-linear-gradient(#84b400,#80af00);
background-image:linear-gradient(to bottom,#84b400,#80af00);
}
.slider-handle {
background-color: #0F78AA;
border-radius: 0!important;
width: 12px;
height: 12px;
border-left: 1px white solid;
border-top: 1px white solid;
border-right: 1px white solid;
/*background: url('https://tweakimg.net/g/slider/sliderPointerLarge.png');*/
}
.slider-handle:after {
border-top: 8px #0F78AA solid;
border-left: 5px transparent solid;
border-right: 5px transparent solid;
height: 0;
width: 0;
content: ' ';
position: absolute;
left: 0px;
top: 11px;
}
.slider-axis {
position: absolute;
top: 25px;
}
.slider-axis > .item:last-child {
margin-right: 20px;
}
.slider-track {
height: 6px;
}
/* Results */
.pc .pc-result__subject {
width: 35%;
}
.pc .pc-result__subscription {
width: 65%;
}
@media (min-width: 568px) {
.pc .pc-result__subject {
width: 15%;
}
.pc .pc-result__subscription {
width: 70%;
}
}
@media (min-width: 960px) {
.pc .pc-result__subject {
width: 15%;
}
.pc .pc-result__subscription {
width: 70%;
}
}
.pc .pc-costs__value {
font-weight: bold;
font-size: 14px;
}
.pc .pc-muted-list {
font-size: 12px;
}
@media(min-width: 568px) {
.pc .pc-shop-offer__value {
font-size: 14px;
}
.pc .text-small {
font-size: 12px;
}
.pc .pc-compare-results h1 {
padding-top: 5px;
margin-top: 0;
}
}
/* Popovers */
.popover {
background-color: #F2F2F2;
border: 1px #ccc solid;
border-radius: 0;
-webkit-box-shadow: 0px 0px 14px 2px rgba(0,0,0,0.16);
-moz-box-shadow: 0px 0px 14px 2px rgba(0,0,0,0.16);
box-shadow: 0px 0px 14px 2px rgba(0,0,0,0.16);
color: #666;
}
.pc .popover:after {
border-top-color: #F2F2F2;
}
.pc .popover h2 {
color: #9a0e36;
padding-bottom: 10px;
border-bottom: 1px #d6d6d6 solid;
}
.pc .popover h3 {
border-top: 1px #d6d6d6 solid;
padding-top: 15px;
color: #aaa;
}
.pc .pc-price-calculation td {
line-height: 20px;
}
.pc .pc-price-calculation .credit-table {
color: #aaa;
font-weight: normal;
}
/* Stars */
.pc .filled-star,
.pc .empty-star {
background-image: url(https://tweakimg.net/g/pw/score/scorestars_sprite.png);
background-position: top left;
background-repeat: no-repeat;
overflow: hidden;
height: 13px;
width: 13px;
content: url(https://upload.wikimedia.org/wikipedia/commons/c/ca/1x1.png)
}
.pc .empty-star {
background-position-x: -105px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment