Skip to content

Commit f4f7aae

Browse files
author
Christopher Baker
committed
update for prism
1 parent a57db45 commit f4f7aae

File tree

4 files changed

+17
-39
lines changed

4 files changed

+17
-39
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bit-docs-html-canjs",
3-
"version": "2.2.0",
3+
"version": "2.2.1-0",
44
"description": "The plugins to produce the CanJS site",
55
"main": "static/canjs",
66
"scripts": {

static/base.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ td, th {
2525
padding: 0;
2626
}
2727

28+
:not(pre) > code {
29+
padding: .2em;
30+
color: #c92c2c;
31+
border: 1px solid rgba(0,0,0,.1);
32+
border-radius: .3em;
33+
}

static/breadcrumb.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@
5151
color: white;
5252
font-size: 14px;
5353
padding: @gutter;
54+
5455
code {
55-
background: none;
56-
line-height: 14px;
56+
color: inherit;
57+
padding: 0;
58+
border: none;
5759
}
5860
}
5961
a:hover {
@@ -105,9 +107,7 @@
105107
padding: 0px;
106108
margin: 0px;
107109
code {
108-
background: none;
109110
font-weight: 600;
110-
padding: 0;
111111
}
112112
a {
113113
width: auto;

static/content.less

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,50 +20,27 @@ article {
2020
padding: 0;
2121
.border-radius(0);
2222
}
23-
code {
24-
23+
pre code {
2524
.highlight {
2625
background: @highlight-color;
2726
padding: 3px 0;
2827
}
2928
.obscured{
3029
background: lighten(@border-color, 2%);
3130
}
32-
.expand {
33-
background-color: @border-color;
34-
text-align: center;
35-
padding: 4px 0px;
36-
margin: @gutter/2 0;
37-
border-top: 1px solid @dark-border-color;
38-
border-bottom: 1px solid @dark-border-color;
39-
color: black;
40-
}
41-
.expand:before {
31+
32+
.collapse.collapsed::before {
4233
content: url(../static/img/expand_icon.svg);
43-
display: block;
44-
width: 15px;
45-
height: 15px;
46-
margin: 0 auto;
47-
}
48-
.expand:hover{
49-
opacity: .6;
50-
cursor: pointer;
5134
}
5235
}
5336
pre code {
5437
background: none;
5538
display: block;
5639
margin: @gutter;
5740
word-wrap: break-word;
58-
font-size: 15px;
5941
line-height: 20px;
6042
letter-spacing: 0;
6143
-webkit-font-smoothing: initial;
62-
63-
&.line-highlight {
64-
display: inline-block;
65-
min-width: 100%;
66-
}
6744
}
6845
.signature {
6946
padding: @gutter*2;
@@ -78,11 +55,13 @@ article {
7855
margin-top: 0;
7956
border-bottom: 0;
8057
word-wrap: break-word;
58+
8159
code {
8260
font-weight: bold;
8361
.font-smoothing;
62+
8463
padding: 0;
85-
background: none;
64+
border: none;
8665
}
8766
}
8867
}
@@ -130,13 +109,6 @@ video{
130109
blockquote{
131110
.notify-normal;
132111
}
133-
.line-highlight{
134-
margin: @gutter 0;
135-
span.line{
136-
padding: 0 @gutter;
137-
display: block;
138-
}
139-
}
140112
.body{
141113
margin: @gutter*2;
142114
}

0 commit comments

Comments
 (0)