smock 0.1.143 → 0.1.144

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.
Files changed (7) hide show
  1. data/Gemfile.lock +1 -1
  2. data/Rakefile +0 -2
  3. data/guide.sass +50 -66
  4. data/index.html +60 -41
  5. metadata +3 -5
  6. data/guide2.sass +0 -60
  7. data/index2.html +0 -61
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smock (0.1.143)
4
+ smock (0.1.144)
5
5
  sass (= 3.2.19)
6
6
  thor (= 0.19.1)
7
7
 
data/Rakefile CHANGED
@@ -35,10 +35,8 @@ task :build_version => :clean do
35
35
 
36
36
  sh "cp -R #{target}/* #{latest}/"
37
37
  sh "bundle exec sass ./guide.sass #{latest}/guide.css"
38
- sh "bundle exec sass ./guide2.sass #{latest}/guide2.css"
39
38
  sh "ln -s $(pwd)/index.html #{latest}/"
40
39
  sh "ln -s $(pwd)/guide.js #{latest}/"
41
- sh "ln -s $(pwd)/index2.html #{latest}/"
42
40
  end
43
41
 
44
42
  desc "run a sass watcher"
data/guide.sass CHANGED
@@ -1,77 +1,61 @@
1
- $typecsset-base-font-size: 18px
2
- $typecsset-base-line-height: 27px
3
- @import "app/assets/stylesheets/thirdparty/typecsset"
4
-
5
- $white: #f1f1f1
6
- $black: #1e1e1e
1
+ @import "app/assets/stylesheets/smock"
7
2
 
8
3
  body
9
- padding: 0
10
- margin: 0
4
+ -webkit-font-smoothing: antialiased
5
+ -moz-osx-font-smoothing: grayscale
11
6
 
12
- a
13
- color: $white
14
- text-decoration: none
15
- line-height: $typecsset-magic-number * 2
7
+ #content
8
+ -webkit-font-smoothing: auto
9
+ -moz-osx-font-smoothing: auto
16
10
 
17
- .nav
18
- position: fixed
19
- background: $black
20
- color: $white
21
- font-family: sans-serif
22
- line-height: $typecsset-magic-number * 2
23
- width: 100%
24
- height: $typecsset-magic-number * 2
25
-
26
- .nav__list
11
+ .example:before
12
+ content: 'Example'
13
+ display: block
14
+ .example
15
+ +bottom-horizontal-rule(3)
16
+ code
17
+ overflow-wrap: break-word
18
+ pre
19
+ +space(margin-top, 1)
20
+ +space(margin-bottom, 1)
21
+ pre:before
22
+ content: 'Code'
23
+
24
+ .style-group__icons
25
+ width: 200px
26
+ text-align: center
27
+ box-shadow: 0 0 0 1px $gray
28
+ +space(padding)
27
29
  float: left
28
- width: 50%
29
- list-style: none
30
- margin: 0
31
- line-height: 100%
32
- height: 100%
33
-
34
- .nav__view-options
35
- float: right
36
- width: 50%
37
- list-style: none
38
- margin: 0
39
- line-height: 100%
40
- height: 100%
41
- text-align: right
30
+ min-height: 200px
31
+ background: $gray-lightest
42
32
 
43
- .nav__view-options__item
44
- display: inline-block
45
- line-height: $typecsset-magic-number * 2
46
- cursor: pointer
47
- position: relative
48
- a
49
- padding: 0 $typecsset-magic-number
50
-
51
- .nav__list__item
52
- display: inline-block
53
- line-height: $typecsset-magic-number * 2
54
- cursor: pointer
55
- position: relative
56
- a
57
- padding: 0 $typecsset-magic-number
58
- &:hover
59
- .nav__list__item__dropdown
60
- display: block
33
+ .style-group__icon
34
+ width: 64px
35
+ height: 64px
36
+ display: block
37
+ margin: 0 auto
38
+ +space(margin-bottom)
61
39
 
62
- .nav__list__item__dropdown
63
- display: none
64
- position: absolute
65
- top: $typecsset-magic-number * 2
66
- left: 0
40
+ .guide-header
67
41
  background: $black
68
- box-shadow: inset 0 1px 0 0 $white
69
- list-style: none
70
- margin: 0
71
- padding: $typecsset-magic-number / 2 0
42
+ +space(margin-bottom)
43
+ +space(padding-top, 0.5)
44
+ +space(padding-bottom, 0.5)
45
+
46
+ .actions__group
47
+ +space(margin-bottom)
72
48
 
73
- iframe
49
+ .actions__group__title
50
+ +typecsset-font-size($first-font-size)
51
+ background: $gray
52
+ +space(padding, 0.5)
74
53
  display: block
75
- margin: 0 auto
76
- padding-top: $typecsset-magic-number * 2
54
+ color: $white
55
+ border-top-left-radius: $border-radius
56
+ border-top-right-radius: $border-radius
57
+
58
+ .actions__group__list
59
+ +border
60
+ +space(padding, 0.5)
77
61
 
data/index.html CHANGED
@@ -2,54 +2,73 @@
2
2
  <head>
3
3
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
4
4
  <title>Styleguide</title>
5
+ <link rel="stylesheet" href="svg_images.css" />
5
6
  <link rel="stylesheet" href="guide.css" />
7
+ <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/monokai_sublime.min.css">
6
8
  </head>
7
- <body>
8
- <div class="nav">
9
- <ul class="nav__list">
10
- <li class="nav__list__item"><a href="examples/atoms.html" target="style_frame">Atoms</a></li>
11
- <li class="nav__list__item"><a href="examples/molecules.html" target="style_frame">Molecules</a></li>
12
- <li class="nav__list__item"><a href="examples/organisims.html" target="style_frame">Organisims</a></li>
13
- <li class="nav__list__item">
14
- Pages
15
- <ul class="nav__list__item__dropdown">
16
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/affiliates.html" target="style_frame">Affiliates</a></li>
17
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/blackbox.html" target="style_frame">Blackbox</a></li>
18
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/customisation_express.html" target="style_frame">Express</a></li>
19
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/explore.html" target="style_frame">Explore</a></li>
20
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/testimonials.html" target="style_frame">Testimonials</a></li>
21
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/profile.html" target="style_frame">Profiles</a></li>
22
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/service.html" target="style_frame">Service</a></li>
23
- <li class="nav__list__item__dropdown__item"><a href="examples/pages/logo_landing_page.html" target="style_frame" title="Logo Landing Page">LLP</a></li>
9
+ <body am-grid>
10
+ <div class="guide-header">
11
+ <div class="container">
12
+ <a class="header__logo svg__logo--inverse" href="/">Envato Studio</a>
13
+ </div>
14
+ </div>
15
+ <div class="container">
16
+ <div am-grid-col="l:3" class="actions">
17
+ <div class="actions__group">
18
+ <strong class="actions__group__title">UI Kit</strong>
19
+ <ul class="actions__group__list">
20
+ <li><a href="#avatars" rel="avatars">Avatars</a></li>
21
+ <li><a href="#buttons" rel="buttons">Buttons</a></li>
22
+ <li><a href="#colors" rel="colors">Colors</a></li>
23
+ <li><a href="#forms" rel="forms">Forms</a></li>
24
+ <li><a href="#helpers" rel="helpers">Helpers</a></li>
25
+ <li><a href="#icons" rel="icons">Icons</a></li>
26
+ <li><a href="#links" rel="links">Links</a></li>
27
+ <li><a href="#paragraphs" rel="paragraphs">Paragraphs</a></li>
28
+ <li><a href="#typography" rel="typography">Typography</a></li>
24
29
  </ul>
25
- </li>
26
- </ul>
30
+ </div>
27
31
 
28
- <ul class="nav__view-options">
29
- <li class="nav__view-options__item"><a href="#" id="small-width">Small Width</a></li>
30
- <li class="nav__view-options__item"><a href="#" id="medium-width">Medium Width</a></li>
31
- <li class="nav__view-options__item"><a href="#" id="full-width">Full Width</a></li>
32
- </ul>
33
- </div>
34
- <iframe name="style_frame" id="style_frame" src="examples/atoms.html" width="100%" height="95%" frameborder="0"></iframe>
32
+ <div class="actions__group">
33
+ <strong class="actions__group__title">Patterns</strong>
34
+ <ul class="actions__group__list">
35
+ <li><a href="#banners" rel="banners">Banners</a></li>
36
+ <li><a href="#metrics" rel="metrics">Metrics</a></li>
37
+ <li><a href="#reviews" rel="reviews">Reviews</a></li>
38
+ <li><a href="#service" rel="service">Service</a></li>
39
+ <li><a href="#testimonials" rel="testimonials">Testimonials</a></li>
40
+ </ul>
41
+ </div>
35
42
 
43
+ <div class="actions__group">
44
+ <strong class="actions__group__title">Pages</strong>
45
+ <ul class="actions__group__list">
46
+ <li><a href="examples/pages/affiliates.html">Affiliates</a></li>
47
+ <li><a href="examples/pages/customisation_express.html">Express</a></li>
48
+ <li><a href="examples/pages/explore.html">Explore</a></li>
49
+ <li><a href="examples/pages/logo_landing_page.html">Landing Page</a></li>
50
+ <li><a href="examples/pages/profile.html">Profile Page</a></li>
51
+ <li><a href="examples/pages/service.html">Service Page</a></li>
52
+ <li><a href="examples/pages/testimonials.html">Testimonials</a></li>
53
+ </ul>
54
+ </div>
55
+ </div>
56
+ <aside am-grid-col="l:9">
57
+ <div id='content'></div>
58
+ </aside>
59
+ </div>
60
+ <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/highlight.min.js"></script>
61
+ <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
62
+ <script src="guide.js"></script>
36
63
  <script>
37
- var iframe = document.getElementById('style_frame');
38
- var smallWidthButton = document.getElementById('small-width');
39
- var mediumWidthButton = document.getElementById('medium-width');
40
- var fullWidthButton = document.getElementById('full-width');
41
-
42
- smallWidthButton.addEventListener('click', function(event) {
43
- iframe.width = '50%';
44
- });
45
-
46
- mediumWidthButton.addEventListener('click', function(event) {
47
- iframe.width = '75%';
48
- });
64
+ setupActions();
65
+ if (window.location.hash) {
66
+ var contentName = window.location.hash.replace("#", "");
67
+ } else {
68
+ var contentName = $('.actions a:first')[0].rel;
69
+ }
49
70
 
50
- fullWidthButton.addEventListener('click', function(event) {
51
- iframe.width = '100%';
52
- });
71
+ loadContent(contentName);
53
72
  </script>
54
73
  </body>
55
74
  </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.143
4
+ version: 0.1.144
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -401,9 +401,7 @@ files:
401
401
  - examples/typography.html
402
402
  - guide.js
403
403
  - guide.sass
404
- - guide2.sass
405
404
  - index.html
406
- - index2.html
407
405
  - lib/smock.rb
408
406
  - lib/smock/engine.rb
409
407
  - lib/smock/generator.rb
@@ -441,7 +439,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
441
439
  version: '0'
442
440
  segments:
443
441
  - 0
444
- hash: 4084705115675569303
442
+ hash: 1931040471901656156
445
443
  required_rubygems_version: !ruby/object:Gem::Requirement
446
444
  none: false
447
445
  requirements:
@@ -450,7 +448,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
450
448
  version: '0'
451
449
  segments:
452
450
  - 0
453
- hash: 4084705115675569303
451
+ hash: 1931040471901656156
454
452
  requirements: []
455
453
  rubyforge_project: smock
456
454
  rubygems_version: 1.8.21
data/guide2.sass DELETED
@@ -1,60 +0,0 @@
1
- @import "app/assets/stylesheets/smock"
2
-
3
- body
4
- -webkit-font-smoothing: antialiased
5
- -moz-osx-font-smoothing: grayscale
6
-
7
- #content
8
- -webkit-font-smoothing: auto
9
- -moz-osx-font-smoothing: auto
10
-
11
- .example:before
12
- content: 'Example'
13
- display: block
14
- .example
15
- +bottom-horizontal-rule(3)
16
- code
17
- overflow-wrap: break-word
18
- pre
19
- +space(margin-top, 1)
20
- +space(margin-bottom, 1)
21
- pre:before
22
- content: 'Code'
23
-
24
- .style-group__icons
25
- width: 200px
26
- text-align: center
27
- box-shadow: 0 0 0 1px $gray
28
- +space(padding)
29
- float: left
30
- min-height: 200px
31
- background: $gray-lightest
32
-
33
- .style-group__icon
34
- width: 64px
35
- height: 64px
36
- display: block
37
- margin: 0 auto
38
- +space(margin-bottom)
39
-
40
- .guide-header
41
- background: $black
42
- +space(margin-bottom)
43
- +space(padding-top, 0.5)
44
- +space(padding-bottom, 0.5)
45
-
46
- .actions__group
47
- +space(margin-bottom)
48
-
49
- .actions__group__title
50
- +typecsset-font-size($first-font-size)
51
- background: $gray
52
- +space(padding, 0.5)
53
- display: block
54
- color: $white
55
- border-top-left-radius: $border-radius
56
- border-top-right-radius: $border-radius
57
-
58
- .actions__group__list
59
- +border
60
- +space(padding, 0.5)
data/index2.html DELETED
@@ -1,61 +0,0 @@
1
- <html>
2
- <head>
3
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
4
- <title>Styleguide</title>
5
- <link rel="stylesheet" href="svg_images.css" />
6
- <link rel="stylesheet" href="guide2.css" />
7
- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/monokai_sublime.min.css">
8
- </head>
9
- <body am-grid>
10
- <div class="guide-header">
11
- <div class="container">
12
- <a class="header__logo svg__logo--inverse" href="/">Envato Studio</a>
13
- </div>
14
- </div>
15
- <div class="container">
16
- <div am-grid-col="l:3" class="actions">
17
- <div class="actions__group">
18
- <strong class="actions__group__title">UI Kit</strong>
19
- <ul class="actions__group__list">
20
- <li><a href="#avatars" rel="avatars">Avatars</a></li>
21
- <li><a href="#buttons" rel="buttons">Buttons</a></li>
22
- <li><a href="#colors" rel="colors">Colors</a></li>
23
- <li><a href="#forms" rel="forms">Forms</a></li>
24
- <li><a href="#helpers" rel="helpers">Helpers</a></li>
25
- <li><a href="#icons" rel="icons">Icons</a></li>
26
- <li><a href="#links" rel="links">Links</a></li>
27
- <li><a href="#paragraphs" rel="paragraphs">Paragraphs</a></li>
28
- <li><a href="#typography" rel="typography">Typography</a></li>
29
- </ul>
30
- </div>
31
-
32
- <div class="actions__group">
33
- <strong class="actions__group__title">Patterns</strong>
34
- <ul class="actions__group__list">
35
- <li><a href="#banners" rel="banners">Banners</a></li>
36
- <li><a href="#metrics" rel="metrics">Metrics</a></li>
37
- <li><a href="#reviews" rel="reviews">Reviews</a></li>
38
- <li><a href="#service" rel="service">Service</a></li>
39
- <li><a href="#testimonials" rel="testimonials">Testimonials</a></li>
40
- </ul>
41
- </div>
42
- </div>
43
- <aside am-grid-col="l:9">
44
- <div id='content'></div>
45
- </aside>
46
- </div>
47
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/highlight.min.js"></script>
48
- <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
49
- <script src="guide.js"></script>
50
- <script>
51
- setupActions();
52
- if (window.location.hash) {
53
- var contentName = window.location.hash.replace("#", "");
54
- } else {
55
- var contentName = $('.actions a:first')[0].rel;
56
- }
57
-
58
- loadContent(contentName);
59
- </script>
60
- </body>
61
- </html>