_xmodules.scss 6.78 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

8
  // font styling
9 10
  i,
  em {
11 12
    font-style: italic;
  }
13 14 15 16 17


  .icon {
    font-style: normal;
  }
18 19
}

20 21
// ====================

22
// Video
23
.xmodule_VideoModule {
24
  // display mode
25
  &.xblock-student_view {
26 27 28 29 30 31 32 33
    .video-tracks {
      .a11y-menu-container {
        .a11y-menu-list {
          bottom: 100%;
          top: auto;
        }
      }
    }
34 35
  }
}
36 37

.xmodule_VideoDescriptor {
38 39 40 41 42 43
  .wrapper-comp-settings.basic_metadata_edit {
    .list-input.settings-list {
      .field.comp-setting-entry {
        .setting-label {
          vertical-align: top;
          margin-top: ($baseline/2);
44 45
        }

46 47 48 49 50 51 52 53 54 55
        .setting-help {
          display: block;
          width: 45%;
          max-width: auto;
          margin-left: 25%;
          padding: 0 13px;
        }

        .collapse-setting {
          @extend %t-action3;
56
          @extend %t-strong;
57 58 59
          display: block;
          width: 100%;
          padding: ($baseline/2);
60

61
          .icon {
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 91 92 93 94 95 96
            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;
97
            }
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
          }

          .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 {
117
                margin-bottom: ($baseline/2);
118
              }
119
            }
120
          }
121
        }
122 123
      }
    }
124

125 126 127 128 129 130 131 132 133 134 135 136
    .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);
137
        margin-top: ($baseline/2);
138 139

        .transcripts-message {
140
          @extend %t-copy-sub2;
141 142 143
        }

        .transcripts-message-status {
144
          @extend %t-strong;
145 146 147 148 149 150
          color: $green;

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

151 152
          .icon,
          [class*=" fa-"] {
153
            @extend %t-icon4;
154
            margin-right: ($baseline/4);
155 156 157 158
          }
        }

        .transcripts-error-message {
159
          @extend %t-copy-sub1;
160 161 162 163 164 165 166
          background: $red;
          color: $white;
          padding: ($baseline/3);

          &.is-invisible {
            display: none;
          }
167 168
        }

169 170
        .wrapper-transcripts-buttons {
          &.is-invisible {
171
            display: none;
172
          }
173
        }
174
      }
175

176 177 178 179 180 181
      .action {
        @extend %btn-primary-blue;
        @extend %t-action3;
        margin-bottom: ($baseline/2);
      }
    }
182

183 184 185 186 187 188 189 190 191 192 193 194
    // TYPE: enumerated video lists of metadata sets
    .metadata-videolist-enum {
      * {
        @include box-sizing(border-box);
      }
    }

    .file-chooser {
      display: none;
    }

    .progress-bar {
195
      @extend %t-copy-lead1;
196 197
      display: block;
      height: 30px;
198
      margin: ($baseline/2) 0;
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
      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;
219
        color: $white;
220 221 222 223
        line-height: 28px;
      }
    }
  }
224

225 226 227 228 229 230 231 232 233 234 235 236 237
  .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);
        }
238

239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
        // 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;
              }
262 263
            }

264 265 266 267 268 269 270 271 272 273
            // inputs
            .input {
              width: 43%;
              margin-right: ($baseline/4);
              vertical-align: middle;
              display: inline-block;

              &.input-value {
                margin-right: ($baseline/2);
              }
274
            }
275 276 277 278 279 280 281 282 283 284 285
          }
        }

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

        .create-setting {
          @extend %ui-btn-flat-outline;
          @extend %t-action3;
286
          @extend %t-strong;
287 288 289
          display: block;
          padding: ($baseline/2);

290
          .icon {
291 292
            margin-right: ($baseline/4);
          }
293
        }
294 295 296 297

        .upload-setting {
          @extend %ui-btn-flat-outline;
          @extend %t-action3;
298
          @extend %t-strong;
299 300 301 302 303 304 305 306 307
          display: inline-block;
          padding: ($baseline/2);
          width: 49%;
          margin-right: 2%;
        }

        .download-setting {
          @extend %ui-btn-non;
          @extend %t-action4;
308
          @extend %t-strong;
309 310 311 312 313 314 315 316 317 318 319 320 321
          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);
322
          @extend %t-action1;
323 324 325 326 327 328 329 330 331
          display: inline-block;
          background: transparent;
          color: $blue-l3;

          &:hover {
            color: $blue;
          }
        }
      }
332
    }
333
  }
334
}