You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
2.6 KiB

  1. /*
  2. * # Semantic Modal
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: Aug 05, 2013
  11. */
  12. /*******************************
  13. Modal
  14. *******************************/
  15. .ui.modal {
  16. display: none;
  17. position: fixed;
  18. z-index: 1001;
  19. top: 50%;
  20. left: 50%;
  21. text-align: left;
  22. width: 800px;
  23. margin-left: -400px;
  24. background-color: #FFFFFF;
  25. border: 1px solid #DDDDDD;
  26. -webkit-border-radius: 5px;
  27. -moz-border-radius: 5px;
  28. border-radius: 5px;
  29. }
  30. /*******************************
  31. Content
  32. *******************************/
  33. /*--------------
  34. Close
  35. ---------------*/
  36. .ui.modal > .close {
  37. cursor: pointer;
  38. position: absolute;
  39. opacity: 0.8;
  40. font-size: 1.25em;
  41. top: -1.75em;
  42. right: -1.75em;
  43. color: #FFFFFF;
  44. }
  45. .ui.modal > .close:hover {
  46. opacity: 1;
  47. }
  48. /*--------------
  49. Header
  50. ---------------*/
  51. .ui.modal > .header {
  52. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  53. margin: 0em;
  54. padding: 1.5rem 2rem;
  55. font-size: 1.6em;
  56. font-weight: bold;
  57. -webkit-border-radius: 0.325em 0.325em 0px 0px;
  58. -moz-border-radius: 0.325em 0.325em 0px 0px;
  59. border-radius: 0.325em 0.325em 0px 0px;
  60. }
  61. /*--------------
  62. Content
  63. ---------------*/
  64. .ui.modal > .content {
  65. display: table;
  66. width: 100%;
  67. position: relative;
  68. padding: 2em;
  69. background-color: #F4F4F4;
  70. -webkit-box-sizing: border-box;
  71. -moz-box-sizing: border-box;
  72. -ms-box-sizing: border-box;
  73. box-sizing: border-box;
  74. }
  75. .ui.modal > .content > .left {
  76. display: table-cell;
  77. padding-right: 5%;
  78. }
  79. .ui.modal > .content > .right {
  80. display: table-cell;
  81. padding-left: 5%;
  82. vertical-align: middle;
  83. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1);
  84. }
  85. .ui.modal > .content p {
  86. line-height: 1.6;
  87. }
  88. /*--------------
  89. Actions
  90. ---------------*/
  91. .ui.modal .actions {
  92. border-top: 1px solid rgba(0, 0, 0, 0.1);
  93. padding: 1rem 2rem;
  94. text-align: right;
  95. }
  96. .ui.modal .actions > .button {
  97. margin-left: 0.75em;
  98. }
  99. /*******************************
  100. Types
  101. *******************************/
  102. .ui.basic.modal {
  103. background-color: transparent;
  104. border: none;
  105. color: #FFFFFF;
  106. }
  107. .ui.basic.modal .content {
  108. background-color: transparent;
  109. }
  110. /*******************************
  111. Variations
  112. *******************************/
  113. /* A modal that cannot fit on the page */
  114. .ui.modal.scrolling {
  115. position: absolute;
  116. margin-top: 100px;
  117. }
  118. /*******************************
  119. States
  120. *******************************/
  121. .ui.active.modal {
  122. display: block;
  123. }