jekyll-terminal 0.0.1 → 0.0.2
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/lib/jekyll-terminal.rb +0 -1
- data/lib/terminal.scss +149 -0
- metadata +26 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e90fdf64dcb1ceba883a193defb3c75d10ae5330
|
4
|
+
data.tar.gz: 494c15b2834f8eff63a451e72809597b28f76f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba16f25b6dff3c43efcd7ddbbef415430c9b3f1ca0abc529ee4f01e6aed939e440698842e0e35400c28ae831405c0e4f1dbcbfd4f389fd7371a09163e451269b
|
7
|
+
data.tar.gz: b76e830b1ff515a9508c465e3d1e6f981ff82b24144dc8d424fb944d8aab57a213d6c278b6f735299c9041f29fc7e5ccce46c85c83471459b0266da408ef17ee
|
data/lib/jekyll-terminal.rb
CHANGED
data/lib/terminal.scss
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
/*-----------------------------------------------------------------------------------*/
|
2
|
+
/* Window
|
3
|
+
/*-----------------------------------------------------------------------------------*/
|
4
|
+
|
5
|
+
.window {
|
6
|
+
margin: 0px auto 30px auto;
|
7
|
+
background: -webkit-linear-gradient(rgba(233, 233, 233, 1), rgba(178, 178, 178, 1) 21px, #EDEDED, #EDEDED 23px);
|
8
|
+
background: -moz-linear-gradient(rgba(233, 233, 233, 1), rgba(178, 178, 178, 1) 21px, #EDEDED, #EDEDED 23px);
|
9
|
+
border-radius: 5px;
|
10
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 22px 50px 4px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(0, 0, 0, 0.3);
|
11
|
+
text-align: left;
|
12
|
+
z-index: 0;
|
13
|
+
visibility: hidden;
|
14
|
+
opacity: 0;
|
15
|
+
visibility: visible;
|
16
|
+
opacity: 1;
|
17
|
+
}
|
18
|
+
|
19
|
+
.container {
|
20
|
+
border-radius: 5px;
|
21
|
+
}
|
22
|
+
|
23
|
+
h1.titleInside {
|
24
|
+
font-size: small !important;
|
25
|
+
margin: 0px;
|
26
|
+
position: relative;
|
27
|
+
z-index: 2;
|
28
|
+
color: #3c3c3c;
|
29
|
+
font-size: 13px;
|
30
|
+
line-height: 21px;
|
31
|
+
text-decoration: none;
|
32
|
+
text-shadow: 0 1px 1px #e7e7e7;
|
33
|
+
text-align: center;
|
34
|
+
text-transform: capitalize;
|
35
|
+
}
|
36
|
+
|
37
|
+
nav.control-window {
|
38
|
+
float: left;
|
39
|
+
padding: 2px 0px 0px 10px;
|
40
|
+
left: 5px;
|
41
|
+
top: 3px;
|
42
|
+
z-index: 10;
|
43
|
+
height: 19px;
|
44
|
+
}
|
45
|
+
|
46
|
+
nav.control-window a {
|
47
|
+
display: inline-block;
|
48
|
+
margin: 2px 0px 3px 1px;
|
49
|
+
width: 12px;
|
50
|
+
height: 12px;
|
51
|
+
border-radius: 100%;
|
52
|
+
box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5);
|
53
|
+
text-indent: -9999px;
|
54
|
+
position: relative;
|
55
|
+
}
|
56
|
+
|
57
|
+
nav.control-window a:before {
|
58
|
+
content: '';
|
59
|
+
display: block;
|
60
|
+
position: absolute;
|
61
|
+
border-radius: 100%;
|
62
|
+
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
|
63
|
+
top: 0px;
|
64
|
+
left: 0px;
|
65
|
+
bottom: 0px;
|
66
|
+
right: 0px;
|
67
|
+
}
|
68
|
+
|
69
|
+
nav.control-window a:after {
|
70
|
+
content: '';
|
71
|
+
display: block;
|
72
|
+
position: absolute;
|
73
|
+
top: 2px;
|
74
|
+
left: 1px;
|
75
|
+
bottom: 1px;
|
76
|
+
right: 1px;
|
77
|
+
border-radius: 100%;
|
78
|
+
background: -webkit-linear-gradient(white, rgba(255, 255, 255, 0.9) 2%, white, rgba(255, 255, 255, 0.4) 16%, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.7) 122%, rgba(255, 255, 255, 0.7));
|
79
|
+
background: -moz-linear-gradient(white, rgba(255, 255, 255, 0.9) 2%, white, rgba(255, 255, 255, 0.4) 16%, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.7) 122%, rgba(255, 255, 255, 0.7));
|
80
|
+
box-shadow: inset 0px -3px -5px 3px rgba(255, 255, 255, 0.2), inset 0px 2px -5px 3px rgba(255, 255, 255, 0.2);
|
81
|
+
}
|
82
|
+
|
83
|
+
nav.control-window a.close {
|
84
|
+
background: #FD4E4E;
|
85
|
+
}
|
86
|
+
|
87
|
+
nav.control-window a.minimize {
|
88
|
+
background: #F3BB55;
|
89
|
+
}
|
90
|
+
|
91
|
+
nav.control-window a.maximize {
|
92
|
+
background: #96D16F;
|
93
|
+
}
|
94
|
+
|
95
|
+
nav.control-window a.deactivate {
|
96
|
+
background: #b5b5b5;
|
97
|
+
}
|
98
|
+
|
99
|
+
/*-----------------------------------------------------------------------------------*/
|
100
|
+
/* Terminal Console Layout
|
101
|
+
/*-----------------------------------------------------------------------------------*/
|
102
|
+
|
103
|
+
.terminal {
|
104
|
+
background: #333;
|
105
|
+
color: #DDD;
|
106
|
+
white-space: pre-line;
|
107
|
+
border-bottom-left-radius: 5px;
|
108
|
+
border-bottom-right-radius: 5px;
|
109
|
+
width: 100%;
|
110
|
+
}
|
111
|
+
|
112
|
+
.terminal table {
|
113
|
+
margin-left: 10px;
|
114
|
+
margin-right: 10px;
|
115
|
+
}
|
116
|
+
|
117
|
+
div.terminal td {
|
118
|
+
vertical-align: top;
|
119
|
+
}
|
120
|
+
|
121
|
+
div.terminal pre {
|
122
|
+
background: none;
|
123
|
+
border: none;
|
124
|
+
padding-left: 0px;
|
125
|
+
box-shadow: none;
|
126
|
+
-webkit-box-shadow: none;
|
127
|
+
margin: 0px;
|
128
|
+
}
|
129
|
+
|
130
|
+
div.terminal pre span {
|
131
|
+
display: block;
|
132
|
+
}
|
133
|
+
|
134
|
+
div.terminal {
|
135
|
+
overflow-x: auto;
|
136
|
+
overflow-y: hidden;
|
137
|
+
}
|
138
|
+
|
139
|
+
div.terminal pre.line-numbers span {
|
140
|
+
display: inline;
|
141
|
+
}
|
142
|
+
|
143
|
+
div.terminal span.command {
|
144
|
+
color: #FFF;
|
145
|
+
}
|
146
|
+
|
147
|
+
div.terminal span.output {
|
148
|
+
color: #BBB;
|
149
|
+
}
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Xavier
|
7
|
+
- Xavier Décoret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: jekyll
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,14 +38,18 @@ dependencies:
|
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '2.0'
|
27
|
-
description:
|
41
|
+
description: |
|
42
|
+
Add a Liquid block `%terminal` for displaying shell commands
|
43
|
+
inside a Mac-like terminal. Useful for blogs about programming
|
44
|
+
that gives command-line instructions.
|
28
45
|
email: xavier.decoret+jekyll@gmail.com
|
29
46
|
executables: []
|
30
47
|
extensions: []
|
31
48
|
extra_rdoc_files: []
|
32
49
|
files:
|
33
50
|
- lib/jekyll-terminal.rb
|
34
|
-
|
51
|
+
- lib/terminal.scss
|
52
|
+
homepage: https://github.com/Xadeck/jekyll-terminal
|
35
53
|
licenses:
|
36
54
|
- MIT
|
37
55
|
metadata: {}
|
@@ -41,9 +59,9 @@ require_paths:
|
|
41
59
|
- lib
|
42
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
43
61
|
requirements:
|
44
|
-
- - "
|
62
|
+
- - "~>"
|
45
63
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0'
|
64
|
+
version: '2.0'
|
47
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
66
|
requirements:
|
49
67
|
- - ">="
|
@@ -54,5 +72,5 @@ rubyforge_project:
|
|
54
72
|
rubygems_version: 2.0.3
|
55
73
|
signing_key:
|
56
74
|
specification_version: 4
|
57
|
-
summary:
|
75
|
+
summary: Render shell-commands nicely in a Jekyll
|
58
76
|
test_files: []
|