_group-configuration.scss 12.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// studio - views - group-configurations
// ====================
.view-group-configurations {

  .content-primary, .content-supplementary {
    @include box-sizing(border-box);
    float: left;
  }

  .content-primary {
    width: flex-grid(9, 12);
    margin-right: flex-gutter();

    .notice-moduledisabled {
      @extend %ui-well;
      @extend %t-copy-base;
      background-color: $white;
      padding: ($baseline*1.5) $baseline;
      text-align: center;
    }

22
    .no-content {
23
      @extend %no-content;
24 25
    }

26 27
    .wrapper-groups {
      margin-bottom: ($baseline*1.5);
28

29
      .title {
30
        @extend %t-title4;
31
        @extend %t-strong;
32
        margin-bottom: ($baseline/2);
33 34 35 36
      }

      .copy {
        @extend %t-copy-sub1;
37 38 39
      }
    }

40
    .wrapper-collection {
41 42
      @extend %ui-window;
      position: relative;
43
      outline: none;
44

45 46 47
      &:hover .collection .actions {
        opacity: 1.0;
      }
48

49 50 51
      .collection-details {
        padding: $baseline ($baseline*1.5);
      }
52

53 54 55 56
      .collection-header {
        margin-bottom: 0;
        border-bottom: 0;
        padding-bottom: 0;
57

58 59 60 61 62 63
        .title {
          @extend %cont-truncated;
          @extend %t-title5;
          @extend %t-strong;
          margin-right: ($baseline*14);
          color: $black;
64

65 66 67 68 69 70 71
          .toggle {
            display: inline-block;
            padding-left: $baseline;
            color: $black;

            &:hover, &:focus {
              color: $blue;
72 73
            }

74 75 76 77 78 79 80 81
            .ui-toggle-expansion {
              @include transition(rotate .15s ease-in-out .25s);
              @extend %t-action1;
              display: inline-block;
              width: ($baseline*0.75);
              vertical-align: baseline;
              margin-left: -$baseline;
            }
82

83 84
            &.is-selectable {
              @extend %ui-fake-link;
85

86 87
              &:hover {
                color: $blue;
88

89 90
                .ui-toggle-expansion {
                  color: $blue;
91 92 93
                }
              }
            }
94 95 96
          }
        }
      }
97

98 99 100 101 102
      .collection-info {
        @extend %t-copy-sub1;
        color: $gray-l1;
        margin-left: $baseline;

103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
        &.group-configuration-info-inline {
          display: table;
          width: 70%;
          margin: ($baseline/4) 0 ($baseline/2) $baseline;

          li {
            @include box-sizing(border-box);
            display: table-cell;
            margin-right: 1%;

            &.group-configuration-usage-count {
              font-style: italic;
            }
          }
        }

        &.group-configuration-info-block {
          li {
            padding: ($baseline/4) 0;
          }
        }

125 126 127 128 129 130 131 132 133 134 135 136 137
        &.collection-info-inline {
          display: table;
          width: 70%;
          margin: ($baseline/4) 0 ($baseline/2) $baseline;

          li {
            @include box-sizing(border-box);
            display: table-cell;
            margin-right: 1%;
            padding: ($baseline/4) 0;

            &.collection-usage-count {
              font-style: italic;
138
            }
139
          }
140
        }
141

142 143 144
        .collection-label {
          text-transform: uppercase;
        }
145

146 147 148 149 150
        .collection-description {
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
151

152 153 154
      .collection-items {
        margin-left: $baseline;
        margin-bottom: ($baseline*0.75);
155

156 157 158 159 160 161 162 163
        .item {
          @extend %t-copy-lead1;
          padding: ($baseline/7) 0 ($baseline/4);
          border-top: 1px solid $gray-l4;
          white-space: nowrap;

          &:first-child {
            border-top: none;
164 165
          }

166 167 168 169 170 171 172 173 174 175
          .name {
            overflow: hidden;
            text-overflow: ellipsis;
            display: inline-block;
            vertical-align: middle;
            width: 75%;
            margin-right: 5%;
          }
        }
      }
176

177
      .collection-details {
178

179 180 181 182 183 184
        .actions {
          @include transition(opacity .15s .25s ease-in-out);
          position: absolute;
          top: $baseline;
          right: $baseline;
          opacity: 0.0;
185

186 187 188 189
          .action {
            display: inline-block;
            vertical-align: middle;
            margin-right: ($baseline/4);
190

191 192
            .edit {
              @extend %ui-btn-non-blue;
193 194
            }

195 196
            .delete {
              @extend %ui-btn-non;
197

198 199 200
              &.is-disabled {
                background-color: $gray-l3;
                color: $gray-l6;
201
              }
202 203 204
            }
          }
        }
205
      }
206

207 208 209 210 211
      .collection-references {
        @extend %t-copy-sub1;
        box-shadow: 0 2px 2px 0 $shadow inset;
        padding: $baseline ($baseline*1.5) $baseline ($baseline*2.5);
        color: $gray-l1;
212

213 214
        .usage {
          margin-left: $baseline;
215

216 217
          .usage-unit {
            padding: ($baseline/4) 0;
218

219 220 221
            a {
              @extend %t-strong;
            }
222

223 224 225 226
            .fa-warning {
              margin: ($baseline/4) ($baseline/2) 0 ($baseline*1.5);
              color: $orange;
            }
227

228 229 230
            .fa-times-circle {
              margin: ($baseline/4) ($baseline/2) 0 ($baseline*1.5);
              color: $red-l2;
231 232 233
            }
          }
        }
234 235
      }

236
      .usage-validation {
237
        @extend %t-copy-sub1;
238
        background-color: $gray-l6;
239 240 241
        margin-top: $baseline;
        padding: $baseline ($baseline*1.5) $baseline ($baseline*1.5);

242
        .fa-warning {
243 244 245 246 247
          margin: ($baseline/2) $baseline 0 0;
          color: $orange;
          float: left;
        }

248
        .collection-validation-text {
249 250 251 252
          overflow: auto;
        }
      }

253
      .collection-edit {
254 255 256 257
        @include box-sizing(border-box);
        border-radius: 2px;
        width: 100%;
        background: $white;
258

259 260 261 262
        .message {
          margin-bottom: 0;
        }

263 264
        .wrapper-form {
          padding: $baseline ($baseline*1.5);
265 266
        }

267 268 269 270 271
        .tip {
          @extend %t-copy-sub2;
          @include transition(color, 0.15s, ease-in-out);
          display: block;
          margin-top: ($baseline/4);
272
          color: $gray-d1;
273 274
        }

275
        .is-focused .tip {
276
          color: $gray-d2;
277 278
        }

279 280 281 282 283 284 285 286 287 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 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

        .collection-fields {
          @extend %cont-no-list;
          margin-bottom: $baseline;
        }

        .field {
          margin: 0 0 ($baseline*0.75) 0;

          &:last-child {
            @extend %wipe-last-child;
          }

          &.required {

            label {
              @extend %t-strong;
            }

            label:after {
              margin-left: ($baseline/4);
              content: "*";
            }
          }

          label, input, textarea {
            display: block;
          }

          textarea {
            resize: vertical;
          }

          label {
            @extend %t-copy-sub1;
            @include transition(color, 0.15s, ease-in-out);
            margin: 0 0 ($baseline/4) 0;

            &.is-focused {
              color: $blue;
            }
          }

          //this section is borrowed from _account.scss - we should clean up and unify later
          input, textarea {
            @extend %t-copy-base;
            height: 100%;
            width: 100%;
            padding: ($baseline/2);

            &.long {
              width: 100%;
            }

            &.short {
              width: 25%;
            }

            ::-webkit-input-placeholder {
               color: $gray-l4;
            }

            :-moz-placeholder {
               color: $gray-l3;
            }

            ::-moz-placeholder {
               color: $gray-l3;
            }

            :-ms-input-placeholder {
               color: $gray-l3;
            }

            &:focus {
              + .tip {
355
                color: $gray-d1;
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
              }
            }
          }

          &.error {
              label {
                color: $red;
              }

              input {
                border-color: $red;
              }
          }
        }

        label.required {
          @extend %t-strong;

          &:after {
            margin-left: ($baseline/4);
            content: "*";
          }
        }

380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401
        .field.add-collection-name {

          label {
            width: 50%;
            @extend %t-title5;
            display: inline-block;
            vertical-align: bottom;
          }

          .group-configuration-id {
            display: inline-block;
            width: 45%;
            text-align: right;
            vertical-align: top;
            color: $gray-l1;

            .group-configuration-value {
              @extend %t-strong;
              white-space: nowrap;
              margin-left: ($baseline*0.5);
            }
          }
402 403
        }

404

405 406 407 408 409
        .actions {
          box-shadow: inset 0 1px 2px $shadow;
          border-top: 1px solid $gray-l1;
          padding: ($baseline*0.75) $baseline;
          background: $gray-l6;
410

411 412
          .action {
            margin-right: ($baseline/4);
413

414 415 416 417
            &:last-child {
              margin-right: 0;
            }
          }
418

419 420
          // add a group is below with groups styling
          .action-primary {
421
            @extend %btn-primary-blue;
422
            padding: ($baseline/4) $baseline;
423 424
          }

425
          .action-secondary {
426
            @extend %btn-secondary-gray;
427
            padding: ($baseline/4) $baseline;
428
          }
429

430 431 432
          .wrapper-delete-button {
            float: right;
            padding: ($baseline/4) ($baseline/2);
433

434 435
            .is-disabled {
              color: $gray-l3;
436 437
            }
          }
438
        }
439

440 441 442 443
        .copy {
          @extend %t-copy-sub2;
          margin: ($baseline) 0 ($baseline/2) 0;
          color: $gray;
444

445
          strong {
446
            @extend %t-strong;
447
          }
448
        }
449
      }
450

451 452 453 454 455 456 457 458 459 460
      .action-add-item {
        @extend %ui-btn-flat-outline;
        @extend %t-action2;
        @extend %t-strong;
        display: block;
        width: 100%;
        margin: ($baseline*1.5) 0 0 0;
        padding: ($baseline/2);
      }
    }
461

462 463 464 465 466 467 468
    // add/new collection
    .action-add {
      @extend %ui-btn-flat-outline;
      display: block;
      width: 100%;
      margin-top: ($baseline*0.75);
      padding: ($baseline/2) $baseline;
469

470 471 472
      &.is-hidden {
        display: none;
      }
473

474 475 476 477 478 479
      .icon {
        display: inline-block;
        vertical-align: middle;
        @include margin-right($baseline/2);
      }
    }
480

481 482
    // specific group-type styles
    .content-groups {
483

484
      .collection-header{
485

486
         .title {
487
            margin-bottom: 0;
488 489 490
        }
      }
    }
491

492
    .experiment-groups {
493

494
      .group-configuration-details {
495

496 497 498 499
        .group-configuration-info {
          @extend %t-copy-sub1;
          color: $gray-l1;
          margin-left: $baseline;
500

501 502 503
          .group-configuration-label {
            text-transform: uppercase;
          }
504

505 506 507 508 509
          .group-configuration-description {
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
510

511 512 513
        .groups {
          margin-left: $baseline;
          margin-bottom: ($baseline*0.75);
514

515 516 517 518 519
          .group {
            @extend %t-copy-lead1;
            padding: ($baseline/7) 0 ($baseline/4);
            border-top: 1px solid $gray-l4;
            white-space: nowrap;
520

521 522
            &:first-child {
              border-top: none;
523
            }
524

525
            .group-name {
526 527 528
              overflow: hidden;
              text-overflow: ellipsis;
              display: inline-block;
529 530 531
              vertical-align: middle;
              width: 75%;
              margin-right: 5%;
532
            }
533

534 535 536 537
            .group-allocation {
              display: inline-block;
              vertical-align: middle;
              width: 20%;
538
              color: $gray-l1;
539
              text-align: right;
540
            }
541
          }
542 543
        }
      }
544

545
      .group-configuration-edit {
546

547 548 549 550 551 552 553 554 555 556 557
        .add-collection-name label {
          padding-right: 5%;
          overflow: hidden;
          text-overflow: ellipsis;
          vertical-align: bottom;
        }

        .field-group {
          @include clearfix();
          margin: 0 0 ($baseline/2) 0;
          padding: ($baseline/4) 0 0 0;
558

559 560 561 562 563 564
          .group-allocation,
          .field {
            display: inline-block;
            vertical-align: middle;
            margin: 0 3% 0 0;
          }
565

566 567 568 569 570
          .group-allocation {
            max-width: 10%;
            min-width: 5%;
            color: $gray-l1;
          }
571

572 573
          .field {
            position: relative;
574

575 576 577
            &.long {
              width: 80%;
            }
578

579 580
            &.short {
              width: 10%;
581
            }
582
          }
583

584 585 586 587 588 589 590 591 592
          .action-close {
            @include transition(color $tmg-f2 ease-in-out);
            @extend %t-action1;
            display: inline-block;
            border: 0;
            padding: 0;
            background: transparent;
            color: $blue-l3;
            vertical-align: middle;
593

594 595
            &:hover {
              color: $blue;
596 597 598
            }
          }
        }
599 600
      }
    }
601 602 603 604 605 606
  }

  .content-supplementary {
    width: flex-grid(3, 12);
  }
}