written 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83bd38902f1eacc032a8dcdd25a8d67867d6fa16
4
- data.tar.gz: b19c1e21bd5f972552d77bd53fea37b6974ee149
3
+ metadata.gz: 0d2af27e114cad6a824e7f2c2201ae14845c0349
4
+ data.tar.gz: 69cae4da7a9f399e5446a2cd73363fdbee7c5569
5
5
  SHA512:
6
- metadata.gz: ee25d47941ec4e695521f28befc3764c219396fe4557e952df145f025857afd18267849f8b99f4a6265a39d584d4d1d907784727a2137ed316edd718768c500b
7
- data.tar.gz: 292cb2869349e354eb16e999f8c11c9deace5ddb5ec8fd33d87c6018d1c8ffeefe10054067a8a1e9cbf6065ec90cf5ae022fcf415f9d35117ca3dad98fa5f89f
6
+ metadata.gz: 91130fcec0ee2203c6b204266a3c744aed82ca80695d4fcf18b4084c63f937d6c4f172045b6474d1d31b46e6c336ac6db83ae19daafea5e02df54f4a91b66434
7
+ data.tar.gz: cfe89593f4956402fd8db8e36f4fbcf77cfcbb859f0e5cf5259d845cc0d79ffc8042de5694641b7fb3b3ea84cb250d8003c425776fabe8f153850b0dabc0134c
@@ -64,7 +64,7 @@ class @Written
64
64
  current = current.nextElementSibling
65
65
 
66
66
  if current?
67
- node = current.nextElementSibling
67
+ node = current
68
68
  while node
69
69
  nextNode = node.nextElementSibling
70
70
  node.remove()
@@ -14,8 +14,19 @@
14
14
  }
15
15
 
16
16
  figure {
17
- background: gray;
17
+ background: rgba(230,230,230,1);
18
+
19
+ & > div {
20
+ display: flex;
21
+ min-height: 200px;
22
+ }
23
+
18
24
  img {
25
+ margin: auto;
26
+ }
27
+
28
+ figcaption {
29
+ padding: 4px;
19
30
  }
20
31
  }
21
32
  }
@@ -1,3 +1,3 @@
1
1
  module Written
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: written
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pier-Olivier Thibault
@@ -39,7 +39,6 @@ files:
39
39
  - lib/written/app/assets/javascripts/written/parsers/inline/link.coffee
40
40
  - lib/written/app/assets/javascripts/written/parsers/inline/strong.coffee
41
41
  - lib/written/app/assets/javascripts/written/parsers/parsers.coffee
42
- - lib/written/app/assets/stylesheets/vendors/prism.css
43
42
  - lib/written/app/assets/stylesheets/written.scss
44
43
  - lib/written/document.rb
45
44
  - lib/written/node.rb
@@ -1,138 +0,0 @@
1
- /* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+apacheconf+bash+c+csharp+cpp+ruby+git+go+haml+http+java+nginx+objectivec+php+python+scss */
2
- /**
3
- * prism.js default theme for JavaScript, CSS and HTML
4
- * Based on dabblet (http://dabblet.com)
5
- * @author Lea Verou
6
- */
7
-
8
- code[class*="language-"],
9
- pre[class*="language-"] {
10
- color: black;
11
- text-shadow: 0 1px white;
12
- font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
13
- direction: ltr;
14
- text-align: left;
15
- white-space: pre;
16
- word-spacing: normal;
17
- word-break: normal;
18
- word-wrap: normal;
19
- line-height: 1.5;
20
-
21
- -moz-tab-size: 4;
22
- -o-tab-size: 4;
23
- tab-size: 4;
24
-
25
- -webkit-hyphens: none;
26
- -moz-hyphens: none;
27
- -ms-hyphens: none;
28
- hyphens: none;
29
- }
30
-
31
- pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
32
- code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
33
- text-shadow: none;
34
- background: #b3d4fc;
35
- }
36
-
37
- pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
38
- code[class*="language-"]::selection, code[class*="language-"] ::selection {
39
- text-shadow: none;
40
- background: #b3d4fc;
41
- }
42
-
43
- @media print {
44
- code[class*="language-"],
45
- pre[class*="language-"] {
46
- text-shadow: none;
47
- }
48
- }
49
-
50
- /* Code blocks */
51
- pre[class*="language-"] {
52
- padding: 1em;
53
- margin: .5em 0;
54
- overflow: auto;
55
- }
56
-
57
- :not(pre) > code[class*="language-"],
58
- pre[class*="language-"] {
59
- background: #f5f2f0;
60
- }
61
-
62
- /* Inline code */
63
- :not(pre) > code[class*="language-"] {
64
- padding: .1em;
65
- border-radius: .3em;
66
- }
67
-
68
- .token.comment,
69
- .token.prolog,
70
- .token.doctype,
71
- .token.cdata {
72
- color: slategray;
73
- }
74
-
75
- .token.punctuation {
76
- color: #999;
77
- }
78
-
79
- .namespace {
80
- opacity: .7;
81
- }
82
-
83
- .token.property,
84
- .token.tag,
85
- .token.boolean,
86
- .token.number,
87
- .token.constant,
88
- .token.symbol,
89
- .token.deleted {
90
- color: #905;
91
- }
92
-
93
- .token.selector,
94
- .token.attr-name,
95
- .token.string,
96
- .token.char,
97
- .token.builtin,
98
- .token.inserted {
99
- color: #690;
100
- }
101
-
102
- .token.operator,
103
- .token.entity,
104
- .token.url,
105
- .language-css .token.string,
106
- .style .token.string {
107
- color: #a67f59;
108
- background: hsla(0, 0%, 100%, .5);
109
- }
110
-
111
- .token.atrule,
112
- .token.attr-value,
113
- .token.keyword {
114
- color: #07a;
115
- }
116
-
117
- .token.function {
118
- color: #DD4A68;
119
- }
120
-
121
- .token.regex,
122
- .token.important,
123
- .token.variable {
124
- color: #e90;
125
- }
126
-
127
- .token.important,
128
- .token.bold {
129
- font-weight: bold;
130
- }
131
- .token.italic {
132
- font-style: italic;
133
- }
134
-
135
- .token.entity {
136
- cursor: help;
137
- }
138
-