Skip to content

Instantly share code, notes, and snippets.

@alecchampaign
Created December 20, 2019 20:47
Show Gist options
  • Select an option

  • Save alecchampaign/fc2950fe7432a0f89a2242f9d806b55e to your computer and use it in GitHub Desktop.

Select an option

Save alecchampaign/fc2950fe7432a0f89a2242f9d806b55e to your computer and use it in GitHub Desktop.
:root {
--primary-font: "Poppins", "sans-serif";
--font-color: #525252;
--font-light: #707070;
}
body {
font-family: var(--primary-font);
margin: 0;
overflow-x: hidden;
}
button:hover {
cursor: pointer;
}
a {
font-weight: 200;
font-size: 0.8em;
text-decoration: underline;
color: var(--font-color);
}
h1 {
font-weight: 600;
font-size: 3em;
margin: 0;
padding: 0;
color: var(--font-color);
}
h2 {
font-weight: 600;
font-size: 1.5em;
color: var(--font-color);
}
h3 {
font-weight: 200;
margin: 0;
padding: 0;
color: var(--font-color);
}
p {
color: var(--font-color);
}
.stars-outer {
position: relative;
font-family: FontAwesome;
}
.stars-outer::before {
content: "\f005\f005\f005\f005\f005";
color: var(--font-color);
}
.stars-inner {
position: absolute;
top: 0;
left: 0;
white-space: nowrap;
overflow: hidden;
color: var(--font-color);
}
.stars-inner::before {
content: "\f005\f005\f005\f005\f005";
}
.relatedProductsContainer {
overflow-x: hidden;
white-space: nowrap;
margin: 100px;
}
button.exitComparisonWindow {
position: absolute;
right: 40px;
top: 40px;
font-size: 20px;
border-radius: 50px;
padding: 0.5vh;
width: 3.2vh;
border: 2px solid black;
background-color: transparent;
}
button.exitComparisonWindow:hover {
color: red;
border-color: red;
}
.FeatureComparisonTable {
text-align: center;
/* border: 2px solid black; */
border-collapse: collapse;
font-size: 18px;
}
.FeatureComparisonTable td {
border-bottom: 2px solid black;
padding-left: 10px;
padding-right: 10px;
width: 175px;
/* border-collapse: collapse; */
}
.FeatureComparisonTable tr.tableHeader td {
font-weight: 800;
font-size: 20px;
}
tr td.itemValue {
color: var(--font-color);
}
.Modal .comparison-header {
text-align: center;
}
.actionButtonContainer .actionButton {
background-image: url(/img/baseline_star_border_black_24dp.png);
background-repeat: no-repeat;
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
}
.actionButtonContainer .actionButton:hover {
filter: invert(50%);
}
.myOutfitsContainer {
overflow-x: hidden;
white-space: nowrap;
margin: 100px;
}
.card {
display: inline-block;
margin: 10px;
overflow: hidden;
text-align: center;
border: 2px solid #9b9b9b;
color: #525252;
position: relative;
width: 12vw;
height: 400px;
}
.card .productTitle {
font-size: 15px;
font-weight: 900;
}
.card .category {
font-size: 12px;
font-weight: normal;
}
.card .price {
font-size: 12px;
font-weight: normal;
}
.cardImage img {
object-fit: cover;
max-height: 250px;
padding-bottom: 125px;
bottom: 125px;
max-height: 300px;
width: 275px;
}
.cardText {
padding: 3px;
margin: 0px;
text-align: left;
/* border-bottom: transparent; */
white-space: normal;
position: absolute;
bottom: 0px;
left: 0px;
}
.cardText:hover,
.cardText:focus {
text-decoration: underline;
}
.removeCardButton {
background-image: url(/img/close-24px.svg);
background-repeat: no-repeat;
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
background-color: transparent;
border: none;
}
.removeCardButton:hover {
filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg)
brightness(104%) contrast(97%);
/* filter: invert(100%); */
}
.addProductButton {
text-align: center;
}
.addProductButton:hover {
cursor: copy;
}
#addToMyOutfitButton {
font-size: 100px;
font-weight: 900;
}
#addToMyOutfitText {
font-size: 28px;
font-weight: 700;
}
/* forward button on My Outfit carousel */
.sc-ifAKCX.geRExE.sc-EHOje.aoTUt button {
background-color: transparent;
color: black;
border: transparent;
font-size: 34px;
font-weight: 700;
}
/* back button on my outfit carousel */
.sc-ifAKCX.geRExE.sc-bZQynM.dHQcjo button {
background-color: transparent;
color: black;
border: transparent;
font-size: 34px;
font-weight: 700;
}
/* forward button on Related Products carousel */
.sc-ifAKCX.geRExE.sc-EHOje.dFFQiB button {
background-color: transparent;
color: black;
border: transparent;
font-size: 34px;
font-weight: 700;
}
/* back button on related products carousel */
.geRExE.kaHnvc.sc-bZQynM.sc-ifAKCX button {
background-color: transparent;
color: black;
border: transparent;
font-size: 34px;
font-weight: 700;
}
#star-rating {
visibility: hidden;
}
#description-hidden {
display: none;
}
.feature-check {
font-family: FontAwesome;
}
.feature-check::before {
content: "\f00c \00a0\00a0";
}
#ratings-reviews {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: center;
}
#navbar {
height: 4.5em;
background-color: var(--font-color);
margin-bottom: 1em;
box-shadow: 0px 1px #dededf;
display: flex;
justify-content: flex-start;
align-items: flex-end;
}
#navbar img {
bottom: 0;
margin: 1em;
}
#garf {
margin: auto;
position: absolute;
left: 0;
right: 0;
z-index: 1;
size: 25vh;
}
/*
#review-progress {
margin-left: 10px;
width: 50%;
background-color: grey;
} */
/* #review-bar {
margin-left: 10px;
width: 0%;
height: 10px;
background-color: black;
} */
#garf-text {
margin: auto;
position: absolute;
left: 0;
right: 0;
top: 26vh;
width: 10em;
}
#style-btns {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 44vh;
}
.style-btn {
border-radius: 50%;
white-space: nowrap;
font-size: 5em;
border: none;
width: 9vh;
height: 9vh;
background-repeat: no-repeat;
background-position: center;
border: 1px solid var(--font-color);
position: relative;
outline: none;
margin: 1vh;
}
.style-btn:hover {
cursor: pointer;
}
.checkmark {
font-family: FontAwesome;
vertical-align: center;
text-align: center;
top: 0;
right: 0;
width: 2vh;
height: 2vh;
border: 1px solid var(--font-color);
background-color: white;
border-radius: 50%;
position: absolute;
}
.checkmark i {
position: relative;
color: var(--font-color);
font-size: 2vh;
position: absolute;
top: 0;
right: 0;
}
.disabled {
display: none;
}
#selected-outer {
font-weight: 800;
}
#selected-label {
font-weight: 300;
}
.normal-price,
.discounted-price {
margin-top: 0;
font-size: 1.8vh;
}
.original-price,
.normal-price {
color: var(--font-color);
font-weight: 300;
}
.original-price {
text-decoration: line-through;
}
.discounted-price {
color: red;
font-weight: 300;
}
#app-inner {
padding: 3vh;
}
#image-gallery, #image-gallery-expanded {
width: 100vh;
height: 80vh;
background-repeat: no-repeat;
background-position: center;
background-color: gray;
background-size: auto 100%;
position: relative;
}
#image-gallery-expanded, #zoomed {
width: 100%;
}
#zoomed {
background-size: 250%;
}
#image-carousel, #image-carousel-icons {
display: flex;
flex-direction: column;
height: 90%;
overflow: hidden;
margin-top: 3.5vh;
user-select: none;
}
#image-carousel-icons {
margin-top: 8vh;
}
.gallery-img, .gallery-img-selected {
display: flex;
align-items: flex-start;
justify-content: center;
margin-top: 2vh;
margin-left: 2vh;
min-height: 8vh;
overflow: auto;
overflow: hidden;
width: 8vh;
height: 8vh;
background-color: var(--font-color);
border: 1px solid black;
cursor: pointer;
}
.gallery-img-selected {
border-bottom: 5px solid white;
}
.gallery-img img, .gallery-img-selected img {
width: 200%;
height: auto;
}
.fa-chevron-down,
.fa-chevron-up {
position: absolute;
font-size: 2vh;
color: white;
left: 5vh;
cursor: pointer;
user-select: none;
color: white;
}
.fa-chevron-down {
bottom: 2.5vh;
}
.fa-chevron-up {
top: 3vh;
}
#overview-top {
display: flex;
justify-content: center;
}
#prod-info-wrapper {
display: flex;
flex-direction: column;
justify-content: flex-start;
margin-left: 3vh;
margin-top: 3vh;
}
#prod-info-wrapper-hidden {
display: none;
}
#prod-overview {
display: flex;
justify-content: center;
width: 60%;
margin: 4vh auto;
}
#features {
width: 20%;
display: inline-block;
}
#description {
width: 80%;
border-right: 2px solid var(--font-light);
padding-right: 3vh;
display: inline-block;
}
.feature {
font-weight: 300;
}
.fa-arrow-right,
.fa-arrow-left {
position: absolute;
font-size: 2vh;
color: white;
top: 50%;
cursor: pointer;
user-select: none;
color: white;
}
.fa-arrow-right {
right: 5vh;
}
.fa-arrow-left {
left: 11vh;
}
/*
start of review component styles
*/
/*
start review card styles
*/
.full-browser {
width: 50%;
margin-right: 15%;
margin-top: 6%;
max-height: 100vh;
}
.review-browser {
/* display: inline-block; */
margin-top: 15px;
max-height: 600px;
/*
overflow-y: hidden;
overflow-x: hidden; */
word-wrap: break-word;
}
.review-list {
overflow-y: scroll;
max-height: 100vh;
max-width: 100%;
width: 100%;
}
.select-div {
display: flex;
}
.sort-select {
outline: none;
display: inline-block;
/* border: none; */
border: 2px solid black;
background-color: white;
}
.helpful-report {
font-size: 0.6em;
display: flex;
margin-bottom: 2%;
}
.container-full {
width: 100%;
display: flex;
justify-content: flex-end;
}
.review-card-stars {
margin-right: auto;
}
.review-card-name-date {
/* display: flex; */
font-size: 0.8em;
justify-content: end;
}
.review-card-summary {
max-width: 90%;
font-weight: 600;
font-size: 1.2em;
color: var(--font-color);
}
.review-body-text {
font-weight: 100;
font-size: 1em;
max-width: 90%;
color: var(--font-color);
}
.review-item {
margin-top: 30px;
border-bottom: 1px solid black;
/* border: 2px solid black; */
/* border-radius: 2px; */
width: -webkit-fill-available;
display: flex;
flex-direction: column;
}
/*
end review card styles
:active
*/
#add-review-button {
display: flex;
flex-direction: row;
}
#review-paginate-button {
outline: none;
/* display: inline-block; */
/* border: none; */
border: 1px solid black;
background-color: white;
margin-top: 40px;
margin-right: 20px;
height: 60px;
width: 155px;
font-weight: 650;
font-size: 1em;
}
#review-paginate-button:active {
outline: none;
/* display: inline-block; */
/* border: none; */
border: 1px solid black;
background-color: black;
margin-top: 40px;
margin-right: 20px;
height: 60px;
width: 155px;
font-weight: 650;
font-size: 1em;
color: white;
}
#review-submit-button {
outline: none;
/* display: inline-block; */
/* border: none; */
border: 1px solid black;
background-color: white;
margin-top: 40px;
height: 60px;
width: 185px;
font-weight: 650;
font-size: 1em;
}
#review-submit-button:active {
outline: none;
/* display: inline-block; */
/* border: none; */
border: 1px solid black;
background-color: black;
margin-top: 40px;
height: 60px;
width: 185px;
font-weight: 650;
font-size: 1em;
font-size: 1em;
color: white;
}
.browser-button-block {
display: flex;
}
button {
display: inline-block;
}
.star-filter-selectors {
display: flex;
flex-direction: row;
}
.star-filter-text {
font-weight: 300;
font-size: 1em;
}
.review-progress {
margin-top: 11.5px;
margin-left: 10px;
height: 10px;
width: 50%;
background-color: #ebebeb;
}
.review-bar {
/* margin-left: 10px; */
width: 0%;
height: 10px;
background-color: #525252;
}
.review-breakdown {
/* display: inline-block; */
width: 30%;
text-align: left;
vertical-align: top;
padding: 5px;
margin-left: 15%;
display: flex;
flex-direction: column;
}
/*
.review-breakdown-star-block {
} */
.char-slider {
display: flex;
min-width: 100%;
}
.char-empty-slider-segment {
display: inline-block;
padding: 4px;
}
.char-slider-segment {
z-index: -1;
position: relative;
background-color: #ebebeb;
min-width: 70px;
height: 7px;
display: inline-block;
top: 25%;
}
.fas.fa-caret-down {
position: relative;
/* z-index: 2; */
}
.single-stars-outer {
display: inline-block;
position: relative;
font-family: FontAwesome;
}
.single-stars-outer::before {
content: "\f005 ";
color: var(--font-color);
}
.single-stars-inner {
position: absolute;
top: 0;
left: 0;
white-space: nowrap;
overflow: hidden;
font-style: solid;
color: var(--font-color);
}
.single-stars-inner::before {
content: "\f005 ";
}
.inline-div {
display: inline-block;
}
.click-text {
text-decoration: underline;
}
/*
end of review component styles
*/
.dropdown-opened {
position: absolute;
height: 100%;
}
.dropdown-closed {
position: relative;
height: 0%;
}
#add-to-cart {
display: flex;
flex-wrap: wrap;
width: 50vh;
}
#size-selector {
width: 70%;
}
#qty-selector {
width: 20%;
}
#add-to-bag {
width: 75%;
}
#heart-btn {
width: 15%;
}
.cart-btns {
background-color: white;
padding: 1em;
margin: 1vh;
text-align: left;
font-size: 2vh;
color: var(--font-color);
border: 1px solid var(--font-color);
text-align: center;
text-decoration: none;
cursor: pointer;
font-weight: bold;
outline: none;
}
.cart-btns:active {
color: white;
background-color: var(--font-color);
}
#reviews-link {
margin-left: 1vh;
}
#share-buttons {
display: flex;
justify-content: flex-start;
width: 30%;
}
.fa-expand {
position: absolute;
top: 1vh;
right: 1vh;
font-size: 2vh;
color: white;
cursor: pointer;
user-select: none;
text-decoration: none;
outline: none;
}
.gallery-img-icon, .gallery-img-icon-selected {
width: 5vh;
height: 5vh;
position: relative;
margin: 0 0 5vh 5vh;
color: white;
cursor: pointer;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment