You are here

yamlform.element.signature.css in YAML Form 8

Signature element styles.

File

css/yamlform.element.signature.css
View source
  1. /**
  2. * @file
  3. * Signature element styles.
  4. *
  5. * @see https://css-tricks.com/snippets/sass/maintain-aspect-ratio-mixin/
  6. */
  7. .yamlform-signature-pad {
  8. position: relative;
  9. background-color: #f0f0f0;
  10. }
  11. .yamlform-signature-pad:before {
  12. display: block;
  13. content: "";
  14. width: 100%;
  15. padding-top: 33%;
  16. }
  17. .yamlform-signature-pad canvas {
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. right: 0;
  22. bottom: 0;
  23. display: block;
  24. cursor: crosshair;
  25. }
  26. .yamlform-signature-pad .button {
  27. z-index: 100;
  28. position: absolute;
  29. top: 2px;
  30. right: 2px;
  31. }
  32. .yamlform-signature-pad-image {
  33. display: block;
  34. width: 100%;
  35. max-width: 600px;
  36. border: 1px solid #ccc;
  37. }