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.

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