_reset.scss 4.78 KB
Newer Older
Matthew Mongeau committed
1 2
/* HTML5 Boilerplate  */

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
article,
aside,
details,
figcaption,
figure,
footer,
header,
nav,
section {
  display: block;
}

audio,
canvas,
video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

Matthew Mongeau committed
23 24 25
audio:not([controls]) { display: none; }
[hidden] { display: none; }

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html,
button,
input,
select,
textarea {
  font-family: $font-family-sans-serif;
  color: #222;
}

body {
  margin: 0;
  font-size: 1em;
  line-height: 1.4;
}

a:not(.btn) {
  color: $link-color;
}

a:visited:not(.btn) {
  color: #003655;  // from the Pattern Library http://ux.edx.org/elements/colors/
}

a:hover:not(.btn),
a:focus:not(.btn) {
  color: #0079bc;  // from the Pattern Library http://ux.edx.org/elements/colors/
}
Matthew Mongeau committed
59 60

abbr[title] { border-bottom: 1px dotted; }
61 62 63 64 65 66

b,
strong {
  font-weight: bold;
}

Matthew Mongeau committed
67 68
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

ins {
  background: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background: #ff0;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

pre,
code,
kbd,
samp {
  font-family: monospace, serif;
  _font-family: 'courier new', monospace;
  font-size: 1em;
}

pre {
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
}
Matthew Mongeau committed
106 107

q { quotes: none; }
108 109 110 111 112 113 114

q::before,
q::after {
  content: "";
  content: none;
}

Matthew Mongeau committed
115
small { font-size: 85%; }
116 117 118 119 120 121 122 123 124

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

Matthew Mongeau committed
125 126 127
sup { top: -0.5em; }
sub { bottom: -0.25em; }

128 129 130 131 132 133 134
ul,
ol {
  @include padding(0, 0, 0, 40px);

  margin: 1em 0;
}

Matthew Mongeau committed
135 136
dd { margin: 0 0 0 40px; }

137 138 139 140 141 142 143 144 145 146 147 148 149
nav ul,
nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  border: 0;
  -ms-interpolation-mode: bicubic;
  vertical-align: middle;
}

Matthew Mongeau committed
150 151 152 153
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

form { margin: 0; }
154 155 156 157 158 159

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
Matthew Mongeau committed
160 161 162

label { cursor: pointer; }

163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
legend {
  border: 0;
  *margin-left: -7px;
  padding: 0;
  white-space: normal;
}

button,
input,
select,
textarea {
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
  *vertical-align: middle;
}

button,
input {
  line-height: normal;
}
Matthew Mongeau committed
184

185 186 187 188 189 190 191 192
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
  *overflow: visible;
}
Matthew Mongeau committed
193

194 195 196 197
button[disabled],
input[disabled] {
  cursor: default;
}
Matthew Mongeau committed
198

199 200 201 202 203 204 205
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  *width: 13px;
  *height: 13px;
}
Matthew Mongeau committed
206

207 208 209 210 211 212
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
Matthew Mongeau committed
213

214 215 216 217
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
Matthew Mongeau committed
218

219 220 221 222 223
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
Matthew Mongeau committed
224

225
button:-moz-focusring { outline: 1px dotted black; }
Matthew Mongeau committed
226

227 228 229 230 231
textarea {
  overflow: auto;
  vertical-align: top;
  resize: vertical;
}
Matthew Mongeau committed
232

233 234 235 236
table {
  border-collapse: collapse;
  border-spacing: 0;
}
Matthew Mongeau committed
237

238
td { vertical-align: top; }
239

240 241 242 243 244 245
.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: black;
  padding: 0.2em 0;
}
Matthew Mongeau committed
246

247 248 249 250 251 252 253 254 255 256
.ir {
  display: block;
  border: 0;
  text-indent: -999em;
  overflow: hidden;
  background-color: transparent;
  background-repeat: no-repeat;
  text-align: left;
  direction: ltr;
  *line-height: 0;
Matthew Mongeau committed
257 258 259
}

.ir br { display: none; }
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286

.hidden {
  display: none !important;
  visibility: hidden;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

Matthew Mongeau committed
287
.invisible { visibility: hidden; }
288 289 290 291 292 293 294

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

295
.clearfix::after { clear: both; }
Matthew Mongeau committed
296 297 298
.clearfix { *zoom: 1; }

@media print {
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
  * {
    background: transparent;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    -ms-filter: none !important;
  }

  html,
  body {
    background: transparent !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

318 319
  abbr[title]::after { content: " (" attr(title) ")"; }
  .ir a::after { content: ""; }
320 321 322 323 324 325 326

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

327
  thead { display: table-header-group; }
328 329 330 331 332 333

  tr,
  img {
    page-break-inside: avoid;
  }

Matthew Mongeau committed
334
  img { max-width: 100% !important; }
335

336
  @page { margin: 1cm 1.2cm 2cm; }
337 338 339 340 341 342 343 344 345 346 347 348

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
Matthew Mongeau committed
349
}