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.

464 lines
11 KiB

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