|
218 | 218 | &.leave {
|
219 | 219 | display: none;
|
220 | 220 | }
|
| 221 | + |
| 222 | + .inline-options { |
| 223 | + float: inline-start; /* flexbox and inline-block don't work on <legend> elements, so going old-school here */ |
| 224 | + line-height: 24px; /* for alignment with items in same line (like pills or buttons) */ |
| 225 | + padding-inline-end: 0.5em; |
| 226 | + } |
| 227 | + |
| 228 | + .tooltip-for-legend { |
| 229 | + display: inline-block; |
| 230 | + line-height: 24px; |
| 231 | + } |
221 | 232 | }
|
222 | 233 |
|
223 | 234 | // Are any widgets capable of overflowing in the editor interface?
|
224 | 235 | .categorizer-container {
|
225 | 236 | overflow-x: scroll;
|
226 | 237 | }
|
| 238 | + |
| 239 | + .section-accordion { |
| 240 | + display: flex; |
| 241 | + flex-direction: row; |
| 242 | + } |
| 243 | + |
| 244 | + .delete-item-button { |
| 245 | + align-self: center; |
| 246 | + padding-right: 0.5em; |
| 247 | + } |
227 | 248 | }
|
228 | 249 |
|
229 | 250 | .perseus-widget-editor-title-id > svg {
|
|
232 | 253 | margin-right: 10px;
|
233 | 254 | }
|
234 | 255 |
|
| 256 | +.perseus-editor-accordion-container { |
| 257 | + display: inline-grid; |
| 258 | + width: 100%; |
| 259 | + |
| 260 | + &.collapsed { |
| 261 | + grid-template-rows: 0fr; |
| 262 | + min-height: 0; |
| 263 | + visibility: hidden; |
| 264 | + transition: |
| 265 | + all 0.25s step-end, |
| 266 | + grid-template-rows 0.25s; |
| 267 | + } |
| 268 | + |
| 269 | + &.expanded { |
| 270 | + grid-template-rows: 1fr; |
| 271 | + min-height: 100%; |
| 272 | + visibility: visible; |
| 273 | + transition: grid-template-rows 0.5s; |
| 274 | + } |
| 275 | + |
| 276 | + .perseus-editor-accordion-content { |
| 277 | + overflow: hidden; |
| 278 | + margin: 0 -1px; /* allows focus ring on accordion to show */ |
| 279 | + padding: 0 1px; |
| 280 | + } |
| 281 | +} |
| 282 | + |
235 | 283 | .perseus-editor-widgets-selectors {
|
236 | 284 | background-color: @grayExtraLight;
|
237 | 285 | border: 1px solid @grayLighter;
|
|
538 | 586 | // Input Number / Text Input
|
539 | 587 | //
|
540 | 588 | .perseus-input-number-editor {
|
541 |
| - font-size: 14px; |
542 |
| - |
543 |
| - .ui-title, |
544 |
| - .msg-title { |
545 |
| - display: inline-block; |
546 |
| - text-align: center; |
547 |
| - } |
548 |
| - |
549 |
| - .ui-title { |
550 |
| - width: 100px; |
551 |
| - } |
552 |
| - |
553 |
| - .msg-title { |
554 |
| - margin-left: 5px; |
555 |
| - width: 230px; |
| 589 | + font-family: Lato, "Noto Sans", sans-serif; |
| 590 | + font-weight: 400; |
| 591 | + font-size: 16px; |
| 592 | + line-height: 20px; |
| 593 | + |
| 594 | + .answer-option { |
| 595 | + .unsimplified-options { |
| 596 | + min-height: 48px; |
| 597 | + } |
556 | 598 | }
|
557 | 599 |
|
558 |
| - .options-container { |
559 |
| - padding-left: 30px; |
| 600 | + .perseus-textarea-pair { |
| 601 | + font-size: 16px; |
| 602 | + .perseus-textarea-underlay { |
| 603 | + margin-bottom: 26px; |
| 604 | + } |
| 605 | + textarea { |
| 606 | + background-color: #ffffff; |
| 607 | + border: 1px solid rgba(33, 36, 44, 0.5); |
| 608 | + border-radius: 4px; |
| 609 | + } |
560 | 610 | }
|
561 | 611 |
|
562 | 612 | .input-answer-editor-value,
|
|
565 | 615 | }
|
566 | 616 |
|
567 | 617 | .input-answer-editor-value-container {
|
568 |
| - border: @widgetBorder; |
569 |
| - border-radius: @widgetBorderRadius; |
570 |
| - float: left; |
571 |
| - .size(100px, 53px); |
572 |
| - overflow: hidden; |
573 |
| - position: relative; |
| 618 | + display: block; |
| 619 | + |
| 620 | + input { |
| 621 | + background: #ffffff; |
| 622 | + border: 1px solid rgba(33, 36, 44, 0.5); |
| 623 | + border-radius: 4px; |
| 624 | + color: #21242c; |
| 625 | + font-family: Lato, "Noto Sans", sans-serif; |
| 626 | + font-weight: 400; |
| 627 | + font-size: 16px; |
| 628 | + line-height: 20px; |
| 629 | + outline-offset: -2px; |
| 630 | + } |
574 | 631 |
|
575 | 632 | .numeric-input-value {
|
576 |
| - border: 0; |
577 |
| - font-size: 13px; |
578 |
| - outline-offset: -3px; |
579 |
| - width: 100%; |
| 633 | + margin-left: 8px; |
| 634 | + width: 6em; |
| 635 | + } |
| 636 | + |
| 637 | + .max-error-input-value { |
| 638 | + display: none; |
| 639 | + width: 3em; |
| 640 | + } |
| 641 | + |
| 642 | + .max-error-plusmn { |
| 643 | + cursor: default; |
| 644 | + display: none; |
| 645 | + height: 32px; |
| 646 | + padding-top: 4px; |
| 647 | + text-align: center; |
| 648 | + vertical-align: top; |
| 649 | + width: 1em; |
580 | 650 | }
|
581 | 651 |
|
582 |
| - &.with-max-error { |
| 652 | + &.with-max-error, |
| 653 | + &:focus-within { |
583 | 654 | .numeric-input-value {
|
584 |
| - width: 60%; |
| 655 | + border-right: none; |
| 656 | + border-top-right-radius: 0; |
| 657 | + border-bottom-right-radius: 0; |
585 | 658 | }
|
586 |
| - } |
587 | 659 |
|
588 |
| - .max-error-container { |
589 |
| - display: inline-block; |
590 |
| - width: 40%; |
591 |
| - .max-error-plusmn { |
592 |
| - cursor: default; |
| 660 | + .max-error-input-value { |
| 661 | + border-left: none; |
| 662 | + border-top-left-radius: 0; |
| 663 | + border-bottom-left-radius: 0; |
593 | 664 | display: inline-block;
|
594 |
| - width: 20%; |
595 | 665 | }
|
596 |
| - .number-input { |
597 |
| - border: 0; |
598 |
| - font-size: 13px; |
599 |
| - width: 80%; |
| 666 | + |
| 667 | + .max-error-plusmn { |
| 668 | + border-top: 1px solid rgba(33, 36, 44, 0.5); |
| 669 | + border-bottom: 1px solid rgba(33, 36, 44, 0.5); |
| 670 | + display: inline-block; |
600 | 671 | }
|
601 | 672 | }
|
602 | 673 | }
|
|
0 commit comments