Skip to content

Commit fcaad4c

Browse files
committed
Highlight traits like rw, copy etc. differently in CSS
1 parent f3c7089 commit fcaad4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

html/css/highlights.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ atom-text-editor.is-focused .line.cursor-line {
7373
.constant.numeric.line-number.find-in-files .match {
7474
color: rgba(143, 190, 0, 0.63);
7575
}
76+
/* For 'rw', 'copy' etc. */
77+
.entity.name.type.trait {
78+
color: #555CEE
79+
font-weight: bold
80+
}
7681
.variable.other {
7782
color: #CC0050
7883
}

template/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<meta name=viewport content="width=device-width, initial-scale=1">
22
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
33
<link type="text/css" href="/css/custom-theme/jquery-ui.css?v=1" rel="stylesheet" />
4-
<link type="text/css" href="/css/highlights.css?v=2" rel="stylesheet" />
4+
<link type="text/css" href="/css/highlights.css?v=3" rel="stylesheet" />
55
<link type="text/css" href="/css/pygments.css?v=1" rel="stylesheet" />
66
<link rel="stylesheet" type="text/css" href="/css/style.css?v=1" media="screen" title="default" />
77
<noscript> <style> #search { visibility: hidden; } </style> </noscript>

0 commit comments

Comments
 (0)