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.

423 lines
9.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
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
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
11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic - Modal
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Default
  38. -------------------*/
  39. /*******************************
  40. Global Variables
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Page
  47. --------------------*/
  48. /*-------------------
  49. Breakpoints
  50. --------------------*/
  51. /*-------------------
  52. Fonts
  53. --------------------*/
  54. /*-------------------
  55. Icons
  56. --------------------*/
  57. /* Width of largest icon */
  58. /*******************************
  59. BG Colors
  60. *******************************/
  61. /*******************************
  62. Colors
  63. *******************************/
  64. /*-------------------
  65. Background
  66. --------------------*/
  67. /*--- Colors ---*/
  68. /*--- Emotive ---*/
  69. /*--- Neutrals ---*/
  70. /*-------------------
  71. Emotive
  72. --------------------*/
  73. /*-------------------
  74. Text Colors
  75. --------------------*/
  76. /*-------------------
  77. Brand Colors
  78. --------------------*/
  79. /*-------------------
  80. Borders
  81. --------------------*/
  82. /*-------------------
  83. Sizes
  84. --------------------*/
  85. /*-------------------
  86. Transitions
  87. --------------------*/
  88. /*******************************
  89. States
  90. *******************************/
  91. /*-------------------
  92. Disabled
  93. --------------------*/
  94. /*-------------------
  95. Hover
  96. --------------------*/
  97. /*--- Colors ---*/
  98. /*--- Emotive ---*/
  99. /*--- Neutrals ---*/
  100. /*-------------------
  101. Down (:active)
  102. --------------------*/
  103. /*--- Colors ---*/
  104. /*--- Emotive ---*/
  105. /*--- Neutrals ---*/
  106. /*-------------------
  107. Active
  108. --------------------*/
  109. /*--- Standard ---*/
  110. /*--- Emotive ---*/
  111. /*--- Neutrals ---*/
  112. /*-------------------
  113. Modal
  114. --------------------*/
  115. /* Close Icon */
  116. /* Header */
  117. /* Content */
  118. /* Left / Right */
  119. /* Modal Actions */
  120. /* Mobile Positions */
  121. /* Inner Close Position (Responsive) */
  122. /* Responsive Widths */
  123. /*-------------------
  124. Types
  125. --------------------*/
  126. /* Basic */
  127. /* Scrolling Margin */
  128. /*-------------------
  129. Variations
  130. --------------------*/
  131. /* Sizes */
  132. /* Derived Responsive Sizes */
  133. /*------------------
  134. Load Theme
  135. -------------------*/
  136. /*------------------
  137. Load Site
  138. -------------------*/
  139. /*******************************
  140. User Global Variables
  141. *******************************/
  142. /*******************************
  143. Overrides
  144. *******************************/
  145. /*------------------
  146. Override Mix-in
  147. -------------------*/
  148. /*******************************
  149. Modal
  150. *******************************/
  151. .ui.modal {
  152. display: none;
  153. position: fixed;
  154. z-index: 1001;
  155. top: 50%;
  156. left: 50%;
  157. text-align: left;
  158. width: 90%;
  159. margin-left: -45%;
  160. background-color: #FFFFFF;
  161. border: 1px solid #DDDDDD;
  162. border-radius: 0.25em;
  163. -webkit-user-select: text;
  164. -moz-user-select: text;
  165. -ms-user-select: text;
  166. user-select: text;
  167. }
  168. /*******************************
  169. Content
  170. *******************************/
  171. /*--------------
  172. Close
  173. ---------------*/
  174. .ui.modal > .close {
  175. cursor: pointer;
  176. position: absolute;
  177. top: -2.5em;
  178. right: -2.5em;
  179. z-index: 1;
  180. opacity: 0.8;
  181. font-size: 1.25em;
  182. color: #ffffff;
  183. width: 2.25em;
  184. height: 2.25em;
  185. padding: 0.625em 0em 0em 0em;
  186. }
  187. .ui.modal > .close:hover {
  188. opacity: 1;
  189. }
  190. /*--------------
  191. Header
  192. ---------------*/
  193. .ui.modal > .header {
  194. font-family: Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
  195. margin: 0em;
  196. padding: 1.5rem 2rem;
  197. font-size: 1.6em;
  198. font-weight: bold;
  199. border-top-left-radius: 0.25em;
  200. border-top-right-radius: 0.25em;
  201. }
  202. /*--------------
  203. Content
  204. ---------------*/
  205. .ui.modal > .content {
  206. position: relative;
  207. display: table;
  208. width: 100%;
  209. font-size: 1em;
  210. line-height: 1.4;
  211. padding: 2rem;
  212. background: #f4f4f4;
  213. }
  214. .ui.modal > .content > .image {
  215. display: table-cell;
  216. padding-right: 1em;
  217. min-width: 25%;
  218. }
  219. .ui.modal > .content > .description {
  220. display: table-cell;
  221. vertical-align: top;
  222. padding-left: 1em;
  223. min-width: '';
  224. }
  225. /*rtl:ignore*/
  226. .ui.modal > .content > .image > i.icon {
  227. font-size: 8rem;
  228. margin: 0em;
  229. }
  230. /*--------------
  231. Actions
  232. ---------------*/
  233. .ui.modal .actions {
  234. padding: 1rem 2rem;
  235. text-align: right;
  236. }
  237. .ui.modal .actions > .button {
  238. margin-left: 0.75em;
  239. }
  240. /*-------------------
  241. Responsive
  242. --------------------*/
  243. /* Modal Width */
  244. @media only screen and (max-width: 767px) {
  245. .ui.modal {
  246. width: 95%;
  247. margin: 0em 0em 0em -47.5%;
  248. }
  249. }
  250. @media only screen and (min-width: 768px) {
  251. .ui.modal {
  252. width: 88%;
  253. margin: 0em 0em 0em -44%;
  254. }
  255. }
  256. @media only screen and (min-width: 992px) {
  257. .ui.modal {
  258. width: 74%;
  259. margin: 0em 0em 0em -37%;
  260. }
  261. }
  262. @media only screen and (min-width: 1400px) {
  263. .ui.modal {
  264. width: 56%;
  265. margin: 0em 0em 0em -28%;
  266. }
  267. }
  268. @media only screen and (min-width: 1900px) {
  269. .ui.modal {
  270. width: 42%;
  271. margin: 0em 0em 0em -21%;
  272. }
  273. }
  274. /* Position Adjustments */
  275. @media only screen and (max-width: 767px) {
  276. /*rtl:ignore*/
  277. .ui.modal .content > .image {
  278. display: block;
  279. padding: 0em 0em 1em;
  280. }
  281. /*rtl:ignore*/
  282. .ui.modal .content > .description {
  283. display: block;
  284. padding: 0em 0em 1em;
  285. -webkit-box-shadow: none;
  286. box-shadow: none;
  287. }
  288. .ui.modal .content .image {
  289. width: auto !important;
  290. max-width: 100%;
  291. }
  292. .ui.modal .actions {
  293. padding-bottom: 0em;
  294. }
  295. .ui.modal .actions > .buttons,
  296. .ui.modal .actions > .button {
  297. margin-bottom: 1em;
  298. }
  299. }
  300. /* Tablet and Mobile */
  301. @media only screen and (max-width: 992px) {
  302. .ui.modal > .close {
  303. top: 1.5rem;
  304. right: 1rem;
  305. color: rgba(0, 0, 0, 0.8);
  306. }
  307. }
  308. /*******************************
  309. Types
  310. *******************************/
  311. .ui.basic.modal {
  312. background-color: transparent;
  313. border: none;
  314. color: #ffffff;
  315. }
  316. .ui.basic.modal > .close {
  317. top: 1.5rem;
  318. right: 1rem;
  319. }
  320. .ui.basic.modal .content {
  321. background-color: transparent;
  322. }
  323. /*******************************
  324. Variations
  325. *******************************/
  326. /* A modal that cannot fit on the page */
  327. .ui.modal.scrolling {
  328. position: absolute;
  329. margin-top: 1rem;
  330. }
  331. /*******************************
  332. States
  333. *******************************/
  334. .ui.active.modal {
  335. display: block;
  336. }
  337. /*--------------
  338. Size
  339. ---------------*/
  340. /* Small */
  341. .ui.small.modal > .header {
  342. font-size: 1.3em;
  343. }
  344. /* Small Modal Width */
  345. @media only screen and (max-width: 767px) {
  346. .ui.small.modal {
  347. width: 95%;
  348. margin: 0em 0em 0em -47.5%;
  349. }
  350. }
  351. @media only screen and (min-width: 768px) {
  352. .ui.small.modal {
  353. width: 52.8%;
  354. margin: 0em 0em 0em -26.4%;
  355. }
  356. }
  357. @media only screen and (min-width: 992px) {
  358. .ui.small.modal {
  359. width: 44.4%;
  360. margin: 0em 0em 0em -22.2%;
  361. }
  362. }
  363. @media only screen and (min-width: 1400px) {
  364. .ui.small.modal {
  365. width: 33.6%;
  366. margin: 0em 0em 0em -16.8%;
  367. }
  368. }
  369. @media only screen and (min-width: 1900px) {
  370. .ui.small.modal {
  371. width: 25.2%;
  372. margin: 0em 0em 0em -12.6%;
  373. }
  374. }
  375. /* Large Modal Width */
  376. .ui.large.modal > .header {
  377. font-size: 1.6em;
  378. }
  379. @media only screen and (max-width: 767px) {
  380. .ui.large.modal {
  381. width: 95%;
  382. margin: 0em 0em 0em -47.5%;
  383. }
  384. }
  385. @media only screen and (min-width: 768px) {
  386. .ui.large.modal {
  387. width: 88%;
  388. margin: 0em 0em 0em -44%;
  389. }
  390. }
  391. @media only screen and (min-width: 992px) {
  392. .ui.large.modal {
  393. width: 88.8%;
  394. margin: 0em 0em 0em -44.4%;
  395. }
  396. }
  397. @media only screen and (min-width: 1400px) {
  398. .ui.large.modal {
  399. width: 67.2%;
  400. margin: 0em 0em 0em -33.6%;
  401. }
  402. }
  403. @media only screen and (min-width: 1900px) {
  404. .ui.large.modal {
  405. width: 50.4%;
  406. margin: 0em 0em 0em -25.2%;
  407. }
  408. }
  409. /*******************************
  410. Overrides
  411. *******************************/
  412. /*******************************
  413. Overrides
  414. *******************************/