_developer.scss 4.29 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
  @include animation(fadeIn $tmg-f2 linear 1);
33

34 35 36 37
  @extend %t-copy-base;

  .spin {
    @extend %anim-rotateCW;
38

39 40 41 42 43 44 45
    display: inline-block;
  }

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

.ui-loading {
  @extend .ui-loading-base;
  @extend %ui-well;
50

Usman Khalid committed
51 52 53 54 55
  opacity: 0.6;
  background-color: $white;
  padding: ($baseline*1.5) $baseline;
  text-align: center;
}
jsa committed
56

muhammad-ammar committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70
// 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
71 72 73 74 75 76 77 78
// for verify_student/make_payment_step.underscore
.payment-buttons {
  .purchase {
    float: left;
    padding: ($baseline*.5) 0;

    .product-info, .product-name, .price {
      @extend %t-ultrastrong;
79

jsa committed
80 81 82 83 84 85
      color: $m-blue-d3;
    }
  }

  .payment-button {
    float: right;
86 87

    @include margin-left(($baseline/2));
88

89
    &.is-selected {
90
      background: $m-green-s1 !important;
91
    }
jsa committed
92 93
  }
}
94 95

// teams temporary
Eric Fischer committed
96 97 98 99 100

//efischer; scratch space for teams instructor tools
.view-teams {
  .wrapper-msg {
    @include clearfix();
101

Eric Fischer committed
102 103 104 105 106 107
    max-width: grid-width(12);
    margin: 0 auto;
    border-top: 3px solid $orange;

    .left-floater {
      @include float(left);
108

Eric Fischer committed
109 110 111 112 113 114 115 116
      text-transform: uppercase;
      font-weight: $font-semibold;
      color: $white;
      line-height: $body-line-height;
    }

    .right-floater {
      @include float(right);
117

Eric Fischer committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
      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 {
136
          box-shadow: 0 0 0 0;
Eric Fischer committed
137 138 139 140 141
        }
      }
    }
  }

142 143 144
  .members-info {
    margin: 0;
    padding: 0;
145

146 147 148 149 150
    li {
      display: inline;
    }
  }

Eric Fischer committed
151 152 153 154 155 156 157 158 159 160 161
  .edit-members {
    @extend %ui-no-list;

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

    .member-info-container {
      display: inline-block;
      vertical-align: middle;
162

Eric Fischer committed
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
      @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;
    }
  }
189 190 191 192
  //end instructor tools scratch space

  //efischer TNL-3226
  .search-field::-ms-clear {
193 194
    width: 0;
    height: 0;
195
  }
Eric Fischer committed
196 197
}

Eric Fischer committed
198 199 200 201 202
//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;
203

Eric Fischer committed
204 205 206 207 208 209 210 211 212 213 214
  box-shadow: none;
  text-shadow: none;

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

  &:focus {
    box-shadow: none;
215
    border: 0;
Eric Fischer committed
216 217 218
  }
}

Eric Fischer committed
219 220 221 222 223
//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;
224

Eric Fischer committed
225 226 227 228 229 230 231 232 233 234 235
  box-shadow: none;
  text-shadow: none;

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

  &:focus {
    box-shadow: none;
236
    border: 0;
Eric Fischer committed
237 238
  }
}