Skip to content

Commit 47b7d0c

Browse files
committed
Integrate hero console code styles
1 parent 506db8f commit 47b7d0c

4 files changed

Lines changed: 29 additions & 5 deletions

File tree

client/stylesheets/application.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
@import 'structures/heading'
4747
@import 'structures/hero'
4848
@import 'structures/icon'
49+
@import 'structures/inlineCode'
4950
@import 'structures/inlineConsole'
5051
@import 'structures/label'
5152
@import 'structures/layout'

client/stylesheets/foundation/_base.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ strong, b
9797
em, i
9898
font-style: italic
9999

100-
code
100+
code, kbd
101101
font-family: $b-fontFamily-mono
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// *************************************
2+
//
3+
// Inline Code
4+
// -> Decorated snippet
5+
//
6+
// -------------------------------------
7+
// Template (Haml)
8+
// -------------------------------------
9+
//
10+
// %code.inlineCode
11+
//
12+
// *************************************
13+
14+
.inlineCode
15+
border-radius: 4px
16+
border: 1px solid $c-highlight
17+
display: inline-block
18+
padding-left: 0.5ch
19+
padding-right: 0.5ch

views/partials/_hero_console.jade

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
.card.inlineConsole-card.pal--m
22
h3.h.h--2.h--light Ready to try JavaScript?
33

4-
p.tfh.tss.
5-
Begin learning here by typing in your first name surrounded by
6-
quotation marks, and ending with a semicolon. For example, I'd
7-
type my name "Gregg"; and then hit enter.
4+
p.tfh.tss
5+
| Begin learning here by typing in your first name surrounded by
6+
| quotation marks, and ending with a semicolon. For example, I’d
7+
| type my name
8+
code.inlineCode "Gregg";
9+
| and then hit
10+
kbd.inlineCode enter
11+
| .
812

913
form.inlineConsole.js-console(action='')
1014
span.inlineConsole-icon.inlineConsole-icon--caret

0 commit comments

Comments
 (0)