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.

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