smock 0.1.115 → 0.1.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smock (0.1.115)
4
+ smock (0.1.116)
5
5
  sass (= 3.2.19)
6
6
  thor (= 0.19.1)
7
7
 
@@ -1,5 +1,4 @@
1
1
  .image--blocked
2
- +space(margin-bottom)
3
2
  display: block
4
3
 
5
4
  .avatar
@@ -51,4 +50,4 @@
51
50
  text-transform: uppercase
52
51
 
53
52
  .avatar--small
54
- +space(min-height, 3)
53
+ +space(min-height, 3)
@@ -0,0 +1,8 @@
1
+ .s-no-below
2
+ margin-bottom: 0
3
+
4
+ .s-small-below
5
+ +space(margin-bottom)
6
+
7
+ .s-medium-below
8
+ +space(margin-bottom, 2)
@@ -27,6 +27,11 @@ a
27
27
  &:hover
28
28
  text-decoration: underline
29
29
 
30
+ a.nav
31
+ text-decoration: none
32
+ &:hover
33
+ text-decoration: underline
34
+
30
35
  a.active
31
36
  font-weight: bold
32
37
 
@@ -61,3 +66,6 @@ cite
61
66
 
62
67
  .heading--normal-weight
63
68
  font-weight: normal
69
+
70
+ .heading__inline
71
+ color: $gray
@@ -0,0 +1,23 @@
1
+ // 12px
2
+ .th-size-small
3
+ +typecsset-font-size($small-font-size)
4
+
5
+ // 14px
6
+ .th-size-normal
7
+ +typecsset-font-size($base-font-size)
8
+
9
+ // 18px
10
+ .th-size-medium
11
+ +typecsset-font-size($first-font-size)
12
+
13
+ // 26px
14
+ .th-size-large
15
+ +typecsset-font-size($second-font-size)
16
+
17
+ // 38px
18
+ .th-size-xlarge
19
+ +typecsset-font-size($third-font-size)
20
+
21
+ //48px
22
+ .th-size-xxlarge
23
+ +typecsset-font-size($fourth-font-size)
@@ -0,0 +1,7 @@
1
+ .metric
2
+ +clearfix
3
+ color: $gray
4
+
5
+ .metric__copy
6
+ .metric__copy__stat
7
+ .metric__copy__name
@@ -23,13 +23,15 @@
23
23
  margin-bottom: 0
24
24
  height: auto
25
25
 
26
- .read__more
27
26
  .read__more--expanded
28
27
  display: none
29
28
  margin: 0
30
29
 
31
30
  .profile__review__quote
32
- +space(margin, 1)
31
+ +space(margin-top)
32
+ +space(margin-left)
33
+ +space(margin-right)
34
+
33
35
  text-align: center
34
36
  blockquote
35
37
  margin-left: 0
@@ -62,4 +64,4 @@
62
64
  .profile__review__box:before
63
65
  border-top-color: $gray-lightest2
64
66
  border-width: 14px
65
- margin-left: -14px
67
+ margin-left: -14px
@@ -20,6 +20,8 @@
20
20
  @import "includes/forms"
21
21
  @import "includes/layouts"
22
22
  @import "includes/molecules"
23
+ @import "includes/typography_helpers"
24
+ @import "includes/space_helpers"
23
25
 
24
26
  @import "modules/am_grid"
25
27
  @import "modules/styleguide"
@@ -44,6 +46,7 @@
44
46
  @import "modules/stars"
45
47
  @import "modules/service_collection"
46
48
  @import "modules/tooltip"
49
+ @import "modules/metric"
47
50
 
48
51
  html.vr
49
52
  background-image: -webkit-linear-gradient(right, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 51%,rgba(255,255,255,0) 100%), -webkit-linear-gradient(bottom, rgba(128,128,128,1) 0%, rgba(128,128,128,0) 8%, rgba(128,128,128,0) 100%)
@@ -293,11 +293,9 @@
293
293
  <h3 class="no-margin">zlaws</h3>
294
294
  <p class="caption__secondary">London, United Kingdom<span>Joined March 2013</span></p>
295
295
  <div class="profile__bio__text read__more">
296
- <p>I'm pretty sure you might be picturing the person behind this profile sitting in front of his laptop with a cup of coffee or an iced-cold beverage while assisting clients (like you - hopefully) with their needs. </p>
297
-
298
- <p>I hope to work with you very soon - waiting for your order :)</p>
299
-
300
- <p>Chris</p>
296
+ <p>I'm pretty sure you might be picturing the person behind this profile sitting in front of his laptop with a cup of coffee or an iced-cold beverage while assisting clients (like you - hopefully) with their needs. </p>
297
+ <p>I hope to work with you very soon - waiting for your order :)</p>
298
+ <p>Chris</p>
301
299
  </div>
302
300
 
303
301
  <ul>
@@ -427,7 +425,7 @@
427
425
  </div>
428
426
  </section>
429
427
 
430
- <section class="profile__review__quote">
428
+ <section class="profile__review__quote s-small-below">
431
429
  <blockquote class="profile__review__box">
432
430
  "We are very happy with his work. We didn't know exactly what we wanted for a logo,but he was very patient with us and delivered us a high quality product that we love. We recommend him highly and it was easy to work with him. "
433
431
  </blockquote>
@@ -11,9 +11,26 @@
11
11
  <title>Service Example - Envato Studio</title>
12
12
  <meta name="description" content="">
13
13
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
14
+ <script src="https://code.jquery.com/jquery-2.1.1.js"></script>
14
15
 
15
16
  <link rel="stylesheet" href="../../smock.css" />
16
17
  <link rel="stylesheet" href="../../svg_images.css" />
18
+ <style>
19
+ /* required to avoid jumping */
20
+ #fixed-wrapper {
21
+ position: relative;
22
+ }
23
+
24
+ #fixed-sidebar {
25
+ position: absolute;
26
+ top: 0;
27
+ }
28
+
29
+ #fixed-sidebar.fixed {
30
+ position: fixed;
31
+ padding-top: 22px;
32
+ }
33
+ </style>
17
34
  </head>
18
35
  <body am-grid>
19
36
 
@@ -286,12 +303,255 @@
286
303
 
287
304
  <section class="l-container">
288
305
 
306
+ <h2 class="s-no-below th-size-large">Express Retouch &amp; Color Correction <span class="heading__inline">3 days with 4 revisions</span></h2>
307
+ <p><a href="#" class="nav">Design &amp; Graphics</a></p>
308
+
309
+ <section class="l-content">
310
+ <img class="image--blocked s-small-below" src="http://placehold.it/700x528" height="528" alt="Service Placeholder" />
311
+ <section class="s-no-below profile__review__quote">
312
+ <blockquote class="profile__review__box">
313
+ "Great work! Plan on having you do a flyer for my business here shortly as well. Great work, great communication."
314
+ </blockquote>
315
+ <strong>Adam Noonan</strong><span class="profile__review__purchase-count">has ordered 2 jobs</span>
316
+ </section>
317
+ <hr />
318
+ <article>
319
+ <div am-grid-col="l:1:9">
320
+ <i class="hot-icon__twitter--color--round metrics__icon"></i>
321
+ </div>
322
+ <div class="th-size-medium" am-grid-col="l:8:9" am-grid-row="l:end">
323
+ <h3 class="no-margin">Express Retouch &amp; Color Correction</h3>
324
+ <p>Donec id elit non mi porta gravida at eget metus. Cras justo odio,
325
+ dapibus ac facilisis in, egestas eget quam.</p>
326
+ <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
327
+ vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor
328
+ ligula, eget lacinia odio sem nec elit. Nullam id dolor id nibh ultricies
329
+ vehicula ut id elit.</p>
330
+ </div>
331
+ </article>
332
+ <article class="s-small-below">
333
+ <div am-grid-col="l:1:9">
334
+ <i class="hot-icon__twitter--color--round metrics__icon"></i>
335
+ </div>
336
+ <div class="th-size-medium" am-grid-col="l:8:9" am-grid-row="l:end">
337
+ <h3 class="s-no-below">Briefing Details</h3>
338
+ <p>Consectetur dicta tempore pariatur praesentium tenetur? Voluptates
339
+ eum veniam tempore totam provident! Non qui laboriosam error esse
340
+ iusto? Illo beatae aspernatur sequi ducimus possimus, natus dicta
341
+ alias! Accusamus veniam excepturi?</p>
342
+ </div>
343
+ </article>
344
+
345
+ <div am-grid-col="l:9:9" class="s-medium-below">
346
+ <h3>311 Recommendations</h3>
347
+ <div am-grid-col="l:2:9">
348
+ <div class="hot-icon__star-off stars"><div class="stars stars--on hot-icon__star-on" style="width: 98%"></div></div>
349
+ Responsiveness
350
+ </div>
351
+ <div am-grid-col="l:2:9">
352
+ <div class="hot-icon__star-off stars"><div class="stars stars--on hot-icon__star-on" style="width: 96%"></div></div>
353
+ Communication
354
+ </div>
355
+ <div am-grid-col="l:2:9">
356
+ <div class="hot-icon__star-off stars"><div class="stars stars--on hot-icon__star-on" style="width: 95%"></div></div>
357
+ Quality
358
+ </div>
359
+ </div>
360
+
361
+ <img class="image--blocked s-medium-below" src="http://placehold.it/700x528" height="528" alt="Service Placeholder" />
362
+
363
+ <section class="s-medium-below profile__review__quote">
364
+ <blockquote class="profile__review__box">
365
+ "Great work! Plan on having you do a flyer for my business here shortly as well. Great work, great communication."
366
+ </blockquote>
367
+ <strong>Adam Noonan</strong><span class="profile__review__purchase-count">has ordered 2 jobs</span>
368
+ </section>
369
+
370
+ <img class="image--blocked s-no-below" src="http://placehold.it/700x528" height="528" alt="Service Placeholder" />
371
+ <hr />
372
+
373
+ <div am-grid-col="l:9:9" class="s-medium-below">
374
+ <h3>311 Recommendations</h3>
375
+ <div am-grid-col="l:2:9">
376
+ <div class="hot-icon__star-off stars"><div class="stars stars--on hot-icon__star-on" style="width: 98%"></div></div>
377
+ Responsiveness
378
+ </div>
379
+ <div am-grid-col="l:2:9">
380
+ <div class="hot-icon__star-off stars"><div class="stars stars--on hot-icon__star-on" style="width: 96%"></div></div>
381
+ Communication
382
+ </div>
383
+ <div am-grid-col="l:2:9">
384
+ <div class="hot-icon__star-off stars"><div class="stars stars--on hot-icon__star-on" style="width: 95%"></div></div>
385
+ Quality
386
+ </div>
387
+ </div>
388
+
389
+
390
+
391
+ <ul id="reviews" class="review__list" am-grid-col="l:9:9">
392
+ <li class="review">
393
+ <div am-grid-col="l:1:9">
394
+ <div class="avatar--small">
395
+ <img src="./provider_profile_page_files/60x60_user_avatar.png" class="avatar__image" width="60" height="60">
396
+ </div>
397
+ </div>
398
+ <div am-grid-col="l:8:9" am-grid-row="l:end">
399
+ <strong>webmaster1258</strong><span class="profile__review__purchase-count">has ordered 1 job</span>
400
+ <p class="no-margin">Perfect work. Excellent ideas and professional design.
401
+ I do recommend zlaws for your needs.
402
+
403
+ </p>
404
+ <p class="caption__secondary">September 2014</p>
405
+ <br>
406
+
407
+ </div>
408
+ </li>
409
+ <li class="review">
410
+ <div am-grid-col="l:1:9">
411
+ <div class="avatar--small">
412
+ <img src="./provider_profile_page_files/60x60_user_avatar.png" class="avatar__image" width="60" height="60">
413
+ </div>
414
+ </div>
415
+ <div am-grid-col="l:8:9" am-grid-row="l:end">
416
+ <strong>Anders89</strong><span class="profile__review__purchase-count">has ordered 3 jobs</span>
417
+ <p class="no-margin">Thx, good job ;)</p>
418
+ <p class="caption__secondary">September 2014</p>
419
+ <br>
420
+
421
+ <div am-grid-col="l:8:8">
422
+ <div am-grid-col="l:1:8">
423
+ <div class="avatar--small">
424
+ <img src="./provider_profile_page_files/thumbnail_profile-pic.jpg" class="avatar__image" width="60" height="60">
425
+ </div>
426
+ </div>
427
+ <div am-grid-col="l:7:8">
428
+ Reply from <strong>zlaws</strong>
429
+ <p class="no-margin">Great working with you :) </p>
430
+ <p class="caption__secondary">September 2014</p>
431
+ <br>
432
+ </div>
433
+ </div>
434
+
435
+ </div>
436
+ </li>
437
+ <li class="review">
438
+ <div am-grid-col="l:1:9">
439
+ <div class="avatar--small">
440
+ <img src="./provider_profile_page_files/60x60_user_avatar.png" class="avatar__image" width="60" height="60">
441
+ </div>
442
+ </div>
443
+ <div am-grid-col="l:8:9" am-grid-row="l:end">
444
+ <strong>carlosreloaded</strong><span class="profile__review__purchase-count">has ordered 2 jobs</span>
445
+ <p class="no-margin">Definetely recommended :)</p>
446
+ <p class="caption__secondary">September 2014</p>
447
+ <br>
448
+
449
+ <div am-grid-col="l:8:8">
450
+ <div am-grid-col="l:1:8">
451
+ <div class="avatar--small">
452
+ <img src="./provider_profile_page_files/thumbnail_profile-pic.jpg" class="avatar__image" width="60" height="60">
453
+ </div>
454
+ </div>
455
+ <div am-grid-col="l:7:8">
456
+ Reply from <strong>zlaws</strong>
457
+ <p class="no-margin">Always a pleasure working with Carlos on his requests. Great client and looking forward to work with you again mate.</p>
458
+ <p class="caption__secondary">September 2014</p>
459
+ <br>
460
+ </div>
461
+ </div>
462
+
463
+ </div>
464
+ </li>
465
+ <li class="review">
466
+ <div am-grid-col="l:1:9">
467
+ <div class="avatar--small">
468
+ <img src="./provider_profile_page_files/60x60_user_avatar.png" class="avatar__image" width="60" height="60">
469
+ </div>
470
+ </div>
471
+ <div am-grid-col="l:8:9" am-grid-row="l:end">
472
+ <strong>gioak76</strong><span class="profile__review__purchase-count">has ordered 3 jobs</span>
473
+ <p class="no-margin">Fantastic work as usual!</p>
474
+ <p class="caption__secondary">September 2014</p>
475
+ <br>
476
+
477
+ </div>
478
+ </li>
479
+ </ul>
480
+
481
+
482
+
483
+ </section> <!-- end .l-container -->
484
+
485
+ <section class="l-sidebar--right th-size-medium" id="fixed-wrapper">
486
+ <section id="fixed-sidebar">
487
+ <h3 class="th-size-xlarge">$375</h3>
488
+ <a href="#" class="button button--large s-small-below">Order Service</a>
489
+ <div class="metrics--inline s-medium-below">
490
+ <div class="metric s-small-below">
491
+ <div class="metric__icon" am-grid-col="l:1:3">
492
+ <i class="hot-icon__twitter--color--round metrics__icon"></i>
493
+ </div>
494
+ <div class="metric__copy" am-grid-col="l:2:3">
495
+ <div class="metric__copy__stat">100% (8/8)</div>
496
+ <div class="metric__copy__name">Recommended</div>
497
+ </div>
498
+ </div> <!-- end .metric -->
499
+ <div class="metric s-small-below">
500
+ <div class="metric__icon" am-grid-col="l:1:3">
501
+ <i class="hot-icon__twitter--color--round metrics__icon"></i>
502
+ </div>
503
+ <div class="metric__copy" am-grid-col="l:2:3">
504
+ <div class="metric__copy__stat">458</div>
505
+ <div class="metric__copy__name">Jobs Completed</div>
506
+ </div>
507
+ </div> <!-- end .metric -->
508
+ </div>
509
+ <hr class="s-small-below"/>
510
+ <div class="user-card">
511
+ <div class="avatar--medium" am-grid-col="l:2:3">
512
+ <img class="avatar__image" src="./provider_profile_page_files/medium_profile-pic.jpg" alt="Avatar" />
513
+ </div>
514
+ <div class="user-card__trust-bars" am-grid-col="l:1:3" am-grid-row="l:end">
515
+ <span class="th-size-small">Speed</span>
516
+ <div class="metrics__progress_bar"><span class="metrics__progress metrics__progress--red"></span></div>
517
+ <span class="th-size-small">Reliability</span>
518
+ <div class="metrics__progress_bar"><span class="metrics__progress metrics__progress--blue"></span></div>
519
+ </div>
520
+ <div class="avatar-caption">
521
+ <p class="avatar-caption__main">Brandbusters</p>
522
+ <p class="avatar-caption__secondary">Melbourne, Australia</p>
523
+ </div>
524
+ </div>
525
+ </section>
526
+ </section> <!-- end .l-sidebar-right -->
527
+ </section>
528
+
289
529
  <div class="container">
290
530
  <footer class="sub-footer">
291
531
  <p>Copyright &copy; 2014 Envato Studio. All Rights Reserved</p>
292
532
  <a class="sub-footer__envato svg__envato-logo" href="http://envato.com">Envato</a>
293
533
  </footer>
294
534
  </div>
535
+ <script>
536
+ $(document).ready(function () {
537
+ var top = $('#fixed-sidebar').offset().top - parseFloat($('#fixed-sidebar').css('marginTop').replace(/auto/, 0));
538
+ var top = top - 22;
539
+ $(window).scroll(function (event) {
540
+ // what the y position of the scroll is
541
+ var y = $(this).scrollTop();
295
542
 
543
+ // whether that's below the form
544
+ if (y >= top) {
545
+ console.log('should be fixed');
546
+ // if so, ad the fixed class
547
+ $('#fixed-sidebar').addClass('fixed');
548
+ } else {
549
+ console.log('should not be fixed');
550
+ // otherwise remove it
551
+ $('#fixed-sidebar').removeClass('fixed');
552
+ }
553
+ });
554
+ });
555
+ </script>
296
556
  </body>
297
557
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.115
4
+ version: 0.1.116
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-14 00:00:00.000000000 Z
12
+ date: 2014-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -133,9 +133,11 @@ files:
133
133
  - app/assets/stylesheets/includes/_layouts.sass
134
134
  - app/assets/stylesheets/includes/_mixins.sass
135
135
  - app/assets/stylesheets/includes/_molecules.sass
136
+ - app/assets/stylesheets/includes/_space_helpers.sass
136
137
  - app/assets/stylesheets/includes/_svg_images.sass
137
138
  - app/assets/stylesheets/includes/_tooltip_settings.sass
138
139
  - app/assets/stylesheets/includes/_typography.sass
140
+ - app/assets/stylesheets/includes/_typography_helpers.sass
139
141
  - app/assets/stylesheets/includes/_typography_settings.sass
140
142
  - app/assets/stylesheets/includes/icons.sass
141
143
  - app/assets/stylesheets/modules/_am_grid.sass
@@ -144,6 +146,7 @@ files:
144
146
  - app/assets/stylesheets/modules/_footer.sass
145
147
  - app/assets/stylesheets/modules/_header.sass
146
148
  - app/assets/stylesheets/modules/_hero.sass
149
+ - app/assets/stylesheets/modules/_metric.sass
147
150
  - app/assets/stylesheets/modules/_metrics.sass
148
151
  - app/assets/stylesheets/modules/_nav.sass
149
152
  - app/assets/stylesheets/modules/_pagination.sass
@@ -423,7 +426,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
423
426
  version: '0'
424
427
  segments:
425
428
  - 0
426
- hash: -2925940171168374056
429
+ hash: -3768958305098661865
427
430
  required_rubygems_version: !ruby/object:Gem::Requirement
428
431
  none: false
429
432
  requirements:
@@ -432,7 +435,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
435
  version: '0'
433
436
  segments:
434
437
  - 0
435
- hash: -2925940171168374056
438
+ hash: -3768958305098661865
436
439
  requirements: []
437
440
  rubyforge_project: smock
438
441
  rubygems_version: 1.8.21