Skip to content

Commit b7f3777

Browse files
committed
Merge branch 'main' into refactoring
2 parents 6cfeec8 + 1cf7fea commit b7f3777

File tree

3 files changed

+269
-0
lines changed

3 files changed

+269
-0
lines changed

app/assets/css/prism.css

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
/* PrismJS 1.23.0
2+
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+bash+docker+java+javadoc+javadoclike+javastacktrace+json+json5+markdown+plsql+sql+yaml&plugins=line-numbers+toolbar+copy-to-clipboard */
3+
/**
4+
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
5+
* Based on https://github.com/chriskempson/tomorrow-theme
6+
* @author Rose Pritchard
7+
*/
8+
9+
code[class*="language-"],
10+
pre[class*="language-"] {
11+
color: #ccc;
12+
background: none;
13+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
14+
font-size: 1em;
15+
text-align: left;
16+
white-space: pre;
17+
word-spacing: normal;
18+
word-break: normal;
19+
word-wrap: normal;
20+
line-height: 1.5;
21+
22+
-moz-tab-size: 4;
23+
-o-tab-size: 4;
24+
tab-size: 4;
25+
26+
-webkit-hyphens: none;
27+
-moz-hyphens: none;
28+
-ms-hyphens: none;
29+
hyphens: none;
30+
31+
}
32+
33+
/* Code blocks */
34+
pre[class*="language-"] {
35+
padding: 1em;
36+
margin: .5em 0;
37+
overflow: auto;
38+
}
39+
40+
:not(pre) > code[class*="language-"],
41+
pre[class*="language-"] {
42+
background: #2d2d2d;
43+
}
44+
45+
/* Inline code */
46+
:not(pre) > code[class*="language-"] {
47+
padding: .1em;
48+
border-radius: .3em;
49+
white-space: normal;
50+
}
51+
52+
.token.comment,
53+
.token.block-comment,
54+
.token.prolog,
55+
.token.doctype,
56+
.token.cdata {
57+
color: #999;
58+
}
59+
60+
.token.punctuation {
61+
color: #ccc;
62+
}
63+
64+
.token.tag,
65+
.token.attr-name,
66+
.token.namespace,
67+
.token.deleted {
68+
color: #e2777a;
69+
}
70+
71+
.token.function-name {
72+
color: #6196cc;
73+
}
74+
75+
.token.boolean,
76+
.token.number,
77+
.token.function {
78+
color: #f08d49;
79+
}
80+
81+
.token.property,
82+
.token.class-name,
83+
.token.constant,
84+
.token.symbol {
85+
color: #f8c555;
86+
}
87+
88+
.token.selector,
89+
.token.important,
90+
.token.atrule,
91+
.token.keyword,
92+
.token.builtin {
93+
color: #cc99cd;
94+
}
95+
96+
.token.string,
97+
.token.char,
98+
.token.attr-value,
99+
.token.regex,
100+
.token.variable {
101+
color: #7ec699;
102+
}
103+
104+
.token.operator,
105+
.token.entity,
106+
.token.url {
107+
color: #67cdcc;
108+
}
109+
110+
.token.important,
111+
.token.bold {
112+
font-weight: bold;
113+
}
114+
.token.italic {
115+
font-style: italic;
116+
}
117+
118+
.token.entity {
119+
cursor: help;
120+
}
121+
122+
.token.inserted {
123+
color: green;
124+
}
125+
126+
pre[class*="language-"].line-numbers {
127+
position: relative;
128+
padding-left: 3.8em;
129+
counter-reset: linenumber;
130+
}
131+
132+
pre[class*="language-"].line-numbers > code {
133+
position: relative;
134+
white-space: inherit;
135+
}
136+
137+
.line-numbers .line-numbers-rows {
138+
position: absolute;
139+
pointer-events: none;
140+
top: 0;
141+
font-size: 100%;
142+
left: -3.8em;
143+
width: 3em; /* works for line-numbers below 1000 lines */
144+
letter-spacing: -1px;
145+
/* OVERRIDING BELOW
146+
border-right: 1px solid #999;
147+
*/
148+
border-right: 1px solid #777;
149+
150+
-webkit-user-select: none;
151+
-moz-user-select: none;
152+
-ms-user-select: none;
153+
user-select: none;
154+
155+
}
156+
157+
.line-numbers-rows > span {
158+
display: block;
159+
counter-increment: linenumber;
160+
}
161+
162+
.line-numbers-rows > span:before {
163+
content: counter(linenumber);
164+
/* OVERRIDING BELOW
165+
color: #999;
166+
*/
167+
color: #777;
168+
display: block;
169+
padding-right: 0.8em;
170+
text-align: right;
171+
}
172+
173+
div.code-toolbar {
174+
position: relative;
175+
}
176+
177+
div.code-toolbar > .toolbar {
178+
position: absolute;
179+
top: .3em;
180+
right: .2em;
181+
/* OVERRIDING BELOW
182+
transition: opacity 0.3s ease-in-out;
183+
*/
184+
opacity: 0;
185+
}
186+
187+
div.code-toolbar:hover > .toolbar {
188+
opacity: 1;
189+
}
190+
191+
/* Separate line b/c rules are thrown out if selector is invalid.
192+
IE11 and old Edge versions don't support :focus-within. */
193+
div.code-toolbar:focus-within > .toolbar {
194+
opacity: 1;
195+
}
196+
197+
div.code-toolbar > .toolbar .toolbar-item {
198+
display: inline-block;
199+
}
200+
201+
div.code-toolbar > .toolbar a {
202+
cursor: pointer;
203+
}
204+
205+
div.code-toolbar > .toolbar button {
206+
background: none;
207+
border: 0;
208+
color: inherit;
209+
font: inherit;
210+
line-height: normal;
211+
overflow: visible;
212+
padding: 0;
213+
-webkit-user-select: none; /* for button */
214+
-moz-user-select: none;
215+
-ms-user-select: none;
216+
}
217+
218+
div.code-toolbar > .toolbar a,
219+
div.code-toolbar > .toolbar button,
220+
div.code-toolbar > .toolbar span {
221+
222+
/* OVERRIDING BELOW
223+
color: #bbb;
224+
font-size: .8em;
225+
padding: 0 .5em;
226+
box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
227+
border-radius: .5em;
228+
*/
229+
font-size: .9em;
230+
color: #ccc;
231+
padding: .5em;
232+
background: #f5f2f0;
233+
background: rgba(224, 224, 224, 0.2);
234+
}
235+
236+
div.code-toolbar > .toolbar a:hover,
237+
div.code-toolbar > .toolbar a:focus,
238+
div.code-toolbar > .toolbar button:hover,
239+
div.code-toolbar > .toolbar button:focus,
240+
div.code-toolbar > .toolbar span:hover,
241+
div.code-toolbar > .toolbar span:focus {
242+
color: inherit;
243+
text-decoration: none;
244+
}
245+

0 commit comments

Comments
 (0)