Browse Source

Clean CSS

- Remove unnecessary CSS
- Correct indentation
- Split into smaller files

Fixes #895
master
Jon Price 12 years ago
parent
commit
a0ef7635be

+ 3
- 0
oscar/static/oscar/css/responsive.css View File

@@ -1158,6 +1158,9 @@
1158 1158
     width: auto;
1159 1159
     min-height: 0;
1160 1160
   }
1161
+  .basket-items img {
1162
+    margin: 0 0 10px;
1163
+  }
1161 1164
   .nav-checkout .previous span,
1162 1165
   .nav-checkout .visited,
1163 1166
   .nav-checkout .disabled {

+ 294
- 550
oscar/static/oscar/css/styles.css View File

@@ -6172,28 +6172,71 @@ body {
6172 6172
 .page_inner:after {
6173 6173
   clear: both;
6174 6174
 }
6175
-h1 {
6176
-  font-size: 30px;
6177
-  line-height: 40px;
6175
+h1,
6176
+h2,
6177
+h3,
6178
+h4,
6179
+h5,
6180
+h6,
6181
+p,
6182
+form,
6183
+.control-group,
6184
+.table,
6185
+.page-header,
6186
+.sub-header {
6187
+  margin: 0 0 20px;
6178 6188
 }
6179
-h2 {
6180
-  font-size: 24px;
6189
+ul,
6190
+ol {
6191
+  margin-bottom: 20px;
6192
+}
6193
+.page-header h1,
6194
+.sub-header h1,
6195
+.table h1,
6196
+.page-header h2,
6197
+.sub-header h2,
6198
+.table h2,
6199
+.page-header h3,
6200
+.sub-header h3,
6201
+.table h3,
6202
+.page-header h4,
6203
+.sub-header h4,
6204
+.table h4,
6205
+.page-header h5,
6206
+.sub-header h5,
6207
+.table h5,
6208
+.page-header h6,
6209
+.sub-header h6,
6210
+.table h6,
6211
+.page-header form,
6212
+.sub-header form,
6213
+.table form {
6214
+  margin-bottom: 0;
6215
+}
6216
+h1,
6217
+.h1 {
6218
+  font-size: 30.099999999999998px;
6181 6219
   line-height: 40px;
6182 6220
 }
6183
-h3 {
6184
-  font-size: 18px;
6185
-  line-height: 20px;
6221
+h2,
6222
+.h2 {
6223
+  font-size: 24.5px;
6224
+  line-height: 40px;
6186 6225
 }
6187
-h4 {
6188
-  font-size: 16px;
6189
-  line-height: 20px;
6226
+h3,
6227
+.h3 {
6228
+  font-size: 17.5px;
6229
+  line-height: 24px;
6190 6230
 }
6191
-.page-header,
6192
-.sub-header {
6193
-  margin: 0 0 30px;
6231
+h4,
6232
+.h4 {
6233
+  font-size: 16.099999999999998px;
6234
+  line-height: 24px;
6194 6235
 }
6195
-.well .sub-header {
6196
-  margin: 0 0 20px;
6236
+h5,
6237
+.h5 {
6238
+  font-size: 14px;
6239
+  line-height: 20px;
6197 6240
 }
6198 6241
 .sub-header {
6199 6242
   padding-bottom: 9px;
@@ -6201,73 +6244,16 @@ h4 {
6201 6244
 }
6202 6245
 .page-header h1,
6203 6246
 .page-header h2 {
6204
-  font-size: 30px;
6247
+  font-size: 29.96px;
6205 6248
   line-height: 40px;
6206
-  margin: 0;
6207 6249
 }
6208 6250
 .sub-header h2,
6209 6251
 .sub-header h3,
6210 6252
 .sub-header h4 {
6211
-  font-size: 22px;
6212
-  line-height: 24px;
6213
-  margin: 0;
6214
-}
6215
-.price_color {
6216
-  display: block;
6217
-  color: #46a546;
6218
-  font-weight: bold;
6219
-}
6220
-.product_pod .price_color {
6221
-  margin-top: 0;
6222
-}
6223
-.es-carousel .price_color {
6224
-  font-size: 20px;
6225
-}
6226
-.navbar.primary {
6227
-  margin-bottom: 0px;
6228
-}
6229
-.navbar.primary .brand.hidden {
6230
-  display: none;
6231
-}
6232
-.navbar.primary .form-search .btn {
6233
-  margin-top: 0px;
6234
-}
6235
-.header .page_inner {
6236
-  padding: 50px 0 40px;
6237
-}
6238
-.well {
6239
-  *zoom: 1;
6240
-}
6241
-.well:before,
6242
-.well:after {
6243
-  display: table;
6244
-  content: "";
6245
-  line-height: 0;
6246
-}
6247
-.well:after {
6248
-  clear: both;
6249
-}
6250
-.well-success {
6251
-  background-color: #dff0d8;
6252
-  border-color: #d6e9c6;
6253
-}
6254
-.well-danger {
6255
-  background-color: #f2dede;
6256
-  border-color: #eed3d7;
6257
-}
6258
-.well-info {
6259
-  background-color: #d9edf7;
6260
-  border-color: #bce8f1;
6261
-}
6262
-.well-blank {
6263
-  background-color: #ffffff;
6264
-  border-color: rgba(0, 0, 0, 0.1);
6265
-}
6266
-.well-rm-padding {
6267
-  padding: 19px 0;
6268
-}
6269
-.pull-clear {
6270
-  clear: both;
6253
+  font-size: 22.400000000000002px;
6254
+  line-height: 30px;
6255
+  font-weight: normal;
6256
+  color: #333333;
6271 6257
 }
6272 6258
 .align-right,
6273 6259
 .table .align-right,
@@ -6310,346 +6296,61 @@ form:after {
6310 6296
   position: relative;
6311 6297
   z-index: 2;
6312 6298
 }
6299
+.header .page_inner {
6300
+  padding: 50px 0 40px;
6301
+}
6313 6302
 .header h1 {
6314 6303
   line-height: inherit;
6315 6304
   margin: 0;
6316 6305
   font-size: 30px;
6317 6306
 }
6318
-.cart {
6319
-  margin: 0px;
6320
-  *zoom: 1;
6321
-}
6322
-.cart:before,
6323
-.cart:after {
6324
-  display: table;
6325
-  content: "";
6326
-  line-height: 0;
6327
-}
6328
-.cart:after {
6329
-  clear: both;
6330
-}
6331
-.cart .cart_summary strong {
6332
-  padding: 4px 10px 4px;
6333
-  display: block;
6334
-}
6335
-.cart .cart_summary strong span {
6336
-  font-weight: normal;
6337
-}
6338
-.cart li {
6339
-  display: block;
6340
-  float: right;
6307
+#language_selector select {
6308
+  width: 100px;
6341 6309
 }
6342
-.cart li .btn-group {
6343
-  white-space: normal;
6310
+.basket-mini .btn-group {
6311
+  margin-left: 10px;
6344 6312
 }
6345
-.cart li .btn-group .dropdown-menu {
6313
+.basket-mini .dropdown-menu {
6346 6314
   width: 400px;
6347 6315
   padding-bottom: 0px;
6348 6316
   max-width: none;
6349 6317
 }
6350
-.cart li .btn-group .dropdown-menu li {
6351
-  float: none;
6318
+.basket-mini .dropdown-menu li {
6352 6319
   display: block;
6353 6320
 }
6354
-.basket_item {
6355
-  margin: 0px;
6356
-}
6357
-.basket_item li {
6358
-  width: auto;
6321
+.basket-mini-item li {
6359 6322
   border-top: 1px solid #eeeeee;
6360 6323
   padding: 10px 15px;
6361 6324
 }
6362
-.basket_item li:first-child {
6325
+.basket-mini-item li:first-child {
6363 6326
   border-top: none;
6364 6327
 }
6365
-.basket_item .image_container {
6328
+.basket-mini-item .image_container {
6366 6329
   min-height: 70px;
6367 6330
 }
6368
-.basket_item .image_container img {
6331
+.basket-mini-item .image_container img {
6369 6332
   max-height: 70px;
6370 6333
 }
6371
-.basket_item .image_container a {
6334
+.basket-mini-item .image_container a {
6372 6335
   padding: 0;
6373 6336
 }
6374
-.basket_item .form-actions {
6375
-  -webkit-border-radius: 0 0px 6px 6px;
6376
-  -moz-border-radius: 0 0px 6px 6px;
6377
-  border-radius: 0 0px 6px 6px;
6378
-  margin: 0px;
6379
-}
6380
-.basket_item .form-actions p {
6381
-  *zoom: 1;
6382
-}
6383
-.basket_item .form-actions p:before,
6384
-.basket_item .form-actions p:after {
6385
-  display: table;
6386
-  content: "";
6387
-  line-height: 0;
6388
-}
6389
-.basket_item .form-actions p:after {
6390
-  clear: both;
6391
-}
6392
-.basket_item .form-actions p .btn {
6393
-  float: right;
6394
-}
6395
-.basket_item .form-actions h4 {
6396
-  text-align: right;
6397
-  margin-bottom: 14px;
6398
-}
6399
-.basket_item .form-actions h4 small {
6400
-  display: block;
6401
-}
6402
-.basket_item a {
6337
+.basket-mini-item a {
6403 6338
   color: #0088cc;
6404 6339
   font-weight: inherit;
6405 6340
   white-space: normal;
6406 6341
 }
6407
-.basket_item a.btn {
6342
+.basket-mini-item a.btn {
6408 6343
   color: #fff;
6409 6344
 }
6410
-.basket_item h4 {
6411
-  font-size: 14px;
6412
-  margin: 0;
6413
-}
6414
-.basket_item h4 a {
6415
-  padding: 0px;
6416
-}
6417
-.footer_links {
6418
-  padding: 0px;
6345
+.basket-mini-item .form-actions {
6346
+  -webkit-border-radius: 0 0px 6px 6px;
6347
+  -moz-border-radius: 0 0px 6px 6px;
6348
+  border-radius: 0 0px 6px 6px;
6419 6349
   margin: 0px;
6420
-  *zoom: 1;
6421
-  border-bottom: 1px solid #cccccc;
6422
-  padding: 14px;
6423
-  margin-bottom: 20px;
6424
-}
6425
-.footer_links:before,
6426
-.footer_links:after {
6427
-  display: table;
6428
-  content: "";
6429
-  line-height: 0;
6430
-}
6431
-.footer_links:after {
6432
-  clear: both;
6433
-}
6434
-.footer_links > li {
6435
-  list-style: none;
6436
-}
6437
-.footer_links li {
6438
-  float: left;
6439
-}
6440
-.footer_links li li {
6441
-  float: none;
6442
-}
6443
-.footer_links:before,
6444
-.footer_links:after {
6445
-  display: table;
6446
-  content: "";
6447
-  line-height: 0;
6448
-}
6449
-.footer_links:after {
6450
-  clear: both;
6451
-}
6452
-.footer_links li {
6453
-  margin-left: 10px;
6454
-  padding-left: 10px;
6455
-  border-left: 1px solid #cccccc;
6456
-}
6457
-.footer_links li:first-child,
6458
-.footer_links li:last-child {
6459
-  margin-left: 0px;
6460
-  padding-left: 0px;
6461
-  border-left: none;
6462
-}
6463
-.footer_links .top_page {
6464
-  float: right;
6465
-}
6466
-#browse > .dropdown-menu {
6467
-  top: 109%;
6468
-}
6469
-.login_form form,
6470
-.register_form form {
6471
-  min-height: 20px;
6472
-  padding: 19px;
6473
-  margin-bottom: 20px;
6474
-  background-color: #f5f5f5;
6475
-  border: 1px solid #e3e3e3;
6476
-  -webkit-border-radius: 4px;
6477
-  -moz-border-radius: 4px;
6478
-  border-radius: 4px;
6479
-  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
6480
-  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
6481
-  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
6482
-  *zoom: 1;
6483
-}
6484
-.login_form form blockquote,
6485
-.register_form form blockquote {
6486
-  border-color: #ddd;
6487
-  border-color: rgba(0, 0, 0, 0.15);
6488
-}
6489
-.login_form form:before,
6490
-.register_form form:before,
6491
-.login_form form:after,
6492
-.register_form form:after {
6493
-  display: table;
6494
-  content: "";
6495
-  line-height: 0;
6496
-}
6497
-.login_form form:after,
6498
-.register_form form:after {
6499
-  clear: both;
6500
-}
6501
-.nav-profile {
6502
-  margin-bottom: 0;
6503
-}
6504
-.account-pages .content,
6505
-.account-profile .tab-content {
6506
-  padding: 30px;
6507
-  border: 1px solid #e1e1e1;
6508
-  border-top-width: 0;
6509
-}
6510
-.nav-stacked .icon-chevron-right {
6511
-  margin-top: 5px;
6512
-  margin-right: -6px;
6513
-  opacity: 0.5;
6514
-  filter: alpha(opacity=50);
6515
-}
6516
-.nav-stacked .active .icon-chevron-right {
6517
-  opacity: 1;
6518
-  filter: alpha(opacity=100);
6519
-}
6520
-#language_selector select {
6521
-  width: 100px;
6522
-}
6523
-.basket_summary,
6524
-.later_summary {
6525
-  padding-left: 0px;
6526
-}
6527
-.basket_summary .actions,
6528
-.later_summary .actions {
6529
-  margin-left: 0px;
6530
-}
6531
-.basket_summary .checkout-quantity input,
6532
-.later_summary .checkout-quantity input {
6533
-  width: 10%;
6534
-  margin-right: 2px;
6535
-  margin-bottom: 0px;
6536
-}
6537
-.basket_summary .basket-products,
6538
-.later_summary .basket-products {
6539
-  border-bottom: 1px solid #E0E0E0;
6540
-  padding: 0 0 10px;
6541
-  margin-bottom: 18px;
6542
-}
6543
-.basket-title {
6544
-  clear: both;
6545
-  border-bottom: 1px solid #e5e5e5;
6546
-  padding: 0 10px;
6547
-}
6548
-.basket-title h4 {
6549
-  margin: 0;
6550
-}
6551
-.basket-items {
6552
-  border-bottom: 1px solid #e5e5e5;
6553
-  padding: 10px;
6554
-}
6555
-.basket-items .image_container {
6556
-  min-height: 0;
6557
-}
6558
-.basket-items .image_container img {
6559
-  max-height: 100px;
6560
-}
6561
-.basket-items:nth-child(even) {
6562
-  background: #f8f8f8;
6563
-}
6564
-.basket-items .price_color {
6565
-  font-size: 16px;
6566
-  font-weight: bold;
6567
-}
6568
-#basket_totals th small {
6569
-  font-weight: normal;
6570
-}
6571
-.shipping_address h2 {
6572
-  margin-bottom: 20px;
6573
-}
6574
-.choose-block {
6575
-  margin-top: 10px;
6576 6350
 }
6577
-.choose-block ul {
6578
-  margin: 0;
6579
-  padding: 0;
6580
-  *zoom: 1;
6581
-}
6582
-.choose-block ul li {
6583
-  padding: 0;
6584
-  list-style: none;
6585
-}
6586
-.choose-block ul:before,
6587
-.choose-block ul:after {
6588
-  display: table;
6589
-  content: "";
6590
-  line-height: 0;
6591
-}
6592
-.choose-block ul:after {
6593
-  clear: both;
6594
-}
6595
-.choose-block .well {
6596
-  position: relative;
6597
-  min-height: 240px;
6598
-}
6599
-.choose-block .well form {
6600
-  margin-bottom: 0;
6601
-}
6602
-.choose-block address {
6603
-  margin-bottom: 0;
6604
-}
6605
-.choose-block address span:first-child {
6606
-  display: block;
6607
-  font-weight: bold;
6351
+.basket-mini-item .form-actions h4 {
6608 6352
   margin-bottom: 10px;
6609 6353
 }
6610
-.choose-block .btn-primary,
6611
-.choose-block .btn-success {
6612
-  position: absolute;
6613
-  bottom: 20px;
6614
-  left: 20px;
6615
-}
6616
-.choose-block .btn-remove-address {
6617
-  position: absolute;
6618
-  top: 20px;
6619
-  right: 20px;
6620
-}
6621
-.choose-block .alert-actions {
6622
-  *zoom: 1;
6623
-}
6624
-.choose-block .alert-actions:before,
6625
-.choose-block .alert-actions:after {
6626
-  display: table;
6627
-  content: "";
6628
-  line-height: 0;
6629
-}
6630
-.choose-block .alert-actions:after {
6631
-  clear: both;
6632
-}
6633
-.choose-block .alert-actions form,
6634
-.choose-block .alert-actions a {
6635
-  float: left;
6636
-  margin: 0px 5px;
6637
-}
6638
-.choose-block .alert-actions form input {
6639
-  width: auto;
6640
-}
6641
-.total {
6642
-  background-color: #FDF5D9!important;
6643
-}
6644
-.nav-checkout {
6645
-  text-align: center;
6646
-}
6647
-.nav-checkout.navbar .nav {
6648
-  margin: 0;
6649
-}
6650
-.nav-checkout .active .navbar-text {
6651
-  color: #fff;
6652
-}
6653 6354
 ol.row-fluid,
6654 6355
 ul.row-fluid {
6655 6356
   margin-left: 0;
@@ -6659,93 +6360,48 @@ ul.row-fluid {
6659 6360
   margin-left: 0;
6660 6361
 }
6661 6362
 .product_pod {
6662
-  position: relative;
6663
-  height: 400px;
6363
+  height: 370px;
6664 6364
   overflow: hidden;
6665 6365
   text-align: center;
6666 6366
   margin: 20px 0;
6667
-  *zoom: 1;
6668
-}
6669
-.product_pod:before,
6670
-.product_pod:after {
6671
-  display: table;
6672
-  content: "";
6673
-  line-height: 0;
6674
-}
6675
-.product_pod:after {
6676
-  clear: both;
6367
+  position: relative;
6677 6368
 }
6678
-.product_pod p {
6369
+.product_pod p,
6370
+.product_pod h3,
6371
+.product_pod h2,
6372
+.product_pod form {
6679 6373
   margin-bottom: 0;
6680 6374
 }
6681 6375
 .product_pod h3 {
6682
-  font-size: 1em;
6683
-  margin-bottom: 0;
6684
-  line-height: 20px;
6685
-}
6686
-.product_pod h3 a {
6376
+  font-size: 14px;
6687 6377
   line-height: 20px;
6378
+  margin-bottom: 0;
6688 6379
 }
6689 6380
 .product_pod .price_color {
6690
-  min-height: 50px;
6691
-}
6692
-.product_pod h4 {
6693
-  *zoom: 1;
6694
-  margin-bottom: 20px;
6695
-  margin-top: 10px;
6696
-  line-height: 20px;
6697
-  font-size: 17px;
6698
-}
6699
-.product_pod h4:before,
6700
-.product_pod h4:after {
6701
-  display: table;
6702
-  content: "";
6703
-  line-height: 0;
6704
-}
6705
-.product_pod h4:after {
6706
-  clear: both;
6707
-}
6708
-.product_pod form p {
6709
-  min-height: 40px;
6381
+  font-size: 16.099999999999998px;
6382
+  line-height: 24px;
6710 6383
 }
6711
-.product_pod .availability {
6712
-  margin-bottom: 10px;
6713
-  text-align: center;
6384
+.product_pod .availability,
6385
+.product_pod .price_color {
6714 6386
   min-height: 30px;
6715 6387
   white-space: nowrap;
6716 6388
 }
6717
-.product_pod button {
6718
-  width: 100%;
6389
+.product_pod .image_container,
6390
+.product_pod .availability,
6391
+.product_pod .price_color {
6392
+  margin-bottom: 10px;
6719 6393
 }
6720 6394
 .product_pod .product_price {
6721 6395
   position: absolute;
6722 6396
   bottom: 0;
6723 6397
   left: 5%;
6724 6398
   width: 90%;
6725
-  min-height: 130px;
6726
-}
6727
-.product_pod .product_price form {
6728
-  margin-bottom: 0px;
6729
-}
6730
-.product_pod .product_price form input#id_quantity,
6731
-.product_pod .product_price form #id_product_id {
6732
-  width: 90%;
6733
-}
6734
-.product_pod .product_price form label {
6735
-  display: none;
6736 6399
 }
6737
-.product_pod .product_price .btn {
6738
-  padding-left: 0px;
6739
-  padding-right: 0px;
6740
-  width: 100%;
6741
-}
6742
-/* Product list image container */
6743 6400
 .image_container {
6744 6401
   width: 100%;
6745 6402
   min-height: 165px;
6746 6403
   overflow: hidden;
6747 6404
   text-align: center;
6748
-  margin-bottom: 10px;
6749 6405
   position: relative;
6750 6406
 }
6751 6407
 .image_container img {
@@ -6763,36 +6419,19 @@ a:hover .thumbnail {
6763 6419
 .availability.outofstock {
6764 6420
   color: #9d261d;
6765 6421
 }
6766
-.availability.instock {
6767
-  color: #46a546;
6768
-}
6769
-/* review styles */
6770
-.review {
6771
-  margin-bottom: 20px;
6772
-  *zoom: 1;
6773
-}
6774
-.review:before,
6775
-.review:after {
6776
-  display: table;
6777
-  content: "";
6778
-  line-height: 0;
6779
-}
6780
-.review:after {
6781
-  clear: both;
6782
-}
6783
-.review h3 {
6784
-  margin-bottom: 10px;
6785
-  overflow: hidden;
6786
-  text-overflow: ellipsis;
6422
+.availability.instock {
6423
+  color: #46a546;
6787 6424
 }
6788
-.review h3 small {
6789
-  font-size: 13px;
6425
+.price_color {
6426
+  display: block;
6427
+  color: #46a546;
6428
+  font-weight: bold;
6790 6429
 }
6791
-.review form {
6792
-  display: inline-block;
6793
-  *display: inline;
6794
-  zoom: 1;
6795
-  margin-bottom: 0;
6430
+.product_pod .price_color {
6431
+  margin-top: 0;
6432
+}
6433
+.es-carousel .price_color {
6434
+  font-size: 20px;
6796 6435
 }
6797 6436
 .review_add,
6798 6437
 .review_all,
@@ -6855,7 +6494,188 @@ a:hover .thumbnail {
6855 6494
 .btn-wishlist {
6856 6495
   margin-bottom: 20px;
6857 6496
 }
6858
-/* Elastislide Style */
6497
+.review {
6498
+  margin-bottom: 20px;
6499
+  *zoom: 1;
6500
+}
6501
+.review:before,
6502
+.review:after {
6503
+  display: table;
6504
+  content: "";
6505
+  line-height: 0;
6506
+}
6507
+.review:after {
6508
+  clear: both;
6509
+}
6510
+.review h3 {
6511
+  margin-bottom: 10px;
6512
+  overflow: hidden;
6513
+  text-overflow: ellipsis;
6514
+}
6515
+.review form {
6516
+  display: inline-block;
6517
+  *display: inline;
6518
+  zoom: 1;
6519
+  margin-bottom: 0;
6520
+}
6521
+.star-rating {
6522
+  color: #CBCBCB;
6523
+}
6524
+.star-rating i {
6525
+  letter-spacing: -1px;
6526
+  width: auto;
6527
+}
6528
+.star-rating a {
6529
+  margin-left: 10px;
6530
+}
6531
+.star-rating.One i:first-child {
6532
+  color: #E6CE31;
6533
+}
6534
+.star-rating.Two i:first-child,
6535
+.star-rating.Two i:first-child + i {
6536
+  color: #E6CE31;
6537
+}
6538
+.star-rating.Three i:first-child,
6539
+.star-rating.Three i:first-child + i,
6540
+.star-rating.Three i:first-child + i + i {
6541
+  color: #E6CE31;
6542
+}
6543
+.star-rating.Four i:first-child,
6544
+.star-rating.Four i:first-child + i,
6545
+.star-rating.Four i:first-child + i + i,
6546
+.star-rating.Four i:first-child + i + i + i {
6547
+  color: #E6CE31;
6548
+}
6549
+.star-rating.Five i {
6550
+  color: #E6CE31;
6551
+}
6552
+.promotion_single .image_container {
6553
+  min-height: 210px;
6554
+  margin-bottom: 20px;
6555
+}
6556
+.promotion_single .image_container img {
6557
+  max-height: 200px;
6558
+}
6559
+.sidebar .promotion_single h2 {
6560
+  font-size: 17.5px;
6561
+  line-height: 24px;
6562
+}
6563
+.sidebar .promotion_single h3 {
6564
+  font-size: 14px;
6565
+  line-height: 20px;
6566
+}
6567
+.sidebar .promotion_single .row-fluid > [class*="span"] {
6568
+  float: none;
6569
+  width: auto;
6570
+}
6571
+input[type="text"][id*="quantity"] {
6572
+  width: 30px;
6573
+}
6574
+.checkout-quantity input {
6575
+  margin-right: 2px;
6576
+  margin-bottom: 0px;
6577
+}
6578
+.basket-title {
6579
+  clear: both;
6580
+  border-bottom: 1px solid #e5e5e5;
6581
+  padding: 0 10px;
6582
+}
6583
+.basket-title h4 {
6584
+  margin: 0;
6585
+}
6586
+.basket-items {
6587
+  border-bottom: 1px solid #e5e5e5;
6588
+  padding: 10px;
6589
+}
6590
+.basket-items:nth-child(even) {
6591
+  background: #f8f8f8;
6592
+}
6593
+.basket-items img {
6594
+  margin-left: auto;
6595
+  margin-right: auto;
6596
+}
6597
+.basket-items .price_color {
6598
+  font-size: 16.099999999999998px;
6599
+  line-height: 24px;
6600
+  font-weight: bold;
6601
+}
6602
+#basket_totals th small {
6603
+  font-weight: normal;
6604
+}
6605
+.total {
6606
+  background-color: #FDF5D9!important;
6607
+}
6608
+.choose-block ul {
6609
+  *zoom: 1;
6610
+}
6611
+.choose-block ul:before,
6612
+.choose-block ul:after {
6613
+  display: table;
6614
+  content: "";
6615
+  line-height: 0;
6616
+}
6617
+.choose-block ul:after {
6618
+  clear: both;
6619
+}
6620
+.choose-block .well {
6621
+  position: relative;
6622
+  min-height: 240px;
6623
+}
6624
+.choose-block .well form {
6625
+  margin-bottom: 0;
6626
+}
6627
+.choose-block address {
6628
+  margin-bottom: 0;
6629
+}
6630
+.choose-block address span:first-child {
6631
+  display: block;
6632
+  font-weight: bold;
6633
+  margin-bottom: 10px;
6634
+}
6635
+.choose-block .btn-primary,
6636
+.choose-block .btn-success {
6637
+  position: absolute;
6638
+  bottom: 20px;
6639
+  left: 20px;
6640
+}
6641
+.choose-block .btn-remove-address {
6642
+  position: absolute;
6643
+  top: 20px;
6644
+  right: 20px;
6645
+}
6646
+.nav-checkout {
6647
+  text-align: center;
6648
+}
6649
+.nav-checkout.navbar .nav {
6650
+  margin: 0;
6651
+}
6652
+.nav-checkout .active .navbar-text {
6653
+  color: #fff;
6654
+}
6655
+.well {
6656
+  *zoom: 1;
6657
+}
6658
+.well:before,
6659
+.well:after {
6660
+  display: table;
6661
+  content: "";
6662
+  line-height: 0;
6663
+}
6664
+.well:after {
6665
+  clear: both;
6666
+}
6667
+.well-success {
6668
+  background-color: #dff0d8;
6669
+  border-color: #d6e9c6;
6670
+}
6671
+.well-info {
6672
+  background-color: #d9edf7;
6673
+  border-color: #bce8f1;
6674
+}
6675
+.well-blank {
6676
+  background-color: #ffffff;
6677
+  border-color: rgba(0, 0, 0, 0.1);
6678
+}
6859 6679
 .es-carousel-wrapper {
6860 6680
   padding: 1px 20px;
6861 6681
   -moz-border-radius: 4px;
@@ -6928,7 +6748,6 @@ a:hover .thumbnail {
6928 6748
 .es-nav span:hover {
6929 6749
   background-color: #ddd;
6930 6750
 }
6931
-/* Gallery */
6932 6751
 .rg-image-wrapper {
6933 6752
   position: relative;
6934 6753
   padding: 20px 30px;
@@ -7035,8 +6854,6 @@ a:hover .thumbnail {
7035 6854
   position: absolute;
7036 6855
   top: 50%;
7037 6856
   left: 50%;
7038
-  /*  background:#000 url(../responsivegallery/ajax-loader.gif) no-repeat center center;*/
7039
-
7040 6857
   margin: -23px 0px 0px -23px;
7041 6858
   z-index: 100;
7042 6859
   -moz-border-radius: 10px;
@@ -7044,79 +6861,6 @@ a:hover .thumbnail {
7044 6861
   border-radius: 10px;
7045 6862
   opacity: 0.7;
7046 6863
 }
7047
-/* Modal modifications */
7048
-.large-content {
7049
-  height: 300px;
7050
-  overflow: auto;
7051
-  padding-right: 30px;
7052
-}
7053
-.sub-header h2 small {
7054
-  *zoom: 1;
7055
-}
7056
-.sub-header h2 small:before,
7057
-.sub-header h2 small:after {
7058
-  display: table;
7059
-  content: "";
7060
-  line-height: 0;
7061
-}
7062
-.sub-header h2 small:after {
7063
-  clear: both;
7064
-}
7065
-.sub-header h2 a {
7066
-  float: right;
7067
-  line-height: 40px;
7068
-}
7069
-/* Star Rating using font icons */
7070
-.star-rating {
7071
-  color: #CBCBCB;
7072
-}
7073
-.star-rating i {
7074
-  letter-spacing: -1px;
7075
-  width: auto;
7076
-}
7077
-.star-rating a {
7078
-  margin-left: 10px;
7079
-}
7080
-.star-rating.One i:first-child {
7081
-  color: #E6CE31;
7082
-}
7083
-.star-rating.Two i:first-child,
7084
-.star-rating.Two i:first-child + i {
7085
-  color: #E6CE31;
7086
-}
7087
-.star-rating.Three i:first-child,
7088
-.star-rating.Three i:first-child + i,
7089
-.star-rating.Three i:first-child + i + i {
7090
-  color: #E6CE31;
7091
-}
7092
-.star-rating.Four i:first-child,
7093
-.star-rating.Four i:first-child + i,
7094
-.star-rating.Four i:first-child + i + i,
7095
-.star-rating.Four i:first-child + i + i + i {
7096
-  color: #E6CE31;
7097
-}
7098
-.star-rating.Five i {
7099
-  color: #E6CE31;
7100
-}
7101
-/*** Promotional block styles ***/
7102
-.promotion_single .image_container {
7103
-  min-height: 210px;
7104
-}
7105
-.promotion_single .image_container img {
7106
-  max-height: 200px;
7107
-}
7108
-.sidebar .promotion_single h2 {
7109
-  font-size: 18px;
7110
-  line-height: 22px;
7111
-}
7112
-.sidebar .promotion_single h3 {
7113
-  font-size: 14px;
7114
-  line-height: 18px;
7115
-}
7116
-.sidebar .promotion_single .row-fluid > [class*="span"] {
7117
-  float: none;
7118
-  width: auto;
7119
-}
7120 6864
 .pull-right {
7121 6865
   float: right;
7122 6866
 }

+ 0
- 28
oscar/static/oscar/less/page/account.less View File

@@ -1,28 +0,0 @@
1
-// OSCAR ACCOUNTS UNIQUE STYLES
2
-// -----------
3
-.login_form, .register_form {
4
-  form {
5
-    .well();
6
-  }
7
-}
8
-.nav-profile {
9
-  margin-bottom:0;
10
-}
11
-.account-pages .content,
12
-.account-profile .tab-content {
13
-   padding:@baseLineHeight + 10px;
14
-   border:1px solid darken(@grayLighter, 5%);
15
-   border-top-width:0;
16
-}
17
-.nav-stacked .icon-chevron-right {
18
-  margin-top: 5px;
19
-  margin-right: -6px;
20
-  .opacity(50);
21
-}
22
-.nav-stacked .active .icon-chevron-right {
23
-  .opacity(100);
24
-}
25
-//Language select
26
-#language_selector select {
27
-  width:100px;
28
-}

+ 73
- 93
oscar/static/oscar/less/page/checkout.less View File

@@ -1,120 +1,100 @@
1 1
 // OSCAR CHECKOUT UNIQUE STYLES
2 2
 // -----------
3
-.basket_summary,
4
-.later_summary {
5
-  padding-left:0px;
6
-  .actions {
7
-    margin-left:0px;
8
-  }
9
-  .checkout-quantity {
10
-      input {
11
-          width: 10%;
12
-          margin-right: 2px;
13
-          margin-bottom:0px;
14
-      }
15
-  }
16
-  .basket-products {
17
-      border-bottom: 1px solid #E0E0E0;
18
-      padding: 0 0 10px;
19
-      margin-bottom: 18px;
20
-  }
3
+
4
+//Set Width of all quantity fields
5
+input[type="text"][id*="quantity"] {
6
+    width:30px;
7
+}
8
+// Quantity on the basket
9
+.checkout-quantity {
10
+    input {
11
+        margin-right: 2px;
12
+        margin-bottom:0px;
13
+    }
21 14
 }
15
+
16
+// Basket items like table headers
22 17
 .basket-title {
23
-  clear:both;
24
-  border-bottom:1px solid lighten(@grayLight, 30%);
25
-  padding:0 10px;
26
-  h4 {
27
-    margin:0;
28
-  }
18
+    clear:both;
19
+    border-bottom:1px solid lighten(@grayLight, 30%);
20
+    padding:0 10px;
21
+    h4 {
22
+        margin:0;
23
+    }
29 24
 }
25
+
26
+// Basket items
30 27
 .basket-items {
31
-  border-bottom:1px solid lighten(@grayLight, 30%);
32
-  padding:10px;
33
-  .image_container {
34
-    min-height: 0;
28
+    border-bottom:1px solid lighten(@grayLight, 30%);
29
+    padding:10px;
30
+    &:nth-child(even) {
31
+        background:lighten(@grayLighter, 4%);
32
+    }
35 33
     img {
36
-    max-height: 100px;
34
+        margin-left:auto;
35
+        margin-right:auto;
36
+    }
37
+    .price_color {
38
+        .h4();
39
+        font-weight:bold;
37 40
     }
38
-  }
39
-  &:nth-child(even) {
40
-      background:lighten(@grayLighter, 4%);
41
-  }
42
-  .price_color {
43
-    font-size:@baseFontSize + 2;
44
-    font-weight:bold;
45
-  }
46 41
 }
42
+
43
+// Descriptions next to shipping prices - basket totals table
47 44
 #basket_totals {
48 45
 	th small {
49 46
 		font-weight: normal;
50 47
 	}
51 48
 }
52 49
 
53
-.shipping_address {
54
-  h2 {
55
-    margin-bottom: @baseLineHeight;
56
-  }
50
+// Table background for totals
51
+.total {
52
+    background-color:#FDF5D9!important;
57 53
 }
54
+
55
+
56
+// Choosing a shipping address
58 57
 .choose-block {
59
-  margin-top:10px;
60
-  ul {
61
-    .remove_bullets();
62
-    .clearfix();
63
-  }
64
-  .well {
65
-    position:relative;
66
-    min-height:240px;
67
-    form {
68
-      margin-bottom:0;
58
+    ul {
59
+        .clearfix();
69 60
     }
70
-  }
71
-  address {
72
-    margin-bottom:0;
73
-    span:first-child {
74
-      display:block;
75
-      font-weight:bold;
76
-      margin-bottom:@baseLineHeight / 2;
61
+    .well {
62
+        position:relative;
63
+        min-height:240px;
64
+        form {
65
+        margin-bottom:0;
66
+        }
77 67
     }
78
-  }
79
-  .btn-primary, 
80
-  .btn-success {
81
-    position:absolute;
82
-    bottom: @gridGutterWidth;
83
-    left: @gridGutterWidth;
84
-  } 
85
-  .btn-remove-address {
86
-    position:absolute;
87
-    top: @gridGutterWidth;
88
-    right: @gridGutterWidth;
89
-  }
90
-  .alert-actions {
91
-    .clearfix();
92
-    form,
93
-    a {
94
-      float:left;
95
-      margin:0px 5px;
68
+    address {
69
+        margin-bottom:0;
70
+        span:first-child {
71
+        display:block;
72
+        font-weight:bold;
73
+        margin-bottom:@baseLineHeight / 2;
74
+        }
96 75
     }
97
-    form {
98
-      input {
99
-        width:auto;
100
-      }
76
+    .btn-primary,
77
+    .btn-success {
78
+        position:absolute;
79
+        bottom: @gridGutterWidth;
80
+        left: @gridGutterWidth;
81
+    }
82
+    .btn-remove-address {
83
+        position:absolute;
84
+        top: @gridGutterWidth;
85
+        right: @gridGutterWidth;
101 86
     }
102
-  } 
103
-}
104
-
105
-.total {
106
-  background-color:#FDF5D9!important;
107 87
 }
108 88
 
109 89
 // Checkout navigation - uses navbar
110 90
 .nav-checkout {
111
-  text-align:center;
112
-  &.navbar .nav {
113
-    margin:0;
114
-  }
115
-  .active {
116
-    .navbar-text {
117
-      color:#fff;
91
+    text-align:center;
92
+    &.navbar .nav {
93
+        margin:0;
94
+    }
95
+    .active {
96
+        .navbar-text {
97
+        color:#fff;
98
+        }
118 99
     }
119
-  }
120 100
 }

+ 24
- 0
oscar/static/oscar/less/page/forms.less View File

@@ -0,0 +1,24 @@
1
+// Oscar FORMS
2
+
3
+form {
4
+  .clearfix();
5
+}
6
+//For IE: adds width for selects inside overflow hidden containers
7
+.select-open {
8
+  width:300px!important;
9
+}
10
+
11
+// Additional errors
12
+.errorlist {
13
+    margin:0;
14
+    padding:0 0 10px 0;
15
+    color:#B94A48;
16
+    li {
17
+        padding:0 0 5px 0;
18
+        list-style:none;
19
+    }
20
+}
21
+
22
+.control-label.required span {
23
+    color: #FF0000;
24
+}

+ 0
- 120
oscar/static/oscar/less/page/head_foot.less View File

@@ -1,120 +0,0 @@
1
-// OSCAR HEADER
2
-// -----------
3
-.header {
4
-  position:relative;
5
-  z-index:2;
6
-  h1 {
7
-    line-height:inherit;
8
-    margin:0;
9
-    font-size:30px;
10
-  }
11
-}
12
-.cart {
13
-  margin:0px;
14
-  .clearfix();
15
-  .cart_summary {
16
-    strong {
17
-      padding: 4px 10px 4px;
18
-      display:block;
19
-      span {
20
-        font-weight:normal;
21
-      }
22
-    }
23
-  }
24
-  li {
25
-    display:block;
26
-    float:right;
27
-    .btn-group {
28
-      white-space: normal;
29
-      .dropdown-menu {
30
-        width:400px;
31
-        padding-bottom:0px;
32
-        max-width:none;
33
-        li {
34
-          float:none;
35
-          display:block;
36
-        }
37
-      }
38
-    }
39
-  }
40
-}
41
-.basket_item {
42
-  margin:0px;
43
-  li {
44
-    width:auto;
45
-    border-top:1px solid @grayLighter;
46
-    padding:10px 15px;
47
-    &:first-child { border-top:none; }
48
-  }
49
-  .image_container {
50
-    min-height: 70px;
51
-    img {
52
-      max-height: 70px;
53
-    }
54
-    a {
55
-      padding:0;
56
-    }
57
-  }
58
-  .form-actions {
59
-    -webkit-border-radius: 0 0px 6px 6px;
60
-    -moz-border-radius: 0 0px 6px 6px;
61
-    border-radius: 0 0px 6px 6px;
62
-    p {
63
-     .clearfix();
64
-     .btn {
65
-       float:right;
66
-     }
67
-    }
68
-    margin:0px;
69
-    h4 {
70
-      text-align:right;
71
-      margin-bottom:@baseFontSize;
72
-      small {
73
-        display:block;
74
-      }
75
-    }
76
-  }
77
-  a {
78
-    color:@linkColor;
79
-    font-weight:inherit;
80
-    white-space:normal;
81
-    &.btn {
82
-      color:#fff;
83
-    }
84
-  }
85
-  h4 {
86
-    font-size:14px;
87
-    margin:0;
88
-    a {
89
-      padding:0px;
90
-    }
91
-  }
92
-}
93
-// OSCAR FOOTER UNIQUE STYLES
94
-// -----------
95
-.footer_links {
96
-  .horiz_col();
97
-  .clearfix();
98
-  border-bottom:1px solid lighten(@black, 80%);
99
-  padding:@baseFontSize;
100
-  margin-bottom:@baseLineHeight;
101
-  li {
102
-    margin-left:10px;
103
-    padding-left:10px;
104
-    border-left:1px solid lighten(@black, 80%);
105
-  }
106
-  li:first-child,
107
-  li:last-child {
108
-    margin-left:0px;
109
-    padding-left:0px;
110
-    border-left:none;
111
-  }
112
-  .top_page {
113
-    float:right;
114
-  }
115
-}
116
-// OSCAR DROPDOWN NAVBAR
117
-// -----------
118
-#browse > .dropdown-menu {
119
-  top: 109%;
120
-}

+ 73
- 0
oscar/static/oscar/less/page/header.less View File

@@ -0,0 +1,73 @@
1
+// OSCAR HEADER
2
+// -----------
3
+
4
+.header {
5
+    position:relative;
6
+    z-index:2;
7
+    .page_inner {
8
+        padding:50px 0 40px;
9
+    }
10
+    h1 {
11
+        line-height:inherit;
12
+        margin:0;
13
+        font-size:30px;
14
+    }
15
+}
16
+
17
+//Language select
18
+#language_selector select {
19
+    width:100px;
20
+}
21
+
22
+// Basket Mini Dropdown
23
+.basket-mini {
24
+    .btn-group {
25
+        margin-left:10px;
26
+    }
27
+    .dropdown-menu {
28
+        width:400px;
29
+        padding-bottom:0px;
30
+        max-width:none;
31
+        li {
32
+            display:block;
33
+        }
34
+    }
35
+}
36
+
37
+// Basket Mini Item
38
+.basket-mini-item {
39
+    li {
40
+        border-top:1px solid @grayLighter;
41
+        padding:10px 15px;
42
+        &:first-child {
43
+            border-top:none;
44
+        }
45
+    }
46
+    .image_container {
47
+        @imagecontainerheight: 70px;
48
+        min-height: @imagecontainerheight;
49
+        img {
50
+            max-height: @imagecontainerheight;
51
+        }
52
+        a {
53
+            padding:0;
54
+        }
55
+    }
56
+    a {
57
+        color:@linkColor;
58
+        font-weight:inherit;
59
+        white-space:normal;
60
+        &.btn {
61
+            color:#fff;
62
+        }
63
+    }
64
+    .form-actions {
65
+        -webkit-border-radius: 0 0px 6px 6px;
66
+        -moz-border-radius: 0 0px 6px 6px;
67
+        border-radius: 0 0px 6px 6px;
68
+        margin:0px;
69
+        h4 {
70
+            margin-bottom:@baseLineHeight / 2;
71
+        }
72
+    }
73
+}

+ 21
- 143
oscar/static/oscar/less/page/layout.less View File

@@ -1,152 +1,30 @@
1 1
 // OSCAR PAGE STRUCTURE
2 2
 // -----------
3
+
3 4
 body {
4
-  background-color: @grayLighter;
5
+    background-color: @grayLighter;
5 6
 }
6 7
 .container-fluid {
7
-  //Unique styles
8
-  padding:0px;
9
-  margin:0px auto;
10
-  max-width:@oscarpagewidth;
11
-}
12
-.page {
13
-  background:@white;
14
-  -webkit-border-radius: 0 0 6px 6px;
15
-  -moz-border-radius: 0 0 6px 6px;
16
-  border-radius: 0 0 6px 6px;
17
-  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
18
-  -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
19
-  box-shadow: 0 1px 2px rgba(0,0,0,.15);
20
-}
21
-.page_inner {
22
-   padding:@gridGutterWidth;
23
-   .clearfix();
8
+    padding:0px;
9
+    margin:0px auto;
10
+    // Here is the page width: editable in page/mixins.less
11
+    max-width:@oscarpagewidth;
24 12
 }
25
-// FONTS MODIFICATIONS
26
-// -----------
27
-h1 { font-size: 30px; line-height: 40px; }
28
-h2 { font-size: 24px; line-height: 40px; }
29
-h3 { font-size: 18px; line-height: 20px; }
30
-h4 { font-size: 16px; line-height: 20px; }
31 13
 
32
-.page-header,
33
-.sub-header {
34
-  margin: 0 0 (@baseLineHeight * 1.5);
35
-}
36
-.well .sub-header {
37
-  margin: 0 0 (@baseLineHeight);
38
-}
39
-.sub-header {
40
-  padding-bottom: (@baseLineHeight / 2) - 1;
41
-  border-bottom: 1px solid @grayLighter;
42
-}
43
-.page-header {
44
-  h1,h2 {
45
-    font-size: 30px;
46
-    line-height: 40px;
47
-    margin:0;
48
-  }
49
-}
50
-.sub-header {
51
-  h2,h3,h4 {
52
-    font-size: 22px;
53
-    line-height: 24px;
54
-    margin:0;
55
-  }
56
-}
57
-
58
-// PRICE SIZE/COLOR
59
-// -----------
60
-.price_color {
61
-  display:block;
62
-  color:@green;
63
-  font-weight:bold;
64
-}
65
-.product_pod .price_color { margin-top:0 }
66
-.es-carousel .price_color { font-size:20px; }
67
-
68
-
69
-
70
-// OSCAR NAV BAR MODIFICATIONS
71
-// -----------
72
-.navbar.primary {
73
-  margin-bottom:0px;
74
-  .brand.hidden {
75
-    display: none;
76
-  }
77
-  .form-search {
78
-    .btn {
79
-      margin-top: 0px; // make buttons vertically centered in navbar
80
-    }
81
-  }
82
-}
83
-.header {
84
-  .page_inner {
85
-    padding:50px 0 40px;
86
-  }
87
-}
88
-// WELLS
89
-// -----
90
-.well {
91
-  .clearfix();
92
-}
93
-.well-success {
94
-  background-color: @successBackground;
95
-  border-color: @successBorder;  
96
-}
97
-.well-danger {
98
-  background-color: @errorBackground;
99
-  border-color: @errorBorder;
100
-}
101
-.well-info {
102
-  background-color: @infoBackground;
103
-  border-color: @infoBorder;
104
-}
105
-.well-blank {
106
-  background-color: @white;
107
-  border-color: rgba(0,0,0,.1);
108
-}
109
-.well-rm-padding {
110
-  padding:19px 0;
111
-}
112
-// UTILITY CLASSES
113
-// ---------------
114
-.pull-clear {
115
-  clear: both;
116
-}
117
-.align-right,
118
-.table .align-right,
119
-.table .align-right {
120
-  text-align:right;
121
-}
122
-
123
-.align-center,
124
-.table .align-center,
125
-.table .align-center {
126
-  text-align:center;
127
-}
128
-// FORMS
129
-// ------------
130
-form {
131
-  .clearfix();
132
-}
133
-//For IE: adds width for selects inside overflow hidden containers
134
-.select-open {
135
-  width:300px!important;
136
-}
137
-
138
-// ADDITIONAL ERRORS
139
-.errorlist {
140
-    margin:0;
141
-    padding:0 0 10px 0;
142
-    color:#B94A48;
143
-    li {
144
-        padding:0 0 5px 0;
145
-        list-style:none;
146
-    }
147
-}
148
-
149
-.control-label.required span {
150
-    color: #FF0000;
14
+// The page container
15
+.page {
16
+    background:@white;
17
+    -webkit-border-radius: 0 0 6px 6px;
18
+    -moz-border-radius: 0 0 6px 6px;
19
+    border-radius: 0 0 6px 6px;
20
+    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
21
+    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
22
+    box-shadow: 0 1px 2px rgba(0,0,0,.15);
151 23
 }
152 24
 
25
+// Some padding for the inner container
26
+// Also usefull for the mobile
27
+.page_inner {
28
+    padding:@gridGutterWidth;
29
+    .clearfix();
30
+}

+ 4
- 32
oscar/static/oscar/less/page/mixins.less View File

@@ -1,35 +1,7 @@
1 1
 // OSC VARIABLES
2 2
 // --------------------------------------------------
3
-@oscarpagewidth: 960px;
4
-
5
-@fifth: 20%;
6
-@quart: 25%;
7
-@third: 33.33333333333333%;
8
-@half: 50%;
9
-@three_quart: 75%;
10
-@full:100%;
11 3
 
12
-// OSC MIXINS
13
-// --------------------------------------------------
14
-.remove_bullets() {
15
-  margin: 0;
16
-  padding: 0;
17
-  li {
18
-    padding: 0;
19
-    list-style:none;
20
-  }
21
-}
22
-.horiz_col() {
23
-  padding:0px;
24
-  margin:0px;
25
-  .clearfix();
26
-  > li {
27
-    list-style:none;
28
-  }
29
-  li { 
30
-    float:left; 
31
-    li {
32
-      float:none;
33
-    }
34
-  }
35
-}
4
+// Page width
5
+@oscarpagewidth: 960px;
6
+// Image height
7
+@imagecontainerheight: 165px;

+ 5
- 58
oscar/static/oscar/less/page/plugins.less View File

@@ -1,6 +1,8 @@
1 1
 // OSCAR PLUGINS STYLES
2 2
 // -----------
3
-/* Elastislide Style */
3
+
4
+// These styles relate to the Elastislide carousel used for product promotion
5
+// and the gallery
4 6
 .es-carousel-wrapper {
5 7
   padding:1px 20px;
6 8
   -moz-border-radius: 4px;
@@ -73,7 +75,7 @@
73 75
 .es-nav span:hover {
74 76
   background-color:#ddd;
75 77
 }
76
-/* Gallery */
78
+// Gallery styles
77 79
 .rg-image-wrapper{
78 80
 	position:relative;
79 81
 	padding:20px 30px;
@@ -141,8 +143,7 @@
141 143
 	margin-top:15px;
142 144
 	position:relative;
143 145
 }
144
-.rg-caption p{
145
-	//font-size:11px;
146
+.rg-caption p {
146 147
 	font-size:0.846em;
147 148
 	letter-spacing:2px;
148 149
 	font-family: 'Trebuchet MS', 'Myriad Pro', Arial, sans-serif;
@@ -182,64 +183,10 @@
182 183
 	position:absolute;
183 184
 	top:50%;
184 185
 	left:50%;
185
-/*  background:#000 url(../responsivegallery/ajax-loader.gif) no-repeat center center;*/
186 186
 	margin:-23px 0px 0px -23px;
187 187
 	z-index:100;
188 188
 	-moz-border-radius: 10px;
189 189
 	-webkit-border-radius: 10px;
190 190
 	border-radius: 10px;
191 191
 	opacity:0.7;
192
-}
193
-/* Modal modifications */
194
-.large-content {
195
-  height:300px;
196
-  overflow:auto;
197
-  padding-right:30px;
198
-}
199
-.sub-header {
200
-  h2 {
201
-    small {
202
-     .clearfix(); 
203
-    }
204
-    a {
205
-      float:right;
206
-      line-height: @baseLineHeight * 2;
207
-    }
208
-  }
209
-}
210
-/* Star Rating using font icons */
211
-.star-rating {
212
-    color:#CBCBCB;
213
-    i {
214
-    	letter-spacing: -1px;
215
-    	width:auto;
216
-    }
217
-    a {
218
-        margin-left:10px;
219
-    }
220
-}
221
-.star-rating.One {
222
-    i:first-child {
223
-        color:#E6CE31;
224
-    }
225
-}
226
-.star-rating.Two {
227
-    i:first-child, i:first-child + i {
228
-        color:#E6CE31;
229
-    }
230
-}
231
-.star-rating.Three {
232
-    i:first-child, i:first-child + i, i:first-child + i + i {
233
-        color:#E6CE31;
234
-    }
235
-}
236
-.star-rating.Four {
237
-    i:first-child, i:first-child + i, i:first-child + i + i, i:first-child + i + i + i {
238
-        color:#E6CE31;
239
-    }
240
-}
241
-.star-rating.Five {
242
-    i {
243
-        color:#E6CE31;
244
-    }
245 192
 }

+ 57
- 81
oscar/static/oscar/less/page/product_lists.less View File

@@ -1,100 +1,76 @@
1 1
 //no margin on lists
2 2
 ol,
3 3
 ul {
4
-  &.row-fluid {
5
-    margin-left:0;
6
-    list-style: none;
7
-  }
4
+    &.row-fluid {
5
+        margin-left:0;
6
+        list-style: none;
7
+    }
8 8
 }
9 9
 
10 10
 //Remove margin if condition
11 11
 .row-fluid [class*="span"] {
12
-  &.no-margin {
13
-    margin-left:0;
14
-  }
12
+    &.no-margin {
13
+        margin-left:0;
14
+    }
15 15
 }
16 16
 
17
-//Product listed container
17
+//Products listed container
18
+// Space between products in a list is determined by the Grid and therfore the
19
+// gutter width: 20px
18 20
 .product_pod {
19
-  position:relative;
20
-  height:400px;
21
-  overflow:hidden;
22
-  text-align:center;
23
-  margin: @baseLineHeight 0;
24
-  .clearfix();
25
-  & p {
26
-    margin-bottom:0;
27
-  }
28
-  h3 {
29
-    font-size:1em;
30
-    margin-bottom:0;
31
-    line-height:@baseLineHeight;
32
-    a {
33
-      line-height:@baseLineHeight;
34
-    }
35
-  }
36
-  .price_color {
37
-    min-height:50px;
38
-  }
39
-  h4 {
40
-    .clearfix();
41
-    margin-bottom: @baseLineHeight;
42
-    margin-top: @baseLineHeight / 2;
43
-    line-height:@baseLineHeight;
44
-    font-size:@baseFontSize + 3;
45
-  }
46
-  form p {
47
-    min-height:40px;
48
-  }
49
-  .availability {
50
-    margin-bottom:@baseLineHeight / 2;
21
+    height:370px;
22
+    overflow:hidden;
51 23
     text-align:center;
52
-    min-height:30px;
53
-    white-space:nowrap;
54
-  }
55
-  button {
56
-    width:100%;
57
-  }
58
-  .product_price {
59
-    position:absolute;
60
-    bottom:0;
61
-    left:5%;
62
-    width:90%;
63
-    min-height:130px;
64
-    form {
65
-      margin-bottom:0px;
66
-      input#id_quantity,
67
-      #id_product_id {
68
-        width:90%;
69
-      }
70
-      label {
71
-        display:none;
72
-      }
24
+    margin: @baseLineHeight 0;
25
+    position:relative;
26
+    p, h3, h2, form {
27
+        margin-bottom:0;
28
+    }
29
+    h3 {
30
+        .h5();
31
+        margin-bottom:0;
32
+    }
33
+    .price_color {
34
+        .h4();
73 35
     }
74
-    .btn {
75
-      padding-left:0px;
76
-      padding-right:0px;
77
-      width:100%;
36
+    .availability,
37
+    .price_color {
38
+        min-height:30px;
39
+        white-space:nowrap;
40
+    }
41
+    .image_container,
42
+    .availability,
43
+    .price_color {
44
+        margin-bottom: @baseLineHeight / 2;
45
+    }
46
+    // This could be set to 100% but this gives a little more space around products.
47
+    .product_price {
48
+        position:absolute;
49
+        bottom:0;
50
+        left:5%;
51
+        width:90%;
78 52
     }
79
-  }
80 53
 }
81
-/* Product list image container */
54
+
55
+// Product list image container sets a height so images don't breakout
56
+// This can be used to verically align the image with same line-height
57
+// Alternatively if you are cropping images and have a specific W & H this isn't neccessary
82 58
 .image_container {
83
-  width:100%;
84
-  min-height:165px;
85
-  overflow:hidden;
86
-  text-align: center;
87
-  margin-bottom: @baseLineHeight / 2;
88
-  position:relative;
89
-  img {
90
-    max-height:155px;
91
-    max-width:90%;
92
-    width:auto;
93
-    margin:0px auto;
94
-  }
59
+    width:100%;
60
+    min-height:@imagecontainerheight;
61
+    overflow:hidden;
62
+    text-align: center;
63
+    position:relative;
64
+    img {
65
+        max-height:@imagecontainerheight - 10px;
66
+        max-width:90%;
67
+        width:auto;
68
+        margin:0px auto;
69
+    }
95 70
 }
71
+
96 72
 // Add a hover state for thumbnail
97 73
 a:hover .thumbnail {
98
-  border-color: @linkColor;
99
-  .box-shadow(0 1px 4px rgba(0,105,214,.25));
74
+    border-color: @linkColor;
75
+    .box-shadow(0 1px 4px rgba(0,105,214,.25));
100 76
 }

+ 32
- 37
oscar/static/oscar/less/page/product_page.less View File

@@ -1,59 +1,54 @@
1 1
 // OSCAR PRODUCTS UNIQUE STYLES
2 2
 // -----------
3 3
 .availability {
4
-  &.outofstock {
5
-    color:@red;
6
-  }
7
-  &.instock {
8
-   color:@green;
9
-  }
4
+    &.outofstock {
5
+        color:@red;
6
+    }
7
+    &.instock {
8
+    color:@green;
9
+    }
10 10
 }
11 11
 
12
-/* review styles */
13
-.review {
14
-  margin-bottom:@baseLineHeight;
15
-  .clearfix();
16
-  h3 {
17
-    margin-bottom: 10px;
18
-    overflow: hidden;
19
-    text-overflow: ellipsis;
20
-    small {
21
-      font-size: @baseFontSize - 1;
22
-    }
23
-  }
24
-  form {
25
-    display:inline-block;
26
-    *display:inline;
27
-    zoom:1;
28
-    margin-bottom:0;
29
-  }
12
+// PRICE SIZE/COLOR
13
+// -----------
14
+.price_color {
15
+    display:block;
16
+    color:@green;
17
+    font-weight:bold;
30 18
 }
19
+.product_pod .price_color { margin-top:0 }
20
+.es-carousel .price_color { font-size:20px; }
21
+
22
+// Added Well mixin to page elements
23
+// TODO: good to have this as this it is easy to remove/update rather than a
24
+// class in the template. But maybe better moved from here.
31 25
 .review_add,
32 26
 .review_all,
33 27
 .review_read,
34 28
 .side_categories {
35
-  .well();
29
+    .well();
36 30
 }
37 31
 
38
-//Align wish list button with add to basket button
32
+// Wish lists
33
+// Align wish list button with add to basket button
39 34
 .add-to-basket {
40
-  //Width of default input/select/textarea
41
-  width: 220px;
42
-  margin-bottom:0;
43
-  margin-right:10px;
44
-  *margin-right:20px;
35
+    //Width of default input/select/textarea
36
+    width: 220px;
37
+    margin-bottom:0;
38
+    margin-right:10px;
39
+    *margin-right:20px;
45 40
 }
46 41
 .add-to-basket,
47 42
 .btn-wishlist {
48
-  display:inline-block;
49
-  *display:inline;
50
-  zoom:1;
43
+    display:inline-block;
44
+    *display:inline;
45
+    zoom:1;
51 46
 }
52
-//For responsive - when button falls under each other
47
+// For responsive - when button falls under each other
53 48
 .btn-wishlist {
54
-  vertical-align:bottom;
49
+    vertical-align:bottom;
55 50
 }
56 51
 .add-to-basket .btn,
57 52
 .btn-wishlist {
58
-  margin-bottom:@baseLineHeight;
53
+    margin-bottom:@baseLineHeight;
59 54
 }

+ 21
- 21
oscar/static/oscar/less/page/promotions.less View File

@@ -1,27 +1,27 @@
1
-/*** Promotional block styles ***/
1
+// Promotional block styles
2 2
 .promotion_single {
3
-  .image_container {
4
-    min-height: 210px;
5
-    img {
6
-      max-height: 200px;
3
+    .image_container {
4
+        @imagecontainerheight: 210px;
5
+        min-height: @imagecontainerheight;
6
+        margin-bottom: @baseLineHeight;
7
+        img {
8
+            max-height: @imagecontainerheight - 10;
9
+        }
7 10
     }
8
-  }
9 11
 }
10 12
 .sidebar {
11
-  .promotion_single {
12
-    h2 {
13
-      font-size:18px;
14
-      line-height:22px;
13
+    .promotion_single {
14
+        h2 {
15
+            .h3();
16
+        }
17
+        h3 {
18
+            .h5();
19
+        }
20
+        .row-fluid {
21
+            > [class*="span"] {
22
+                float:none;
23
+                width:auto;
24
+            }
25
+        }
15 26
     }
16
-    h3 {
17
-      font-size:14px;
18
-      line-height:18px;
19
-    }
20
-    .row-fluid {
21
-      > [class*="span"] {
22
-        float:none;
23
-        width:auto;
24
-      } 
25
-    }
26
-  }
27 27
 }

+ 7
- 0
oscar/static/oscar/less/page/responsive-767px-max.less View File

@@ -98,6 +98,13 @@
98 98
 		}
99 99
 	}
100 100
 
101
+	// Basket items
102
+	.basket-items {
103
+	  img {
104
+	    margin: 0 0 @baseLineHeight / 2;
105
+	  }
106
+	}
107
+
101 108
 	// Checkout navigation
102 109
 	.nav-checkout {
103 110
 		// For mobile lets only show the active and the previous link in the checkout

+ 54
- 0
oscar/static/oscar/less/page/reviews.less View File

@@ -0,0 +1,54 @@
1
+// Review styles
2
+.review {
3
+    margin-bottom:@baseLineHeight;
4
+    .clearfix();
5
+    h3 {
6
+        margin-bottom: @baseLineHeight / 2;
7
+        overflow: hidden;
8
+        text-overflow: ellipsis;
9
+    }
10
+    // Vote forms inline with "Is this review helpful?"
11
+    form {
12
+        display:inline-block;
13
+        *display:inline;
14
+        zoom:1;
15
+        margin-bottom:0;
16
+    }
17
+}
18
+
19
+// Star Rating using font icons for 5 stars
20
+.star-rating {
21
+    color:#CBCBCB;
22
+    i {
23
+	letter-spacing: -1px;
24
+	width:auto;
25
+    }
26
+    a {
27
+        margin-left:10px;
28
+    }
29
+}
30
+.star-rating.One {
31
+    i:first-child {
32
+        color:#E6CE31;
33
+    }
34
+}
35
+.star-rating.Two {
36
+    i:first-child, i:first-child + i {
37
+        color:#E6CE31;
38
+    }
39
+}
40
+.star-rating.Three {
41
+    i:first-child, i:first-child + i, i:first-child + i + i {
42
+        color:#E6CE31;
43
+    }
44
+}
45
+.star-rating.Four {
46
+    i:first-child, i:first-child + i, i:first-child + i + i, i:first-child + i + i + i {
47
+        color:#E6CE31;
48
+    }
49
+}
50
+.star-rating.Five {
51
+    i {
52
+        color:#E6CE31;
53
+    }
54
+}

+ 67
- 0
oscar/static/oscar/less/page/type.less View File

@@ -0,0 +1,67 @@
1
+// Re setting margins to the bottom only
2
+h1,
3
+h2,
4
+h3,
5
+h4,
6
+h5,
7
+h6,
8
+p,
9
+form,
10
+.control-group,
11
+.table,
12
+.page-header,
13
+.sub-header {
14
+    margin:0 0 @baseLineHeight;
15
+}
16
+ul,
17
+ol {
18
+    margin-bottom:@baseLineHeight;
19
+}
20
+.page-header,
21
+.sub-header,
22
+.table {
23
+    h1, h2, h3, h4, h5, h6, form {
24
+        margin-bottom:0;
25
+    }
26
+}
27
+
28
+// Heading fonts a little smaller
29
+h1, .h1 { font-size: @baseFontSize * 2.15; line-height: @baseLineHeight * 2; } // 30px
30
+h2, .h2 { font-size: @baseFontSize * 1.75; line-height: @baseLineHeight * 2; } // 24px
31
+h3, .h3 { font-size: @baseFontSize * 1.25; line-height: @baseLineHeight * 1.2; } // 18px
32
+h4, .h4 { font-size: @baseFontSize * 1.15; line-height: @baseLineHeight * 1.2; } // 16px
33
+h5, .h5 { font-size: @baseFontSize; line-height: @baseLineHeight; } // 14px
34
+
35
+// Page / sub headers consistant
36
+.sub-header {
37
+    padding-bottom: (@baseLineHeight / 2) - 1;
38
+    border-bottom: 1px solid @grayLighter;
39
+}
40
+.page-header {
41
+    h1,h2 {
42
+        font-size: @baseFontSize * 2.14;
43
+        line-height: 40px;
44
+    }
45
+}
46
+// Sub header a little lighter
47
+.sub-header {
48
+    h2,h3,h4 {
49
+        font-size: @baseFontSize * 1.6; // 22px
50
+        line-height: @baseLineHeight * 1.5;
51
+        font-weight:normal;
52
+        color:@grayDark;
53
+    }
54
+}
55
+
56
+// Text alignment
57
+.align-right,
58
+.table .align-right,
59
+.table .align-right {
60
+    text-align:right;
61
+}
62
+
63
+.align-center,
64
+.table .align-center,
65
+.table .align-center {
66
+    text-align:center;
67
+}

+ 16
- 0
oscar/static/oscar/less/page/wells.less View File

@@ -0,0 +1,16 @@
1
+// Modifications / additons to wells
2
+.well {
3
+	.clearfix();
4
+}
5
+.well-success {
6
+	background-color: @successBackground;
7
+	border-color: @successBorder;
8
+}
9
+.well-info {
10
+	background-color: @infoBackground;
11
+	border-color: @infoBorder;
12
+}
13
+.well-blank {
14
+	background-color: @white;
15
+	border-color: rgba(0,0,0,.1);
16
+}

+ 11
- 7
oscar/static/oscar/less/styles.less View File

@@ -12,7 +12,7 @@
12 12
 @import "bootstrap/variables.less"; // Modify this for custom colors, font-sizes, etc
13 13
 @import "bootstrap/mixins.less";
14 14
 
15
-// Oscar variables and mixins
15
+// Oscar variables
16 16
 @import "page/mixins.less"; // Kept separtate for bootstrap updates - but should be imported into bootstap mixins.
17 17
 
18 18
 // CSS Reset
@@ -65,15 +65,19 @@
65 65
 @import "bootstrap/carousel.less";
66 66
 @import "bootstrap/hero-unit.less";
67 67
 
68
-// Unique Page Styles
69
-@import "page/layout.less"; // Note: combine and remove with layout.less in bootstrap - it was kept separate on intital for bootstrap updates
70
-@import "page/head_foot.less";
71
-@import "page/account.less";
72
-@import "page/checkout.less";
68
+// Oscar: Unique
69
+@import "page/layout.less";
70
+@import "page/type.less";
71
+@import "page/forms.less";
72
+@import "page/header.less";
73 73
 @import "page/product_lists.less";
74 74
 @import "page/product_page.less";
75
-@import "page/plugins.less";
75
+@import "page/reviews.less";
76 76
 @import "page/promotions.less";
77
+@import "page/checkout.less";
78
+@import "page/wells.less";
79
+@import "page/plugins.less";
80
+
77 81
 
78 82
 // Utility classes
79 83
 @import "bootstrap/utilities.less"; // Has to be last to override when necessary

+ 10
- 14
oscar/templates/oscar/basket/partials/basket_content.html View File

@@ -46,13 +46,11 @@
46 46
                         <div class="row-fluid">
47 47
                             <div class="span2">
48 48
                                 {{ form.id }}
49
-                                <div class="image_container">
50
-                                    {% with image=product.primary_image %}
51
-                                        {% thumbnail image.original "100x100" upscale=False as thumb %}
52
-                                        <a href="{{ product.get_absolute_url }}"><img class="thumbnail" src="{{ thumb.url }}" alt="{{ product.get_title }}"/></a>
53
-                                        {% endthumbnail %}
54
-                                    {% endwith %}
55
-                                </div>
49
+                                {% with image=product.primary_image %}
50
+                                    {% thumbnail image.original "100x100" upscale=False as thumb %}
51
+                                    <a href="{{ product.get_absolute_url }}"><img class="thumbnail" src="{{ thumb.url }}" alt="{{ product.get_title }}"/></a>
52
+                                    {% endthumbnail %}
53
+                                {% endwith %}
56 54
                             </div>
57 55
                             <div class="span4">
58 56
                                 <h4><a href="{{ product.get_absolute_url }}">{{ line.description }}</a></h4>
@@ -165,13 +163,11 @@
165 163
                         <div class="row-fluid">
166 164
                             <div class="span2">
167 165
                                 {{ form.id }}
168
-                                <div class="image_container">
169
-                                    {% with image=form.instance.product.primary_image %}
170
-                                        {% thumbnail image.original "100x100" upscale=False as thumb %}
171
-                                        <a href="{{ form.instance.product.get_absolute_url }}"><img class="thumbnail" src="{% static thumb.url %}" alt="{{ form.instance.product.get_title }}"></a>
172
-                                        {% endthumbnail %}
173
-                                    {% endwith %}
174
-                                </div>
166
+                                {% with image=form.instance.product.primary_image %}
167
+                                    {% thumbnail image.original "100x100" upscale=False as thumb %}
168
+                                    <a href="{{ form.instance.product.get_absolute_url }}"><img class="thumbnail" src="{% static thumb.url %}" alt="{{ form.instance.product.get_title }}"></a>
169
+                                    {% endthumbnail %}
170
+                                {% endwith %}
175 171
                             </div>
176 172
                             <div class="span6">
177 173
                                 <h4><a href="{{ form.instance.product.get_absolute_url }}">{{ form.instance.description }}</a></h4>

+ 3
- 3
oscar/templates/oscar/basket/partials/basket_quick.html View File

@@ -6,7 +6,7 @@
6 6
 {% load i18n %}
7 7
 {% load staticfiles %}
8 8
 
9
-<ul class="basket_item">
9
+<ul class="basket-mini-item unstyled">
10 10
     {% if request.basket.num_lines %}
11 11
         {% for line in request.basket.all_lines %}
12 12
             <li>
@@ -21,7 +21,7 @@
21 21
                         </div>
22 22
                     </div>
23 23
                     <div class="span6">
24
-                        <h4><a href="{{ line.product.get_absolute_url }}">{{ line.description }}</a></h4>
24
+                        <h5><a href="{{ line.product.get_absolute_url }}">{{ line.description }}</a></h5>
25 25
                     </div>
26 26
                     <div class="span1 align-center"><strong>{% trans "Qty" %}</strong> {{ line.quantity }}</div>
27 27
                     <div class="span2 price_color align-right">{{ line.unit_price_excl_tax|currency:request.basket.currency }}</div>
@@ -29,7 +29,7 @@
29 29
             </li>
30 30
         {% endfor %}
31 31
         <li class="form-actions">
32
-            <h4>
32
+            <h4 class="align-right">
33 33
                 {% if request.basket.is_tax_known %}
34 34
                     <small>{% trans "Total:" %} {{ request.basket.total_incl_tax|currency:request.basket.currency }}</small> 
35 35
                 {% else %}

+ 1
- 1
oscar/templates/oscar/catalogue/partials/product.html View File

@@ -36,7 +36,7 @@
36 36
         <div class="product_price">
37 37
             {% include "catalogue/partials/stock_record.html" %}
38 38
             {% if product.is_group %}
39
-                <a class="btn btn-full" href="{% url 'catalogue:detail' product.slug product.id %}">{% trans "View" %}</a>
39
+                <a class="btn btn-block" href="{% url 'catalogue:detail' product.slug product.id %}">{% trans "View" %}</a>
40 40
             {% else %}
41 41
                 {% include "catalogue/partials/add_to_basket_form_compact.html" %}
42 42
             {% endif %}

+ 1
- 1
oscar/templates/oscar/checkout/shipping_address.html View File

@@ -22,7 +22,7 @@
22 22
         {% if addresses %}
23 23
             <h3>{% trans "An address from your addressbook?" %}</h3>
24 24
             <div class="choose-block">
25
-                <ul class="row-fluid">
25
+                <ul class="row-fluid unstyled">
26 26
                     {% for address in addresses %}
27 27
 					<li class="span6">
28 28
 						<div class="well">

+ 2
- 2
oscar/templates/oscar/customer/login_registration.html View File

@@ -22,7 +22,7 @@
22 22
 
23 23
     <div class="row-fluid">
24 24
         <div class="span6 login_form">
25
-            <form id="login_form" action="{{ request.get_full_path }}" method="post" class="form-stacked" >
25
+            <form id="login_form" action="{{ request.get_full_path }}" method="post" class="well" >
26 26
                 <h2>{% trans 'Log In' %}</h2>
27 27
                 {% csrf_token %}
28 28
                 {% include "partials/form_fields.html" with form=login_form %}
@@ -31,7 +31,7 @@
31 31
             </form>
32 32
         </div>
33 33
         <div class="span6 register_form">
34
-            <form id="register_form" action="{{ request.get_full_path }}" method="post" class="form-stacked">
34
+            <form id="register_form" action="{{ request.get_full_path }}" method="post" class="well">
35 35
                 <h2>{% trans 'Register' %}</h2>
36 36
                 {% csrf_token %}
37 37
                 {% include "partials/form_fields.html" with form=registration_form %}

+ 1
- 1
oscar/templates/oscar/partials/footer.html View File

@@ -4,7 +4,7 @@
4 4
         {% comment %}
5 5
             Could be used for displaying links to privacy policy, terms of service, etc.
6 6
             We have a CSS class defined:
7
-                <ul class="footer_links">
7
+                <ul class="footer_links inline">
8 8
                     ...
9 9
                 </ul>
10 10
          {% endcomment %}

+ 18
- 20
oscar/templates/oscar/partials/mini_basket.html View File

@@ -2,23 +2,21 @@
2 2
 {% load currency_filters %}
3 3
 {% load i18n %}
4 4
 
5
-<ul class="cart span5 hidden-phone">
6
-    <li>
7
-        <div class="btn-group">
8
-            <a class="btn" href="{% url 'basket:summary' %}">{% trans "View basket" %}</a>
9
-            <button class="btn dropdown-toggle" data-toggle="dropdown">
10
-                <span class="caret"></span>
11
-            </button>
12
-            <ul class="dropdown-menu pull-right">
13
-                <li>{% include "basket/partials/basket_quick.html" %}</li>
14
-            </ul>
15
-        </div>
16
-    </li>
17
-    <li class="cart_summary"><strong>{% trans "Basket total:" %} <span>
18
-        {% if request.basket.is_tax_known %}
19
-            {{ request.basket.total_incl_tax|currency:request.basket.currency }}
20
-        {% else %}
21
-            {{ request.basket.total_excl_tax|currency:request.basket.currency }}            
22
-        {% endif %}
23
-    </span></strong></li>
24
-</ul><!-- /cart -->
5
+<div class="basket-mini pull-right hidden-phone">
6
+    <strong>{% trans "Basket total:" %}</strong>
7
+    {% if request.basket.is_tax_known %}
8
+        {{ request.basket.total_incl_tax|currency:request.basket.currency }}
9
+    {% else %}
10
+        {{ request.basket.total_excl_tax|currency:request.basket.currency }}
11
+    {% endif %}
12
+
13
+    <span class="btn-group">
14
+        <a class="btn" href="{% url 'basket:summary' %}">{% trans "View basket" %}</a>
15
+        <button class="btn dropdown-toggle" data-toggle="dropdown">
16
+            <span class="caret"></span>
17
+        </button>
18
+        <ul class="dropdown-menu pull-right">
19
+            <li>{% include "basket/partials/basket_quick.html" %}</li>
20
+        </ul>
21
+    </span>
22
+</div>

Loading…
Cancel
Save