Skip to content

Commit e5447cc

Browse files
committed
Fixed small-caps on firefox and made drop-caps position correctly cross-browser
1 parent 4c4e704 commit e5447cc

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

README.md

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

33
Think of it as Casper, with class.
44

5+
### [LIVE DEMO!](http://mnml.herokuapp.com)
6+
57
Features:
68

79
- Everything that makes Casper great, plus…

assets/css/screen.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -812,18 +812,21 @@ body:not(.post-template) .post-title {
812812
}
813813

814814
.post-content > p:first-child:first-letter{
815-
float: left;
816-
color: orange;
817-
margin-right: .15em;
818-
margin-top: 10px;
819-
padding-top: 12px;
820-
font-size: 7rem;
815+
font-size:350%;
816+
margin:11px 0 -5px 0;
817+
padding:0 .1em 0 0;
818+
height:.7em;
819+
line-height:.85em;
820+
float:left;
821+
color:orange;
821822
font-weight: 900;
822-
line-height: .52;
823+
*line-height:1em; /* IE7 Only */
823824
}
824825

826+
825827
.post-content > p:first-child:first-line{
826828
-moz-font-feature-settings: "smcp=1";
829+
-moz-font-feature-settings: "smcp";
827830
-ms-font-feature-settings: "smcp";
828831
-webkit-font-feature-settings: "smcp";
829832
-o-font-feature-settings: "smcp";

0 commit comments

Comments
 (0)