dialog.css 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* Dialog */
  2. .dialog {
  3. position: fixed;
  4. top: 5%;
  5. left: 50%;
  6. height: initial;
  7. max-height: 90%;
  8. width: 50rem;
  9. margin-left: -25rem;
  10. overflow: hidden;
  11. box-shadow: 0 2.5rem 5rem rgba(0,0,0,0.30), 0 2rem 1.5rem rgba(0,0,0,0.22);
  12. border-radius: 0.25rem;
  13. z-index: 4;
  14. box-sizing: border-box;
  15. transform: translateX(0);
  16. }
  17. .dialog:empty {
  18. display: none;
  19. }
  20. .dialog.scroll {
  21. height: 90%;
  22. }
  23. .dialog > section {
  24. height: 100%;
  25. overflow-y: auto;
  26. position: relative;
  27. }
  28. .dialog > section > *:first-child:not(ul) {
  29. margin-top: 2rem;
  30. }
  31. .dialog > section > *:last-child {
  32. margin-bottom: 2rem;
  33. }
  34. .dialog > section > *:not(ul) {
  35. padding: 0 2rem;
  36. }
  37. .dialog > section > form > ul > li {
  38. padding: 0;
  39. }
  40. .dialog > section h3 {
  41. padding-top: 0;
  42. }
  43. .dialog > section form h3 {
  44. padding-bottom: 0;
  45. }
  46. @media screen and (max-width: 600px) {
  47. .dialog {
  48. width: 90%;
  49. height: 90%;
  50. min-height: 0;
  51. min-width: 0;
  52. max-height: 90%;
  53. margin-left: -45%;
  54. margin-top: 0;
  55. top: 5%;
  56. }
  57. }