jekyll-polymer-magazine 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/_includes/disqus.html +0 -20
- data/_includes/head.html +3 -0
- data/_includes/header.html +9 -0
- data/_includes/homeheader.html +8 -0
- data/_includes/javascripts.html +32 -0
- data/_includes/search.html +53 -0
- data/_layouts/archive.html +44 -0
- data/_layouts/home.html +50 -53
- data/_layouts/post.html +80 -83
- data/_layouts/tags.html +46 -0
- data/assets/bower.json +2 -1
- data/assets/bower_components/iron-pages/.bower.json +45 -0
- data/assets/bower_components/iron-pages/.github/ISSUE_TEMPLATE.md +33 -0
- data/assets/bower_components/iron-pages/.gitignore +1 -0
- data/assets/bower_components/iron-pages/.travis.yml +23 -0
- data/assets/bower_components/iron-pages/CONTRIBUTING.md +77 -0
- data/assets/bower_components/iron-pages/README.md +42 -0
- data/assets/bower_components/iron-pages/bower.json +34 -0
- data/assets/bower_components/iron-pages/demo/index.html +74 -0
- data/assets/bower_components/iron-pages/hero.svg +22 -0
- data/assets/bower_components/iron-pages/index.html +25 -0
- data/assets/bower_components/iron-pages/iron-pages.html +88 -0
- data/assets/bower_components/iron-pages/test/attr-for-selected.html +92 -0
- data/assets/bower_components/iron-pages/test/basic.html +98 -0
- data/assets/bower_components/iron-pages/test/index.html +34 -0
- data/assets/css/style.css +6 -0
- metadata +21 -2
@@ -0,0 +1,88 @@
|
|
1
|
+
<!--
|
2
|
+
@license
|
3
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
9
|
+
-->
|
10
|
+
|
11
|
+
<link rel="import" href="../polymer/polymer.html">
|
12
|
+
<link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html">
|
13
|
+
<link rel="import" href="../iron-selector/iron-selectable.html">
|
14
|
+
|
15
|
+
<!--
|
16
|
+
`iron-pages` is used to select one of its children to show. One use is to cycle through a list of
|
17
|
+
children "pages".
|
18
|
+
|
19
|
+
Example:
|
20
|
+
|
21
|
+
<iron-pages selected="0">
|
22
|
+
<div>One</div>
|
23
|
+
<div>Two</div>
|
24
|
+
<div>Three</div>
|
25
|
+
</iron-pages>
|
26
|
+
|
27
|
+
<script>
|
28
|
+
document.addEventListener('click', function(e) {
|
29
|
+
var pages = document.querySelector('iron-pages');
|
30
|
+
pages.selectNext();
|
31
|
+
});
|
32
|
+
</script>
|
33
|
+
|
34
|
+
@group Iron Elements
|
35
|
+
@hero hero.svg
|
36
|
+
@demo demo/index.html
|
37
|
+
-->
|
38
|
+
|
39
|
+
<dom-module id="iron-pages">
|
40
|
+
|
41
|
+
<template>
|
42
|
+
<style>
|
43
|
+
:host {
|
44
|
+
display: block;
|
45
|
+
}
|
46
|
+
|
47
|
+
:host > ::content > :not(.iron-selected) {
|
48
|
+
display: none !important;
|
49
|
+
}
|
50
|
+
</style>
|
51
|
+
|
52
|
+
<content></content>
|
53
|
+
</template>
|
54
|
+
|
55
|
+
<script>
|
56
|
+
Polymer({
|
57
|
+
|
58
|
+
is: 'iron-pages',
|
59
|
+
|
60
|
+
behaviors: [
|
61
|
+
Polymer.IronResizableBehavior,
|
62
|
+
Polymer.IronSelectableBehavior
|
63
|
+
],
|
64
|
+
|
65
|
+
properties: {
|
66
|
+
|
67
|
+
// as the selected page is the only one visible, activateEvent
|
68
|
+
// is both non-sensical and problematic; e.g. in cases where a user
|
69
|
+
// handler attempts to change the page and the activateEvent
|
70
|
+
// handler immediately changes it back
|
71
|
+
activateEvent: {
|
72
|
+
type: String,
|
73
|
+
value: null
|
74
|
+
}
|
75
|
+
|
76
|
+
},
|
77
|
+
|
78
|
+
observers: [
|
79
|
+
'_selectedPageChanged(selected)'
|
80
|
+
],
|
81
|
+
|
82
|
+
_selectedPageChanged: function(selected, old) {
|
83
|
+
this.async(this.notifyResize);
|
84
|
+
}
|
85
|
+
});
|
86
|
+
|
87
|
+
</script>
|
88
|
+
</dom-module>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--
|
3
|
+
@license
|
4
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
10
|
+
-->
|
11
|
+
|
12
|
+
<html>
|
13
|
+
<head>
|
14
|
+
|
15
|
+
<title>iron-pages-attr-for-selected</title>
|
16
|
+
<meta charset="utf-8">
|
17
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
18
|
+
|
19
|
+
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
20
|
+
<script src="../../web-component-tester/browser.js"></script>
|
21
|
+
<link rel="import" href="../iron-pages.html">
|
22
|
+
|
23
|
+
</head>
|
24
|
+
<body>
|
25
|
+
|
26
|
+
<test-fixture id="basic">
|
27
|
+
<template>
|
28
|
+
<iron-pages attr-for-selected="name" selected="page0">
|
29
|
+
<div name="page0">Page 0</div>
|
30
|
+
<div name="page1">Page 1</div>
|
31
|
+
<div name="page2">Page 2</div>
|
32
|
+
<div name="page3">Page 3</div>
|
33
|
+
</iron-pages>
|
34
|
+
</template>
|
35
|
+
</test-fixture>
|
36
|
+
|
37
|
+
<script>
|
38
|
+
|
39
|
+
suite('basic', function() {
|
40
|
+
var pages;
|
41
|
+
|
42
|
+
suite('honor the selected attribute', function() {
|
43
|
+
setup(function () {
|
44
|
+
pages = fixture('basic');
|
45
|
+
});
|
46
|
+
|
47
|
+
test('selected value', function() {
|
48
|
+
assert.equal(pages.selected, 'page0');
|
49
|
+
});
|
50
|
+
|
51
|
+
test('selected item', function(done) {
|
52
|
+
// iron-selector uses observeNodes, which is async.
|
53
|
+
Polymer.Base.async(function() {
|
54
|
+
assert.equal(pages.selectedItem, pages.items[0])
|
55
|
+
done();
|
56
|
+
}, 1);
|
57
|
+
});
|
58
|
+
|
59
|
+
test('selected item is display:block and all others are display:none', function() {
|
60
|
+
pages.items.forEach(function(p) {
|
61
|
+
assert.equal(getComputedStyle(p).display, p == pages.selectedItem ? 'block' : 'none');
|
62
|
+
});
|
63
|
+
});
|
64
|
+
});
|
65
|
+
|
66
|
+
suite('set selected attribute', function() {
|
67
|
+
setup(function () {
|
68
|
+
pages = fixture('basic');
|
69
|
+
pages.selected = 'page2';
|
70
|
+
});
|
71
|
+
|
72
|
+
test('selected value', function() {
|
73
|
+
assert.equal(pages.selected, 'page2');
|
74
|
+
});
|
75
|
+
|
76
|
+
test('selected item', function() {
|
77
|
+
assert.equal(pages.selectedItem, pages.items[2]);
|
78
|
+
});
|
79
|
+
|
80
|
+
test('selected item is display:block and all others are display:none', function() {
|
81
|
+
pages.items.forEach(function(p) {
|
82
|
+
assert.equal(getComputedStyle(p).display, p == pages.selectedItem ? 'block' : 'none');
|
83
|
+
});
|
84
|
+
});
|
85
|
+
});
|
86
|
+
|
87
|
+
});
|
88
|
+
|
89
|
+
</script>
|
90
|
+
|
91
|
+
</body>
|
92
|
+
</html>
|
@@ -0,0 +1,98 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--
|
3
|
+
@license
|
4
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
10
|
+
-->
|
11
|
+
|
12
|
+
<html>
|
13
|
+
<head>
|
14
|
+
|
15
|
+
<title>iron-pages-basic</title>
|
16
|
+
<meta charset="utf-8">
|
17
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
18
|
+
|
19
|
+
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
20
|
+
<script src="../../web-component-tester/browser.js"></script>
|
21
|
+
<link rel="import" href="../iron-pages.html">
|
22
|
+
|
23
|
+
</head>
|
24
|
+
<body>
|
25
|
+
|
26
|
+
<test-fixture id="basic">
|
27
|
+
<template>
|
28
|
+
<iron-pages>
|
29
|
+
<div id="page0">Page 0</div>
|
30
|
+
<div id="page1">Page 1</div>
|
31
|
+
<div id="page2">Page 2</div>
|
32
|
+
<div id="page3">Page 3</div>
|
33
|
+
</iron-pages>
|
34
|
+
</template>
|
35
|
+
</test-fixture>
|
36
|
+
|
37
|
+
<script>
|
38
|
+
|
39
|
+
suite('basic', function() {
|
40
|
+
var pages;
|
41
|
+
|
42
|
+
suite('defaults', function() {
|
43
|
+
setup(function () {
|
44
|
+
pages = fixture('basic');
|
45
|
+
});
|
46
|
+
|
47
|
+
test('to nothing selected', function() {
|
48
|
+
assert.equal(pages.selected, undefined);
|
49
|
+
});
|
50
|
+
|
51
|
+
test('null activateEvent', function() {
|
52
|
+
// `activateEvent` is not a useful feature for iron-pages and it can interfere
|
53
|
+
// with ux; ensure iron-pages has cleared any default `activateEvent`
|
54
|
+
assert.equal(pages.activateEvent, null);
|
55
|
+
});
|
56
|
+
|
57
|
+
test('to iron-selected as selectedClass', function() {
|
58
|
+
assert.equal(pages.selectedClass, 'iron-selected');
|
59
|
+
});
|
60
|
+
|
61
|
+
test('as many items as children', function() {
|
62
|
+
assert.equal(pages.items.length, 4);
|
63
|
+
});
|
64
|
+
|
65
|
+
test('all pages are display:none', function() {
|
66
|
+
pages.items.forEach(function(p) {
|
67
|
+
assert.equal(getComputedStyle(p).display, 'none');
|
68
|
+
});
|
69
|
+
});
|
70
|
+
});
|
71
|
+
|
72
|
+
suite('set the selected attribute', function() {
|
73
|
+
setup(function () {
|
74
|
+
pages = fixture('basic');
|
75
|
+
pages.selected = 0;
|
76
|
+
});
|
77
|
+
|
78
|
+
test('selected value', function() {
|
79
|
+
assert.equal(pages.selected, '0');
|
80
|
+
});
|
81
|
+
|
82
|
+
test('selected item', function() {
|
83
|
+
assert.equal(pages.selectedItem, pages.items[0]);
|
84
|
+
});
|
85
|
+
|
86
|
+
test('selected item is display:block and all others are display:none', function() {
|
87
|
+
pages.items.forEach(function(p) {
|
88
|
+
assert.equal(getComputedStyle(p).display, p == pages.selectedItem ? 'block' : 'none');
|
89
|
+
});
|
90
|
+
});
|
91
|
+
});
|
92
|
+
|
93
|
+
});
|
94
|
+
|
95
|
+
</script>
|
96
|
+
|
97
|
+
</body>
|
98
|
+
</html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--
|
3
|
+
@license
|
4
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
10
|
+
-->
|
11
|
+
|
12
|
+
<html>
|
13
|
+
<head>
|
14
|
+
|
15
|
+
<meta charset="utf-8">
|
16
|
+
<title>Tests</title>
|
17
|
+
<script src="../../web-component-tester/browser.js"></script>
|
18
|
+
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
|
22
|
+
<script>
|
23
|
+
|
24
|
+
WCT.loadSuites([
|
25
|
+
'basic.html',
|
26
|
+
'attr-for-selected.html',
|
27
|
+
'basic.html?dom=shadow',
|
28
|
+
'attr-for-selected.html?dom=shadow'
|
29
|
+
]);
|
30
|
+
|
31
|
+
</script>
|
32
|
+
|
33
|
+
</body>
|
34
|
+
</html>
|
data/assets/css/style.css
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
@import url('https://fonts.googleapis.com/earlyaccess/notosanskr.css');
|
2
2
|
|
3
3
|
body{
|
4
|
+
height: 100%;
|
4
5
|
margin: 0px;
|
5
6
|
font-family: 'Noto Sans KR', sans-serif;
|
6
7
|
}
|
@@ -63,8 +64,13 @@ img{
|
|
63
64
|
margin-top: 16px;
|
64
65
|
background-color: #ecf0f1;
|
65
66
|
padding: 32px;
|
67
|
+
|
66
68
|
}
|
67
69
|
|
68
70
|
.footer-btn{
|
69
71
|
color: black;
|
70
72
|
}
|
73
|
+
|
74
|
+
.container{
|
75
|
+
min-height: 75%;
|
76
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-polymer-magazine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sukso96100
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -78,12 +78,17 @@ files:
|
|
78
78
|
- _includes/disqus.html
|
79
79
|
- _includes/footer.html
|
80
80
|
- _includes/head.html
|
81
|
+
- _includes/header.html
|
82
|
+
- _includes/homeheader.html
|
81
83
|
- _includes/javascripts.html
|
84
|
+
- _includes/search.html
|
82
85
|
- _includes/sharebtn.html
|
86
|
+
- _layouts/archive.html
|
83
87
|
- _layouts/default.html
|
84
88
|
- _layouts/home.html
|
85
89
|
- _layouts/page.html
|
86
90
|
- _layouts/post.html
|
91
|
+
- _layouts/tags.html
|
87
92
|
- assets/bower.json
|
88
93
|
- assets/bower_components/app-layout/.bower.json
|
89
94
|
- assets/bower_components/app-layout/.github/ISSUE_TEMPLATE.md
|
@@ -589,6 +594,20 @@ files:
|
|
589
594
|
- assets/bower_components/iron-overlay-behavior/test/test-menu-button.html
|
590
595
|
- assets/bower_components/iron-overlay-behavior/test/test-overlay.html
|
591
596
|
- assets/bower_components/iron-overlay-behavior/test/test-overlay2.html
|
597
|
+
- assets/bower_components/iron-pages/.bower.json
|
598
|
+
- assets/bower_components/iron-pages/.github/ISSUE_TEMPLATE.md
|
599
|
+
- assets/bower_components/iron-pages/.gitignore
|
600
|
+
- assets/bower_components/iron-pages/.travis.yml
|
601
|
+
- assets/bower_components/iron-pages/CONTRIBUTING.md
|
602
|
+
- assets/bower_components/iron-pages/README.md
|
603
|
+
- assets/bower_components/iron-pages/bower.json
|
604
|
+
- assets/bower_components/iron-pages/demo/index.html
|
605
|
+
- assets/bower_components/iron-pages/hero.svg
|
606
|
+
- assets/bower_components/iron-pages/index.html
|
607
|
+
- assets/bower_components/iron-pages/iron-pages.html
|
608
|
+
- assets/bower_components/iron-pages/test/attr-for-selected.html
|
609
|
+
- assets/bower_components/iron-pages/test/basic.html
|
610
|
+
- assets/bower_components/iron-pages/test/index.html
|
592
611
|
- assets/bower_components/iron-range-behavior/.bower.json
|
593
612
|
- assets/bower_components/iron-range-behavior/.github/ISSUE_TEMPLATE.md
|
594
613
|
- assets/bower_components/iron-range-behavior/.gitignore
|