aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/static/scss/custom.scss
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-20 16:42:21 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-20 16:42:21 +0100
commitfce28f5be8ba8831eed5ccf482fa2abf5432ee89 (patch)
tree3f0260c44accb04fa46f1e493bed466fff31c871 /alphabetlearning/static/scss/custom.scss
parent791cf758caaf25a9375005bdd7f699e614729823 (diff)
Cart shows items in it; disables buttons if item in basket
- Rough cart icon in navbar - Shows items in cart - Styled dependent on existence - Add to cart buttons disabled if resource in cart, on resource list page and detail page - Throws 404 error if trying add item to cart which has no price - eventually all items will have a price
Diffstat (limited to 'alphabetlearning/static/scss/custom.scss')
-rw-r--r--alphabetlearning/static/scss/custom.scss24
1 files changed, 24 insertions, 0 deletions
diff --git a/alphabetlearning/static/scss/custom.scss b/alphabetlearning/static/scss/custom.scss
index b65db4c..789e00d 100644
--- a/alphabetlearning/static/scss/custom.scss
+++ b/alphabetlearning/static/scss/custom.scss
@@ -93,6 +93,30 @@ $ml-font-label-weight: 500;
.asteriskField {
color: red;
}
+
+// for the SVG icons
+.gray-icon {
+ svg {
+ path {
+ fill: #808080; /* Adjust this hex value to any desired shade of gray */
+ }
+ }
+}
+
+.empty-basket-button {
+ background-color: lightgray;
+ border: none;
+ padding: 8px;
+ display: flex;
+}
+
+.full-basket-button {
+ background-color: lightgreen;
+ border: none;
+ padding: 8px;
+ display: flex;
+}
+
// 6. Add additional Bootstrap components as needed
@import "alert";
@import "card";