Skip to content

Commit 9e71fe6

Browse files
committed
color tuning and animated first point
1 parent b80c40f commit 9e71fe6

File tree

5 files changed

+262
-157
lines changed

5 files changed

+262
-157
lines changed

site/_core/Prism.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Token.reactify = function(o, language, parent, key) {
389389
type: o.type,
390390
content: Token.reactify(o.content, language, parent),
391391
tag: 'span',
392-
classes: ['token', o.type],
392+
classes: [o.type],
393393
attributes: {key: key},
394394
language: language,
395395
parent: parent

site/_css/index.less

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Index page uses a fixed header with an overlay
44
body.index {
5+
background: #f5f6f8;
56
margin-top: 50px;
67

78
header {
@@ -23,7 +24,6 @@ body.index {
2324

2425
.hero {
2526
background: @dark-color;
26-
color: #f8f8f8;
2727
min-height: 500px;
2828
max-height: 1000px;
2929
height: 70vh;
@@ -120,9 +120,7 @@ body.index {
120120
}
121121

122122
.fadein-cols(3);
123-
124-
.fadein-cols(@n) when (@n > 0) {
125-
.fadein-cols(@n - 1);
123+
.fadein-cols(@n) when (@n > 0) { .fadein-cols(@n - 1);
126124
.marketing-col:nth-child(@{n}) {
127125
animation: fade 1.1s 0.8s * @n ease-in-out;
128126
animation-fill-mode: both;
@@ -156,7 +154,7 @@ body.index {
156154
}
157155

158156
.grayWash {
159-
background: #f3f4f6;
157+
background: #e6e8ec;
160158
position: relative;
161159
}
162160

@@ -186,6 +184,7 @@ body.index {
186184
pointer-events: none;
187185

188186
.query, .response {
187+
background: white;
189188
flex: 1;
190189
}
191190

@@ -194,11 +193,33 @@ body.index {
194193
}
195194

196195
.prism {
197-
box-shadow: none;
198196
background: none;
197+
box-shadow: none;
199198
margin: 0;
200199
padding: 1ch;
201200
}
201+
202+
.cursor {
203+
width: 7px;
204+
height: 14px;
205+
background-color: #d0d0d0;
206+
display: inline-block;
207+
margin: 0 1px -3px;
208+
animation: cursor-blink 0.5s infinite linear both alternate;
209+
210+
@keyframes cursor-blink {
211+
0%, 30% {
212+
opacity: 0;
213+
}
214+
70%, 100% {
215+
opacity: 1;
216+
}
217+
}
218+
}
219+
220+
.ch {
221+
display: none;
222+
}
202223
}
203224
}
204225

@@ -227,8 +248,8 @@ body.index {
227248
}
228249

229250
.prism {
230-
box-shadow: none;
231251
background: none;
252+
box-shadow: none;
232253
margin: 0;
233254
padding: 0;
234255
}

site/_css/prism.less

Lines changed: 61 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -69,73 +69,75 @@ pre.prism {
6969
}
7070

7171
// Colors
72-
.token.comment,
73-
.token.prolog,
74-
.token.doctype,
75-
.token.cdata {
76-
color: slategray;
77-
}
72+
.prism {
73+
.comment,
74+
.prolog,
75+
.doctype,
76+
.cdata {
77+
color: slategray;
78+
}
7879

79-
.token.punctuation {
80-
color: #999;
81-
}
80+
.punctuation {
81+
color: #999;
82+
}
8283

83-
.namespace {
84-
opacity: .7;
85-
}
84+
.namespace {
85+
opacity: .7;
86+
}
8687

87-
.token.property,
88-
.token.tag,
89-
.token.boolean,
90-
.token.number,
91-
.token.constant,
92-
.token.symbol,
93-
.token.deleted {
94-
color: #905;
95-
}
88+
.property,
89+
.tag,
90+
.boolean,
91+
.number,
92+
.constant,
93+
.symbol,
94+
.deleted {
95+
color: #905;
96+
}
9697

97-
.token.selector,
98-
.token.attr-name,
99-
.token.string,
100-
.token.char,
101-
.token.builtin,
102-
.token.inserted {
103-
color: #690;
104-
}
98+
.selector,
99+
.attr-name,
100+
.string,
101+
.char,
102+
.builtin,
103+
.inserted {
104+
color: #690;
105+
}
105106

106-
.token.operator,
107-
.token.entity,
108-
.token.url,
109-
.language-css .token.string,
110-
.style .token.string {
111-
color: #a67f59;
112-
background: hsla(0, 0%, 100%, .5);
113-
}
107+
.operator,
108+
.entity,
109+
.url,
110+
.language-css .string,
111+
.style .string {
112+
color: #a67f59;
113+
background: hsla(0, 0%, 100%, .5);
114+
}
114115

115-
.token.atrule,
116-
.token.attr-value,
117-
.token.keyword {
118-
color: #07a;
119-
}
116+
.atrule,
117+
.attr-value,
118+
.keyword {
119+
color: #07a;
120+
}
120121

121-
.token.function {
122-
color: #DD4A68;
123-
}
122+
.function {
123+
color: #DD4A68;
124+
}
124125

125-
.token.regex,
126-
.token.important,
127-
.token.variable {
128-
color: #e90;
129-
}
126+
.regex,
127+
.important,
128+
.variable {
129+
color: #e90;
130+
}
130131

131-
.token.important,
132-
.token.bold {
133-
font-weight: bold;
134-
}
135-
.token.italic {
136-
font-style: italic;
137-
}
132+
.important,
133+
.bold {
134+
font-weight: bold;
135+
}
136+
.italic {
137+
font-style: italic;
138+
}
138139

139-
.token.entity {
140-
cursor: help;
140+
.entity {
141+
cursor: help;
142+
}
141143
}

0 commit comments

Comments
 (0)