_container.scss 8.86 KB
Newer Older
1 2
// studio - views - container
// ==========================
3
// The container view renders xblocks at three levels: Page Level, Nesting Level, and Element Level.
4

5
// For containers rendered at the element level, the container is rendered in a way that allows the user to navigate to a separate container page for that container making its children populate the nesting and element levels.
6

7 8
// ====================

9 10 11 12 13 14 15 16 17 18 19 20
// view-specific utilities
// --------------------
%status-value-base {
  @extend %t-title7;
  @extend %t-strong;
}

%status-value-sub1 {
  @extend %t-title8;
  display: block;
}

21
// UI: container page view
22
// --------------------
23
.view-container {
24
  @extend %two-col-1;
25

26
  .wrapper-mast {
27

28 29 30
    .mast {
      border-bottom: none;
      padding-bottom: 0;
31

32 33 34
      .page-header {

        .page-header-title {
35
          @extend %t-title4;
36
          @extend %t-strong;
37 38 39
        }

        .is-editable {
40

41
          // TOOD: abstract this out into a Sass placeholder
42
          .incontext-editor-input {
43
            @include transition(box-shadow $tmg-f1 ease-in-out 0, color $tmg-f1 ease-in-out 0);
44
            @extend %t-title4;
45
            @extend %t-strong;
46
            width: 100%;
47
            background: none repeat scroll 0 0 $white;
48 49
            border: 0;
            box-shadow: 0 0 2px 2px $shadow inset;
50 51 52 53 54 55

            // STATE: focus
            &:focus {
              box-shadow: 0 0 2px 2px rgba($ui-action-primary-color-focus, 0.50) inset;
              color: $ui-action-primary-color-focus;
            }
56 57
          }
        }
58
      }
59

60
      &.has-actions {
61

62
        .nav-actions {
63

64 65
          .button {
            @extend %t-action3;
66
            @extend %t-regular;
67
            padding: ($baseline/4) ($baseline*0.75);
68
          }
69 70
        }
      }
71 72 73
    }
  }

74
  .content-primary {
75 76

    .no-container-content {
77
      @extend %no-content;
78
      padding: ($baseline*1.5) ($baseline*2);
79

80
      // custom rules to reuse xblock validation styling in ui-well context
81
      .fa-warning {
82 83
        display: none;
      }
84
    }
85

86 87 88 89 90 91 92
    .container-message {

      .message {
        border-radius: 3px 3px 0 0;
      }
    }

93 94 95 96 97
    // dragging bits
    .ui-sortable-helper {

      article {
        display: none;
98 99
      }
    }
100 101 102 103 104 105 106 107 108 109

    // drop target
    .component-placeholder {
      height: ($baseline*2.5);
      opacity: .5;
      margin: $baseline;
      background-color: $gray-l5;
      border-radius: ($baseline/2);
      border: 2px dashed $gray-l2;
    }
110 111
  }

112
  .content-supplementary {
113

114 115
    label {
      @extend %t-title8;
116
    }
117

118
    // UI: publishing details/summary
119
    .bit-publishing {
120
      @extend %bar-module;
121

122 123
      // CASE: content is ready to be made live
      &.is-ready {
124 125
        @extend %bar-module-green;
      }
126

127 128 129 130 131
      // CASE: content is live
      &.is-live {
        @extend %bar-module-blue;
      }

132 133
      // CASE: content has warnings
      &.has-warnings {
134 135
        @extend %bar-module-yellow;
      }
136

137 138 139 140 141
      // CASE: content has erors
      &.has-errors {
        @extend %bar-module-red;
      }

142
      // CASE: content is staff only
143 144
      &.staff-only,
      &.is-staff-only {
145
        @extend %bar-module-black;
146 147 148 149

        &.is-scheduled .wrapper-release .copy {
          text-decoration: line-through;
        }
150 151
      }

152 153 154 155 156
      // CASE: content is gated
      &.is-gated {
        @extend %bar-module-black;
      }

157 158
      .bar-mod-content {
        border: 0;
159
        padding: ($baseline/2) ($baseline*0.75) ($baseline/4) ($baseline*0.75);
160 161 162

        .title {
          margin-bottom: ($baseline/10);
163 164
        }
      }
165

166
      .wrapper-last-draft {
167 168 169

        .date,
        .user {
170
          @extend %t-strong;
171
        }
172 173 174 175

        .user {
          @extend %cont-text-wrap;
        }
176
      }
177

178
      .wrapper-release {
179

180
        .release-date {
181
          @extend %status-value-base;
182
        }
183 184

        .release-with {
185
          @extend %status-value-sub1;
186
        }
187 188
      }

189
      .wrapper-visibility {
190

191
        .copy {
192
          @extend %status-value-base;
193
          margin-bottom: ($baseline/10);
194
        }
195

196
        .icon {
197
          color: $gray-d1;
198
        }
199 200

        .inherited-from {
201
          @extend %status-value-sub1;
202 203
        }

204 205 206
        // UI: note about specific access
        .note-visibility {
          @extend %status-value-sub1;
207

208 209 210 211
          .icon {
            @include margin-right($baseline/4);
          }
        }
212
      }
213

214
      .wrapper-pub-actions {
215 216 217
        border-top: 1px solid $gray-l4;
        margin-top: ($baseline/2);
        padding: $baseline ($baseline*0.75) ($baseline*0.75) ($baseline*0.75);
218 219 220 221 222

        .action-publish {
          @extend %btn-primary-blue;
          display: block;
          padding: ($baseline/4) ($baseline/2) ($baseline/3) ($baseline/2);
223 224
        }

225 226 227 228 229 230 231 232 233 234
        .action-discard {
          @extend %t-copy-sub1;
          display: block;
          margin-top: ($baseline/2);
          text-align: right;

          &.is-disabled {
            pointer-events: none;
            color: $gray-l1;
          }
235 236
        }
      }
237 238
    }

239 240 241 242 243
    // versioning widget
    .unit-publish-history {

      .wrapper-last-publish {
        margin-bottom: $baseline;
244
        padding: ($baseline*0.75);
245 246 247 248 249 250 251 252 253
        background-color: $white;

        .copy {
          @extend %t-copy-sub2;
          color: $gray;
        }

        .date,
        .user {
254
          @extend %t-strong;
255
        }
256 257 258 259

        .user {
          @extend %cont-text-wrap;
        }
260 261 262
      }
    }

263
    // location widget
264
    .unit-location, .library-location {
265
      @extend %bar-module;
266
      border-top: none;
267

268
      .wrapper-unit-id, .wrapper-library-id {
269

270
        .unit-id-value, .library-id-value {
271
          @extend %status-value-base;
272
          display: inline-block;
273
          width: 100%;
274
        }
275 276 277 278 279

        .tip {
          @extend %t-copy-sub2;
          display: inline-block;
          margin: ($baseline/4) 0;
280
          color: $gray-d1;
281
        }
282 283 284
      }

      .wrapper-unit-tree-location {
285

286 287
        .item-title {
          @extend %cont-text-wrap;
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328

          a {
            color: $blue;

            &:hover {
              color: $orange-d1;
            }
          }
        }

        // CASE: is current item being edited/viewed
        .is-current {
          background: $gray-l4;

          .unit-title a {
            @extend %ui-disabled;
            @extend %t-strong;
            color: $color-heading-base;
          }
        }

        // typographical overrides (based off of outline-simple)
        .section-header, .subsection-header {
          line-height: 0;
          margin-bottom: ($baseline/2);
        }

        .section-header {
          border-bottom: 1px solid $gray-l4;
          padding-bottom: ($baseline/2);
        }

        // subsections overrides (based off of outline-simple)
        .outline-subsection {
          border: none;
          padding: 0;
        }

        // units overrides (based off of outline-simple)
        .outline-unit {
          padding: 3px 6px;
329
        }
330 331
      }
    }
332 333
  }
}
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397


.move-xblock-modal {

  button {
    background: transparent;
    border-color: transparent;
    padding: 0;
    border: none;
  }

  .breadcrumb-container {
    margin-bottom: ($baseline/4);
    border: 1px solid $btn-lms-border;
    padding: ($baseline/2);
    background: $color-background-alternate;

    .breadcrumbs {

      .bc-container {
        @include font-size(14);
        display: inline-block;

        .breadcrumb-fa-icon {
          padding: 0 ($baseline/4);

          @include rtl {
            @include transform(rotate(180deg));
          }
        }

        &.last {
          .parent-displayname {
            @include font-size(18);
          }
        }
      }

      .bc-container:not(.last) {
        button, .parent-displayname {
          text-decoration: underline;
          color: $ui-link-color;
        }
      }
    }
  }

  .category-text {
    @include margin-left($baseline/2);
    @include font-size(14);
    color: $black;
  }

  .xblock-items-container {
    max-height: ($baseline*15);
    overflow-y: auto;

    .xblock-item {
      & > * {
        width: 100%;
        color: $uxpl-blue-hover-active;
      }

      .component {
Mushtaq Ali committed
398
        display: inline-block;
399
        color: $black;
Mushtaq Ali committed
400 401 402 403 404
        padding: ($baseline/4) ($baseline/2);
      }

      .xblock-displayname {
        @include float(left);
405 406 407 408 409 410 411
      }

      .button-forward, .component {
        border: none;
      }

      .button-forward {
Mushtaq Ali committed
412
        padding: ($baseline/2);
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
        .forward-sr-icon {
          @include float(right);

          @include rtl {
            @include transform(rotate(180deg));
          }
        }

        &:hover, &:focus {
          background: $color-background-alternate;
        }
      }
    }

    .xblock-no-child-message {
      @include text-align(center);
      display: block;
      padding: ($baseline*2);
    }
  }

  .truncate {
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .current-location {
    @include float(left);
    @include margin-left($baseline);
  }
}