smock 0.1.47 → 0.1.48

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.47)
4
+ smock (0.1.48)
5
5
  sass (= 3.2.19)
6
6
  thor (= 0.19.1)
7
7
 
@@ -45,7 +45,7 @@ cite
45
45
 
46
46
 
47
47
  .paragraph--heading
48
- +typecsset-font-size($base-font-size)
48
+ +typecsset-font-size($first-font-size)
49
49
  margin-bottom: 0
50
50
  font-weight: bold
51
51
  .paragraph--bigger
data/guide.sass CHANGED
@@ -24,11 +24,30 @@ a
24
24
  height: $typecsset-magic-number * 2
25
25
 
26
26
  .nav__list
27
+ float: left
28
+ width: 50%
27
29
  list-style: none
28
30
  margin: 0
29
31
  line-height: 100%
30
32
  height: 100%
31
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
42
+
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
+
32
51
  .nav__list__item
33
52
  display: inline-block
34
53
  line-height: $typecsset-magic-number * 2
@@ -52,4 +71,7 @@ a
52
71
  padding: $typecsset-magic-number / 2 0
53
72
 
54
73
  iframe
55
- margin-top: $typecsset-magic-number * 2
74
+ display: block
75
+ margin: 0 auto
76
+ padding-top: $typecsset-magic-number * 2
77
+
data/index.html CHANGED
@@ -18,7 +18,32 @@
18
18
  </ul>
19
19
  </li>
20
20
  </ul>
21
+
22
+ <ul class="nav__view-options">
23
+ <li class="nav__view-options__item"><a href="#" id="small-width">Small Width</a></li>
24
+ <li class="nav__view-options__item"><a href="#" id="medium-width">Medium Width</a></li>
25
+ <li class="nav__view-options__item"><a href="#" id="full-width">Full Width</a></li>
26
+ </ul>
21
27
  </div>
22
- <iframe name="style_frame" src="examples/atoms.html" width="100%" height="95%" frameborder="0"></iframe>
28
+ <iframe name="style_frame" id="style_frame" src="examples/atoms.html" width="100%" height="95%" frameborder="0"></iframe>
29
+
30
+ <script>
31
+ var iframe = document.getElementById('style_frame');
32
+ var smallWidthButton = document.getElementById('small-width');
33
+ var mediumWidthButton = document.getElementById('medium-width');
34
+ var fullWidthButton = document.getElementById('full-width');
35
+
36
+ smallWidthButton.addEventListener('click', function(event) {
37
+ iframe.width = '50%';
38
+ });
39
+
40
+ mediumWidthButton.addEventListener('click', function(event) {
41
+ iframe.width = '75%';
42
+ });
43
+
44
+ fullWidthButton.addEventListener('click', function(event) {
45
+ iframe.width = '100%';
46
+ });
47
+ </script>
23
48
  </body>
24
49
  </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.47
4
+ version: 0.1.48
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -356,7 +356,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
356
356
  version: '0'
357
357
  segments:
358
358
  - 0
359
- hash: 2273799882304059997
359
+ hash: 4182608446041493410
360
360
  required_rubygems_version: !ruby/object:Gem::Requirement
361
361
  none: false
362
362
  requirements:
@@ -365,7 +365,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
365
365
  version: '0'
366
366
  segments:
367
367
  - 0
368
- hash: 2273799882304059997
368
+ hash: 4182608446041493410
369
369
  requirements: []
370
370
  rubyforge_project: smock
371
371
  rubygems_version: 1.8.21