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.

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