Skip to content

Instantly share code, notes, and snippets.

@thomasjbradley
Created May 3, 2018 15:14
Show Gist options
  • Save thomasjbradley/bd9457a4186853ab5c26826d2acfdf57 to your computer and use it in GitHub Desktop.
Save thomasjbradley/bd9457a4186853ab5c26826d2acfdf57 to your computer and use it in GitHub Desktop.
@import url('https://fonts.googleapis.com/css?family=Lato:400,700');
/*
BOILERPLATE
------------------------------------------------
*/
@-moz-viewport { width: device-width; scale: 1; }
@-ms-viewport { width: device-width; scale: 1; }
@-o-viewport { width: device-width; scale: 1; }
@-webkit-viewport { width: device-width; scale: 1; }
@viewport { width: device-width; scale: 1; }
html {
box-sizing: border-box;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
*, *::before, *::after {
box-sizing: inherit;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
template {
display: none;
}
details {
cursor: pointer;
}
audio:not([controls]) {
display: none;
height: 0;
}
a,
[tabindex] {
-ms-touch-action: manipulation;
touch-action: manipulation;
}
img {
border: 0;
}
.img-flex,
.img-flex img {
display: block;
width: 100%;
}
svg {
fill: currentColor;
}
svg:not(:root) {
overflow: hidden;
}
svg.img-flex {
width: 100%;
height: 100%;
}
html {
font-size: 100%;
line-height: 1.3;
}
a {
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
sub,
sup {
font-size: .75em;
line-height: 1px;
position: relative;
vertical-align: baseline;
}
sup {
top: -.5em;
}
sub {
bottom: -.25em;
}
pre,
code,
kbd,
samp {
font-size: 1em;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted;
}
b,
strong {
font-weight: bold;
}
dfn,
caption {
font-style: italic;
}
hr {
border: 0;
border-top: 2px solid #000;
height: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
table-layout: fixed;
}
caption {
text-align: left;
}
th,
td {
border-bottom: 1px solid #000;
text-align: left;
vertical-align: top;
}
thead th {
vertical-align: bottom;
border-bottom-width: 2px;
}
td,
table th {
padding: .325rem;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
details,
hr,
pre,
table,
caption {
margin: 0 0 1.3rem;
}
h1 {
font-size: 1.383rem;
line-height: 1.95rem;
}
h2 {
font-size: 1.2962rem;
line-height: 1.95rem;
}
h3 {
font-size: 1.2148rem;
line-height: 1.625rem;
}
h4 {
font-size: 1.1385rem;
line-height: 1.625rem;
}
h5 {
font-size: 1.067rem;
line-height: 1.625rem;
}
h6 {
font-size: 1rem;
line-height: 1.3rem;
}
small {
font-size: .9372rem;
line-height: 1.3rem;
}
ul {
padding-left: 1em;
}
ol {
padding-left: 1.6em;
}
/*
Matches Brightspace’s pixel-based media queries,
when contained inside the <iframe>
*/
@media only screen and (min-width: 585px) {
html {
font-size: 110%;
line-height: 1.4;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
details,
hr,
pre,
table,
caption {
margin: 0 0 1.4rem;
}
h1 {
font-size: 1.802rem;
line-height: 2.45rem;
}
h2 {
font-size: 1.6018rem;
line-height: 2.1rem;
}
h3 {
font-size: 1.4238rem;
line-height: 2.1rem;
}
h4 {
font-size: 1.2656rem;
line-height: 1.75rem;
}
h5 {
font-size: 1.125rem;
line-height: 1.75rem;
}
h6 {
font-size: 1rem;
line-height: 1.4rem;
}
small {
font-size: .8889rem;
line-height: 1.4rem;
}
td,
table th {
padding: .35rem;
}
}
/*
END BOILERPLATE
------------------------------------------------
*/
html {
color: #565a5c;
font-family: Lato, "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
h2 {
font-weight: normal;
}
h3 {
font-weight: normal;
}
h4 {
font-weight: normal;
}
h5 {
font-weight: normal;
}
h6 {
font-weight: bold;
}
a {
color: #006fbf;
text-decoration: underline;
}
a:hover,
a:focus {
color: #005694;
text-decoration: underline;
}
pre,
code {
padding: .2em .5em;
background-color: #efefef;
border: 1px solid #e2e2e2;
border-radius: 2px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
pre code {
display: block;
padding: 0;
border: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment