/
app-quickstart.css
531 lines (343 loc) · 17.5 KB
/
app-quickstart.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
@charset "utf-8";
/*
The css in this file is optimized for a mobile device, then uses media queries to tailor the experience for larger browsers.
That way, the mobile device (which typically has less power) can skip all the heavy lifting of dealing w/ the media queries.
The media queries are located at the bottom of this file.
*/
body,html {font-size:85%;} /* increased for non mobile devices w/ a media query */
#appTemplates {display:none;} /* container for all templates. should be hidden */
#appPreView {width:50%; max-width:550px; margin:0 auto;}
section {display:block;}
/*
*** 201338 -> here to fix a bug in jqueryUI. the dialogs, when attempting to move, would jump away from the cursor in FF. This fixed it.
Put this high in the doc as a reminder to occassionally re-check if it can be removed
*/
.ui-dialog {
position: fixed;
}
/*
loading class. add class to your templates if you want a loading graphic to appear while data is requested. add only to the parent element.
loadingBG classname is removed once template is rendered.
note - wait should only be used in cases where the entire template is being reloaded. the class is NOT automatically removed ever.
note - background- are use instead of background in case element this is applied to has a bgcolor and it's !important. (like a modal parent)
*/
.loadingBG {background-image:url(loading.gif) !important; background-repeat: no-repeat !important; background-position: center center; min-height:100px !important; min-width:100px;}
li.loadingBG, .wait {background:url(wait.gif) no-repeat top center !important; min-height:20px !important; min-width:20px;}
span.wait {display:inline-block;}
/* global styles - added for cross-browser uniformity or usability */
img {border:0; vertical-align: top; display:inline-block;} /* vertical-align: top; removes the whitespace sometimes added under an image. */
a:focus { outline: none; } /* disable the outline around links. it's unattactive */
a.blockLink {text-decoration:none; cursor:pointer;} /* used for #! anchors. IE needs the cursor defined or it shows as an arrow instead of a hand. */
button {display:inline-block; margin: 0; padding: 0; cursor:pointer;}
/* for small buttons */
.smallButton .ui-button-text {line-height:normal; font-size:.75em;} /* don't mess with padding. will effect icon buttons */
.smallButton .ui-button-text-icon-primary .ui-button-icon-primary {left:.25em}
p {margin-bottom:1em;}
table {
border-collapse: collapse;
border-spacing: 0;
}
td {vertical-align:top;}
td.valignMiddle {vertical-align: middle;}
/* feel free to delete these or override in your own .css file */
h1, h2, h3, h4, h5, h6 {padding:0; margin:0;}
/* some optional form styling
<label><span class='prompt'>prompt</span><input class='alignInput'></label> w/ alignedForm class around it on form, fieldset, whatever
*/
.alignedForm label {display:block; clear:both; margin:0 0 .2em 0; padding:0; vertical-align:top;} /* remove padding/margin to ensure cross-browser consistency */
.alignedForm label:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.alignedForm .prompt {text-align:right; float:left; width:35%; display:block; margin-right:2%;}
.alignedForm .alignInput {width:55%; float:right;} /* not enforcing width is common enough that it justifies using a class to enforce it. */
/* chrome and safari add an outer border/glow to the input in focus. this removes it. */
input:focus {
outline:none;
}
input.numberInput {width:50px}
label span.prompt {display:inline-block; width:20%; margin-right:2em; vertical-align:top;}
button:focus {outline:none;}
/*
classes used on menus that are toggled on/off. wrap offMenu around the default buttons and onMenu around buttons that get turned on.
for example, in /customer/myaccount, a 'change' button is displayed (wrapped in offMenu) for each address. onClick, 'onMenu' is toggled on, revealing save and cancel
and offMenu is toggle off, hiding the change button.
*/
.onMenu {display:none;}
.offMenu {}
.bindByAnchor {} /* here just to give a little aid to wysiwyg editors. no styles should be applied. used w/ bindNav feature */
/* some general classes used for styling templates. feel free to use these. It's not recommended you delete or rename them */
/* positioning */
.floatLeft {float:left;}
.floatRight {float:right;}
.alignCenter {text-align:center;}
.alignLeft {text-align:left;}
.alignRight {text-align:right;}
.alignJustify {text-align:justify;}
.center {margin:0 auto;}
/* aesthetics/usability */
/* added to buttons (such as place order) when they're disabled to clearly indicate they should not be clicked again. */
.disabled {
cursor:crosshair !important;
filter: alpha(opacity=50);
opacity:0.5;
}
.formValidationError, .zwarn {color:#cc0000;} /* applied to errors displayed in form validation or generic warnings */
.pointer {cursor:pointer;}
/* used when an element needs to start of hidden. this is used frequently. */
.displayNone {display:none;}
.lineThrough {text-decoration:line-through}
.underline {text-decoration:underline; cursor:pointer} /* only use this on clickable text */
.borderNone {border:none;}
.clearfix {clear:both;}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
/* added to a piece of text once it becomed editable */
.editable {} /* put this on any editable field. */
.editEnabled {border:1px solid #ffcc00; min-width:25px; min-height:22px; width:200px; display:inline-block; padding:2px; margin-bottom:2px;} /* added to any editable field once editor is enabled. */
.edited {border:1px solid #390;} /* added if a field is changed */
.marginLeft {margin-left:1em;}
.marginRight {margin-right:1em;}
.marginTop {margin-top:1em;}
.marginBottom {margin-bottom:1em;}
.stdMargin {margin:1em;}
.headerPadding {padding: .2em .4em;} /* for use in headings or legends that use the ui-state classes and need a little padding within. */
.stdPadding {padding:1em;}
.smallPadding {padding:.5em;}
.fullWidth {width:100%;}
.buyerLoggedIn .hideIfLoggedIn {display:none;}
.hideIfLoggedOut {display:none;}
.buyerLoggedIn .hideIfLoggedOut {display: block;} /* may be 'block' */
.buyerLoggedIn span.hideIfLoggedOut, .buyerLoggedIn a.hideIfLoggedOut {display: inline;} /* ensures inline on span elements */
.hint {font-weight:normal; font-size:.8em;}
/* used in order history and faq (possibly other places) in a format similar to an accordian, but more than one panel can be open. */
.appAccordianesque .ui-accordion-header {padding:.5em 2em;}
/* pages like company and/or customer are in a two column format. by default, a narrow right w/ nav and the main column w/ content. */
.mainColumn {width:75%;}
.sideline {float:right; width:20%; margin:0 0 2em 0;}
.sideline a {padding:.3em 0; text-decoration:none; display:block;} /* recommend at least 5px vert padding for mobile/pad */
/* app nav */
#appNav {position:relative; height:1px; overflow:visible; z-index:99;}
#appNav .prodDetailPrevItemButton {position:absolute; top:20px; left:-10px;}
#appNav .prodDetailNextItemButton {position:absolute; top:20px; right:-10px;}
/*
LISTS (product list and/or subcategory list)
these get used just about everywhere. leave these fairly generic
and override using classes or id's as needed.
*/
a.blockLink {border:none; display:block;}
.listStyleNone, .listStyleNone li {list-style:none;} /* apply to a ul or ol */
.noPadOrMargin {padding:0; margin:0;}
.fluidList li {float:left; margin:1em; padding:0; display:inline-block;}
.quickView {position:absolute; top:5px; right:5px; z-index:1001;} /* jqui modal has zindex 1002 */
/* over rides - height and width ensure each row is the same height. percentages could be used for width */
.productList > li {width:150px; height:250px; position:relative;}
.lineItemProdlist > li {position:relative; display:block; padding:1em 0; float:none; width:auto; height:auto !important; border-bottom:1px dotted #efefef;} /* single column product list - used in cart, checkout, etc. productList class is also defined in these cases. */
.lineItemProdlist .prodThumb {margin-right:1em;}
.categoryList > li {width:150px; height:200px;}
.productList h4, .productList h5, .productList h6, .categoryList h4, .categoryList h5, .categoryList h6 {padding:0; margin:0;} /* h4 - h6 are used in default templates for name, price, etc */
.productList li, .categoryList li {font-size:.8em;}
.productList h4, .categoryList h4 {font-size:1em;}
.productList h5, .categoryList h5 {font-size:.9em;}
.productList h6, .categoryList h6 {font-size:.85em;}
/* multpage header for lists (product list) - most styling handled by jqueryUI */
.mpControls {padding:.3em .8em;}
/* used for the picture slider mouse over effect in some product lists */
.slideMe {position:absolute; top:0px;}
.slideMe, .slideMe li {list-style:none; margin:0; padding:0;}
.slideMe li {float:left; margin-right:2px; border:0;}
/* for variations */
.variation {margin-bottom:.5em;} /* class applied to div containing a variation group */
.variation_radio span label {display:block; margin-bottom:.5em; margin-left:1em;}
/*
PRODUCT DETAIL PAGE (productTemplate)
*/
.prodViewerContainer {width:100%;}
.breadAndAddThisContainer {margin-bottom:.5em; padding-bottom:.5em; border-bottom:1px dotted #b6b6b6;}
/* primary image and thumbnails */
.imageContainer {width:10%; padding-right:2em;}
.prodViewerContainer .prodThumbs div {float:left; margin:1em 1em 0 0;}
.prodSummaryContainer {width:90%;}
.tabbedProductContent .prodReviewsTab {display:block;} /* reviews tab always shows up */
/*
the child list and loading graphic should only show up IF the product is a parent.
so the displayNone class is used, then a .grpType_PARENT class is added if the item is a parent.
*/
.grpType_PARENT {display:block; margin-bottom:1em;}
#prodlistChildren li {width:75px; height:120px; overflow:hidden; margin-left:0;}
.prodViewerAddToCartForm {margin-bottom:2em;}
.prodViewerAddToCartForm fieldset {margin-bottom: 1em; padding:0;}
.variation > label:after {content:":"; padding-right:1em;} /* applies to first label in a group. so no impact on radio labels */
.CRMButtonMenu {margin:0; padding:0; margin-bottom:1em;}
.variation_attribs {display:none;} /* don't show finder attributes */
/* REVIEW GFX - used for review summary and in list of reviews on product detail page */
.reviewSummaryContainer .numReviews {line-height:21px; display:inline-block; height:21px; float:left; margin-left:.5em; padding-right:.5em;}
.reviewSummaryContainer .numReviews:after {content:": "}
.reviewSprite {background: url(qs_reviews_stars-124x324.png) no-repeat; width:124px; height:22px; display:none;} /* display none hides the reviews for the 'zero' reviews graphic */
.review_1, .review_2, .review_3, .review_4, .review_5, .review_6, .review_7, .review_8, .review_9, .review_10 {display:inline-block;} /* show 1/2 - 10 stars */
.review_1 {background-position:0 -29px;}
.review_2 {background-position:0 -61px;}
.review_3 {background-position:0 -91px;}
.review_4 {background-position:0 -121px;}
.review_5 {background-position:0 -151px;}
.review_6 {background-position:0 -181px;}
.review_7 {background-position:0 -211px;}
.review_8 {background-position:0 -241px;}
.review_9 {background-position:0 -271px;}
.review_10 {background-position:0 -302px;}
.prodlist .review_0 {display:none;} /* hide the stars for items with no reviews */
/* REVIEW LIST - on product detail page, used for product reviews. */
#prodViewerReviews {margin:0; padding:0;} /* parent ul containing all reviews, each review as an li */
.reviewLineItem {margin:0 0 1em 0; padding:0 0 1em 0; display:block; clear:both; border-bottom:1px #cccccc dotted;} /* on the li of an individual review */
.prodReviewInfo {float:left; display:block; width:165px; list-style:none; margin:0 1em 0px 0; font-weight:normal; padding:0;} /* on the ul of the list containing the name, location, date, etc */
.prodReviewInfo li {display:block; clear:both;} /* applies to li for location, name, date, etc */
.prodReviewTemplate li p {font-weight:normal; margin:0; padding:0;}
.reviewLineItem blockquote {margin:0 0 0 185px; padding:0;}
/*
BREADCRUMB
-> used on product and category pages
*/
.breadcrumb {margin-bottom:1em;}
.breadcrumb li {padding:0; margin:0; cursor:pointer; padding-right:10px;}
.breadcrumb li:after {content:" \00BB "; padding-left:1em; font-size:1em; font-weight:bold; color:#999999;}
.breadcrumb li:last-child:after {content:"";}
.breadcrumb li:last-child a {color:#666666; text-decoration:none; font-weight:bold; cursor:text;}
/*
cartTemplate
*/
.cartContainer {width:100%;}
#mainContentArea_cart .continueShoppingButton {display:none;} /* used in modal cart only */
.cartSummaryTotalsContainer .ui-widget .cartRefreshButton {margin: -4px 0 0 0; float:right;}
/*
CUSTOMER PAGES
*/
/* NEWSLETTER SUBSCRIBE/ACCOUNT CREATE */
#subscribeFormContainer .userInfo div {margin-bottom:.5em;}
#subscribeFormContainer li {list-style:none;}
#subscribeFormContainer .userInfo label, #changePasswordForm label {width:120px; display:inline-block; margin-right:1em;}
.subscribeListItem {display:block; height:30px;}
/* ORDER HISTORY AND INVOICE */
#ordersArticle .ui-accordion-content {padding:.4em} /* reduce padding here to make a little extra room */
#ordersArticle .orderContentsTable {width:100%}
/* ### TODO -> find where this is used and make it responsive */
#orderInvoiceSoloPage table {width:700px;}
.orderContentsProdlistContainer {width:500px;}
.orderContentsProdlistContainer .prodThumbContainer {float:left; margin:0 .5em .5em 0;}
.invoiceAddressContainer .billAddress, .invoiceAddressContainer .shipAddress {margin-bottom:1em;}
/* MY ACCOUNT */
#buyerAddresses {margin-bottom:1em;}
#buyerAddresses h2 {margin:1em 0; clear:both;}
#buyerAddresses address {margin:0 0px 1em 0; float:left; width:90%; display:block; padding:1em;}
/* buyer lists */
.smallButtonList .ui-button-icon-only {width:1.4em}
.smallButtonList .ui-button-icon-only .ui-button-text {height:1.4em; padding:0;}
.buyerList .prodThumbContainer {position:relative;}
/*
SEARCH RESULTS PAGE
*/
#mainContentArea_search {position:relative;}
.resultsHeader {position:relative; padding:.3em 1em;}
.resultsMenuContainer {position:absolute; top:1px; left:3px;}
.resultsMenuContainer .resultsMenu {margin:.3em 1em 0 0;} /* used for sorting and pagination menus */
.resultsMenuContainer ul.ui-menu ul {z-index:10000; width:150px;}
.resultsHeader .nextPageButton, .resultsHeader .prevPageButton {float:right;}
.resultsMenuContainer .ui-menu-icon {float:left;} /* make sure > icon in menu's floats to the left when subnav is avail. */
.minimalMode .hideInMinimalMode {display:none;}
.minimalMode .searchResultsProduct {
height:120px; width:120px; overflow:hidden; margin:0 .5em .5em 0;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box;
}
/*
HELP PAGES
*/
/* FAQ /
### TODO -> why is this commented out?
.faqQuestion:before, .faqAnswer:before {font-size:1.4em; font-weight:bold; padding-right:10px; color:#CCCCCC; display:inline-block;}
.faqQuestion:before {content:"Q: ";}
.faqAnswer:before {content:"A: ";}
.faqAnswer {margin-bottom:12px;}
/*
CART
*/
.cartStuffContainer {width:100%; margin:0 0 1em 0;}
#cartStuffList {list-style:none; margin:0; padding:0; font-size:.85em;}
#cartStuffList li {display:block; margin:0 0 1em 0;}
.cartButtons {text-align:center;}
.cartButtons .thisButton {display:block; margin-bottom:.5em;}
.cartSummaryTotalsContainer h2 {font-size:.8em;}
/* Pure CSS3 Multi Level Drop Down Navigation Menu */
/* http://www.bloggermint.com/demos/darknavmenu/# */
/* menu container */
.ddUlMenu {
overflow: hidden;
}
.ddUlMenu ul {
margin:0;
padding:0;
list-style:none;
}
/* tier1 menu behavior */
.ddUlMenu ul li {
margin:0;
padding:0;
list-style:none;
}
/* tier 1 menu link style (ok to change this). will affect tier2 also */
.ddUlMenu ul li a {
float: left;
text-decoration:none;
padding:0 1em;
cursor:pointer;
}
.ddUlMenu li ul {
left: -999em;
margin: 14px 0px 0 -20px; /* top margin should = tier 1 line-height - 1px...ish */
position: absolute;
width: 160px;
z-index: 9999;
}
.ddUlMenu li:hover ul {
left: auto;
}
/* tier 2 nav */
.ddUlMenu li ul li {cursor:pointer;} /* click is likely binded to li, so make it all a cursor */
.ddUlMenu li ul a {
background: none;
line-height:24px;
font-weight:normal; font-size:.8em;
display:block;
border: 0 none;
width: 160px;
}
.debug {position:fixed; bottom:0; left:0; right:0; background:#ffffff; color:#000000; border-top:1px solid #666666; padding:.5em;}
/* cart product list */
@media only screen and (min-width: 400px) {
body,html {font-size:100%;}
}
@media only screen and (min-width: 750px) {
/* invoice address get aligned on the same row now that space allows for it. the container around the addresses will handle the margin now. */
.invoiceAddressContainer .billAddress, .invoiceAddressContainer .shipAddress {float:left; margin-bottom:0;}
.invoiceAddressContainer .billAddress {margin-right:2em;}
/* shift cart totals to right side */
.cartSummaryTotalsContainer, .cartStuffContainer {width:49%;}
.cartStuffContainer {float:left;}
.cartSummaryTotalsContainer {float:right;}
.cartButtons .thisButton {float:right; margin:0 0 .4em .4em;}
.cartButtons .continueShoppingSpan {float:left; margin:0;}
.companyAddress {float:left; margin-right:2em; width:40%;}
.hint {font-weight:normal; font-size:.7em;}
}
@media only screen and (min-width: 1024px) {
.cartTemplateShippingContainer {float:left; width:48%;}
.cartSummary {float:right; width:48%; text-align:right;}
}