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 +1 -1
- data/app/assets/stylesheets/includes/_typography.sass +1 -1
- data/guide.sass +23 -1
- data/index.html +26 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
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
|
-
|
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.
|
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:
|
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:
|
368
|
+
hash: 4182608446041493410
|
369
369
|
requirements: []
|
370
370
|
rubyforge_project: smock
|
371
371
|
rubygems_version: 1.8.21
|