@import "compass/reset"; @import "typography"; @import "icons"; /****************************************************** * Style Guide ******************************************************/ * { box-sizing: border-box; } body { background-color: #EFEFEF; } nav { margin-bottom: $normal-margin * 4; a { display: inline-block; margin-right: 15px; } } .section { width: 100%; padding: 30px 24px; @media (min-width: 768px) { padding: 60px; } } .narrow-wrapper { width: 100%; max-width: 575px; } .font-comparison { width: 100%; table-layout: fixed; background-color: #FFFFFF; } .font-comparison td, th { padding: 12px 15px 15px 20px; vertical-align: top; position: relative; width: 100%; display: block; border-right: none; @media screen and (min-width: 768px) { width: auto; display: table-cell; border-right: 1px solid #ededed; } } .font-comparison th { @include td-responsive-type-size($typeface-alternate, 0); @extend .text-secondary; border-bottom: 1px solid #ededed; } .font-comparison tr { border-top: 1px solid #ededed; border-bottom: 1px solid #ededed; width: 100%; } .font-comparison thead { display: none; @media screen and (min-width: 768px) { display: table-header-group; } } .font-comparison td p { max-height: 160px; overflow: hidden; margin-bottom: $normal-margin * 1.5; position: relative; @media screen and (min-width: 768px) { max-height: 300px; } &:after { content: ""; height: 40px; background-color: white; position: absolute; left: 0; right: 0; bottom: 0; background: -moz-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,1)); /* FF3.6-15 */ background: -webkit-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,1)); /* Chrome10-25,Safari5.1-6 */ background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ } } .font-comparison th:first-child { border-right: 1px solid #ededed; text-align: left; @media screen and (min-width: 768px) { width: 8%; display: table-cell; text-align: right; } } .font-comparison th:last-child { @media screen and (min-width: 768px) { width: 18%; } } .metrics { @include td-responsive-type-size($typeface-alternate, 0); } // Default font .typeface-default-larger4 { @include td-responsive-type-size($typeface-default, 4); } .typeface-default-larger3 { @include td-responsive-type-size($typeface-default, 3); } .typeface-default-larger2 { @include td-responsive-type-size($typeface-default, 2); } .typeface-default-larger1 { @include td-responsive-type-size($typeface-default, 1); } .typeface-default-base { @include td-responsive-type-size($typeface-default, 0); } .typeface-default-smaller1 { @include td-responsive-type-size($typeface-default, -1); } // Alternate font .typeface-alt-larger4 { @include td-responsive-type-size($typeface-alternate, 4); font-weight: bold; } .typeface-alt-larger3 { @include td-responsive-type-size($typeface-alternate, 3); font-weight: bold; } .typeface-alt-larger2 { @include td-responsive-type-size($typeface-alternate, 2); font-weight: bold; } .typeface-alt-larger1 { @include td-responsive-type-size($typeface-alternate, 1); font-weight: bold; } .typeface-alt-base { @include td-responsive-type-size($typeface-alternate, 0); font-weight: bold; } .typeface-alt-smaller1 { @include td-responsive-type-size($typeface-alternate, -1); font-weight: bold; } // Alternate font .typeface-icon-larger4 { @include td-responsive-type-size($typeface-icon, 4); } .typeface-icon-larger3 { @include td-responsive-type-size($typeface-icon, 3); } .typeface-icon-larger2 { @include td-responsive-type-size($typeface-icon, 2); } .typeface-icon-larger1 { @include td-responsive-type-size($typeface-icon, 1); } .typeface-icon-base { @include td-responsive-type-size($typeface-icon, 0); } .typeface-icon-smaller1 { @include td-responsive-type-size($typeface-icon, -1); }