Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Jan 17, 2025
1 parent 16de94b commit aedf039
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 33 deletions.
28 changes: 19 additions & 9 deletions frontend/public/scss/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -279,52 +279,62 @@ button.btn-secondary.unstyled {

.modal-dialog {
font-family: Inter;

.modal-header {
border-bottom: none;

.btn-close {
border-radius: 100px;
color: $home-page-header-blue;
background-color: $home-page-grey-lite;
opacity: 0.7;
font-size: 13px;
}

.btn-close:hover {
color: $brand-darker-bg;
opacity: 1;
}
}

.modal-content {
padding: 5px 14px;
padding: 8px 14px;
font-size: 15px;
}
}

.modal-title {
font-family: Poppins, sans-serif;
font-weight: 700;
font-size: 24px;
}

}
.modal-subheader {
margin-top: -20px;
}

.float-container {
float: right;
margin-top: 30px;

button {
margin-left: 16px;
font-family: Poppins;
font-size: 14px;
font-weight: 600;
line-height: 21px;
text-align: center;
padding: 10px 25px;
font-size: 20px;
font-weight: 700;
line-height: 24.2px;
}

button.cancel {
background-color: inherit;
color: inherit;
}

button.close-dialog-btn {
border: none;
}
}
}
input[type=checkbox] {
accent-color: $brand-darker-bg;
width: 20px;
Expand Down Expand Up @@ -359,8 +369,8 @@ button.btn.btn-gradient-red-to-blue:hover, a.btn.btn-gradient-red-to-blue:hover,

button.btn.btn-gradient-white-to-blue, a.btn.btn-gradient-white-to-blue {
color: $home-page-header-blue;
border: 1px solid $home-page-border-grey;
background: white;
border: none;
background: $home-page-grey-lite;
transition: 0.25s;
}

Expand Down
23 changes: 10 additions & 13 deletions frontend/public/scss/product-page/product-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -865,13 +865,6 @@ body.new-design {
}

.added-to-cart-modal {
.close-dialog-btn {
border: none;
font-size: 20px;
font-weight: 700;
line-height: 24.2px;

}

.go-to-cart-btn-text {

Expand All @@ -882,14 +875,18 @@ body.new-design {
padding: 11px 16px 11px 16px;
border-radius: 4px 0px 0px 0px;
opacity: 90%;
font-size: 14px;
font-weight: 700;
line-height: 18px;
text-align: left;


}
.green-checked-icon {
background-image: url("/static/images/shopping-cart-line.svg");
.green_check_circle {
display: inline-block;
filter: invert(100%) sepia(95%) saturate(0%) hue-rotate(19deg) brightness(103%) contrast(100%);
vertical-align: super;
width: 24px;
height: 24px;
vertical-align: middle;
width: 16px;
height: 16px;
margin-right: 10px
}
}
23 changes: 12 additions & 11 deletions frontend/public/src/components/CourseProductDetailEnroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,18 +271,19 @@ export class CourseProductDetailEnroll extends React.Component<
</ModalHeader>
<ModalBody>
<div className="green-label">
<span className="green-checked-icon"/>><strong>{course && course.title}</strong> added to your cart.
<img className="green_check_circle" src="/static/images/check_circle.svg" alt="Check" /><strong>{course && course.title}</strong> added to your
cart.
</div>
<div className="col-md-6 col-sm-12 pr-0">
<button className="close-dialog-btn">Close</button>
<button
type="submit"
className="btn btn-upgrade btn-gradient-red-to-blue"
>
<div className="go-to-cart-btn-text">
<strong>Go to Cart</strong>
</div>
</button>
<div className="float-container">
<button className="btn btn-gradient-white-to-blue btn-secondary close-dialog-btn">Close</button>
<button
type="submit"
className="btn btn-upgrade btn-gradient-red-to-blue btn-secondary"
>
<div className="go-to-cart-btn-text">
<strong>Go to Cart</strong>
</div>
</button>
</div>
</ModalBody>
</Modal>
Expand Down
1 change: 1 addition & 0 deletions static/images/check_circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aedf039

Please sign in to comment.