jquery.ocdialog.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. .oc-dialog {
  2. background: var(--color-main-background);
  3. color: var(--color-text-light);
  4. border-radius: var(--border-radius-large);
  5. box-shadow: 0 0 30px var(--color-box-shadow);
  6. padding: 15px;
  7. z-index: 10000;
  8. font-size: 100%;
  9. box-sizing: border-box;
  10. min-width: 200px;
  11. top: 50%;
  12. left: 50%;
  13. transform: translate(-50%, -50%);
  14. max-height: calc(100% - 20px);
  15. max-width: calc(100% - 20px);
  16. overflow: auto;
  17. }
  18. .oc-dialog-title {
  19. background: var(--color-main-background);
  20. }
  21. .oc-dialog-buttonrow {
  22. position: relative;
  23. display: flex;
  24. background: transparent;
  25. right: 0;
  26. bottom: 0;
  27. padding: 0;
  28. padding-top: 10px;
  29. box-sizing: border-box;
  30. width: 100%;
  31. background-image: linear-gradient(rgba(255, 255, 255, 0.0), var(--color-main-background));
  32. &.twobuttons {
  33. justify-content: space-between;
  34. }
  35. &.onebutton,
  36. &.twobuttons.aside {
  37. justify-content: flex-end;
  38. }
  39. button {
  40. white-space: nowrap;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. }
  44. }
  45. .oc-dialog-close {
  46. position: absolute;
  47. top: 0;
  48. right: 0;
  49. padding: 25px;
  50. background: url('../img/actions/close.svg') no-repeat center;
  51. opacity: .5;
  52. &:hover,
  53. &:focus,
  54. &:active {
  55. opacity: 1;
  56. }
  57. }
  58. .oc-dialog-dim {
  59. background-color: #000;
  60. opacity: .2;
  61. z-index: 9999;
  62. position: fixed;
  63. top: 0;
  64. left: 0;
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .oc-dialog-content {
  69. width: 100%;
  70. }
  71. .oc-dialog.password-confirmation {
  72. .oc-dialog-content {
  73. width: auto;
  74. input[type=password] {
  75. width: 100%;
  76. }
  77. label {
  78. display: none;
  79. }
  80. }
  81. }