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.

515 lines
12 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Modal
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  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. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Max Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Solid Background Color */
  86. /* Status */
  87. /* Darkened Headers */
  88. /*-------------------
  89. Neutral Text
  90. --------------------*/
  91. /*-------------------
  92. Brand Colors
  93. --------------------*/
  94. /*-------------------
  95. Grid Columns
  96. --------------------*/
  97. /*-------------------
  98. Borders
  99. --------------------*/
  100. /*-------------------
  101. Sizes
  102. --------------------*/
  103. /*-------------------
  104. Transitions
  105. --------------------*/
  106. /*******************************
  107. States
  108. *******************************/
  109. /*-------------------
  110. Disabled
  111. --------------------*/
  112. /*-------------------
  113. Hover
  114. --------------------*/
  115. /*--- Colors ---*/
  116. /*--- Emotive ---*/
  117. /*--- Neutrals ---*/
  118. /*-------------------
  119. Down (:active)
  120. --------------------*/
  121. /*--- Colors ---*/
  122. /*--- Emotive ---*/
  123. /*--- Neutrals ---*/
  124. /*-------------------
  125. Active
  126. --------------------*/
  127. /*--- Standard ---*/
  128. /*--- Emotive ---*/
  129. /*--- Neutrals ---*/
  130. /*******************************
  131. Modal
  132. *******************************/
  133. /* Close Icon */
  134. /* Header */
  135. /* Content */
  136. /* Image / Description */
  137. /* Modal Actions */
  138. /* Mobile Positions */
  139. /* Inner Close Position (Responsive) */
  140. /* Responsive Widths */
  141. /*-------------------
  142. Types
  143. --------------------*/
  144. /* Basic */
  145. /* Scrolling Margin */
  146. /*-------------------
  147. Variations
  148. --------------------*/
  149. /* Size Widths */
  150. /* Derived Responsive Sizes */
  151. /*------------------
  152. Load Theme
  153. -------------------*/
  154. /*------------------
  155. Load Site
  156. -------------------*/
  157. /*******************************
  158. User Global Variables
  159. *******************************/
  160. /*******************************
  161. Overrides
  162. *******************************/
  163. /*------------------
  164. Override Mix-in
  165. -------------------*/
  166. /*******************************
  167. Modal
  168. *******************************/
  169. .ui.modal {
  170. display: none;
  171. position: fixed;
  172. z-index: 1001;
  173. top: 50%;
  174. left: 50%;
  175. text-align: left;
  176. width: 90%;
  177. margin-left: -45%;
  178. background: #ffffff;
  179. border: none;
  180. box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
  181. border-radius: 0.25rem;
  182. -webkit-user-select: text;
  183. -moz-user-select: text;
  184. -ms-user-select: text;
  185. user-select: text;
  186. will-change: top, left, margin, transform, opacity;
  187. }
  188. .ui.modal > :first-child:not(.icon),
  189. .ui.modal > .icon:first-child + * {
  190. border-top-left-radius: 0.25rem;
  191. border-top-right-radius: 0.25rem;
  192. }
  193. .ui.modal > :last-child {
  194. border-bottom-left-radius: 0.25rem;
  195. border-bottom-right-radius: 0.25rem;
  196. }
  197. /*******************************
  198. Content
  199. *******************************/
  200. /*--------------
  201. Close
  202. ---------------*/
  203. .ui.modal > .close {
  204. cursor: pointer;
  205. position: absolute;
  206. top: -2.5em;
  207. right: -2.5em;
  208. z-index: 1;
  209. opacity: 0.8;
  210. font-size: 1.25em;
  211. color: #ffffff;
  212. width: 2.25em;
  213. height: 2.25em;
  214. padding: 0.625em 0em 0em 0em;
  215. }
  216. .ui.modal > .close:hover {
  217. opacity: 1;
  218. }
  219. /*--------------
  220. Header
  221. ---------------*/
  222. .ui.modal > .header {
  223. display: block;
  224. font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
  225. background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  226. background: linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff;
  227. margin: 0em;
  228. padding: 1.5rem 2rem;
  229. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  230. font-size: 1.6em;
  231. font-weight: bold;
  232. color: rgba(0, 0, 0, 0.85);
  233. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  234. }
  235. /*--------------
  236. Content
  237. ---------------*/
  238. .ui.modal > .content {
  239. display: table;
  240. table-layout: fixed;
  241. width: 100%;
  242. font-size: 1em;
  243. line-height: 1.4;
  244. padding: 2rem;
  245. background: #ffffff;
  246. }
  247. .ui.modal > .content > .image {
  248. display: table-cell;
  249. width: '';
  250. vertical-align: top;
  251. }
  252. .ui.modal > .content > .description {
  253. display: table-cell;
  254. min-width: '';
  255. vertical-align: top;
  256. }
  257. .ui.modal > .content > .icon + .description,
  258. .ui.modal > .content > .image + .description {
  259. padding-left: 1em;
  260. }
  261. /*rtl:ignore*/
  262. .ui.modal > .content > .image > i.icon {
  263. font-size: 8rem;
  264. margin: 0em;
  265. opacity: 1;
  266. }
  267. /*--------------
  268. Actions
  269. ---------------*/
  270. .ui.modal .actions {
  271. background: #efefef;
  272. padding: 1rem 2rem;
  273. border-top: 1px solid rgba(0, 0, 0, 0.1);
  274. text-align: right;
  275. }
  276. .ui.modal .actions > .button {
  277. margin-left: 0.75em;
  278. }
  279. /*-------------------
  280. Responsive
  281. --------------------*/
  282. /* Modal Width */
  283. @media only screen and (max-width: 767px) {
  284. .ui.modal {
  285. width: 95%;
  286. margin: 0em 0em 0em -47.5%;
  287. }
  288. }
  289. @media only screen and (min-width: 768px) {
  290. .ui.modal {
  291. width: 88%;
  292. margin: 0em 0em 0em -44%;
  293. }
  294. }
  295. @media only screen and (min-width: 992px) {
  296. .ui.modal {
  297. width: 74%;
  298. margin: 0em 0em 0em -37%;
  299. }
  300. }
  301. @media only screen and (min-width: 1400px) {
  302. .ui.modal {
  303. width: 56%;
  304. margin: 0em 0em 0em -28%;
  305. }
  306. }
  307. @media only screen and (min-width: 1900px) {
  308. .ui.modal {
  309. width: 42%;
  310. margin: 0em 0em 0em -21%;
  311. }
  312. }
  313. /* Position Adjustments */
  314. @media only screen and (max-width: 767px) {
  315. /*rtl:ignore*/
  316. .ui.modal .content > .image {
  317. display: block;
  318. padding: 0em 0em 1em;
  319. }
  320. /*rtl:ignore*/
  321. .ui.modal .content > .description {
  322. display: block;
  323. padding: 0em 0em 1em;
  324. box-shadow: none;
  325. }
  326. .ui.modal .content .image {
  327. width: auto !important;
  328. max-width: 100%;
  329. }
  330. .ui.modal .actions {
  331. padding-bottom: 0em;
  332. }
  333. .ui.modal .actions > .buttons,
  334. .ui.modal .actions > .button {
  335. margin-bottom: 1em;
  336. }
  337. }
  338. /* Tablet and Mobile */
  339. @media only screen and (max-width: 992px) {
  340. .ui.modal > .header {
  341. padding-right: 2.25em;
  342. }
  343. .ui.modal > .close {
  344. top: 1rem;
  345. right: 1rem;
  346. color: rgba(0, 0, 0, 0.8);
  347. }
  348. }
  349. /*******************************
  350. Types
  351. *******************************/
  352. .ui.basic.modal {
  353. background-color: transparent;
  354. border: none;
  355. box-shadow: none;
  356. color: #ffffff;
  357. }
  358. .ui.basic.modal > .header,
  359. .ui.basic.modal > .content,
  360. .ui.basic.modal > .actions {
  361. background-color: transparent;
  362. }
  363. .ui.basic.modal > .header {
  364. color: #ffffff;
  365. }
  366. .ui.basic.modal > .close {
  367. top: 1.5rem;
  368. right: 1rem;
  369. }
  370. /*******************************
  371. Variations
  372. *******************************/
  373. /* A modal that cannot fit on the page */
  374. .ui.scrolling.dimmable.dimmed {
  375. overflow: hidden;
  376. }
  377. .ui.scrolling.dimmable.dimmed > .dimmer {
  378. overflow: auto;
  379. -webkit-overflow-scrolling: touch;
  380. }
  381. .ui.scrolling.dimmable > .dimmer {
  382. position: fixed;
  383. }
  384. .ui.scrolling.modal {
  385. position: static;
  386. margin: 3.5rem auto;
  387. }
  388. @media only screen and (max-width: 992px) {
  389. .ui.scrolling.modal {
  390. margin-top: 1rem;
  391. margin-bottom: 1rem;
  392. }
  393. }
  394. /*******************************
  395. States
  396. *******************************/
  397. .ui.active.modal {
  398. display: block;
  399. }
  400. /*******************************
  401. Variations
  402. *******************************/
  403. /*--------------
  404. Full Screen
  405. ---------------*/
  406. .ui.fullscreen.modal {
  407. width: 95% !important;
  408. margin: 1em 0em 1em -47.5%;
  409. }
  410. .ui.fullscreen.modal > .header {
  411. padding-right: 2.25em;
  412. }
  413. .ui.fullscreen.modal > .close {
  414. top: 1rem;
  415. right: 1rem;
  416. color: rgba(0, 0, 0, 0.8);
  417. }
  418. @media only screen and (max-width: 767px) {
  419. .ui.fullscreen.modal {
  420. width: auto !important;
  421. margin: 1em !important;
  422. top: 0% !important;
  423. left: 0% !important;
  424. }
  425. }
  426. /*--------------
  427. Size
  428. ---------------*/
  429. .ui.modal {
  430. font-size: 1em;
  431. }
  432. /* Small */
  433. .ui.small.modal > .header {
  434. font-size: 1.3em;
  435. }
  436. /* Small Modal Width */
  437. @media only screen and (max-width: 767px) {
  438. .ui.small.modal {
  439. width: 95%;
  440. margin: 0em 0em 0em -47.5%;
  441. }
  442. }
  443. @media only screen and (min-width: 768px) {
  444. .ui.small.modal {
  445. width: 52.8%;
  446. margin: 0em 0em 0em -26.4%;
  447. }
  448. }
  449. @media only screen and (min-width: 992px) {
  450. .ui.small.modal {
  451. width: 44.4%;
  452. margin: 0em 0em 0em -22.2%;
  453. }
  454. }
  455. @media only screen and (min-width: 1400px) {
  456. .ui.small.modal {
  457. width: 33.6%;
  458. margin: 0em 0em 0em -16.8%;
  459. }
  460. }
  461. @media only screen and (min-width: 1900px) {
  462. .ui.small.modal {
  463. width: 25.2%;
  464. margin: 0em 0em 0em -12.6%;
  465. }
  466. }
  467. /* Large Modal Width */
  468. .ui.large.modal > .header {
  469. font-size: 1.6em;
  470. }
  471. @media only screen and (max-width: 767px) {
  472. .ui.large.modal {
  473. width: 95%;
  474. margin: 0em 0em 0em -47.5%;
  475. }
  476. }
  477. @media only screen and (min-width: 768px) {
  478. .ui.large.modal {
  479. width: 88%;
  480. margin: 0em 0em 0em -44%;
  481. }
  482. }
  483. @media only screen and (min-width: 992px) {
  484. .ui.large.modal {
  485. width: 88.8%;
  486. margin: 0em 0em 0em -44.4%;
  487. }
  488. }
  489. @media only screen and (min-width: 1400px) {
  490. .ui.large.modal {
  491. width: 67.2%;
  492. margin: 0em 0em 0em -33.6%;
  493. }
  494. }
  495. @media only screen and (min-width: 1900px) {
  496. .ui.large.modal {
  497. width: 50.4%;
  498. margin: 0em 0em 0em -25.2%;
  499. }
  500. }
  501. /*******************************
  502. Overrides
  503. *******************************/
  504. /*******************************
  505. Overrides
  506. *******************************/