_xmodules.scss 6.75 KB
Newer Older
1 2 3 4
// studio - elements - xmodules & xblocks
// ====================

// general - display mode (xblock-student_view or xmodule_display)
5 6
.xmodule_display,
.xblock-student_view {
7
  // font styling
8 9
  i,
  em {
10 11 12 13
    font-style: italic;
  }
}

14 15
// ====================

16
// Video
17
.xmodule_VideoModule {
18
  // display mode
19
  &.xblock-student_view {
20 21 22 23 24 25 26 27
    .video-tracks {
      .a11y-menu-container {
        .a11y-menu-list {
          bottom: 100%;
          top: auto;
        }
      }
    }
28 29
  }
}
30 31

.xmodule_VideoDescriptor {
32 33 34 35 36 37
  .wrapper-comp-settings.basic_metadata_edit {
    .list-input.settings-list {
      .field.comp-setting-entry {
        .setting-label {
          vertical-align: top;
          margin-top: ($baseline/2);
38 39
        }

40 41 42 43 44 45 46 47 48 49
        .setting-help {
          display: block;
          width: 45%;
          max-width: auto;
          margin-left: 25%;
          padding: 0 13px;
        }

        .collapse-setting {
          @extend %t-action3;
50
          @extend %t-strong;
51 52 53
          display: block;
          width: 100%;
          padding: ($baseline/2);
54

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 80 81 82 83 84 85 86 87 88 89 90
          *[class^="icon-"] {
            margin-right: ($baseline/4);
          }
        }

        .videolist-url-tip.setting-help,
        .videolist-extra-videos-tip.setting-help {
          margin-left: 0;
          width: 100%;
          padding: 0 10px 10px;
        }

        .videolist-url-tip.setting-help {
          padding: 0 0 10px;
        }

        .wrapper-comp-setting {
          width: 100%;
          display: block;
          max-width: auto;
        }

        // inputs and labels
        .wrapper-videolist-settings {
          width: 45%;
          display: inline-block;
          min-width: ($baseline*5);

          // inputs
          .input {
            width: 100%;
            vertical-align: middle;

            &.is-disabled,
            [disabled="disabled"] {
              opacity: .5;
91
            }
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
          }

          .wrapper-videolist-url {
            margin-bottom: ($baseline/2);
          }

          .wrapper-videolist-urls {
            background: $lightGrey;
            padding: ($baseline/3);

            // enumerated fields
            .videolist-extra-videos {
              display: none;

              &.is-visible {
                display: block;
              }

              .videolist-settings-item {
111
                margin-bottom: ($baseline/2);
112
              }
113
            }
114
          }
115
        }
116 117
      }
    }
118

119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
    .transcripts-status {
      margin-top: $baseline;

      &.is-invisible {
        display: none !important;
      }

      .wrapper-transcripts-message {
        width: 60%;
        display: inline-block;
        vertical-align: top;
        min-width: ($baseline*5);
        margin-top: 10px;

        .transcripts-message {
134
          @extend %t-copy-sub2;
135 136 137
        }

        .transcripts-message-status {
138
          @extend %t-strong;
139 140 141 142 143 144 145 146
          color: $green;

          &.status-error {
            color: $red;
          }

          [class^="icon-"],
          [class*=" icon-"] {
147
            @extend %t-icon4;
148 149 150 151 152
            margin-right: 5px;
          }
        }

        .transcripts-error-message {
153
          @extend %t-copy-sub1;
154 155 156 157 158 159 160
          background: $red;
          color: $white;
          padding: ($baseline/3);

          &.is-invisible {
            display: none;
          }
161 162
        }

163 164
        .wrapper-transcripts-buttons {
          &.is-invisible {
165
            display: none;
166
          }
167
        }
168
      }
169

170 171 172 173 174 175
      .action {
        @extend %btn-primary-blue;
        @extend %t-action3;
        margin-bottom: ($baseline/2);
      }
    }
176

177 178 179 180 181 182 183 184 185 186 187 188
    // TYPE: enumerated video lists of metadata sets
    .metadata-videolist-enum {
      * {
        @include box-sizing(border-box);
      }
    }

    .file-chooser {
      display: none;
    }

    .progress-bar {
189
      @extend %t-copy-lead1;
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
      display: block;
      height: 30px;
      margin: 10px 0;
      border: 1px solid $blue;
      text-align: center;

      &.is-invisible {
        display: none;
      }

      &.loaded {
        border-color: #66b93d;

        .progress-fill {
          background: #66b93d;
        }
      }

      .progress-fill {
        display: block;
        width: 0%;
        height: 30px;
        background: $blue;
        color: #fff;
        line-height: 28px;
      }
    }
  }
218

219 220 221 222 223 224 225 226 227 228 229 230 231
  .wrapper-comp-settings {
    // TYPE: VideoTranslations
    .list-input.settings-list {
      .metadata-video-translations {
        * {
          @include box-sizing(border-box);
        }

        // label
        .setting-label {
          vertical-align: top;
          margin-top: ($baseline*.25);
        }
232

233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
        // inputs and labels
        .wrapper-translations-settings {
          width: 45%;
          display: inline-block;
          min-width: 240px;

          // enumerated fields
          .list-settings {
            margin: 0;

            .list-settings-item {
              margin-bottom: ($baseline/2);

              select {
                width: 80%;
                margin-right: ($baseline/2);
              }

              .list-settings-buttons {
                @extend %cont-truncated;
                padding: ($baseline/2) 0;
                border-bottom: 1px solid $gray-l4;
              }
256 257
            }

258 259 260 261 262 263 264 265 266 267
            // inputs
            .input {
              width: 43%;
              margin-right: ($baseline/4);
              vertical-align: middle;
              display: inline-block;

              &.input-value {
                margin-right: ($baseline/2);
              }
268
            }
269 270 271 272 273 274 275 276 277 278 279
          }
        }

        .setting-clear.action {
          vertical-align: top;
          margin: ($baseline*.25) ($baseline*.5) 0;
        }

        .create-setting {
          @extend %ui-btn-flat-outline;
          @extend %t-action3;
280
          @extend %t-strong;
281 282 283 284 285 286
          display: block;
          padding: ($baseline/2);

          *[class^="icon-"] {
            margin-right: ($baseline/4);
          }
287
        }
288 289 290 291

        .upload-setting {
          @extend %ui-btn-flat-outline;
          @extend %t-action3;
292
          @extend %t-strong;
293 294 295 296 297 298 299 300 301
          display: inline-block;
          padding: ($baseline/2);
          width: 49%;
          margin-right: 2%;
        }

        .download-setting {
          @extend %ui-btn-non;
          @extend %t-action4;
302
          @extend %t-strong;
303 304 305 306 307 308 309 310 311 312 313 314 315
          display: inline-block;
          padding: ($baseline/2);
          width: 49%;
          text-align: center;
          color: $blue;

          &:hover {
            background-color: $blue;
          }
        }

        .remove-setting {
          @include transition(color .25s ease-in-out);
316
          @extend %t-action1;
317 318 319 320 321 322 323 324 325
          display: inline-block;
          background: transparent;
          color: $blue-l3;

          &:hover {
            color: $blue;
          }
        }
      }
326
    }
327
  }
328
}