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

4
// These are all quick solutions for IE please rewrite
5
//Make overlay white because ie doesn't like rgba
6 7 8 9 10 11
.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;
}

12
// hide all actions
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
.home > header .title .actions,
.home > header .title:hover .actions {
  display: none;
  height: auto;
}

.home > header .title {
  &:hover {

    > hgroup {
      h1 {
        border-bottom: 0;
        padding-bottom: 0;
      }

      h2 {
29
        opacity: 1.0;
30 31 32 33 34 35 36 37 38
      }
    }

    .actions {
      opacity: 0;
    }
  }
}

39
// because ie doesn't like :last
40 41 42 43
.last {
  margin-right: 0  !important;
}

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

  &:hover {
    text-decoration: none;

    &::before {
54
      opacity: 1.0;
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
    }

    .name {
      bottom: 0px;
    }

    img {
      top: 0px;
    }
  }

}

.home .university-partners .partners { 
  width: 660px;

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

80
// make animations on homepage not animate and show everything
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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
.highlighted-courses .courses .course, .find-courses .courses .course {
  .meta-info {
    display: none;
  }

  .inner-wrapper {
    height: 100%;
    overflow: visible;
    position: relative;
  }

  header.course-preview {
    left: 0px;
    position: relative;
    top: 0px;
    width: 100%;
    z-index: 3;
    height: auto;

    hgroup {
      position: relative;
      right: 0;
      top: 0;
    }

  }

  .info {
    height: auto;
    position: static;
    overflow: visible;

    .desc {
      height: auto;
    }
  }

  &:hover {
    background: rgb(245,245,245);
    border-color: rgb(170,170,170);
    @include box-shadow(0 1px 16px 0 rgba($blue, 0.4));

    .info {
      top: 0;
    }

    .meta-info {
      opacity: 0;
    }
  }
}

133
// make overlay flat black since IE cant handle rgba
Kyle Fiedler committed
134 135 136 137
#lean_overlay {
  background: #000;
}

138
// active navigation
139 140 141
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);
Kyle Fiedler committed
142
}
143

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

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

.ie-banner {
  display: block !important;
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
}

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

  section.course-content,
  section.course-index {
    display: block !important;
    float: left;
  }

  section.course-content {
    width: 71.27%;
  }
}

.sidebar {
  float: left !important;
  display: block !important;
}

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

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