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.

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