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.

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