Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smcp Small Caps #8

Closed
wants to merge 24 commits into from
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
890a36e
Fallback for OpenType small caps
typometre Apr 9, 2016
3ba4392
Corrected Smcp
typometre Apr 9, 2016
dcb85c0
Improves cascade handling for zero and numbers
kennethormandy Dec 12, 2015
5e5f374
Restores uppercase fallback for Small Caps
kennethormandy Dec 22, 2015
68a3f52
Adds fallback caps for IE using specific media query
kennethormandy Dec 22, 2015
0dbe137
Fixes formatting
kennethormandy Dec 22, 2015
2b759d1
v0.1.2
kennethormandy Dec 29, 2015
d21c125
Fixes formatting
kennethormandy Dec 29, 2015
509c0d0
Fixes fallback
kennethormandy Dec 29, 2015
3d4f29f
Updates note about Basscss caps letter spacing
kennethormandy Dec 29, 2015
374ab8d
Updates PostCSS dependencies
kennethormandy Dec 29, 2015
a36a1d5
Moves text-transform fallback
kennethormandy Dec 29, 2015
bac6e9c
Removes Basscss letter-spacing resetting in favour of using Basscss v…
kennethormandy Dec 29, 2015
b929553
Removes conversion of superscripts and subscripts to lowercase
kennethormandy Dec 29, 2015
95527dd
Combines inheritance support queries
kennethormandy Dec 29, 2015
aad2ed8
Removes explicit default Swash and Stylistic Alternate number
kennethormandy Dec 29, 2015
033c42b
Adds a test to ensure source file is valid SCSS
kennethormandy Dec 30, 2015
4473b5b
v0.1.3
kennethormandy Dec 30, 2015
e8dfddd
Updates URLs in README
kennethormandy Dec 30, 2015
83a4083
Updates README docs todos
kennethormandy Jan 3, 2016
ae8b4cc
Fixes #6
kennethormandy Feb 24, 2016
de3247d
Fallback for OpenType small caps
typometre Apr 9, 2016
aa44266
Corrected Smcp
typometre Apr 9, 2016
0627818
Merge branch 'master' of https://github.com/dinobib/utility-opentype
typometre Apr 9, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions css/utility-opentype.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,27 @@
}

.smcp {
text-transform: uppercase;
-ms-font-feature-settings: "lnum", "smcp", "c2sc" 0;
-ms-font-feature-settings: "lnum", "smcp" 0;
font-variant: small-caps;
}

@supports not (font-variant-caps: small-caps) {

.smcp {
font-variant: normal;
text-transform: inherit;
-webkit-font-feature-settings: "onum", "smcp", "c2sc" 0;
font-feature-settings: "onum", "smcp", "c2sc" 0;
-webkit-font-feature-settings: "onum", "smcp" 0;
font-feature-settings: "onum", "smcp" 0;
}
}

@supports (font-variant-caps: small-caps) {

.smcp {
.smcp {
font-variant: normal;
text-transform: inherit;
-webkit-font-feature-settings: "c2sc";
font-feature-settings: "c2sc";
-webkit-font-feature-settings: "smcp";
font-feature-settings: "smcp";
font-variant-caps: small-caps;
}
}
Expand Down