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.

296 lines
4.6 KiB

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