Skip to content

Commit 425931e

Browse files
authored
Merge pull request #380 from pastelsky/code-selection
Inline code + selection colors
2 parents e7ee214 + ded329a commit 425931e

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

styles/index.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,19 @@ a {
3535
margin-left: 16px;
3636
transform: rotate(-45deg);
3737
color:lighten(getColor(dusty-grey), 10%);
38+
39+
&:hover {
40+
color: lighten(getColor(denim), 5%);
41+
}
3842
}
3943

4044
&:hover {
4145
color: darken(getColor(denim), 5%);
4246
}
4347
}
4448

49+
::selection {
50+
background: transparentize(getColor(malibu), 0.65);
51+
}
52+
4553
@import './markdown';

styles/markdown.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
}
9393

9494
code {
95-
background-color:transparentize(getColor(alto), 0.5);
95+
color: inherit;
9696
}
9797
}
9898

@@ -162,11 +162,12 @@
162162
code, tt {
163163
font-family:'Ubuntu Mono', monospace;
164164
margin: 0 2px;
165-
padding: 0 5px;
165+
padding: 2px 6px;
166166
white-space: nowrap;
167-
border: 1px solid #eaeaea;
168-
background-color: #f8f8f8;
167+
background-color: transparentize(getColor(fiord), 0.94);
169168
border-radius: 3px;
169+
text-shadow: 0 1px 0 transparentize(getColor(white), 0.5);
170+
color: getColor(elephant);
170171
}
171172

172173
pre {
@@ -184,6 +185,7 @@
184185
border: none;
185186
color:getColor(concrete);
186187
background: transparent;
188+
text-shadow: none;
187189

188190
.code-details-summary-span {
189191
margin-left: -15px;

0 commit comments

Comments
 (0)