markdowner 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,204 @@
1
+ /* PrismJS 1.29.0
2
+ https://prismjs.com/download.html#themes=prism-dark&languages=markup+css+clike+javascript+bash+c+csharp+cpp+django+docker+elixir+erb+erlang+go+java+liquid+lua+markdown+markup-templating+perl+php+powershell+python+ruby+rust+sql+swift+typescript+vim+yaml&plugins=autolinker+show-language+toolbar+copy-to-clipboard */
3
+ /**
4
+ * prism.js Dark theme for JavaScript, CSS and HTML
5
+ * Based on the slides of the talk “/Reg(exp){2}lained/”
6
+ * @author Lea Verou
7
+ */
8
+
9
+ code[class*="language-"],
10
+ pre[class*="language-"] {
11
+ color: white;
12
+ background: none;
13
+ text-shadow: 0 -.1em .2em black;
14
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
15
+ font-size: 1em;
16
+ text-align: left;
17
+ white-space: pre;
18
+ word-spacing: normal;
19
+ word-break: normal;
20
+ word-wrap: normal;
21
+ line-height: 1.5;
22
+
23
+ -moz-tab-size: 4;
24
+ -o-tab-size: 4;
25
+ tab-size: 4;
26
+
27
+ -webkit-hyphens: none;
28
+ -moz-hyphens: none;
29
+ -ms-hyphens: none;
30
+ hyphens: none;
31
+ }
32
+
33
+ @media print {
34
+ code[class*="language-"],
35
+ pre[class*="language-"] {
36
+ text-shadow: none;
37
+ }
38
+ }
39
+
40
+ pre[class*="language-"],
41
+ :not(pre) > code[class*="language-"] {
42
+ background: hsl(30, 20%, 25%);
43
+ }
44
+
45
+ /* Code blocks */
46
+ pre[class*="language-"] {
47
+ padding: 1em;
48
+ margin: .5em 0;
49
+ overflow: auto;
50
+ border: .3em solid hsl(30, 20%, 40%);
51
+ border-radius: .5em;
52
+ box-shadow: 1px 1px .5em black inset;
53
+ }
54
+
55
+ /* Inline code */
56
+ :not(pre) > code[class*="language-"] {
57
+ padding: .15em .2em .05em;
58
+ border-radius: .3em;
59
+ border: .13em solid hsl(30, 20%, 40%);
60
+ box-shadow: 1px 1px .3em -.1em black inset;
61
+ white-space: normal;
62
+ }
63
+
64
+ .token.comment,
65
+ .token.prolog,
66
+ .token.doctype,
67
+ .token.cdata {
68
+ color: hsl(30, 20%, 50%);
69
+ }
70
+
71
+ .token.punctuation {
72
+ opacity: .7;
73
+ }
74
+
75
+ .token.namespace {
76
+ opacity: .7;
77
+ }
78
+
79
+ .token.property,
80
+ .token.tag,
81
+ .token.boolean,
82
+ .token.number,
83
+ .token.constant,
84
+ .token.symbol {
85
+ color: hsl(350, 40%, 70%);
86
+ }
87
+
88
+ .token.selector,
89
+ .token.attr-name,
90
+ .token.string,
91
+ .token.char,
92
+ .token.builtin,
93
+ .token.inserted {
94
+ color: hsl(75, 70%, 60%);
95
+ }
96
+
97
+ .token.operator,
98
+ .token.entity,
99
+ .token.url,
100
+ .language-css .token.string,
101
+ .style .token.string,
102
+ .token.variable {
103
+ color: hsl(40, 90%, 60%);
104
+ }
105
+
106
+ .token.atrule,
107
+ .token.attr-value,
108
+ .token.keyword {
109
+ color: hsl(350, 40%, 70%);
110
+ }
111
+
112
+ .token.regex,
113
+ .token.important {
114
+ color: #e90;
115
+ }
116
+
117
+ .token.important,
118
+ .token.bold {
119
+ font-weight: bold;
120
+ }
121
+ .token.italic {
122
+ font-style: italic;
123
+ }
124
+
125
+ .token.entity {
126
+ cursor: help;
127
+ }
128
+
129
+ .token.deleted {
130
+ color: red;
131
+ }
132
+
133
+ .token a {
134
+ color: inherit;
135
+ }
136
+ div.code-toolbar {
137
+ position: relative;
138
+ }
139
+
140
+ div.code-toolbar > .toolbar {
141
+ position: absolute;
142
+ z-index: 10;
143
+ top: .3em;
144
+ right: .2em;
145
+ transition: opacity 0.3s ease-in-out;
146
+ opacity: 0;
147
+ }
148
+
149
+ div.code-toolbar:hover > .toolbar {
150
+ opacity: 1;
151
+ }
152
+
153
+ /* Separate line b/c rules are thrown out if selector is invalid.
154
+ IE11 and old Edge versions don't support :focus-within. */
155
+ div.code-toolbar:focus-within > .toolbar {
156
+ opacity: 1;
157
+ }
158
+
159
+ div.code-toolbar > .toolbar > .toolbar-item {
160
+ display: inline-block;
161
+ }
162
+
163
+ div.code-toolbar > .toolbar > .toolbar-item > a {
164
+ cursor: pointer;
165
+ }
166
+
167
+ div.code-toolbar > .toolbar > .toolbar-item > button {
168
+ background: none;
169
+ border: 0;
170
+ color: inherit;
171
+ font: inherit;
172
+ line-height: normal;
173
+ overflow: visible;
174
+ padding: 0;
175
+ -webkit-user-select: none; /* for button */
176
+ -moz-user-select: none;
177
+ -ms-user-select: none;
178
+ }
179
+
180
+ div.code-toolbar > .toolbar > .toolbar-item > a,
181
+ div.code-toolbar > .toolbar > .toolbar-item > button,
182
+ div.code-toolbar > .toolbar > .toolbar-item > span {
183
+ color: #bbb;
184
+ font-size: 0.8em;
185
+ padding: 0 0.5em;
186
+ background: #f5f2f0;
187
+ background: rgba(224, 224, 224, 0.2);
188
+ box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2);
189
+ border-radius: 0.5em;
190
+ }
191
+
192
+ div.code-toolbar > .toolbar > .toolbar-item > a:hover,
193
+ div.code-toolbar > .toolbar > .toolbar-item > a:focus,
194
+ div.code-toolbar > .toolbar > .toolbar-item > button:hover,
195
+ div.code-toolbar > .toolbar > .toolbar-item > button:focus,
196
+ div.code-toolbar > .toolbar > .toolbar-item > span:hover,
197
+ div.code-toolbar > .toolbar > .toolbar-item > span:focus {
198
+ color: inherit;
199
+ text-decoration: none;
200
+ }
201
+
202
+ .code-toolbar {
203
+ width: 100ch;
204
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdowner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - elpdev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-30 00:00:00.000000000 Z
11
+ date: 2024-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -59,6 +59,8 @@ files:
59
59
  - lib/markdowner/handlers/markdown_handler.rb
60
60
  - lib/markdowner/version.rb
61
61
  - lib/tasks/markdowner_tasks.rake
62
+ - vendor/assets/javascripts/markdowner/prism.js
63
+ - vendor/assets/stylesheets/markdowner/prism.css
62
64
  homepage: https://github.com/lbp-dev/markdowner
63
65
  licenses:
64
66
  - MIT