Finished checkout page and added a prototype sidebar

This commit is contained in:
CodeServer
2021-08-05 14:08:57 +01:00
parent 6f08764bc0
commit 8a59de3d6f
21 changed files with 650 additions and 199 deletions
+1
View File
@@ -10,6 +10,7 @@
.shopping-footer
background-color: grey
padding-left: 10%
margin-top: 2%
h1
color: #fff
font-size: 35px
+21 -7
View File
@@ -21,6 +21,11 @@
a
color: $button-color
text-decoration: none
.my-floating-btn.active
display: block
#index-my-floating-btn
button
float: right
border-radius: 50%
@@ -29,20 +34,29 @@
width: 100%
position: fixed
.my-floating-btn.active
display: block
#shopping-my-floating-btn
button
float: right
border-radius: 50%
margin-right: 20px
top: 90%
width: 100%
position: fixed
.cart_button_1
.cart_button_1, .checkout_back_button, .productDetail_back_button
color: OliveDrab
border-color: OliveDrab
background-color: transparent
.cart_button_2
.cart_button_2, .checkout_confirm_button, .productDetail_add_button
// color: DarkGrey
border-color: $button-border-color
background-color: OliveDrab
.cart_button_1:hover
.cart_button_1:hover, .checkout_back_button:hover, .productDetail_back_button:hover
border-color: $button-border-color
background-color: $button-border-color
.cart_button_2:hover
.cart_button_2:hover, .checkout_confirm_button:hover, .productDetail_add_button:hover
border-color: $button-border-color
background-color: $button-border-color
background-color: $button-border-color
+13 -1
View File
@@ -15,6 +15,17 @@
a
text-decoration: none
#checkoutModal
h1
text-align: center
.checkMarkIcon
text-align: center
color: green
font-size: 1200%
.checkMarkIcon:before
font-family: 'FontAwesome'
content: '\f058'
@media (max-width: 483px)
#logInModal, #registerModal
.mb-3
@@ -26,4 +37,5 @@
button
width: 100%;
margin-left: 10%
margin-right: 10%
margin-right: 10%
+6 -1
View File
@@ -27,5 +27,10 @@
.cart_deleteP
text-align: right
a
color: black
font-size: 1.3rem
font-family: cursive
text-decoration: none
+43
View File
@@ -0,0 +1,43 @@
.sectionShopping
div.checkoutProduct, table.checkoutTable
width: 100%
height: 100%
text-align: justify
div.checkoutProduct:after, table.checkoutTable:after
content: ""
display: inline-block
overflow: hidden
width: 100%
div.checkoutProduct
table.checkoutTable .tr_title
font-family: $font-slabo
div.customerInformation
margin-top: 10px
text-align: left
div.customer-col
border: 1px solid grey
margin: 20px 0px
div.checkoutComfirm
div.customer-col
text-align: right
margin-bottom: 20px
div.checkoutSubtotal
div.customer-col
text-align: right
margin-bottom: 20px
span.checkout_subtotalPrice
font-size: 3.2rem
font-weight: bold
color: oliveDrab
+2 -1
View File
@@ -35,9 +35,10 @@
// #span-shopping-username:active
// outline: none
#btn-shopping-logout
position: absolute
position: fixed
right: 1rem
top: 1rem
#span-shopping-username:before
font-family: 'FontAwesome'
+20 -2
View File
@@ -1,7 +1,6 @@
.sectionShopping
div.customerInformation
text-align: left
background-color: $index-background-color
.row
padding-left: 20%
@@ -31,6 +30,25 @@
text-align: center
color: OliveDrab
.shopping_productDetails
div.row
padding: 0
.productDetail-col
div.row:first-of-type
h2
color: OliveDrab
margin-bottom: 15%
div.row:nth-child(2)
margin-bottom: 15%
div.row:last-of-type
margin-top: 2%
div.quantity
display: inline-block
text-align: right
input
height: 100%
a.productDetail_back_button,input.productDetail_add_button
width: 100%
.shopping_productPrice
color: OliveDrab
+3 -1
View File
@@ -1,4 +1,6 @@
@import "sectionShopping"
@import "navbar_shopping"
@import "footer"
@import "cart"
@import "cart"
@import "checkout"
@import "shopping"
+78
View File
@@ -0,0 +1,78 @@
.wrapper_shopping
div.container-fluid
display: flex
align-items: stretch
a, a:hover, a:focus
color: OliveDrab
text-decoration: none
transition: all 0.3s
// #sidebarCollapse
// z-index: 999
div.sectionShopping nav.shopping_pageNav a.page-link
color: $navbar-text-color
nav#sidebar
min-width: 250px
max-width: 250px
transition: all 0.3s
background-color: white
z-index: -1
ul.components
padding: 20px 0
border-bottom: 1px solid #47748b
div.sidebar-header
padding: 20px
background-color: DimGrey
div.sidebar-header h3
color: white
ul li a
padding: 10px
font-size: 1.1em
display: block
ul li a:hover
color: mediumSeaGreen
background-color: Gainsboro
ul li.active > a, a[aria-expanded="true"]
color: #fff
background: Gainsboro
a[data-toggle="collapse"]
position: relative
ul ul a
font-size: 0.9em !important
padding-left: 30px !important
ul.CTAs
padding: 20px
ul.CTAs a
text-align: center
font-size: 0.9em
display: block
border-radius: 5px
margin-bottom: 5px
a.download
background: #fff
color: #7386D5
a.article, a.article:hover
background: #6d7fcc
color: #fff
nav#sidebar.active
margin-right: -250px
+141 -15
View File
@@ -126,6 +126,7 @@ video {
.shopping-footer {
background-color: grey;
padding-left: 10%;
margin-top: 2%;
}
.shopping-footer h1 {
@@ -181,9 +182,6 @@ video {
.my-floating-btn {
display: none;
top: 90%;
width: 100%;
position: fixed;
}
.my-floating-btn a {
@@ -191,33 +189,51 @@ video {
text-decoration: none;
}
.my-floating-btn button {
.my-floating-btn.active {
display: block;
}
#index-my-floating-btn {
top: 90%;
width: 100%;
position: fixed;
}
#index-my-floating-btn button {
float: right;
border-radius: 50%;
margin-right: 20px;
}
.my-floating-btn.active {
display: block;
#shopping-my-floating-btn {
top: 90%;
width: 100%;
position: fixed;
}
.cart_button_1 {
#shopping-my-floating-btn button {
float: right;
border-radius: 50%;
margin-right: 20px;
}
.cart_button_1, .checkout_back_button, .productDetail_back_button {
color: OliveDrab;
border-color: OliveDrab;
background-color: transparent;
}
.cart_button_2 {
.cart_button_2, .checkout_confirm_button, .productDetail_add_button {
border-color: rgba(255, 255, 255, 0.3);
background-color: OliveDrab;
}
.cart_button_1:hover {
.cart_button_1:hover, .checkout_back_button:hover, .productDetail_back_button:hover {
border-color: rgba(255, 255, 255, 0.3);
background-color: rgba(255, 255, 255, 0.3);
}
.cart_button_2:hover {
.cart_button_2:hover, .checkout_confirm_button:hover, .productDetail_add_button:hover {
border-color: rgba(255, 255, 255, 0.3);
background-color: rgba(255, 255, 255, 0.3);
}
@@ -244,6 +260,21 @@ video {
text-decoration: none;
}
#checkoutModal h1 {
text-align: center;
}
#checkoutModal .checkMarkIcon {
text-align: center;
color: green;
font-size: 1200%;
}
#checkoutModal .checkMarkIcon:before {
font-family: 'FontAwesome';
content: '\f058';
}
@media (max-width: 483px) {
#logInModal .mb-3, #registerModal .mb-3 {
width: 90%;
@@ -388,10 +419,6 @@ video {
background-color: #edeae8;
}
.sectionShopping div.customerInformation {
text-align: left;
}
.sectionShopping .row {
padding-left: 20%;
padding-right: 20%;
@@ -429,6 +456,39 @@ video {
color: OliveDrab;
}
.sectionShopping .shopping_productDetails div.row {
padding: 0;
}
.sectionShopping .shopping_productDetails .productDetail-col div.row:first-of-type {
margin-bottom: 15%;
}
.sectionShopping .shopping_productDetails .productDetail-col div.row:first-of-type h2 {
color: OliveDrab;
}
.sectionShopping .shopping_productDetails .productDetail-col div.row:nth-child(2) {
margin-bottom: 15%;
}
.sectionShopping .shopping_productDetails .productDetail-col div.row:last-of-type {
margin-top: 2%;
}
.sectionShopping .shopping_productDetails .productDetail-col div.quantity {
display: inline-block;
text-align: right;
}
.sectionShopping .shopping_productDetails .productDetail-col div.quantity input {
height: 100%;
}
.sectionShopping .shopping_productDetails .productDetail-col a.productDetail_back_button, .sectionShopping .shopping_productDetails .productDetail-col input.productDetail_add_button {
width: 100%;
}
.sectionShopping .shopping_productPrice {
color: OliveDrab;
}
@@ -480,7 +540,7 @@ video {
}
.shopping_headerNav #btn-shopping-logout {
position: absolute;
position: fixed;
right: 1rem;
top: 1rem;
}
@@ -529,4 +589,70 @@ video {
.sectionShopping #shopping_cart .cart_deleteP {
text-align: right;
}
.sectionShopping #shopping_cart .cart_deleteP a {
color: black;
font-size: 1.3rem;
font-family: cursive;
text-decoration: none;
}
.sectionShopping div.checkoutProduct, .sectionShopping table.checkoutTable {
width: 100%;
height: 100%;
text-align: justify;
}
.sectionShopping div.checkoutProduct:after, .sectionShopping table.checkoutTable:after {
content: "";
display: inline-block;
overflow: hidden;
width: 100%;
}
.sectionShopping div.checkoutProduct table.checkoutTable .tr_title {
font-family: "Slabo";
}
.sectionShopping div.customerInformation {
margin-top: 10px;
text-align: left;
}
.sectionShopping div.customerInformation div.customer-col {
border: 1px solid grey;
margin: 20px 0px;
}
.sectionShopping div.checkoutComfirm div.customer-col {
text-align: right;
margin-bottom: 20px;
}
.sectionShopping div.checkoutSubtotal div.customer-col {
text-align: right;
margin-bottom: 20px;
}
.sectionShopping div.checkoutSubtotal div.customer-col span.checkout_subtotalPrice {
font-size: 3.2rem;
font-weight: bold;
color: oliveDrab;
}
.wrapper_shopping div.container-fluid {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
}
.wrapper_shopping div.container-fluid a, .wrapper_shopping div.container-fluid a:hover, .wrapper_shopping div.container-fluid a:focus {
color: OliveDrab;
text-decoration: none;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
/*# sourceMappingURL=style.css.map */
+4 -2
View File
File diff suppressed because one or more lines are too long