gitea源码

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. /*!
  2. * # Fomantic-UI - Modal
  3. * http://github.com/fomantic/Fomantic-UI/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Modal
  12. *******************************/
  13. .ui.modal {
  14. position: absolute;
  15. display: none;
  16. z-index: 1001;
  17. text-align: left;
  18. background: #FFFFFF;
  19. border: none;
  20. box-shadow: 1px 3px 3px 0 rgba(0, 0, 0, 0.2), 1px 3px 15px 2px rgba(0, 0, 0, 0.2);
  21. transform-origin: 50% 25%;
  22. flex: 0 0 auto;
  23. border-radius: 0.28571429rem;
  24. -webkit-user-select: text;
  25. -moz-user-select: text;
  26. user-select: text;
  27. will-change: top, left, margin, transform, opacity;
  28. }
  29. .ui.modal > :first-child:not(.icon):not(.dimmer),
  30. .ui.modal > i.icon:first-child + *,
  31. .ui.modal > .dimmer:first-child + *:not(.icon),
  32. .ui.modal > .dimmer:first-child + i.icon + * {
  33. border-top-left-radius: 0.28571429rem;
  34. border-top-right-radius: 0.28571429rem;
  35. }
  36. .ui.modal > :last-child {
  37. border-bottom-left-radius: 0.28571429rem;
  38. border-bottom-right-radius: 0.28571429rem;
  39. }
  40. .ui.modal > .ui.dimmer {
  41. border-radius: inherit;
  42. }
  43. /*******************************
  44. Content
  45. *******************************/
  46. /*--------------
  47. Close
  48. ---------------*/
  49. .ui.modal > .close {
  50. cursor: pointer;
  51. position: absolute;
  52. top: -2.5rem;
  53. right: -2.5rem;
  54. z-index: 1;
  55. opacity: 0.8;
  56. font-size: 1.25em;
  57. color: #FFFFFF;
  58. width: 2.25rem;
  59. height: 2.25rem;
  60. padding: 0.625rem 0 0 0;
  61. }
  62. .ui.modal > .close:hover {
  63. opacity: 1;
  64. }
  65. /*--------------
  66. Header
  67. ---------------*/
  68. .ui.modal > .header {
  69. display: block;
  70. font-family: var(--fonts-regular);
  71. background: #FFFFFF;
  72. margin: 0;
  73. padding: 1.25rem 1.5rem;
  74. box-shadow: none;
  75. color: rgba(0, 0, 0, 0.85);
  76. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  77. }
  78. .ui.modal > .header:not(.ui) {
  79. font-size: 1.42857143rem;
  80. line-height: 1.28571429em;
  81. font-weight: 500;
  82. }
  83. /*--------------
  84. Content
  85. ---------------*/
  86. .ui.modal > .content {
  87. display: block;
  88. width: 100%;
  89. font-size: 1em;
  90. line-height: 1.4;
  91. padding: 1.5rem;
  92. background: #FFFFFF;
  93. }
  94. .ui.modal > .image.content {
  95. display: flex;
  96. flex-direction: row;
  97. }
  98. /* Image */
  99. .ui.modal > .content > .image {
  100. display: block;
  101. flex: 0 1 auto;
  102. width: '';
  103. align-self: start;
  104. max-width: 100%;
  105. }
  106. .ui.modal > [class*="stretched"] {
  107. align-self: stretch;
  108. }
  109. /* Description */
  110. .ui.modal > .content > .description {
  111. display: block;
  112. flex: 1 0 auto;
  113. min-width: 0;
  114. align-self: start;
  115. }
  116. .ui.modal > .content > i.icon + .description,
  117. .ui.modal > .content > .image + .description {
  118. flex: 0 1 auto;
  119. min-width: '';
  120. width: auto;
  121. padding-left: 2em;
  122. }
  123. /*rtl:ignore*/
  124. .ui.modal > .content > .image > i.icon {
  125. margin: 0;
  126. opacity: 1;
  127. width: auto;
  128. line-height: 1;
  129. font-size: 8rem;
  130. }
  131. /*--------------
  132. Actions
  133. ---------------*/
  134. .ui.modal > .actions {
  135. background: #F9FAFB;
  136. padding: 1rem 1rem;
  137. border-top: 1px solid rgba(34, 36, 38, 0.15);
  138. text-align: right;
  139. }
  140. .ui.modal .actions > .button:not(.fluid) {
  141. margin-left: 0.75em;
  142. }
  143. .ui.basic.modal > .actions {
  144. border-top: none;
  145. }
  146. /*-------------------
  147. Responsive
  148. --------------------*/
  149. /* Modal Width */
  150. @media only screen and (max-width: 767.98px) {
  151. .ui.modal:not(.fullscreen) {
  152. width: 95%;
  153. margin: 0 0 0 0;
  154. }
  155. }
  156. @media only screen and (min-width: 768px) {
  157. .ui.modal:not(.fullscreen) {
  158. width: 88%;
  159. margin: 0 0 0 0;
  160. }
  161. }
  162. @media only screen and (min-width: 992px) {
  163. .ui.modal:not(.fullscreen) {
  164. width: 850px;
  165. margin: 0 0 0 0;
  166. }
  167. }
  168. @media only screen and (min-width: 1200px) {
  169. .ui.modal:not(.fullscreen) {
  170. width: 900px;
  171. margin: 0 0 0 0;
  172. }
  173. }
  174. @media only screen and (min-width: 1920px) {
  175. .ui.modal:not(.fullscreen) {
  176. width: 950px;
  177. margin: 0 0 0 0;
  178. }
  179. }
  180. /* Tablet and Mobile */
  181. @media only screen and (max-width: 991.98px) {
  182. .ui.modal > .header {
  183. padding-right: 2.25rem;
  184. }
  185. .ui.modal > .close {
  186. top: 1.0535rem;
  187. right: 1rem;
  188. color: rgba(0, 0, 0, 0.87);
  189. }
  190. }
  191. /* Mobile */
  192. @media only screen and (max-width: 767.98px) {
  193. .ui.modal > .header {
  194. padding: 0.75rem 1rem !important;
  195. padding-right: 2.25rem !important;
  196. }
  197. .ui.overlay.fullscreen.modal > .content.content.content {
  198. min-height: calc(100vh - 8.1rem);
  199. }
  200. .ui.overlay.fullscreen.modal > .scrolling.content.content.content {
  201. max-height: calc(100vh - 8.1rem);
  202. }
  203. .ui.modal > .content {
  204. display: block;
  205. padding: 1rem !important;
  206. }
  207. .ui.modal > .close {
  208. top: 0.5rem !important;
  209. right: 0.5rem !important;
  210. }
  211. /*rtl:ignore*/
  212. .ui.modal .image.content {
  213. flex-direction: column;
  214. }
  215. .ui.modal > .content > .image {
  216. display: block;
  217. max-width: 100%;
  218. margin: 0 auto !important;
  219. text-align: center;
  220. padding: 0 0 1rem !important;
  221. }
  222. .ui.modal > .content > .image > i.icon {
  223. font-size: 5rem;
  224. text-align: center;
  225. }
  226. /*rtl:ignore*/
  227. .ui.modal > .content > .description {
  228. display: block;
  229. width: 100% !important;
  230. margin: 0 !important;
  231. padding: 1rem 0 !important;
  232. box-shadow: none;
  233. }
  234. /* Let Buttons Stack */
  235. .ui.modal > .actions {
  236. padding: 1rem 1rem 0rem !important;
  237. }
  238. .ui.modal .actions > .buttons,
  239. .ui.modal .actions > .button {
  240. margin-bottom: 1rem;
  241. }
  242. }
  243. /*--------------
  244. Coupling
  245. ---------------*/
  246. .ui.inverted.dimmer > .ui.modal {
  247. box-shadow: 1px 3px 10px 2px rgba(0, 0, 0, 0.2);
  248. }
  249. /*******************************
  250. Types
  251. *******************************/
  252. .ui.basic.modal {
  253. background-color: transparent;
  254. border: none;
  255. border-radius: 0;
  256. box-shadow: none !important;
  257. color: #FFFFFF;
  258. }
  259. .ui.basic.modal > .header,
  260. .ui.basic.modal > .content,
  261. .ui.basic.modal > .actions {
  262. background-color: transparent;
  263. }
  264. .ui.basic.modal > .header {
  265. color: #FFFFFF;
  266. border-bottom: none;
  267. }
  268. .ui.basic.modal > .close {
  269. top: 1rem;
  270. right: 1.5rem;
  271. color: #FFFFFF;
  272. }
  273. .ui.inverted.dimmer > .basic.modal {
  274. color: rgba(0, 0, 0, 0.87);
  275. }
  276. .ui.inverted.dimmer > .ui.basic.modal > .header {
  277. color: rgba(0, 0, 0, 0.85);
  278. }
  279. /* Resort to margin positioning if legacy */
  280. .ui.legacy.legacy.modal,
  281. .ui.legacy.legacy.page.dimmer > .ui.modal {
  282. left: 50% !important;
  283. }
  284. .ui.legacy.legacy.modal:not(.aligned),
  285. .ui.legacy.legacy.page.dimmer > .ui.modal:not(.aligned) {
  286. top: 50%;
  287. }
  288. .ui.legacy.legacy.page.dimmer > .ui.scrolling.modal:not(.aligned),
  289. .ui.page.dimmer > .ui.scrolling.legacy.legacy.modal:not(.aligned),
  290. .ui.top.aligned.legacy.legacy.page.dimmer > .ui.modal:not(.aligned),
  291. .ui.top.aligned.dimmer > .ui.legacy.legacy.modal:not(.aligned) {
  292. top: auto;
  293. }
  294. .ui.legacy.overlay.fullscreen.modal {
  295. margin-top: -2rem !important;
  296. }
  297. /*******************************
  298. States
  299. *******************************/
  300. .ui.loading.modal {
  301. display: block;
  302. visibility: hidden;
  303. z-index: -1;
  304. }
  305. .ui.active.modal {
  306. display: block;
  307. }
  308. /*******************************
  309. Variations
  310. *******************************/
  311. /*--------------
  312. Aligned
  313. ---------------*/
  314. .modals.dimmer .ui.top.aligned.modal {
  315. top: 5vh;
  316. }
  317. .modals.dimmer .ui.bottom.aligned.modal {
  318. bottom: 5vh;
  319. }
  320. @media only screen and (max-width: 767.98px) {
  321. .modals.dimmer .ui.top.aligned.modal {
  322. top: 1rem;
  323. }
  324. .modals.dimmer .ui.bottom.aligned.modal {
  325. bottom: 1rem;
  326. }
  327. }
  328. /*--------------
  329. Scrolling
  330. ---------------*/
  331. /* Scrolling Dimmer */
  332. .scrolling.dimmable.dimmed {
  333. overflow: hidden;
  334. }
  335. .scrolling.dimmable > .dimmer {
  336. justify-content: flex-start;
  337. position: fixed;
  338. }
  339. .scrolling.dimmable.dimmed > .dimmer {
  340. overflow: auto;
  341. -webkit-overflow-scrolling: touch;
  342. }
  343. .modals.dimmer .ui.scrolling.modal:not(.fullscreen) {
  344. margin: 2rem auto;
  345. }
  346. /* Fix for Firefox, Edge, IE11 */
  347. .modals.dimmer .ui.scrolling.modal:not([class*="overlay fullscreen"])::after {
  348. content: '\00A0';
  349. position: absolute;
  350. height: 2rem;
  351. }
  352. /* Undetached Scrolling */
  353. .scrolling.undetached.dimmable.dimmed {
  354. overflow: auto;
  355. -webkit-overflow-scrolling: touch;
  356. }
  357. .scrolling.undetached.dimmable.dimmed > .dimmer {
  358. overflow: hidden;
  359. }
  360. .scrolling.undetached.dimmable .ui.scrolling.modal:not(.fullscreen) {
  361. position: absolute;
  362. left: 50%;
  363. }
  364. /* Scrolling Content */
  365. .ui.modal > .scrolling.content {
  366. max-height: calc(80vh - 10rem);
  367. overflow: auto;
  368. }
  369. .ui.overlay.fullscreen.modal > .content {
  370. min-height: calc(100vh - 9.1rem);
  371. }
  372. .ui.overlay.fullscreen.modal > .scrolling.content {
  373. max-height: calc(100vh - 9.1rem);
  374. }
  375. /*--------------
  376. Full Screen
  377. ---------------*/
  378. .ui.fullscreen.modal {
  379. width: 95%;
  380. left: 2.5%;
  381. margin: 1em auto;
  382. }
  383. .ui.overlay.fullscreen.modal {
  384. width: 100%;
  385. left: 0;
  386. margin: 0 auto;
  387. top: 0;
  388. border-radius: 0;
  389. }
  390. .ui.modal > .close.inside + .header,
  391. .ui.fullscreen.modal > .header {
  392. padding-right: 2.25rem;
  393. }
  394. .ui.modal > .close.inside,
  395. .ui.fullscreen.modal > .close {
  396. top: 1.0535rem;
  397. right: 1rem;
  398. color: rgba(0, 0, 0, 0.87);
  399. }
  400. .ui.basic.fullscreen.modal > .close {
  401. color: #FFFFFF;
  402. }
  403. /*--------------
  404. Size
  405. ---------------*/
  406. .ui.modal {
  407. font-size: 1rem;
  408. }
  409. .ui.mini.modal > .header:not(.ui) {
  410. font-size: 1.3em;
  411. }
  412. @media only screen and (max-width: 767.98px) {
  413. .ui.mini.modal {
  414. width: 95%;
  415. margin: 0 0 0 0;
  416. }
  417. }
  418. @media only screen and (min-width: 768px) {
  419. .ui.mini.modal {
  420. width: 35.2%;
  421. margin: 0 0 0 0;
  422. }
  423. }
  424. @media only screen and (min-width: 992px) {
  425. .ui.mini.modal {
  426. width: 340px;
  427. margin: 0 0 0 0;
  428. }
  429. }
  430. @media only screen and (min-width: 1200px) {
  431. .ui.mini.modal {
  432. width: 360px;
  433. margin: 0 0 0 0;
  434. }
  435. }
  436. @media only screen and (min-width: 1920px) {
  437. .ui.mini.modal {
  438. width: 380px;
  439. margin: 0 0 0 0;
  440. }
  441. }
  442. .ui.tiny.modal > .header:not(.ui) {
  443. font-size: 1.3em;
  444. }
  445. @media only screen and (max-width: 767.98px) {
  446. .ui.tiny.modal {
  447. width: 95%;
  448. margin: 0 0 0 0;
  449. }
  450. }
  451. @media only screen and (min-width: 768px) {
  452. .ui.tiny.modal {
  453. width: 52.8%;
  454. margin: 0 0 0 0;
  455. }
  456. }
  457. @media only screen and (min-width: 992px) {
  458. .ui.tiny.modal {
  459. width: 510px;
  460. margin: 0 0 0 0;
  461. }
  462. }
  463. @media only screen and (min-width: 1200px) {
  464. .ui.tiny.modal {
  465. width: 540px;
  466. margin: 0 0 0 0;
  467. }
  468. }
  469. @media only screen and (min-width: 1920px) {
  470. .ui.tiny.modal {
  471. width: 570px;
  472. margin: 0 0 0 0;
  473. }
  474. }
  475. .ui.small.modal > .header:not(.ui) {
  476. font-size: 1.3em;
  477. }
  478. @media only screen and (max-width: 767.98px) {
  479. .ui.small.modal {
  480. width: 95%;
  481. margin: 0 0 0 0;
  482. }
  483. }
  484. @media only screen and (min-width: 768px) {
  485. .ui.small.modal {
  486. width: 70.4%;
  487. margin: 0 0 0 0;
  488. }
  489. }
  490. @media only screen and (min-width: 992px) {
  491. .ui.small.modal {
  492. width: 680px;
  493. margin: 0 0 0 0;
  494. }
  495. }
  496. @media only screen and (min-width: 1200px) {
  497. .ui.small.modal {
  498. width: 720px;
  499. margin: 0 0 0 0;
  500. }
  501. }
  502. @media only screen and (min-width: 1920px) {
  503. .ui.small.modal {
  504. width: 760px;
  505. margin: 0 0 0 0;
  506. }
  507. }
  508. .ui.large.modal > .header:not(.ui) {
  509. font-size: 1.6em;
  510. }
  511. @media only screen and (max-width: 767.98px) {
  512. .ui.large.modal {
  513. width: 95%;
  514. margin: 0 0 0 0;
  515. }
  516. }
  517. @media only screen and (min-width: 768px) {
  518. .ui.large.modal {
  519. width: 88%;
  520. margin: 0 0 0 0;
  521. }
  522. }
  523. @media only screen and (min-width: 992px) {
  524. .ui.large.modal {
  525. width: 1020px;
  526. margin: 0 0 0 0;
  527. }
  528. }
  529. @media only screen and (min-width: 1200px) {
  530. .ui.large.modal {
  531. width: 1080px;
  532. margin: 0 0 0 0;
  533. }
  534. }
  535. @media only screen and (min-width: 1920px) {
  536. .ui.large.modal {
  537. width: 1140px;
  538. margin: 0 0 0 0;
  539. }
  540. }
  541. .ui.big.modal > .header:not(.ui) {
  542. font-size: 1.6em;
  543. }
  544. @media only screen and (max-width: 767.98px) {
  545. .ui.big.modal {
  546. width: 95%;
  547. margin: 0 0 0 0;
  548. }
  549. }
  550. @media only screen and (min-width: 768px) {
  551. .ui.big.modal {
  552. width: 88%;
  553. margin: 0 0 0 0;
  554. }
  555. }
  556. @media only screen and (min-width: 992px) {
  557. .ui.big.modal {
  558. width: 1190px;
  559. margin: 0 0 0 0;
  560. }
  561. }
  562. @media only screen and (min-width: 1200px) {
  563. .ui.big.modal {
  564. width: 1260px;
  565. margin: 0 0 0 0;
  566. }
  567. }
  568. @media only screen and (min-width: 1920px) {
  569. .ui.big.modal {
  570. width: 1330px;
  571. margin: 0 0 0 0;
  572. }
  573. }
  574. .ui.huge.modal > .header:not(.ui) {
  575. font-size: 1.6em;
  576. }
  577. @media only screen and (max-width: 767.98px) {
  578. .ui.huge.modal {
  579. width: 95%;
  580. margin: 0 0 0 0;
  581. }
  582. }
  583. @media only screen and (min-width: 768px) {
  584. .ui.huge.modal {
  585. width: 88%;
  586. margin: 0 0 0 0;
  587. }
  588. }
  589. @media only screen and (min-width: 992px) {
  590. .ui.huge.modal {
  591. width: 1360px;
  592. margin: 0 0 0 0;
  593. }
  594. }
  595. @media only screen and (min-width: 1200px) {
  596. .ui.huge.modal {
  597. width: 1440px;
  598. margin: 0 0 0 0;
  599. }
  600. }
  601. @media only screen and (min-width: 1920px) {
  602. .ui.huge.modal {
  603. width: 1520px;
  604. margin: 0 0 0 0;
  605. }
  606. }
  607. .ui.massive.modal > .header:not(.ui) {
  608. font-size: 1.8em;
  609. }
  610. @media only screen and (max-width: 767.98px) {
  611. .ui.massive.modal {
  612. width: 95%;
  613. margin: 0 0 0 0;
  614. }
  615. }
  616. @media only screen and (min-width: 768px) {
  617. .ui.massive.modal {
  618. width: 88%;
  619. margin: 0 0 0 0;
  620. }
  621. }
  622. @media only screen and (min-width: 992px) {
  623. .ui.massive.modal {
  624. width: 1530px;
  625. margin: 0 0 0 0;
  626. }
  627. }
  628. @media only screen and (min-width: 1200px) {
  629. .ui.massive.modal {
  630. width: 1620px;
  631. margin: 0 0 0 0;
  632. }
  633. }
  634. @media only screen and (min-width: 1920px) {
  635. .ui.massive.modal {
  636. width: 1710px;
  637. margin: 0 0 0 0;
  638. }
  639. }
  640. /*******************************
  641. Theme Overrides
  642. *******************************/
  643. /*******************************
  644. Site Overrides
  645. *******************************/