ie.scss 3.58 KB
Newer Older
1 2 3
@import "bourbon/bourbon";
@import "base/variables";

4
// These are all quick solutions for IE please rewrite
5
.ie {
6

7 8 9 10 11 12 13 14 15
  //Make overlay white because ie doesn't like rgba
  .highlighted-courses .courses .course header.course-preview, .find-courses .courses .course header.course-preview,
  .home .highlighted-courses > h2, .home .highlighted-courses > section.outside-app h1, section.outside-app .home .highlighted-courses > h1,
  header.global {
    background: #FFF;
  }

  // hide all actions
  .home > header .title .actions,
16 17
  .home > header .title:hover .actions,
  .home > header .title:focus .actions {
18 19 20
    display: none;
    height: auto;
  }
21

22
  .home > header .title {
23
    &:hover, &:focus {
24

25 26 27 28 29
      > hgroup {
        h1 {
          border-bottom: 0;
          padding-bottom: 0;
        }
30

31 32 33
        h2 {
          opacity: 1.0;
        }
34 35
      }

36 37 38
      .actions {
        opacity: 0;
      }
39 40 41
    }
  }

42 43 44
  // because ie doesn't like :last
  .last {
    margin-right: 0  !important;
45 46
  }

47 48
  // make partners not animate
  .home .university-partners .partners a {
49
    .name {
50
      position: static;
51 52
    }

53
    &:hover, &:focus {
54
      text-decoration: none;
55

56 57 58
      &::before {
        opacity: 1.0;
      }
59

60 61 62
      .name {
        bottom: 0px;
      }
63

64 65 66 67
      img {
        top: 0px;
      }
    }
68 69 70

  }

71 72 73 74 75 76 77 78 79 80
  .home .university-partners .partners {
    width: 660px;

    li.partner {
      float: left;
      display: block;
      padding: 0;
      width: 220px;
      overflow: hidden;
    }
81 82
  }

83 84 85 86 87
  // make animations on homepage not animate and show everything
  .highlighted-courses .courses .course, .find-courses .courses .course {
    .meta-info {
      display: none;
    }
88

89 90 91
    .inner-wrapper {
      height: 100%;
      overflow: visible;
92 93 94
      position: relative;
    }

95 96 97 98 99 100 101
    header.course-preview {
      left: 0px;
      position: relative;
      top: 0px;
      width: 100%;
      z-index: 3;
      height: auto;
102

103 104 105 106 107
      hgroup {
        position: relative;
        right: 0;
        top: 0;
      }
108 109 110 111

    }

    .info {
112 113 114
      height: auto;
      position: static;
      overflow: visible;
115

116 117 118
      .desc {
        height: auto;
      }
119 120
    }

121
    &:hover, &:focus {
122 123 124
      background: rgb(245,245,245);
      border-color: rgb(170,170,170);
      box-shadow: 0 1px 16px 0 rgba($blue, 0.4);
Kyle Fiedler committed
125

126 127 128
      .info {
        top: 0;
      }
129

130 131 132 133 134
      .meta-info {
        opacity: 0;
      }
    }
  }
135

136 137 138 139
  // make overlay flat black since IE cant handle rgba
  #lean_overlay {
    background: #000;
  }
140

141 142 143 144 145
  // active navigation
  nav.course-material ol.course-tabs li a.active, nav.course-material .xmodule_SequenceModule nav.sequence-nav ol.course-tabs li a.seq_video.active, .xmodule_SequenceModule nav.sequence-nav nav.course-material ol.course-tabs li a.seq_video.active {
    background-color: #333;
    background-color: rgba(0, 0, 0, .4);
  }
146

147 148 149 150 151
  // make dropdown user consistent size
  header.global ol.user > li.primary a.dropdown {
    padding-top: 6px;
    padding-bottom: 6px;
  }
152

153 154 155
  // always hide arrow in IE
  .dashboard .my-courses .my-course .cover .arrow {
    display: none;
156 157
  }

158 159
  div.course-wrapper {
    display: block !important;
160

161
    section.course-content,
162
    div.course-index {
163 164 165
      display: block !important;
      float: left;
    }
166

167 168 169 170 171 172
    section.course-content {
      width: 71.27%;
    }
  }

  .sidebar {
173
    float: left !important;
174
    display: block !important;
175
  }
176 177 178 179 180 181 182 183 184 185

  .sequence-nav ol {
    display: block !important;

    li {
      float: left !important;
      width: 50px;
    }
  }

186
  .course-wrapper {
187
    @include clearfix();
188 189 190
  }
}

191 192 193
// ====================

// CASE: IE9
194
.lte9 {
195 196 197 198

  .ie-banner {
    display: block !important;
  }
199
}