Skip to content

Commit e1be200

Browse files
committed
Improve code and pre rendering
* Fewer styles to override * Improved type * Simpler inline code elements
1 parent c7300c1 commit e1be200

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

public/css/hyde.css

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,24 +120,23 @@ abbr {
120120
border-radius: 3px;
121121
}
122122

123-
code, pre {
124-
padding: 0 3px 2px;
123+
code,
124+
pre {
125125
font-family: Menlo, Monaco, "Courier New", monospace;
126-
font-size: 14px;
127-
border-radius: 3px;
128126
}
129127
code {
130-
padding: 2px 4px;
131-
color: #d14;
132-
background-color: #f7f7f9;
133-
border: 1px solid #e1e1e8;
128+
padding: .25em .5em;
129+
font-size: 85%;
130+
color: #bf616a;
131+
background-color: #f9f9f9;
132+
border-radius: 3px;
134133
}
135-
136134
pre {
137135
display: block;
138136
margin: 0 0 14px;
139137
padding: 15px 20px;
140-
line-height: 28px;
138+
font-size: 16px;
139+
line-height: 1.4;
141140
white-space: pre;
142141
white-space: pre-wrap;
143142
word-break: break-all;
@@ -146,9 +145,9 @@ pre {
146145
}
147146
pre code {
148147
padding: 0;
148+
font-size: 100%;
149149
color: inherit;
150150
background-color: transparent;
151-
border: 0;
152151
}
153152
.highlight {
154153
margin-bottom: 15px;

0 commit comments

Comments
 (0)