_base.scss 5.86 KB
Newer Older
1 2 3
// lms - base
// ====================

4 5 6 7
// html {
//   overflow-y: scroll;
// }

8
html, body {
9 10
  font-family: $sans-serif;
  font-size: 1em;
11
  font-style: normal;
12
  line-height: 1em;
Matthew Mongeau committed
13 14
}

15 16 17 18 19 20 21 22
html{
  background: white;
}

body {
  background: $body-bg;
}

Matthew Mongeau committed
23 24
h1, h2, h3, h4, h5, h6 {
  color: $base-font-color;
25
  font: normal 1.2em/1.2em $serif;
26
  margin: 0;
Matthew Mongeau committed
27 28
}

29
h1 {
30
  color: $base-font-color;
31
  font: normal 2em/1.4em $sans-serif;
32
  letter-spacing: 1px;
33
  margin-bottom: ($baseline*1.5);
34 35 36 37 38
  text-align: center;
}

h2 {
  color: $lighter-base-font-color;
39
  font: normal 1.2em/1.2em $serif;
40
  letter-spacing: 1px;
41
  margin-bottom: ($baseline*0.75);
42
  text-transform: uppercase;
43
  -webkit-font-smoothing: antialiased;
44 45
}

46
p + h2, ul + h2, ol + h2 {
47
  margin-top: ($baseline*2);
48 49
}

Matthew Mongeau committed
50
p {
51
  color: inherit;
52
  margin: 0;
Matthew Mongeau committed
53 54
}

55
span {
56 57
  font: inherit;
  color: inherit;
58
}
59

60 61 62 63
/* Fix for CodeMirror: prevent top-level span from affecting deeply-embedded span in CodeMirror */
.CodeMirror span {
  font: inherit;
}
64

65 66 67 68 69 70 71 72 73
.text-center {
  text-align: center;
}

.text-dark-grey {
  color: $dark-gray1;
  font-size: 24px;
}

74
p + p, ul + p, ol + p {
75
  margin-top: $baseline;
Matthew Mongeau committed
76 77
}

78
p {
79
  a, a:visited {
80
    color: $link-color;
81 82
    font: inherit;
    font-weight: inherit;
83
    text-decoration: none;
84
    @include transition(all 0.1s linear 0s);
85

86
    &:hover, &:focus {
87
      color: $link-hover;
88 89 90 91 92
      text-decoration: underline;
    }
  }
}

93
a, a:visited {
94
  color: $link-color;
95
  font: inherit;
Matthew Mongeau committed
96
  text-decoration: none;
97
  @include transition(all 0.1s linear 0s);
Matthew Mongeau committed
98

99 100 101
  &:hover,
  &:focus {
    color: $link-hover;
102
    text-decoration: underline;
Matthew Mongeau committed
103
  }
104 105

  &:disabled, &.is-disabled, &.disabled {
106
    @extend %ui-disabled;
107 108 109
    opacity: 0.5;
    cursor: not-allowed;
  }
Matthew Mongeau committed
110 111
}

112 113
.content-wrapper {
  width: flex-grid(12);
114
  margin: 0 auto;
115
  background: $content-wrapper-bg;
116 117 118 119

  @media print {
    padding-bottom: 0;
  }
120 121
}

Matthew Mongeau committed
122
.container {
123
  @include clearfix();
124
  @include box-sizing(border-box);
Matthew Mongeau committed
125
  margin: 0 auto 0;
126
  padding: ($baseline*2) 0;
127
  max-width: grid-width(12);
128
  min-width: 760px;
129
  width: flex-grid(12);
Matthew Mongeau committed
130
}
131

132 133 134 135 136
span.edx {
  text-transform: none;
  font: inherit;
}

137
.static-container {
138
  @include clearfix();
139 140
  margin: 0 auto 0;
  max-width: 1200px;
141
  padding: ($baseline*3) 0 ($baseline*6);
142 143 144 145 146 147 148 149 150 151 152 153
  width: flex-grid(12);

  .inner-wrapper {
    margin: 0 auto 0;
    width: flex-grid(10);
  }

  ol, ul {
    list-style: disc;

    li {
      color: $base-font-color;
154
      font: normal 1em/1.4em $serif;
155
      margin: 0;
156 157 158 159
    }
  }

  h1 {
160
    margin-bottom: ($baseline*1.5);
161 162 163
  }

  h1 + hr {
164
    margin-bottom: ($baseline*3);
165 166 167
  }

  p + h2, ul + h2, ol + h2 {
168
    margin-top: ($baseline*2);
169 170 171
  }

  ul + p, ol + p {
172
    margin-top: $baseline;
173 174
  }
}
Tom Giannattasio committed
175 176

.loading-animation {
177 178
  position: absolute;
  left: 50%;
Tom Giannattasio committed
179 180
  width: 20px;
  height: 20px;
181
  margin-left: -($baseline/2);
182
  background: url('#{$static-path}/images/spinner.gif') no-repeat;
Tom Giannattasio committed
183 184
}

Tom Giannattasio committed
185 186 187 188 189 190 191
mark {
  padding: 0 3px;
  border-radius: 2px;
  background-color: #f7e9a8;
  color: #333;
}

192 193
.site-status {
  display: none;
194 195
  padding: ($baseline/2);
  @include linear-gradient(top, $shadow-l1, rgba(0, 0, 0, .0));
196
  background-color: $site-status-color;
197 198 199 200 201 202 203 204 205 206
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .3) inset;
  font-size: 14px;

  .white-error-icon {
    position: relative;
    top: -4px;
    float: left;
    display: block;
    width: 27px;
    height: 24px;
207
    margin-right: ($baseline*0.75);
208
    background: url('#{$static-path}/images/large-white-error-icon.png') no-repeat;
209 210 211 212 213 214 215 216 217 218
  }

  .inner-wrapper {
    margin: auto;
    max-width: 1180px;
    min-width: 760px;
  }

  p {
    line-height: 1.3;
219
    color: $white;
220 221
  }
}
Tom Giannattasio committed
222

223 224 225 226 227
.ie-banner {
  display: none;
  max-width: 1140px;
  min-width: 720px;
  margin: auto;
228
  border-radius: 0 0 3px 3px;
229 230
  background: #f4f4e0;
  color: #3c3c3c;
231
  padding: ($baseline/4) $baseline 8px;
232 233 234 235 236 237 238 239
  font-size: 13px;
  text-align: center;

  strong {
    font-weight: 700;
  }
}

240 241 242
.help-tab {
  @include transform(rotate(-90deg));
  @include transform-origin(0 0);
243
  @extend %ui-depth2;
244
  @extend %ui-print-excluded;
245
  top: 250px;
246 247
  left: 0;
  position: fixed;
Tom Giannattasio committed
248

249 250
  a:link, a:visited {
    cursor: pointer;
251
    border: 1px solid $gray-l3;
252
    border-top-style: none;
253 254
    border-radius: 0 0 ($baseline/2) ($baseline/2);
    background: transparentize($white, 0.25);
255 256 257 258 259 260
    color: transparentize(#333, 0.25);
    font-weight: bold;
    text-decoration: none;
    padding: 6px 22px 11px;
    display: inline-block;

261
    &:hover, &:focus {
262
      color: $white;
263
      background: $link-color;
264 265 266 267 268
    }
  }
}

.help-buttons {
269
  padding: ($baseline/2) ($baseline*2.5);
270 271

  a:link, a:visited {
272
    padding: ($baseline*0.75) 0;
273 274
    text-align: center;
    cursor: pointer;
275
    background: $white;
276 277
    text-decoration: none;
    display: block;
278
    border: 1px solid $gray-l3;
279 280 281

    &#feedback_link_problem {
      border-bottom-style: none;
282
      border-radius: ($baseline/2) ($baseline/2) 0 0;
283
    }
Tom Giannattasio committed
284

285 286
    &#feedback_link_question {
      border-top-style: none;
287
      border-radius: 0 0 ($baseline/2) ($baseline/2);
288 289
    }

290
    &:hover, &:focus {
291
      color: $white;
292
      background: $link-color;
293 294 295 296
    }
  }
}

297 298 299 300 301 302 303 304 305 306 307
#feedback_form {
  input, textarea {
    font: normal 1em/1.4em $sans-serif;
  }
  textarea[name="details"] {
    height: 150px;
  }
}

#feedback_success_wrapper {
  p {
308
    padding: 0 $baseline $baseline $baseline;
309
  }
310
}
311

312 313 314 315 316 317 318
// ====================

// UI - disabled state
.is-disabled {
  @extend %ui-disabled;
}

319 320 321 322 323
// UI - is hidden
.is-hidden {
  display: none;
}

324 325 326 327 328
// UI - is deprecated
.is-deprecated {
  @extend %ui-deprecated;
}

329 330 331
// UI - semantically hide text
.sr {
  @extend %text-sr;
332
  @extend %a11y-ensure-contrast;
333 334 335
}

// UI - skipnav
336
.nav-skip {
337 338
  @extend %ui-print-excluded;

339 340
  display: block;
  position: absolute;
341 342
  left: 0;
  top: -($baseline*30);
343 344 345 346 347 348 349 350 351 352 353 354
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: $white;
  border-bottom: 1px solid $border-color-4;
  padding: ($baseline*0.75) ($baseline/2);

  &:focus, &:active {
    position: static;
    width: auto;
    height: auto;
  }
355
}