Skip to content

Commit a1a4807

Browse files
committed
Merge branch 'fonts'
2 parents 6ebbe1b + ea3c9e4 commit a1a4807

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

git-cheatsheet.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
;NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"353079bf4b",applicationID:"15004877",sa:1,agent:"js-agent.newrelic.com/nr-852.min.js"}
3232
</script>
3333
<link rel="stylesheet" href="git-cheatsheet/1200.css" type="text/css"/>
34+
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,200,500' rel='stylesheet' type='text/css'>
35+
<link href='https://fonts.googleapis.com/css?family=Merriweather:300,400' rel='stylesheet' type='text/css'>
3436
<link rel="stylesheet" href="git-cheatsheet/fonts/Impact-Label-fontfacekit/stylesheet.css" type="text/css"/>
3537
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.js' type='text/javascript'></script>
3638
<script src='git-cheatsheet/csster.js?v=2'></script>

git-cheatsheet/styles.js

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ $(function () {
1313
var dnColor = colors.workspace.darken(0).saturate(-30);
1414
var statusColor = '#846C6C';
1515

16+
monospaced = '"Source Code Pro", monospaced'
17+
bodyFont = 'Merriweather, sanserif' // 300, 400, 700, 900
1618

1719
var css = {
1820
'html,body': {
@@ -65,7 +67,7 @@ $(function () {
6567
marginTop: 2,
6668
marginBottom: -10,
6769
li: {
68-
font: '16px/20px courier, monospaced',
70+
font: '16px/20px ' + monospaced,
6971
display: 'block',
7072
textAlign: 'right',
7173
color: colors.local_repo.lighten(10).saturate(-40)
@@ -76,8 +78,8 @@ $(function () {
7678
color: colors.local_repo.saturate(-60).lighten(10),
7779
position: 'fixed',
7880
bottom: 3,
79-
left: 20,
80-
font: '12px courier, monospaced',
81+
right: 3,
82+
font: '300 12px ' + bodyFont,
8183
zIndex: 1000
8284
},
8385
'h4': {
@@ -90,7 +92,7 @@ $(function () {
9092
color: '#b3a2a2'.lighten(25),
9193
border: '1px solid transparent',
9294
padding: '1px 2px',
93-
font: '12px courier, monospaced',
95+
font: '12px ' + monospaced,
9496
'&.selected': {
9597
backgroundColor: '#e9bebe'.darken(20),
9698
color: '#fff',
@@ -139,7 +141,7 @@ $(function () {
139141
bottom: 0,
140142
position: 'absolute',
141143
padding: '0 20px',
142-
font: '15px courier, monospaced',
144+
font: '400 15px ' + bodyFont,
143145
color: 'white',
144146
visibility: 'hidden'
145147
},
@@ -162,7 +164,7 @@ $(function () {
162164
top: 85,
163165
left: 0,
164166
width: '100%',
165-
font: '15px courier, monospaced',
167+
font: '200 15px ' + monospaced,
166168
height: 0,
167169
margin: 0,
168170
padding: 0,
@@ -183,6 +185,7 @@ $(function () {
183185
'&.selected': {
184186
padding: '2px 5px',
185187
has: boxShadow([1, 1], 3, '#999'),
188+
fontWeight: '700',
186189
opacity: 0.8
187190
},
188191
'&.up': {
@@ -223,7 +226,6 @@ $(function () {
223226
left: 0,
224227
width: '100%',
225228
padding: '10px 0 20px 0',
226-
font: '15px/20px courier, monospaced',
227229
zIndex: 1,
228230
'.screen': {
229231
zIndex: -1,
@@ -233,29 +235,29 @@ $(function () {
233235
height: '100%',
234236
width: '150%',
235237
backgroundColor: '#F6EBD9',
236-
opacity: 0.8
238+
opacity: 0.9
237239
},
238-
// height: 60,
239-
'.cmd, .doc': {
240+
'.cmd,.doc': {
240241
minHeight: '3em',
241-
fontSize: 18
242+
float: 'left',
242243
},
243244
'.cmd': {
244-
float: 'left',
245+
font: '500 16px/22px ' + monospaced,
245246
marginRight: 20,
247+
marginTop: -2,
246248
width: '35%',
247249
color: 'black',
248250
textAlign: 'right',
249-
textDecoration: 'underline'
251+
//textDecoration: 'underline',
250252
},
251253
'.doc': {
252-
float: 'left',
254+
font: '300 15px/22px ' + bodyFont,
253255
width: '55%',
254-
color: 'black'.lighten(30),
255-
code: {
256-
color: 'black',
257-
fontWeight: '600'
258-
}
256+
maxWidth: '70ex',
257+
color: 'black',
258+
'em,b': {
259+
font: '400 16px/22px ' + monospaced,
260+
},
259261
}
260262
},
261263
'#remote_repo .bar, #local_repo .bar': {

0 commit comments

Comments
 (0)