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.

216 lines
3.6 KiB

  1. /*
  2. * # Semantic - Modal
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Modal
  13. *******************************/
  14. .ui.modal {
  15. display: none;
  16. position: fixed;
  17. z-index: 1001;
  18. top: 50%;
  19. left: 50%;
  20. text-align: left;
  21. width: 90%;
  22. margin-left: -45%;
  23. background-color: #FFFFFF;
  24. border: 1px solid #DDDDDD;
  25. -webkit-border-radius: 5px;
  26. -moz-border-radius: 5px;
  27. border-radius: 5px;
  28. }
  29. /*******************************
  30. Content
  31. *******************************/
  32. /*--------------
  33. Close
  34. ---------------*/
  35. .ui.modal > .close {
  36. cursor: pointer;
  37. position: absolute;
  38. opacity: 0.8;
  39. font-size: 1.25em;
  40. top: -1.75em;
  41. right: -1.75em;
  42. color: #FFFFFF;
  43. }
  44. .ui.modal > .close:hover {
  45. opacity: 1;
  46. }
  47. /*--------------
  48. Header
  49. ---------------*/
  50. .ui.modal > .header {
  51. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  52. margin: 0em;
  53. padding: 1.5rem 2rem;
  54. font-size: 1.6em;
  55. font-weight: bold;
  56. -webkit-border-radius: 0.325em 0.325em 0px 0px;
  57. -moz-border-radius: 0.325em 0.325em 0px 0px;
  58. border-radius: 0.325em 0.325em 0px 0px;
  59. }
  60. /*--------------
  61. Content
  62. ---------------*/
  63. .ui.modal > .content {
  64. display: table;
  65. width: 100%;
  66. position: relative;
  67. padding: 2em;
  68. background-color: #F4F4F4;
  69. -webkit-box-sizing: border-box;
  70. -moz-box-sizing: border-box;
  71. -ms-box-sizing: border-box;
  72. box-sizing: border-box;
  73. }
  74. .ui.modal > .content > .left {
  75. display: table-cell;
  76. padding-right: 5%;
  77. }
  78. .ui.modal > .content > .right {
  79. display: table-cell;
  80. padding-left: 5%;
  81. vertical-align: middle;
  82. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1);
  83. }
  84. .ui.modal > .content p {
  85. line-height: 1.6;
  86. }
  87. /*--------------
  88. Actions
  89. ---------------*/
  90. .ui.modal .actions {
  91. border-top: 1px solid rgba(0, 0, 0, 0.1);
  92. padding: 1rem 2rem;
  93. text-align: right;
  94. }
  95. .ui.modal .actions > .button {
  96. margin-left: 0.75em;
  97. }
  98. /*-------------------
  99. Sizing
  100. --------------------*/
  101. /* Mobile Only */
  102. @media only screen and (max-width : 768px) {
  103. .ui.modal .content .left {
  104. display: block;
  105. padding: 0em 0em 0em 1em;
  106. }
  107. .ui.modal .content .right {
  108. display: block;
  109. padding: 1em 0em 0em 0em;
  110. -webkit-box-shadow: none;
  111. -moz-box-shadow: none;
  112. box-shadow: none;
  113. }
  114. }
  115. /* Tablet and Mobile */
  116. @media only screen and (max-width : 998px) {
  117. .ui.modal {
  118. width: 92%;
  119. margin-left: -46%;
  120. }
  121. .ui.modal > .close {
  122. color: rgba(0, 0, 0, 0.8);
  123. top: 1.5rem;
  124. right: 1rem;
  125. }
  126. }
  127. /* Computer / Responsive */
  128. @media only screen and (min-width : 998px) {
  129. .ui.modal {
  130. width: 74%;
  131. margin-left: -37%;
  132. }
  133. }
  134. @media only screen and (min-width : 1500px) {
  135. .ui.modal {
  136. width: 64%;
  137. margin-left: -32%;
  138. }
  139. }
  140. @media only screen and (min-width : 1750px) {
  141. .ui.modal {
  142. width: 54%;
  143. margin-left: -27%;
  144. }
  145. }
  146. @media only screen and (min-width : 2000px) {
  147. .ui.modal {
  148. width: 44%;
  149. margin-left: -22%;
  150. }
  151. }
  152. /*******************************
  153. Types
  154. *******************************/
  155. .ui.basic.modal {
  156. background-color: transparent;
  157. border: none;
  158. color: #FFFFFF;
  159. }
  160. .ui.basic.modal > .close {
  161. top: 1.5rem;
  162. right: 1rem;
  163. }
  164. .ui.basic.modal .content {
  165. background-color: transparent;
  166. }
  167. /*******************************
  168. Variations
  169. *******************************/
  170. /* A modal that cannot fit on the page */
  171. .ui.modal.scrolling {
  172. position: absolute;
  173. margin-top: 100px;
  174. }
  175. /*******************************
  176. States
  177. *******************************/
  178. .ui.active.modal {
  179. display: block;
  180. }