Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit924efe8

Browse files
committed
round borders on code blocks
1 parent90fa20c commit924efe8

File tree

1 file changed

+48
-46
lines changed

1 file changed

+48
-46
lines changed

‎web-app/src/components/Markdown/prism.css

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,120 +6,122 @@ https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+cli
66
* @author Rose Pritchard
77
*/
88

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;
9+
pre {
10+
border-radius:0.3em;
11+
}
12+
13+
code[class*='language-'],
14+
pre[class*='language-'] {
15+
color:#ccc;
16+
background: none;
17+
font-family: Consolas, Monaco,'Andale Mono','Ubuntu Mono', monospace;
18+
font-size:1em;
19+
text-align: left;
20+
white-space: pre;
21+
word-spacing: normal;
22+
word-break: normal;
23+
word-wrap: normal;
24+
line-height:1.5;
3025

26+
-moz-tab-size:4;
27+
-o-tab-size:4;
28+
tab-size:4;
29+
30+
-webkit-hyphens: none;
31+
-moz-hyphens: none;
32+
-ms-hyphens: none;
33+
hyphens: none;
3134
}
3235

3336
/* Code blocks */
34-
pre[class*="language-"] {
35-
padding:1em;
36-
margin:.5em0;
37-
overflow: auto;
37+
pre[class*='language-'] {
38+
padding:1em;
39+
margin:0.5em0;
40+
overflow: auto;
3841
}
3942

40-
:not(pre)>code[class*="language-"],
41-
pre[class*="language-"] {
42-
background:#2d2d2d;
43+
:not(pre)> code[class*='language-'],
44+
pre[class*='language-'] {
45+
background:#2d2d2d;
4346
}
4447

4548
/* Inline code */
46-
:not(pre)>code[class*="language-"] {
47-
padding:.1em;
48-
border-radius:.3em;
49-
white-space: normal;
49+
:not(pre)> code[class*='language-'] {
50+
padding:0.1em;
51+
border-radius:0.3em;
52+
white-space: normal;
5053
}
5154

5255
.token.comment,
5356
.token.block-comment,
5457
.token.prolog,
5558
.token.doctype,
5659
.token.cdata {
57-
color:#999;
60+
color:#999;
5861
}
5962

6063
.token.punctuation {
61-
color:#ccc;
64+
color:#ccc;
6265
}
6366

6467
.token.tag,
6568
.token.attr-name,
6669
.token.namespace,
6770
.token.deleted {
68-
color:#e2777a;
71+
color:#e2777a;
6972
}
7073

7174
.token.function-name {
72-
color:#6196cc;
75+
color:#6196cc;
7376
}
7477

7578
.token.boolean,
7679
.token.number,
7780
.token.function {
78-
color:#f08d49;
81+
color:#f08d49;
7982
}
8083

8184
.token.property,
8285
.token.class-name,
8386
.token.constant,
8487
.token.symbol {
85-
color:#f8c555;
88+
color:#f8c555;
8689
}
8790

8891
.token.selector,
8992
.token.important,
9093
.token.atrule,
9194
.token.keyword,
9295
.token.builtin {
93-
color:#cc99cd;
96+
color:#cc99cd;
9497
}
9598

9699
.token.string,
97100
.token.char,
98101
.token.attr-value,
99102
.token.regex,
100103
.token.variable {
101-
color:#7ec699;
104+
color:#7ec699;
102105
}
103106

104107
.token.operator,
105108
.token.entity,
106109
.token.url {
107-
color:#67cdcc;
110+
color:#67cdcc;
108111
}
109112

110113
.token.important,
111114
.token.bold {
112-
font-weight: bold;
115+
font-weight: bold;
113116
}
114117
.token.italic {
115-
font-style: italic;
118+
font-style: italic;
116119
}
117120

118121
.token.entity {
119-
cursor: help;
122+
cursor: help;
120123
}
121124

122125
.token.inserted {
123-
color: green;
126+
color: green;
124127
}
125-

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp