_developer.scss 5.43 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
// edX LMS - developer
// ====================
// NOTE: use this area for any developer-needed or created styling that needs to be refactored into patterns or visually polished. Please list any template/view that your styles reference when definining them (example below):

// Views: Login, Sign Up
// .crazy-new-feature {
//   background: transparent;
// }

// --------------------
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// rotate clockwise
@include keyframes(rotateCW) {
  0% {
    @include transform(rotate(0deg));
  }

  50% {
    @include transform(rotate(180deg));
  }

  100% {
    @include transform(rotate(360deg));
  }
}

// canned animation - use if you want out of the box/non-customized anim
%anim-rotateCW {
  @include animation(rotateCW $tmg-s1 linear infinite);
}

Usman Khalid committed
31
.ui-loading-base {
32 33 34 35 36 37 38 39 40 41 42 43
  @include animation(fadeIn $tmg-f2 linear 1);
  @extend %t-copy-base;

  .spin {
    @extend %anim-rotateCW;
    display: inline-block;
  }

  .copy {
    padding-left: ($baseline/4);
  }
}
Usman Khalid committed
44 45 46 47 48 49 50 51 52

.ui-loading {
  @extend .ui-loading-base;
  @extend %ui-well;
  opacity: 0.6;
  background-color: $white;
  padding: ($baseline*1.5) $baseline;
  text-align: center;
}
jsa committed
53

muhammad-ammar committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67
// Below divider rules are moved here from _instructor_2.scss
// UI: visual dividers
.divider-lv0 {
  border-top: ($baseline/5) solid $gray-l4;
}

.divider-lv1 {
  border-top: ($baseline/10) solid $gray-l4;
}

.divider-lv2 {
  border-top: ($baseline/20) solid $gray-l4;
}

jsa committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
// for verify_student/make_payment_step.underscore
.payment-buttons {

  .purchase {
    float: left;
    padding: ($baseline*.5) 0;

    .product-info, .product-name, .price {
      @extend %t-ultrastrong;
      color: $m-blue-d3;
    }
  }

  .payment-button {
    float: right;
    @include margin-left( ($baseline/2) );
84

85
    &.is-selected {
86
      background: $m-green-s1 !important;
87
    }
jsa committed
88 89
  }
}
90 91

// teams temporary
Eric Fischer committed
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 133 134

//efischer; scratch space for teams instructor tools
.view-teams {
  .wrapper-msg {
    @include clearfix();
    max-width: grid-width(12);
    margin: 0 auto;
    border-top: 3px solid $orange;

    .left-floater {
      @include float(left);
      text-transform: uppercase;
      font-weight: $font-semibold;
      color: $white;
      line-height: $body-line-height;
    }

    .right-floater {
      @include float(right);
      line-height: $body-line-height;

      button {
        background: transparent;
        border: 1px solid transparent;
        color: $white;
        box-shadow: 0 0 0 0;
        font-weight: $font-regular;
        text-shadow: 0 0;

        &:hover {
          color: $orange;
          background: transparent;
          border: 1px solid $orange;
          box-shadow: 0 0 0 0;
        }

        &:focus {
         box-shadow: 0 0 0 0;
        }
      }
    }
  }

135 136 137 138 139 140 141 142
  .members-info {
    margin: 0;
    padding: 0;
    li {
      display: inline;
    }
  }

Eric Fischer committed
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
  .edit-members {
    @extend %ui-no-list;

    .team-member {
      line-height: $body-line-height;
      padding: 10px;
    }

    .member-info-container {
      display: inline-block;
      vertical-align: middle;
      @include margin-left($baseline/2);

      .primary {
        font-size: 120%;
      }

      .secondary {
        color: $lighter-base-font-color;
        font-size: 80%;
        display: block;
      }
    }

    .member-profile {
      img {
        border: 1px solid $gray;
      }
    }

    .action-remove-member {
      color: $blue;
      background: transparent;
      border: 1px solid transparent;
      font: inherit;
    }
  }
180 181 182 183
  //end instructor tools scratch space

  //efischer TNL-3226
  .search-field::-ms-clear {
184 185
    width: 0;
    height: 0;
186
  }
Eric Fischer committed
187 188
}

Eric Fischer committed
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
//efischer - TNL-3189
//copied from cms/static/sass/elements/_system-feedback.scss#L106
//along with some "hide the inherited value, we want none" action
.prompt.warning button {
  @extend %btn-no-style;
  box-shadow: none;
  text-shadow: none;

  &:hover {
    color: $orange-s2;
    background: transparent;
    box-shadow: none;
  }

  &:focus {
    box-shadow: none;
205
    border: 0;
Eric Fischer committed
206 207 208
  }
}

Eric Fischer committed
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
//efischer - TNL-3189
//copied from cms/static/sass/elements/_system-feedback.scss#L106
//along with some "hide the inherited value, we want none" action
.prompt.warning button {
  @extend %btn-no-style;
  box-shadow: none;
  text-shadow: none;

  &:hover {
    color: $orange-s2;
    background: transparent;
    box-shadow: none;
  }

  &:focus {
    box-shadow: none;
225
    border: 0;
Eric Fischer committed
226 227 228
  }
}

229 230 231 232 233 234 235 236
// pfogg - ECOM-2604
// styling for date summary blocks on the course info page
.date-summary-container {
  .date-summary {
    @include clearfix;
    padding: 10px;
    @include border-left(3px solid $gray-l3);

237 238 239 240 241
    .heading {
      @extend %t-title7;
      color: $gray-d2;
    }

242 243 244 245
    .description {
      margin-top: $baseline/2;
      margin-bottom: $baseline/2;
      display: inline-block;
246 247
      color: $gray-d1;
      @extend %t-title8;
248 249 250
    }

    .date-summary-link {
251
      @extend %t-title8;
252 253
      font-weight: $font-semibold;
      a {
254 255
        color: $link-color;
        font-weight: normal;
256 257 258 259
      }
    }

    .date {
260 261
      color: $gray-d1;
      @extend %t-title9;
262 263 264 265
    }

    &-todays-date {
      @include border-left(3px solid $blue);
266 267

      .heading {
268
        @extend %t-title8;
269
      }
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
    }

    &-verified-upgrade-deadline {
      @include border-left(3px solid $green);
    }

    &-verification-deadline-passed {
      @include border-left(3px solid $red);
    }

    &-verification-deadline-retry {
      @include border-left(3px solid $red);
    }

    &-verification-deadline-upcoming {
      @include border-left(3px solid $orange);
    }
  }
}