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.

280 lines
4.3 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. right: 50%;
  20. text-align: right;
  21. width: 90%;
  22. margin-right: -45%;
  23. background-color: #FFFFFF;
  24. border: 1px solid #DDDDDD;
  25. border-radius: 5px;
  26. }
  27. /*******************************
  28. Content
  29. *******************************/
  30. /*--------------
  31. Close
  32. ---------------*/
  33. .ui.modal > .close {
  34. cursor: pointer;
  35. position: absolute;
  36. opacity: 0.8;
  37. font-size: 1.25em;
  38. top: -1.75em;
  39. left: -1.75em;
  40. color: #FFFFFF;
  41. }
  42. .ui.modal > .close:hover {
  43. opacity: 1;
  44. }
  45. /*--------------
  46. Header
  47. ---------------*/
  48. .ui.modal > .header {
  49. margin: 0em;
  50. padding: 1.5rem 2rem;
  51. font-size: 1.6em;
  52. font-weight: bold;
  53. border-radius: 0.325em 0.325em 0px 0px;
  54. }
  55. /*--------------
  56. Content
  57. ---------------*/
  58. .ui.modal > .content {
  59. display: table;
  60. width: 100%;
  61. position: relative;
  62. padding: 2em;
  63. background-color: #F4F4F4;
  64. -moz-box-sizing: border-box;
  65. -ms-box-sizing: border-box;
  66. box-sizing: border-box;
  67. }
  68. .ui.modal > .content > .left {
  69. display: table-cell;
  70. padding-left: 1.5%;
  71. min-width: 25%;
  72. }
  73. .ui.modal > .content > .right {
  74. display: table-cell;
  75. padding-right: 1.5%;
  76. vertical-align: top;
  77. }
  78. .ui.modal > .content > .left > .icon {
  79. font-size: 8em;
  80. margin: 0em;
  81. }
  82. .ui.modal > .content p {
  83. line-height: 1.6;
  84. }
  85. /*--------------
  86. Actions
  87. ---------------*/
  88. .ui.modal .actions {
  89. padding: 1rem 2rem;
  90. text-align: left;
  91. }
  92. .ui.modal .actions > .button {
  93. margin-right: 0.75em;
  94. }
  95. /*-------------------
  96. Sizing
  97. --------------------*/
  98. /* Mobile Only */
  99. @media only screen and (max-width: 768px) {
  100. .ui.modal .content .left {
  101. display: block;
  102. padding: 0em 1em 0em 0em;
  103. }
  104. .ui.modal .content .right {
  105. display: block;
  106. padding: 1em 0em 0em 0em;
  107. box-shadow: none;
  108. }
  109. }
  110. /* Tablet and Mobile */
  111. @media only screen and (max-width: 998px) {
  112. .ui.modal {
  113. width: 92%;
  114. margin-right: -46%;
  115. }
  116. .ui.modal > .close {
  117. color: rgba(0, 0, 0, 0.8);
  118. top: 1.5rem;
  119. left: 1rem;
  120. }
  121. }
  122. /* Computer / Responsive */
  123. @media only screen and (min-width: 998px) {
  124. .ui.modal {
  125. width: 74%;
  126. margin-right: -37%;
  127. }
  128. }
  129. @media only screen and (min-width: 1500px) {
  130. .ui.modal {
  131. width: 56%;
  132. margin-right: -28%;
  133. }
  134. }
  135. @media only screen and (min-width: 1750px) {
  136. .ui.modal {
  137. width: 42%;
  138. margin-right: -21%;
  139. }
  140. }
  141. @media only screen and (min-width: 2000px) {
  142. .ui.modal {
  143. width: 36%;
  144. margin-right: -18%;
  145. }
  146. }
  147. /*******************************
  148. Types
  149. *******************************/
  150. .ui.basic.modal {
  151. background-color: transparent;
  152. border: none;
  153. color: #FFFFFF;
  154. }
  155. .ui.basic.modal > .close {
  156. top: 1.5rem;
  157. left: 1rem;
  158. }
  159. .ui.basic.modal .content {
  160. background-color: transparent;
  161. }
  162. /*******************************
  163. Variations
  164. *******************************/
  165. /* A modal that cannot fit on the page */
  166. .ui.modal.scrolling {
  167. position: absolute;
  168. margin-top: 10px;
  169. }
  170. /*******************************
  171. States
  172. *******************************/
  173. .ui.active.modal {
  174. display: block;
  175. }
  176. /*--------------
  177. Size
  178. ---------------*/
  179. /* Small */
  180. .ui.small.modal > .header {
  181. font-size: 1.3em;
  182. }
  183. @media only screen and (min-width: 998px) {
  184. .ui.small.modal {
  185. width: 58%;
  186. margin-right: -29%;
  187. }
  188. }
  189. @media only screen and (min-width: 1500px) {
  190. .ui.small.modal {
  191. width: 40%;
  192. margin-right: -20%;
  193. }
  194. }
  195. @media only screen and (min-width: 1750px) {
  196. .ui.small.modal {
  197. width: 26%;
  198. margin-right: -13%;
  199. }
  200. }
  201. @media only screen and (min-width: 2000px) {
  202. .ui.small.modal {
  203. width: 20%;
  204. margin-right: -10%;
  205. }
  206. }
  207. /* Large */
  208. @media only screen and (min-width: 998px) {
  209. .ui.large.modal {
  210. width: 74%;
  211. margin-right: -37%;
  212. }
  213. }
  214. @media only screen and (min-width: 1500px) {
  215. .ui.large.modal {
  216. width: 64%;
  217. margin-right: -32%;
  218. }
  219. }
  220. @media only screen and (min-width: 1750px) {
  221. .ui.large.modal {
  222. width: 54%;
  223. margin-right: -27%;
  224. }
  225. }
  226. @media only screen and (min-width: 2000px) {
  227. .ui.large.modal {
  228. width: 44%;
  229. margin-right: -22%;
  230. }
  231. }