main
Last change
on this file since 75f74d9 was 75f74d9, checked in by Vlado 222039 <vlado.popovski@…>, 6 weeks ago |
Initial commit: Adding Book Tracker code
|
-
Property mode
set to
100644
|
File size:
2.6 KB
|
Rev | Line | |
---|
[75f74d9] | 1 | /* General Styles */
|
---|
| 2 | .container {
|
---|
| 3 | max-width: 1200px;
|
---|
| 4 | margin: 0 auto;
|
---|
| 5 | padding: 20px;
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | .breadcrumb {
|
---|
| 9 | margin-bottom: 20px;
|
---|
| 10 | font-size: 14px;
|
---|
| 11 | color: #555;
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | .breadcrumb a {
|
---|
| 15 | text-decoration: none;
|
---|
| 16 | color: #007bff;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | .breadcrumb a:hover {
|
---|
| 20 | text-decoration: underline;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | /* Cart Page Styles */
|
---|
| 24 | .cart-page {
|
---|
| 25 | display: flex;
|
---|
| 26 | flex-direction: column;
|
---|
| 27 | gap: 30px;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | .cart-page h1 {
|
---|
| 31 | font-size: 28px;
|
---|
| 32 | color: #333;
|
---|
| 33 | margin-bottom: 20px;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | .cart-items {
|
---|
| 37 | display: flex;
|
---|
| 38 | flex-direction: column;
|
---|
| 39 | gap: 20px;
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | .cart-item {
|
---|
| 43 | display: flex;
|
---|
| 44 | align-items: center;
|
---|
| 45 | border: 1px solid #ddd;
|
---|
| 46 | border-radius: 8px;
|
---|
| 47 | padding: 15px;
|
---|
| 48 | gap: 20px;
|
---|
| 49 | background-color: #f9f9f9;
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | .cart-item-image img {
|
---|
| 53 | width: 100px;
|
---|
| 54 | height: 150px;
|
---|
| 55 | object-fit: cover;
|
---|
| 56 | border-radius: 4px;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | .cart-item-info {
|
---|
| 60 | flex: 1;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | .cart-item-info h2 {
|
---|
| 64 | font-size: 18px;
|
---|
| 65 | margin: 0 0 5px;
|
---|
| 66 | color: #333;
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | .cart-item-info p {
|
---|
| 70 | font-size: 14px;
|
---|
| 71 | margin: 5px 0;
|
---|
| 72 | color: #666;
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 | .cart-item-info a {
|
---|
| 76 | color: #007bff;
|
---|
| 77 | text-decoration: none;
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | .cart-item-info a:hover {
|
---|
| 81 | text-decoration: underline;
|
---|
| 82 | }
|
---|
| 83 |
|
---|
| 84 | .cart-item-actions {
|
---|
| 85 | text-align: right;
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | .cart-item-actions .btn {
|
---|
| 89 | font-size: 14px;
|
---|
| 90 | padding: 8px 12px;
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | .cart-item-actions .btn-secondary {
|
---|
| 94 | background-color: #f44336;
|
---|
| 95 | color: #fff;
|
---|
| 96 | border: none;
|
---|
| 97 | border-radius: 4px;
|
---|
| 98 | cursor: pointer;
|
---|
| 99 | }
|
---|
| 100 |
|
---|
| 101 | .cart-item-actions .btn-secondary:hover {
|
---|
| 102 | background-color: #d32f2f;
|
---|
| 103 | }
|
---|
| 104 |
|
---|
| 105 | /* Cart Summary Styles */
|
---|
| 106 | .cart-summary {
|
---|
| 107 | border: 1px solid #ddd;
|
---|
| 108 | border-radius: 8px;
|
---|
| 109 | padding: 20px;
|
---|
| 110 | background-color: #f9f9f9;
|
---|
| 111 | max-width: 400px;
|
---|
| 112 | margin-left: auto;
|
---|
| 113 | }
|
---|
| 114 |
|
---|
| 115 | .cart-summary h2 {
|
---|
| 116 | font-size: 20px;
|
---|
| 117 | margin-bottom: 20px;
|
---|
| 118 | color: #333;
|
---|
| 119 | }
|
---|
| 120 |
|
---|
| 121 | .summary-item {
|
---|
| 122 | display: flex;
|
---|
| 123 | justify-content: space-between;
|
---|
| 124 | margin-bottom: 10px;
|
---|
| 125 | font-size: 16px;
|
---|
| 126 | font-weight: 600;
|
---|
| 127 | color: #555;
|
---|
| 128 | }
|
---|
| 129 |
|
---|
| 130 | .summary-item:last-child {
|
---|
| 131 | margin-bottom: 0;
|
---|
| 132 | }
|
---|
| 133 |
|
---|
| 134 | .cart-summary .btn-primary {
|
---|
| 135 | display: block;
|
---|
| 136 | width: 100%;
|
---|
| 137 | background-color: #007bff;
|
---|
| 138 | color: #fff;
|
---|
| 139 | font-size: 16px;
|
---|
| 140 | padding: 10px;
|
---|
| 141 | border: none;
|
---|
| 142 | border-radius: 4px;
|
---|
| 143 | text-align: center;
|
---|
| 144 | cursor: pointer;
|
---|
| 145 | margin-top: 20px;
|
---|
| 146 | }
|
---|
| 147 |
|
---|
| 148 | .cart-summary .btn-primary:hover {
|
---|
| 149 | background-color: #0056b3;
|
---|
| 150 | }
|
---|
| 151 |
|
---|
| 152 | /* Responsive Design */
|
---|
| 153 | @media (max-width: 768px) {
|
---|
| 154 | .cart-item {
|
---|
| 155 | flex-direction: column;
|
---|
| 156 | align-items: flex-start;
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | .cart-item-image img {
|
---|
| 160 | width: 100%;
|
---|
| 161 | height: auto;
|
---|
| 162 | }
|
---|
| 163 |
|
---|
| 164 | .cart-summary {
|
---|
| 165 | margin-left: 0;
|
---|
| 166 | margin-top: 20px;
|
---|
| 167 | }
|
---|
| 168 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.