_field-textoutput.scss 726 B

123456789101112131415161718192021222324252627282930
  1. @use 'sass:map';
  2. @use '../../settings' as *;
  3. @use './input-base' as *;
  4. /**
  5. * A container for rendering human-readable field values in forms in a way
  6. that makes them 'focusable' without rendering an actual input.
  7. */
  8. .w-field__textoutput {
  9. @apply w-body-text-large;
  10. width: 100%;
  11. padding: theme('spacing.[1.5]') theme('spacing.5');
  12. min-height: $text-input-height;
  13. position: relative;
  14. overflow: hidden;
  15. overflow-wrap: break-word;
  16. @include input-base();
  17. // stylelint-disable-next-line no-duplicate-selectors, scss/selector-no-redundant-nesting-selector
  18. & {
  19. background-color: theme('colors.surface-field-inactive');
  20. }
  21. &,
  22. &:hover {
  23. border-color: theme('colors.border-field-inactive');
  24. }
  25. }