Browse Source

use media queries to only show font-weight 100 on retina screens.

pull/351/head
connors 11 years ago
parent
commit
0dcaa1adb2
  1. 27
      docs/assets/css/docs.css
  2. 36
      sass/docs.scss

27
docs/assets/css/docs.css

@ -93,12 +93,17 @@ body {
left: 50%; left: 50%;
margin-bottom: 0; margin-bottom: 0;
font-size: 22px; font-size: 22px;
font-weight: 100; font-weight: 300;
z-index: 20; z-index: 20;
-webkit-transform: translateX(-50%); -webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%); -ms-transform: translateX(-50%);
transform: translateX(-50%); transform: translateX(-50%);
} }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.docs-title {
font-weight: 100;
}
}
.docs-nav .docs-nav-trigger { .docs-nav .docs-nav-trigger {
color: #fff; color: #fff;
@ -125,9 +130,13 @@ body {
.docs-nav .docs-nav-item { .docs-nav .docs-nav-item {
display: block; display: block;
padding: 20px 15px; padding: 20px 15px;
font-weight: 100;
font-size: 22px; font-size: 22px;
} }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.docs-nav .docs-nav-item {
font-weight: 100;
}
}
.docs-jump-menu, .docs-jump-menu,
.docs-component-group { .docs-component-group {
@ -378,7 +387,13 @@ body {
.docs-sub-content .page-description { .docs-sub-content .page-description {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
font-weight: 100; font-weight: 300;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.docs-sub-content .page-title,
.docs-sub-content .page-description {
font-weight: 100;
}
} }
.docs-sub-content .page-title { .docs-sub-content .page-title {
font-size: 40px; font-size: 40px;
@ -415,7 +430,11 @@ body {
.section-lead { .section-lead {
font-size: 18px; font-size: 18px;
color: #777; color: #777;
font-weight: 100; }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.section-lead {
font-weight: 100;
}
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {

36
sass/docs.scss

@ -93,9 +93,16 @@ body {
left: 50%; left: 50%;
margin-bottom: 0; margin-bottom: 0;
font-size: 22px; font-size: 22px;
font-weight: 100; font-weight: 300;
z-index: 20; z-index: 20;
@include transform(translateX(-50%)); @include transform(translateX(-50%));
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
} }
.docs-nav { .docs-nav {
.docs-nav-trigger { .docs-nav-trigger {
@ -125,12 +132,18 @@ body {
.docs-nav-item { .docs-nav-item {
display: block; display: block;
padding: 20px 15px; padding: 20px 15px;
font-weight: 100;
font-size: 22px; font-size: 22px;
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
} }
} }
.docs-jump-menu, .docs-jump-menu,
.docs-component-group{ .docs-component-group {
display: none; display: none;
} }
.docs-title a, .docs-title a,
@ -377,7 +390,14 @@ body {
.page-description { .page-description {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
font-weight: 100; font-weight: 300;
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
} }
.page-title { .page-title {
font-size: 40px; font-size: 40px;
@ -418,7 +438,13 @@ body {
.section-lead { .section-lead {
font-size: 18px; font-size: 18px;
color: #777; color: #777;
font-weight: 100;
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
} }
// Desktop: Section headings // Desktop: Section headings

Loading…
Cancel
Save