gogs.css 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415
  1. /*!
  2. * Gogs - Go Git Service (http://gogits.org)
  3. * Copyright 2014 Gogs.
  4. * Licensed under MIT (https://github.com/gogits/gogs/blob/master/LICENSE)
  5. */
  6. body {
  7. background: #F6F6F6;
  8. }
  9. html, body {
  10. height: 100%;
  11. font-family: Helvetica, Arial, sans-serif;
  12. }
  13. /* override bs3 */
  14. .tooltip-inner {
  15. border-radius: 3px;
  16. background: #333;
  17. border: none;
  18. }
  19. .tooltip-arrow {
  20. border-bottom-color: #333 !important;
  21. }
  22. .tooltip-arrow:before {
  23. border-bottom-color: transparent !important;
  24. }
  25. .fa {
  26. margin: 0 .5em;
  27. }
  28. .fa-m {
  29. margin: 0;
  30. }
  31. .list-group .list-group-item {
  32. background-color: transparent;
  33. }
  34. .btn {
  35. cursor: pointer;
  36. }
  37. .panel-default .panel-heading {
  38. background-color: #FAFAFA;
  39. border-bottom: 1px solid #DDD;
  40. font-weight: bold;
  41. }
  42. /* gogits nav header */
  43. .masthead {
  44. background-color: #428bca;
  45. box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1);
  46. margin: 0;
  47. }
  48. /* gogits nav item link */
  49. .nav-item {
  50. position: relative;
  51. display: inline-block;
  52. padding: 10px;
  53. font-weight: bold;
  54. color: #EEE;
  55. font-size: 100%;
  56. height: 46px;
  57. }
  58. #nav-logo {
  59. padding-left: 0;
  60. padding-right: 0;
  61. margin-right: 10px;
  62. }
  63. .nav-item:hover,
  64. .nav-item:focus {
  65. color: #fff;
  66. text-decoration: none;
  67. }
  68. .nav-item.navbar-right {
  69. margin-top: 3px;
  70. }
  71. .nav-item.navbar-btn {
  72. cursor: pointer;
  73. margin-top: 8px;
  74. padding: 5px 15px;
  75. height: 30px;
  76. }
  77. .nav-item.navbar-right .fa {
  78. margin: 0;
  79. }
  80. /* gogits nav item active status */
  81. #masthead .nav .active {
  82. color: #fff;
  83. }
  84. #masthead .nav .active:after {
  85. position: absolute;
  86. bottom: -1px;
  87. left: 50%;
  88. width: 0;
  89. height: 0;
  90. margin-left: -5px;
  91. vertical-align: middle;
  92. content: " ";
  93. border-right: 5px solid transparent;
  94. border-bottom: 5px solid;
  95. border-left: 5px solid transparent;
  96. }
  97. #nav-logo:after {
  98. bottom: -4px !important;
  99. }
  100. #nav-avatar:after {
  101. bottom: -4px !important;
  102. }
  103. .nav .tooltip {
  104. border: none;
  105. }
  106. /* gogits logo */
  107. #nav-avatar {
  108. margin-top: 0;
  109. }
  110. #logo, #nav-avatar img {
  111. width: 28px;
  112. height: 28px;
  113. }
  114. #nav-out {
  115. margin-top: 10px;
  116. padding: 5px 0;
  117. margin-left: 10px;
  118. height: 28px;
  119. float: right;
  120. }
  121. #nav-signin, #nav-signup {
  122. float: right;
  123. margin-left: 1em;
  124. }
  125. #nav-out .fa {
  126. vertical-align: -10%;
  127. margin: 0 .5em;
  128. }
  129. /* gogits body */
  130. #body {
  131. padding-bottom: 60px;
  132. margin-top: 30px;
  133. }
  134. #body .btn-default {
  135. background-color: #FFF;
  136. background-image: linear-gradient(to bottom, #FFF 0, #FAFAFA 100%);
  137. }
  138. #body-nav {
  139. background-color: #FFF;
  140. border-bottom: 1px solid #DDD;
  141. height: 66px
  142. }
  143. #body-nav .nav {
  144. font-size: 14px;
  145. margin-top: 12px;
  146. }
  147. #body-nav .nav-pills li a {
  148. color: #444;
  149. }
  150. #body-nav .nav-pills li.active a {
  151. font-weight: bold;
  152. border-bottom: 2px solid #d26911;
  153. background-color: transparent;
  154. color: #444;
  155. }
  156. #body-nav .nav-pills li:hover a {
  157. background-color: transparent;
  158. text-decoration: underline;
  159. }
  160. /* gogits login card */
  161. .card {
  162. margin: auto;
  163. padding: 30px;
  164. background: #fff;
  165. border: 1px solid #ccc;
  166. border-radius: 5px;
  167. box-sizing: border-box;
  168. }
  169. .card h3 {
  170. margin-top: 0;
  171. margin-bottom: 30px;
  172. padding-bottom: 20px;
  173. border-bottom: 1px solid #ccc;
  174. }
  175. #login-card {
  176. width: 600px;
  177. }
  178. #login-card .form-control {
  179. padding: 6px 12px;
  180. box-sizing: content-box;
  181. }
  182. #login-card .control-label {
  183. height: 44px;
  184. line-height: 30px;
  185. }
  186. #install-card {
  187. width: 800px;
  188. }
  189. #install-card .form-group {
  190. margin-left: 0;
  191. margin-right: 0;
  192. }
  193. .card .btn {
  194. cursor: pointer;
  195. margin-right: 1.2em;
  196. }
  197. #social-login {
  198. margin-top: 30px;
  199. padding-top: 20px;
  200. border-top: 1px solid #ccc;
  201. }
  202. #social-login .btn {
  203. float: none;
  204. margin: auto;
  205. }
  206. /* gogs-user-profile */
  207. #user-avatar {
  208. width: 200px;
  209. height: 200px;
  210. border-radius: 6px;
  211. }
  212. #user-avatar-commit {
  213. width: 16px;
  214. height: 16px;
  215. border-radius: 2px;
  216. }
  217. #user-name {
  218. margin-top: 20px;
  219. font-size: 1.6em;
  220. font-weight: bold;
  221. margin-bottom: 20px;
  222. }
  223. #user-profile .profile-info .list-group-item {
  224. background-color: transparent;
  225. padding-top: 18px;
  226. color: #666;
  227. }
  228. #user-profile .profile-info .list-group-item a {
  229. margin: 0;
  230. padding: 0;
  231. display: inline;
  232. color: #0093c4;
  233. }
  234. #user-profile .profile-info .list-group {
  235. border-top: 1px solid #ccc;
  236. padding-bottom: 18px;
  237. border-bottom: 1px solid #ccc;
  238. padding-left: 18px;
  239. padding-right: 18px;
  240. }
  241. #user-activity .tab-pane {
  242. padding: 20px;
  243. }
  244. #user-act-tabs li.active a {
  245. border-bottom-color: #ddd;
  246. }
  247. /* gogits repo create */
  248. #repo-create {
  249. width: 800px;
  250. }
  251. #repo-create textarea[name=desc] {
  252. height: 8em;
  253. }
  254. #repo-import-auth{
  255. width: 100%;
  256. margin-top: 48px;
  257. box-sizing: border-box;
  258. }
  259. #repo-import-auth .form-group{
  260. box-sizing: border-box;
  261. margin-left: 0;
  262. margin-right: 0;
  263. }
  264. /* gogits user setting */
  265. #user-setting-nav > h4, #user-setting-container > h4, #user-setting-container > div > h4,
  266. #ssh-keys > h4, #user-delete > h4, #repo-setting-container .tab-pane > h4 {
  267. padding-bottom: 18px;
  268. margin-bottom: 18px;
  269. border-bottom: 1px solid #CCC;
  270. }
  271. #user-setting-nav .list-group .list-group-item a {
  272. margin-left: 0;
  273. padding: .6em;
  274. font-size: 14px;
  275. color: #3B73AF;
  276. }
  277. #user-setting-nav .list-group .list-group-item {
  278. background-color: transparent;
  279. }
  280. #user-setting-nav .list-group .list-group-item-success a {
  281. font-weight: bold;
  282. color: #444;
  283. }
  284. .admin-nav {
  285. background-color: #FFF;
  286. padding-top: 10px;
  287. padding-left: 0;
  288. padding-right: 0;
  289. border: 1px solid #D8D8D8;
  290. }
  291. .admin-nav li {
  292. margin-bottom: 8px;
  293. border-left: 4px solid transparent;
  294. }
  295. .admin-nav li:hover {
  296. border-left-color: #EEE;
  297. }
  298. .admin-nav li.active:hover {
  299. border-left: 4px solid #DD4B39;
  300. }
  301. #repo-setting-container .form-horizontal label {
  302. line-height: 30px;
  303. }
  304. /* gogits user ssh keys */
  305. #ssh-keys .list-group-item {
  306. padding: 15px 0;
  307. border-bottom: 1px solid #DDD;
  308. }
  309. #ssh-keys .list-group-item .delete {
  310. margin: -5px 50px 0;
  311. }
  312. #ssh-keys .list-group-item:after {
  313. clear: both;
  314. }
  315. #ssh-keys .name {
  316. font-size: 14px;
  317. font-weight: bold;
  318. }
  319. #ssh-keys .print {
  320. padding-left: 1em;
  321. color: #888;
  322. }
  323. #ssh-add {
  324. display: inline-block;
  325. color: white;
  326. cursor: pointer;
  327. margin-left: 0;
  328. border-radius: 3px;
  329. }
  330. #ssh-form textarea {
  331. height: 16em;
  332. }
  333. /* #feed */
  334. #feed-right .repo-panel .panel-heading .btn {
  335. margin-top: -4px;
  336. }
  337. #feed-right .repo-panel .panel-body {
  338. padding: 0;
  339. }
  340. #feed-right .repo-panel .list-group {
  341. margin-bottom: 0;
  342. }
  343. #feed-right .repo-panel .list-group-item a {
  344. display: block;
  345. margin-left: 0;
  346. background-color: transparent;
  347. padding-left: 0;
  348. font-weight: bold;
  349. }
  350. #feed-right .repo-panel .list-group-item .fa {
  351. color: #666;
  352. }
  353. #feed-right .repo-panel .list-group-item {
  354. font-size: 14px;
  355. line-height: 32px;
  356. border-bottom: 1px solid #DDD;
  357. padding-left: 15px;
  358. clear: both;
  359. }
  360. #feed-right .repo-panel .list-group-item:last-child {
  361. border-bottom: none;
  362. }
  363. #feed-right .repo-panel .list-group-item:hover {
  364. background-color: #eafffd;
  365. background-color: rgba(65, 131, 196, 0.1);
  366. }
  367. #feed-right .repo-panel span.stars {
  368. color: #666;
  369. margin-right: 1em;
  370. }
  371. #user-dashboard-repo-new .btn-sm.dropdown-toggle {
  372. padding: 3px 8px;
  373. }
  374. #user-dashboard-repo-new .dropdown-menu {
  375. padding: 0;
  376. margin: 0;
  377. }
  378. #user-dashboard-repo-new ul {
  379. margin: 0;
  380. width: 200px;
  381. }
  382. #user-dashboard-repo-new li a {
  383. line-height: 36px;
  384. display: block;
  385. padding: 0 18px;
  386. color: #444;
  387. }
  388. #user-dashboard-repo-new li a:hover {
  389. background: #0093c4;
  390. color: #FFF;
  391. }
  392. /* gogits repo single page */
  393. #body-nav.repo-nav {
  394. padding-top: 16px;
  395. padding-bottom: 30px;
  396. height: auto;
  397. }
  398. .repo-nav .name {
  399. margin-top: 15px;
  400. }
  401. .repo-nav .desc {
  402. color: #888;
  403. margin-bottom: 0;
  404. }
  405. .repo-nav h3 .fa {
  406. color: #BBB;
  407. margin-left: 0;
  408. }
  409. .repo-nav .actions {
  410. padding-top: 20px;
  411. }
  412. .repo-nav .btn-default {
  413. font-family: Tahoma, Arial, sans-serif;
  414. }
  415. #repo-watching .dropdown-menu {
  416. width: 280px;
  417. padding: 0;
  418. }
  419. #repo-watching .dropdown-menu .dropdown-item:hover .dropdown-header, #repo-watching .dropdown-item .dropdown-header.text-primary {
  420. color: rgb(65, 131, 196);
  421. cursor: pointer;
  422. }
  423. #repo-watching .dropdown-menu .description {
  424. padding: 0 20px;
  425. color: #888;
  426. }
  427. #repo-watching .dropdown-menu .dropdown-header {
  428. color: #444;
  429. font-weight: bold;
  430. font-size: 14px;
  431. margin-bottom: 4px;
  432. }
  433. #repo-toolbar {
  434. border-bottom: 1px solid #DDD;
  435. background-color: #FFF;
  436. height: 40px;
  437. font-size: 14px;
  438. }
  439. #repo-toolbar .navbar-default {
  440. border: none;
  441. height: 39px;
  442. }
  443. #repo-toolbar .nav > li > a {
  444. height: 39px;
  445. }
  446. #repo-toolbar .nav .tmp a:hover {
  447. text-decoration: none;
  448. }
  449. #repo-toolbar .nav .tmp .btn {
  450. margin-top: -2px;
  451. }
  452. #repo-toolbar .nav .active {
  453. color: #F6F6F6;
  454. }
  455. #repo-toolbar .nav > .active > a:after {
  456. border-bottom-color: #999;
  457. }
  458. #repo-toolbar .navbar.nav-toolbar {
  459. margin-bottom: 0;
  460. }
  461. #repo-toolbar .navbar-collapse {
  462. padding: 0;
  463. }
  464. .activity-list {
  465. font-size: 14px;
  466. }
  467. .activity-list .icon {
  468. font-size: 20px;
  469. color: #aaa;
  470. float: left;
  471. }
  472. .activity-list .info {
  473. margin: 0 0 0 40px;
  474. line-height: 1.7em;
  475. }
  476. .activity-list .meta {
  477. color: #aaa;
  478. }
  479. .activity-list li {
  480. padding: 15px 0;
  481. border-top: 1px solid #ddd;
  482. }
  483. .activity-list li:first-child {
  484. border-top: none;
  485. }
  486. .repo-list li {
  487. padding: 15px 0;
  488. border-top: 1px solid #ddd;
  489. }
  490. .repo-list li:first-child {
  491. border-top: none;
  492. }
  493. .repo-list h4 {
  494. font-weight: bold;
  495. font-size: 24px;
  496. }
  497. .repo-list .meta {
  498. margin: 15px 0 0;
  499. font-size: 14px;
  500. }
  501. .repo-list .desc {
  502. font-size: 15px;
  503. }
  504. .repo-list .meta .fa {
  505. margin: 0 0 0 20px;
  506. }
  507. .repo-list .meta,
  508. .repo-list .info {
  509. color: #999;
  510. }
  511. .popover .repo-clone-div {
  512. min-width: 200px;
  513. }
  514. #repo-clone .dropdown-menu {
  515. width: 400px;
  516. padding: 20px;
  517. }
  518. #repo-clone .input-group {
  519. margin-bottom: 15px;
  520. }
  521. /* #source */
  522. #source, #commits {
  523. margin-top: -20px;
  524. }
  525. #source .source-toolbar:after {
  526. clear: both;
  527. }
  528. #source .source-toolbar .branch-switch {
  529. display: inline-block;
  530. }
  531. #source .source-toolbar .breadcrumb {
  532. margin: 0 .5em;
  533. padding: 6px 15px;
  534. font-size: 16px;
  535. vertical-align: middle;
  536. display: inline-block;
  537. background-color: transparent;
  538. }
  539. #source .source-toolbar,
  540. #source .info-box,
  541. #source .file-content {
  542. margin: 0 0 10px;
  543. }
  544. .info-box .info-head,
  545. .info-box .info-content {
  546. padding: 9px 20px;
  547. }
  548. .info-box .info-head {
  549. font-weight: normal;
  550. }
  551. .info-box .info-content a,
  552. .info-box .info-head a {
  553. color: #666;
  554. }
  555. .file-list {
  556. background-color: #fafafa;
  557. }
  558. .file-list .icon {
  559. font-size: 17px;
  560. padding: 5px 0 4px 10px;
  561. width: 50px;
  562. color: #999;
  563. text-align: right;
  564. }
  565. .file-list .wrap {
  566. display: inline-block;
  567. overflow: hidden;
  568. text-overflow: ellipsis;
  569. vertical-align: top;
  570. white-space: nowrap;
  571. }
  572. .file-list .name .wrap {
  573. max-width: 180px;
  574. }
  575. .file-list .text .wrap {
  576. max-width: 450px;
  577. }
  578. .file-list .date .wrap {
  579. max-width: 120px;
  580. padding: 0 20px 0 0;
  581. }
  582. .file-list .date {
  583. text-align: right;
  584. }
  585. .file-content .file-head {
  586. font-size: 18px;
  587. }
  588. .file-content .file-head .icon {
  589. color: #666;
  590. margin: 0 .5em 0 0;
  591. }
  592. .file-content .file-head .file-size {
  593. font-size: 13px;
  594. color: #888;
  595. margin-left: 1em;
  596. }
  597. .file-content .file-body {
  598. padding: 30px 30px 50px;
  599. border: none;
  600. background-color: #FFF;
  601. overflow: auto;
  602. overflow-x: auto;
  603. overflow-y: hidden;
  604. }
  605. .file-content .file-body.file-code pre {
  606. background-color: #FFF;
  607. border: none;
  608. }
  609. .file-content .file-body.file-code {
  610. padding: 0;
  611. }
  612. .file-content .file-body.file-code .lines-code > pre {
  613. border: none;
  614. background: none;
  615. border-left: 1px solid #ddd;
  616. }
  617. .file-content .file-body.file-code .lines-code ol.linenums > .active {
  618. background: #ffffdd;
  619. }
  620. .file-content .file-body.file-code .lines-num {
  621. text-align: right;
  622. color: #999;
  623. background: #fafafa;
  624. width: 1%;
  625. }
  626. .file-content .file-body.file-code .lines-ellipsis {
  627. background-color: #FAFAFA;
  628. color: #999;
  629. width: 1%;
  630. }
  631. .file-content .file-body.file-code .lines-num span {
  632. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  633. line-height: 1.6;
  634. padding: 0 8px 0 10px;
  635. cursor: pointer;
  636. display: block;
  637. margin-top: 2px;
  638. font-size: 90%;
  639. }
  640. .file-content .file-body.file-code .lines-num span:first-child {
  641. margin-top: 0;
  642. }
  643. .file-content .file-body.file-code > table {
  644. width: 100%;
  645. }
  646. .file-content .file-body.file-code > table > tbody > tr,
  647. .file-content .file-body.file-code > table > tbody > tr > td,
  648. .file-content .file-body.file-code > table {
  649. border: none;
  650. background: none;
  651. }
  652. .branch-list th, .commit-list th {
  653. background-color: #FFF;
  654. line-height: 28px !important;
  655. }
  656. .branch-list td {
  657. line-height: 36px !important;
  658. }
  659. .branch-box tr:hover td, .commit-box tr:hover td {
  660. background-color: rgba(19, 95, 215, 0.06) !important;
  661. }
  662. .branch-box .name, .commit-box .author {
  663. padding-left: 20px;
  664. }
  665. .branch-box .name {
  666. font-size: 15px;
  667. }
  668. .branch-box .action {
  669. width: 150px;
  670. }
  671. .branch-box td.date, .branch-box td.behind, .branch-box td.ahead {
  672. width: 120px;
  673. font-family: Verdana, Arial, sans-serif;
  674. }
  675. .branch-box .graph {
  676. display: block;
  677. height: 3px;
  678. }
  679. .branch-box .behind {
  680. text-align: right;
  681. direction: rtl;
  682. }
  683. .branch-box .behind .graph {
  684. background-color: #888;
  685. }
  686. .branch-box .ahead .graph {
  687. background-color: #0093c4;
  688. }
  689. .branch-box .branch-main {
  690. background-color: #444;
  691. color: #FFF;
  692. border-color: #444;
  693. }
  694. .branch-box .branch-main a {
  695. color: #FFF;
  696. }
  697. .branch-box .branch-main .name .btn {
  698. margin-left: .5em;
  699. }
  700. .commit-box .avatar, .diff-head-box .avatar {
  701. width: 20px;
  702. height: 20px;
  703. margin-right: 8px;
  704. vertical-align: top;
  705. }
  706. .commit-box .search {
  707. margin-top: 3px;
  708. }
  709. .commit-box td {
  710. background-color: #FFF;
  711. }
  712. .commit-list .date {
  713. width: 120px;
  714. }
  715. .commit-list .author {
  716. min-width: 180px;
  717. }
  718. .commit-list .sha a {
  719. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  720. font-size: 14px;
  721. }
  722. .guide-box pre, .guide-box .input-group {
  723. margin-top: 20px;
  724. margin-bottom: 30px;
  725. line-height: 24px;
  726. }
  727. .guide-box input[readonly] {
  728. background-color: #FFF;
  729. }
  730. .guide-box, .diff-head-box {
  731. margin-top: 4px;
  732. }
  733. .diff-head-box h4 {
  734. margin-top: 0;
  735. margin-bottom: 0;
  736. line-height: 26px;
  737. }
  738. .diff-head-box p {
  739. margin-bottom: 0;
  740. }
  741. .diff-head-box .sha {
  742. margin-left: 8px;
  743. }
  744. .diff-head-box a.name {
  745. color: #444;
  746. margin-right: 8px;
  747. }
  748. .diff-head-box span.time {
  749. color: #888;
  750. }
  751. .diff-detail-box {
  752. margin-bottom: 16px;
  753. line-height: 30px;
  754. }
  755. .diff-detail-box span.status {
  756. display: inline-block;
  757. width: 12px;
  758. height: 12px;
  759. margin-right: 8px;
  760. vertical-align: middle;
  761. }
  762. .diff-detail-box ol {
  763. padding-left: 0;
  764. margin-bottom: 28px;
  765. }
  766. .diff-detail-box li {
  767. list-style: none;
  768. padding-bottom: 4px;
  769. margin-bottom: 4px;
  770. border-bottom: 1px dashed #DDD;
  771. padding-left: 6px;
  772. }
  773. .diff-detail-box span.status.modify {
  774. background-color: #f0db88;
  775. }
  776. .diff-detail-box span.status.add {
  777. background-color: #b4e2b4;
  778. }
  779. .diff-detail-box span.status.del {
  780. background-color: #e9aeae;
  781. }
  782. .diff-detail-box span.status.rename {
  783. background-color: #dad8ff;
  784. }
  785. .diff-file-box .panel-heading {
  786. padding: 10px 20px;
  787. line-height: 26px;
  788. }
  789. .diff-box .count {
  790. margin-right: 12px;
  791. }
  792. .diff-box .count .bar {
  793. width: 40px;
  794. display: inline-block;
  795. margin: 2px 4px 0 4px;
  796. vertical-align: text-top;
  797. }
  798. .diff-box .file {
  799. color: #888;
  800. }
  801. #source .file-content.diff-file-box {
  802. margin-bottom: 20px;
  803. }
  804. .diff-box .count .bar .add {
  805. background-color: #77c64a;
  806. height: 12px;
  807. }
  808. .diff-box .count .bar .del, .diff-box .count .bar {
  809. background-color: #e75316;
  810. height: 12px;
  811. }
  812. .diff-file-box .file-body.file-code .lines-code > pre {
  813. margin: 0;
  814. padding: 3px;
  815. }
  816. .diff-file-box .file-body.file-code .lines-num-old {
  817. border-right: 1px solid #DDD;
  818. }
  819. .diff-file-box .code-bin td {
  820. padding: 20px;
  821. }
  822. .diff-file-box .code-diff tbody tr.tag-code td, .diff-file-box .code-diff tbody tr.tag-code pre {
  823. background-color: #E0E0E0 !important;
  824. border-color: #ADADAD !important;
  825. }
  826. .diff-file-box .code-diff tbody tr.add-code td, .diff-file-box .code-diff tbody tr.add-code pre {
  827. background-color: #d1ffd6 !important;
  828. border-color: #b4e2b4 !important;
  829. }
  830. .diff-file-box .code-diff tbody tr.del-code td, .diff-file-box .code-diff tbody tr.del-code pre {
  831. background-color: #ffe2dd !important;
  832. border-color: #e9aeae !important;
  833. }
  834. .diff-file-box .code-diff tbody tr:hover td, .diff-file-box .code-diff tbody tr:hover pre {
  835. background-color: #fff8d2 !important;
  836. border-color: #f0db88 !important;
  837. }
  838. .diff-file-box .ellipsis-code pre {
  839. color: #AAA;
  840. }
  841. /* issue */
  842. #issue-create-form .avatar {
  843. width: 50px;
  844. height: 50px;
  845. }
  846. #issue-create-form .panel-body {
  847. padding: 15px 0 0 0;
  848. }
  849. #issue-create-form .panel-body.form-group, #issue-create-form .tab-pane .form-group {
  850. margin-bottom: 0;
  851. }
  852. #issue-create-form .nav-tabs, #issue .issue-reply .nav-tabs {
  853. margin-bottom: 10px;
  854. }
  855. #issue .md-help {
  856. margin-top: 6px;
  857. }
  858. #issue .filter-list a {
  859. padding: 6px 10px;
  860. font-size: 14px;
  861. display: block;
  862. margin-bottom: 6px;
  863. border-radius: 3px;
  864. color: #444;
  865. }
  866. #issue .filter-list a.sm {
  867. font-size: 13px;
  868. }
  869. #issue .filter-list hr {
  870. border-color: #CCC;
  871. }
  872. #issue .filter-list a:hover {
  873. background-color: #DDD;
  874. text-decoration: none;
  875. }
  876. #issue .filter-list a.active {
  877. background-color: #4183c4;
  878. color: #FFF;
  879. }
  880. #issue .filter-option {
  881. margin-bottom: 12px;
  882. }
  883. #issue .list-group .list-group-item {
  884. background-color: #FFF;
  885. }
  886. #issue .issue-item:hover {
  887. background-color: rgba(19, 95, 215, 0.03);
  888. }
  889. #issue .list-group .list-group-item.unread {
  890. border-left: 2px solid #DD4B39;
  891. }
  892. #issue .issue-item .title {
  893. margin-bottom: 16px;
  894. font-weight: bold;
  895. }
  896. #issue .issue-item h5.title a {
  897. color: #444;
  898. }
  899. #issue .issue-item .info span {
  900. margin-right: 12px;
  901. color: #888;
  902. line-height: 20px;
  903. }
  904. #issue .issue-item .info a, #issue .issue-item .number {
  905. color: #888;
  906. }
  907. #issue .issue-item .number {
  908. margin-top: 8px;
  909. }
  910. #issue .issue-item .avatar {
  911. margin-right: 8px;
  912. width: 20px;
  913. height: 20px;
  914. vertical-align: top;
  915. }
  916. #issue .issue-whole .title {
  917. margin-top: 0;
  918. font-size: 28px;
  919. }
  920. #issue .issue-whole .number {
  921. font-size: 26px;
  922. color: #AAA;
  923. }
  924. #issue .issue-head .author .avatar {
  925. width: 48px;
  926. height: 48px;
  927. margin-right: 16px;
  928. }
  929. #issue .issue-head .info {
  930. width: 99%;
  931. margin-top: 10px;
  932. padding-left: 74px;
  933. margin-bottom: 16px;
  934. padding-bottom: 20px;
  935. border-bottom: 1px solid #CCC;
  936. }
  937. #issue .issue-head .status {
  938. font-size: 16px;
  939. font-weight: bold;
  940. padding: 6px 18px;
  941. border-radius: 3px;
  942. }
  943. #issue .issue-head a.author {
  944. margin-left: .6em;
  945. color: #444;
  946. }
  947. #issue .issue-main {
  948. padding-left: 0;
  949. }
  950. #issue .issue-content {
  951. border-bottom-width: 1px;
  952. }
  953. #issue .issue-child .user .avatar {
  954. width: 42px;
  955. height: 42px;
  956. margin-right: 12px;
  957. }
  958. #issue .issue-child .issue-content {
  959. margin-left: 56px;
  960. }
  961. #issue .issue-child .panel-heading {
  962. padding-top: 10px;
  963. padding-bottom: 10px;
  964. font-weight: normal;
  965. }
  966. #issue .issue-child .panel-heading .user, #issue .issue-closed a.user, #issue .issue-opened a.user {
  967. font-weight: bold;
  968. }
  969. #issue .issue-line {
  970. border-color: #CCC;
  971. }
  972. #issue .issue-is-closed .issue-line {
  973. display: none;
  974. }
  975. #issue .issue-head .info .btn {
  976. margin-top: -8px;
  977. margin-left: 8px;
  978. }
  979. #issue .issue-action {
  980. padding-left: 8px;
  981. color: #888;
  982. width: 24px;
  983. }
  984. #issue-edit-title {
  985. width: 60%;
  986. }
  987. #issue .issue-closed .issue-content, #issue .issue-opened .issue-content {
  988. line-height: 42px;
  989. }
  990. #issue .issue-closed, #issue .issue-opened {
  991. border-bottom: 2px solid #CCC;
  992. margin-bottom: 24px;
  993. padding-bottom: 24px;
  994. }
  995. #issue .issue-closed .label-danger, #issue .issue-opened .label-success {
  996. margin: 0 .8em;
  997. }
  998. /* wrapper and footer */
  999. #wrapper {
  1000. min-height: 100%;
  1001. height: auto !important;
  1002. height: 100%;
  1003. margin: 0 auto -100px;
  1004. padding: 0 0 100px;
  1005. }
  1006. #footer {
  1007. background: #fff;
  1008. -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  1009. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);;
  1010. height: 100px;
  1011. }
  1012. #footer .footer-wrap {
  1013. padding: 20px 15px;
  1014. }
  1015. #footer a {
  1016. color: #000;
  1017. }
  1018. /* admin dashboard/configuration */
  1019. .admin-dl-horizontal > dt {
  1020. width: 220px;
  1021. }
  1022. .admin-dl-horizontal > dd {
  1023. margin-left: 240px;
  1024. }
  1025. /* release page */
  1026. #release-head {
  1027. margin-top: 0;
  1028. padding-bottom: 30px;
  1029. margin-bottom: 0;
  1030. border-bottom: 1px solid #DDD;
  1031. }
  1032. #release .release-item .col-md-10 {
  1033. border-left: 1px solid #DDD;
  1034. position: relative;
  1035. }
  1036. #release .release-item .commit, #release .release-item .tag {
  1037. display: block;
  1038. margin-top: 12px;
  1039. }
  1040. #release .release-item.release-tag .commit {
  1041. margin-top: 6px;
  1042. }
  1043. #release .release-item .title {
  1044. line-height: 30px;
  1045. margin-top: 0;
  1046. }
  1047. #release .release-item .dot {
  1048. width: 9px;
  1049. height: 9px;
  1050. background-color: #ccc;
  1051. z-index: 999;
  1052. position: absolute;
  1053. display: block;
  1054. left: -5px;
  1055. top: 30px;
  1056. border-radius: 6px;
  1057. border: 1px solid #FFF;
  1058. }
  1059. #release .release-item > div {
  1060. padding-top: 20px;
  1061. padding-bottom: 20px;
  1062. }
  1063. #release .release-item p.info {
  1064. line-height: 20px;
  1065. color: #666;
  1066. margin-bottom: 18px;
  1067. }
  1068. #release .release-item div.desc {
  1069. margin-bottom: 18px;
  1070. }
  1071. #release .release-item p.info > *, #release .release-item .download a {
  1072. margin-right: 12px;
  1073. }
  1074. #release .release-item .info .avatar {
  1075. vertical-align: middle;
  1076. }
  1077. #release-new-form {
  1078. margin-top: 24px;
  1079. }
  1080. #release-new-form .target-at {
  1081. margin: 0 1em;
  1082. }
  1083. #release-new-form .target-text {
  1084. color: #888;
  1085. }
  1086. #release-new-target-branch-list {
  1087. padding-top: 0;
  1088. padding-bottom: 0;
  1089. min-width: 200px;
  1090. }
  1091. #release-new-target-branch-list ul {
  1092. margin-bottom: 0;
  1093. }
  1094. #release-new-target-branch-list li {
  1095. padding: 8px 20px;
  1096. }
  1097. #release-new-target-branch-list li a {
  1098. margin-left: 0;
  1099. background-color: transparent;
  1100. padding: 0;
  1101. }
  1102. #release-new-target-branch-list li a:hover {
  1103. background-image: none;
  1104. }
  1105. #release-new-target-branch-list li:hover {
  1106. background-color: #0093c4;
  1107. }
  1108. #release-new-target-branch-list li:hover a {
  1109. color: #FFF;
  1110. }
  1111. #release-new-title {
  1112. width: 50%;
  1113. }
  1114. #release-new-content-div {
  1115. margin-top: 16px;
  1116. padding-left: 0;
  1117. }
  1118. #release-new-content-div .md-help {
  1119. margin-top: 6px;
  1120. }
  1121. #release-textarea .form-group {
  1122. display: block;
  1123. }
  1124. #release-new-content {
  1125. width: 100%;
  1126. margin: 16px 0;
  1127. }
  1128. #release-preview {
  1129. margin: 6px 0;
  1130. }