Skip to content

Instantly share code, notes, and snippets.

@tobymarsden
Created January 5, 2017 21:31
Show Gist options
  • Save tobymarsden/b0b736eb8c5cbc6f3ef1fd3631021f8e to your computer and use it in GitHub Desktop.
Save tobymarsden/b0b736eb8c5cbc6f3ef1fd3631021f8e to your computer and use it in GitHub Desktop.
Hypervisual font size overrides
/* DESKTOP STYLES */
.hypervisual__root .hypervisual__text-small, .hypervisual__root .hypervisual__text-small *, .hypervisual__root .hypervisual__button.hypervisual__text-small {
font-size: 16px;
line-height: 1.25;
}
.hypervisual__root .hypervisual__text-medium, .hypervisual__root .hypervisual__text-medium *, .hypervisual__root .hypervisual__button.hypervisual__text-medium {
font-size: 20px;
line-height: 1.25;
}
.hypervisual__root .hypervisual__text-large, .hypervisual__root .hypervisual__text-large *, .hypervisual__root .hypervisual__button.hypervisual__text-large {
font-size: 26px;
line-height: 32.5px;
}
.hypervisual__root .hypervisual__text-xlarge, .hypervisual__root .hypervisual__text-xlarge *, .hypervisual__root .hypervisual__button.hypervisual__text-xlarge {
font-size: 40px;
line-height: 50px;
}
/* MOBILE STYLES */
@media (max-width: 480px) {
.hypervisual__root .hypervisual__text-small, .hypervisual__root .hypervisual__text-small *, .hypervisual__root .hypervisual__button.hypervisual__text-small {
font-size: 13px;
}
.hypervisual__root .hypervisual__text-medium, .hypervisual__root .hypervisual__text-medium *, .hypervisual__root .hypervisual__button.hypervisual__text-medium {
font-size: 16px;
}
.hypervisual__root .hypervisual__text-large, .hypervisual__root .hypervisual__text-large *, .hypervisual__root .hypervisual__button.hypervisual__text-large {
font-size: 21px;
line-height: 26px;
}
.hypervisual__root .hypervisual__text-xlarge, .hypervisual__root .hypervisual__text-xlarge *, .hypervisual__root .hypervisual__button.hypervisual__text-xlarge {
font-size: 32px;
line-height: 40px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment