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.

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