Skip to content

Commit 1dfbb6b

Browse files
committed
Space titles down off topbar, add temporary fix for titles disappearing on Chrome
1 parent f6c8d05 commit 1dfbb6b

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

assets/css/rascal.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ body {
44
line-height: 1.0em;
55
background-color: #e7e8e9;
66
}
7+
/* Temporary fix for Chrome disappearing fonts bug */
8+
/* See http://stackoverflow.com/questions/22053010/google-webfonts-are-not-displaying-at-all-chrome-latest-version-mac */
9+
body {
10+
-webkit-animation-duration: 0.1s;
11+
-webkit-animation-name: fontfix;
12+
-webkit-animation-iteration-count: 1;
13+
-webkit-animation-timing-function: linear;
14+
-webkit-animation-delay: 0.1s;
15+
}
16+
@-webkit-keyframes fontfix {
17+
from {
18+
opacity: 1;
19+
}
20+
to {
21+
opacity: 1;
22+
}
23+
}
24+
/* end Chrome fix */
725
p {
826
line-height: 1.6em;
927
margin-top: 0.5em;
@@ -40,7 +58,7 @@ h5 {
4058
max-width: 820px;
4159
background-color: #f5f5f5;
4260
margin-top: 0px;
43-
padding-top: 50px;
61+
padding-top: 70px;
4462
padding-bottom: 0px;
4563
margin-bottom: 0px;
4664
position: static;

assets/css/rascal.less

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@ body {
1717
background-color: @rascal-white;
1818
}
1919

20+
/* Temporary fix for Chrome disappearing fonts bug */
21+
/* See http://stackoverflow.com/questions/22053010/google-webfonts-are-not-displaying-at-all-chrome-latest-version-mac */
22+
23+
body
24+
{
25+
-webkit-animation-duration: 0.1s;
26+
-webkit-animation-name: fontfix;
27+
-webkit-animation-iteration-count: 1;
28+
-webkit-animation-timing-function: linear;
29+
-webkit-animation-delay: 0.1s;
30+
}
31+
32+
@-webkit-keyframes fontfix{
33+
from{ opacity: 1; }
34+
to{ opacity: 1; }
35+
}
36+
37+
/* end Chrome fix */
38+
2039
p {
2140
line-height: 1.6em;
2241
margin-top: 0.5em;
@@ -60,7 +79,7 @@ h5 {
6079
max-width: 820px;
6180
background-color: @rascal-bright-white;
6281
margin-top: 0px;
63-
padding-top: 50px;
82+
padding-top: 70px;
6483
padding-bottom: 0px;
6584
margin-bottom: 0px;
6685
position: static; /* to prevent weird overlap on page.hbs */

0 commit comments

Comments
 (0)