gogs.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  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. .gogs-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. .gogs-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. #gogs-nav-logo {
  59. padding-left: 0;
  60. padding-right: 0;
  61. margin-right: 10px;
  62. }
  63. .gogs-nav-item:hover,
  64. .gogs-nav-item:focus {
  65. color: #fff;
  66. text-decoration: none;
  67. }
  68. .gogs-nav-item.navbar-right {
  69. margin-top: 3px;
  70. }
  71. .gogs-nav-item.navbar-btn {
  72. cursor: pointer;
  73. margin-top: 8px;
  74. padding: 5px 15px;
  75. height: 30px;
  76. }
  77. .gogs-nav-item.navbar-right .fa {
  78. margin: 0;
  79. }
  80. /* gogits nav item active status */
  81. .gogs-nav .active {
  82. color: #fff;
  83. }
  84. .gogs-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. #gogs-nav-logo:after {
  98. bottom: -4px !important;
  99. }
  100. #gogs-nav-avatar:after {
  101. bottom: -4px !important;
  102. }
  103. .gogs-nav .tooltip {
  104. border: none;
  105. }
  106. /* gogits logo */
  107. #gogs-nav-avatar {
  108. margin-top: 0;
  109. }
  110. #gogs-logo, #gogs-nav-avatar img {
  111. width: 28px;
  112. height: 28px;
  113. }
  114. #gogs-nav-out {
  115. margin-top: 10px;
  116. padding: 5px 0;
  117. margin-left: 10px;
  118. height: 28px;
  119. float: right;
  120. }
  121. #gogs-nav-signin, #gogs-nav-signup {
  122. float: right;
  123. margin-left: 1em;
  124. }
  125. #gogs-nav-out .fa {
  126. vertical-align: -10%;
  127. margin: 0 .5em;
  128. }
  129. /* gogits body */
  130. #gogs-body {
  131. padding-bottom: 60px;
  132. margin-top: 30px;
  133. }
  134. #gogs-body .btn-default {
  135. background-color: #FFF;
  136. background-image: linear-gradient(to bottom, #FFF 0, #FAFAFA 100%);
  137. }
  138. #gogs-body-nav {
  139. background-color: #FFF;
  140. border-bottom: 1px solid #DDD;
  141. height: 66px
  142. }
  143. #gogs-body-nav .nav {
  144. font-size: 14px;
  145. margin-top: 12px;
  146. }
  147. #gogs-body-nav .nav-pills li a {
  148. color: #444;
  149. }
  150. #gogs-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. #gogs-body-nav .nav-pills li:hover a {
  157. background-color: transparent;
  158. text-decoration: underline;
  159. }
  160. /* gogits login card */
  161. .gogs-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. .gogs-card h3 {
  170. margin-top: 0;
  171. margin-bottom: 30px;
  172. padding-bottom: 20px;
  173. border-bottom: 1px solid #ccc;
  174. }
  175. #gogs-login-card {
  176. width: 600px;
  177. }
  178. #gogs-login-card .form-control {
  179. padding: 6px 12px;
  180. box-sizing: content-box;
  181. }
  182. #gogs-login-card .control-label {
  183. height: 44px;
  184. line-height: 30px;
  185. }
  186. .gogs-card .btn {
  187. cursor: pointer;
  188. margin-right: 1.2em;
  189. }
  190. #gogs-social-login {
  191. margin-top: 30px;
  192. padding-top: 20px;
  193. border-top: 1px solid #ccc;
  194. }
  195. #gogs-social-login .btn {
  196. float: none;
  197. margin: auto;
  198. }
  199. /* gogs-user-profile */
  200. #gogs-user-avatar {
  201. width: 200px;
  202. height: 200px;
  203. border-radius: 6px;
  204. }
  205. #gogs-user-avatar-commit {
  206. width: 16px;
  207. height: 16px;
  208. border-radius: 2px;
  209. }
  210. #gogs-user-name {
  211. margin-top: 20px;
  212. font-size: 1.6em;
  213. font-weight: bold;
  214. margin-bottom: 20px;
  215. }
  216. #gogs-user-profile .profile-info .list-group-item {
  217. background-color: transparent;
  218. padding-top: 18px;
  219. color: #666;
  220. }
  221. #gogs-user-profile .profile-info .list-group-item a {
  222. margin: 0;
  223. padding: 0;
  224. display: inline;
  225. color: #0093c4;
  226. }
  227. #gogs-user-profile .profile-info .list-group {
  228. border-top: 1px solid #ccc;
  229. padding-bottom: 18px;
  230. border-bottom: 1px solid #ccc;
  231. padding-left: 18px;
  232. padding-right: 18px;
  233. }
  234. #gogs-user-activity .tab-pane {
  235. padding: 20px;
  236. }
  237. #gogs-user-act-tabs li.active a {
  238. border-bottom-color: #ddd;
  239. }
  240. /* gogits repo create */
  241. #gogs-repo-create {
  242. width: 800px;
  243. }
  244. #gogs-repo-create textarea[name=desc] {
  245. height: 8em;
  246. }
  247. /* gogits user setting */
  248. #gogs-user-setting-nav > h4, #gogs-user-setting-container > h4, #gogs-user-setting-container > div > h4,
  249. #gogs-ssh-keys > h4, #gogs-user-delete > h4, #gogs-repo-setting-container .tab-pane > h4 {
  250. padding-bottom: 18px;
  251. margin-bottom: 18px;
  252. border-bottom: 1px solid #CCC;
  253. }
  254. #gogs-user-setting-nav .list-group .list-group-item a {
  255. margin-left: 0;
  256. padding: .6em;
  257. font-size: 14px;
  258. color: #3B73AF;
  259. }
  260. #gogs-user-setting-nav .list-group .list-group-item {
  261. background-color: transparent;
  262. }
  263. #gogs-user-setting-nav .list-group .list-group-item-success a {
  264. font-weight: bold;
  265. color: #444;
  266. }
  267. .gogs-admin-nav {
  268. background-color: #FFF;
  269. padding-top: 10px;
  270. padding-left: 0;
  271. padding-right: 0;
  272. border: 1px solid #D8D8D8;
  273. }
  274. .gogs-admin-nav li {
  275. margin-bottom: 8px;
  276. border-left: 4px solid transparent;
  277. }
  278. .gogs-admin-nav li:hover {
  279. border-left-color: #EEE;
  280. }
  281. .gogs-admin-nav li.active:hover {
  282. border-left: 4px solid #DD4B39;
  283. }
  284. #gogs-repo-setting-container .form-horizontal label {
  285. line-height: 30px;
  286. }
  287. /* gogits user ssh keys */
  288. #gogs-ssh-keys .list-group-item {
  289. padding: 15px 0;
  290. border-bottom: 1px solid #DDD;
  291. }
  292. #gogs-ssh-keys .list-group-item .delete {
  293. margin: -5px 50px 0;
  294. }
  295. #gogs-ssh-keys .list-group-item:after {
  296. clear: both;
  297. }
  298. #gogs-ssh-keys .name {
  299. font-size: 14px;
  300. font-weight: bold;
  301. }
  302. #gogs-ssh-keys .print {
  303. padding-left: 1em;
  304. color: #888;
  305. }
  306. #gogs-ssh-add {
  307. display: inline-block;
  308. color: white;
  309. cursor: pointer;
  310. margin-left: 0;
  311. border-radius: 3px;
  312. }
  313. #gogs-ssh-form textarea {
  314. height: 16em;
  315. }
  316. /* #gogs-feed */
  317. #gogs-feed-right .repo-panel .panel-heading .btn {
  318. margin-top: -4px;
  319. }
  320. #gogs-feed-right .repo-panel .panel-body {
  321. padding: 0;
  322. }
  323. #gogs-feed-right .repo-panel .list-group {
  324. margin-bottom: 0;
  325. }
  326. #gogs-feed-right .repo-panel .list-group-item a {
  327. display: block;
  328. margin-left: 0;
  329. background-color: transparent;
  330. padding-left: 0;
  331. font-weight: bold;
  332. }
  333. #gogs-feed-right .repo-panel .list-group-item .fa {
  334. color: #666;
  335. }
  336. #gogs-feed-right .repo-panel .list-group-item {
  337. font-size: 14px;
  338. line-height: 32px;
  339. border-bottom: 1px solid #DDD;
  340. padding-left: 15px;
  341. clear: both;
  342. }
  343. #gogs-feed-right .repo-panel .list-group-item:last-child {
  344. border-bottom: none;
  345. }
  346. #gogs-feed-right .repo-panel .list-group-item:hover {
  347. background-color: #eafffd;
  348. background-color: rgba(65, 131, 196, 0.1);
  349. }
  350. #gogs-feed-right .repo-panel span.stars {
  351. color: #666;
  352. margin-right: 1em;
  353. }
  354. /* gogits repo single page */
  355. #gogs-body-nav.gogs-repo-nav {
  356. padding-top: 16px;
  357. padding-bottom: 30px;
  358. height: auto;
  359. }
  360. .gogs-repo-nav .name {
  361. margin-top: 15px;
  362. }
  363. .gogs-repo-nav .desc {
  364. color: #888;
  365. margin-bottom: 0;
  366. }
  367. .gogs-repo-nav h3 .fa {
  368. color: #BBB;
  369. margin-left: 0;
  370. }
  371. .gogs-repo-nav .actions {
  372. padding-top: 20px;
  373. }
  374. .gogs-repo-nav .btn-default {
  375. font-family: Tahoma, Arial, sans-serif;
  376. }
  377. #gogs-repo-watching .dropdown-menu {
  378. width: 280px;
  379. padding: 0;
  380. }
  381. #gogs-repo-watching .dropdown-menu .dropdown-item:hover .dropdown-header, #gogs-repo-watching .dropdown-item .dropdown-header.text-primary {
  382. color: rgb(65, 131, 196);
  383. cursor: pointer;
  384. }
  385. #gogs-repo-watching .dropdown-menu .description {
  386. padding: 0 20px;
  387. color: #888;
  388. }
  389. #gogs-repo-watching .dropdown-menu .dropdown-header {
  390. color: #444;
  391. font-weight: bold;
  392. font-size: 14px;
  393. margin-bottom: 4px;
  394. }
  395. #gogs-repo-toolbar {
  396. border-bottom: 1px solid #DDD;
  397. background-color: #FFF;
  398. height: 40px;
  399. font-size: 14px;
  400. }
  401. #gogs-repo-toolbar .navbar-default {
  402. border: none;
  403. height: 39px;
  404. }
  405. #gogs-repo-toolbar .nav > li > a {
  406. height: 39px;
  407. }
  408. #gogs-repo-toolbar .navbar-toolbar.navbar-default .navbar-nav > .active > a:after {
  409. border-bottom-color: #999;
  410. }
  411. #gogs-repo-toolbar .navbar.nav-toolbar {
  412. margin-bottom: 0;
  413. }
  414. #gogs-repo-toolbar .navbar-collapse {
  415. padding: 0;
  416. }
  417. .activity-list {
  418. font-size: 14px;
  419. }
  420. .activity-list .icon {
  421. font-size: 20px;
  422. color: #aaa;
  423. float: left;
  424. }
  425. .activity-list .info {
  426. margin: 0 0 0 40px;
  427. line-height: 1.7em;
  428. }
  429. .activity-list .meta {
  430. color: #aaa;
  431. }
  432. .activity-list li {
  433. padding: 15px 0;
  434. border-top: 1px solid #ddd;
  435. }
  436. .activity-list li:first-child {
  437. border-top: none;
  438. }
  439. .repo-list li {
  440. padding: 15px 0;
  441. border-top: 1px solid #ddd;
  442. }
  443. .repo-list li:first-child {
  444. border-top: none;
  445. }
  446. .repo-list h4 {
  447. font-weight: bold;
  448. font-size: 24px;
  449. }
  450. .repo-list .meta {
  451. margin: 15px 0 0;
  452. font-size: 14px;
  453. }
  454. .repo-list .desc {
  455. font-size: 15px;
  456. }
  457. .repo-list .meta .fa {
  458. margin: 0 0 0 20px;
  459. }
  460. .repo-list .meta,
  461. .repo-list .info {
  462. color: #999;
  463. }
  464. .popover .repo-clone-div {
  465. min-width: 200px;
  466. }
  467. #gogs-repo-clone .dropdown-menu {
  468. width: 400px;
  469. padding: 20px;
  470. }
  471. #gogs-repo-clone .input-group {
  472. margin-bottom: 15px;
  473. }
  474. /* #gogs-source */
  475. #gogs-source {
  476. margin-top: -20px;
  477. }
  478. #gogs-source .source-toolbar:after {
  479. clear: both;
  480. }
  481. #gogs-source .source-toolbar .branch-switch {
  482. display: inline-block;
  483. }
  484. #gogs-source .source-toolbar .breadcrumb {
  485. margin: 0 .5em;
  486. padding: 6px 15px;
  487. font-size: 16px;
  488. vertical-align: middle;
  489. display: inline-block;
  490. background-color: transparent;
  491. }
  492. #gogs-source .source-toolbar,
  493. #gogs-source .info-box,
  494. #gogs-source .file-content {
  495. margin: 0 0 10px;
  496. }
  497. .info-box .info-head,
  498. .info-box .info-content {
  499. padding: 9px 20px;
  500. }
  501. .info-box .info-head {
  502. font-weight: normal;
  503. }
  504. .info-box .info-content a,
  505. .info-box .info-head a {
  506. color: #666;
  507. }
  508. .file-list {
  509. background-color: #fafafa;
  510. }
  511. .file-list .icon {
  512. font-size: 17px;
  513. padding: 5px 0 4px 10px;
  514. width: 50px;
  515. color: #999;
  516. text-align: right;
  517. }
  518. .file-list .wrap {
  519. display: inline-block;
  520. overflow: hidden;
  521. text-overflow: ellipsis;
  522. vertical-align: top;
  523. white-space: nowrap;
  524. }
  525. .file-list .name .wrap {
  526. max-width: 180px;
  527. }
  528. .file-list .text .wrap {
  529. max-width: 450px;
  530. }
  531. .file-list .date .wrap {
  532. max-width: 120px;
  533. padding: 0 20px 0 0;
  534. }
  535. .file-list .date {
  536. text-align: right;
  537. }
  538. .file-content .file-head {
  539. font-size: 18px;
  540. }
  541. .file-content .file-head .icon {
  542. color: #666;
  543. margin: 0 .5em 0 0;
  544. }
  545. .file-content .file-body {
  546. padding: 30px 30px 50px;
  547. border: none;
  548. background-color: #FFF;
  549. overflow: auto;
  550. overflow-x: auto;
  551. overflow-y: hidden;
  552. }
  553. .file-content .file-body.file-code pre {
  554. background-color: #FFF;
  555. border: none;
  556. }
  557. .file-content .file-body.file-code {
  558. padding: 0;
  559. }
  560. .file-content .file-body.file-code .lines-code > pre {
  561. border: none;
  562. background: none;
  563. border-left: 1px solid #ddd;
  564. }
  565. .file-content .file-body.file-code .lines-code ol.linenums > .active {
  566. background: #ffffdd;
  567. }
  568. .file-content .file-body.file-code .lines-num {
  569. text-align: right;
  570. color: #999;
  571. background: #fafafa;
  572. width: 1%;
  573. }
  574. .file-content .file-body.file-code .lines-num span {
  575. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  576. line-height: 1.6;
  577. padding: 0 8px 0 10px;
  578. cursor: pointer;
  579. display: block;
  580. margin-top: 2px;
  581. font-size: 90%;
  582. }
  583. .file-content .file-body.file-code .lines-num span:first-child {
  584. margin-top: 0;
  585. }
  586. .file-content .file-body.file-code > table {
  587. width: 100%;
  588. }
  589. .file-content .file-body.file-code > table > tbody > tr,
  590. .file-content .file-body.file-code > table > tbody > tr > td,
  591. .file-content .file-body.file-code > table {
  592. border: none;
  593. background: none;
  594. }
  595. .branch-list th, .commit-list th {
  596. background-color: #FFF;
  597. line-height: 28px !important;
  598. }
  599. .branch-list td {
  600. line-height: 36px !important;
  601. }
  602. .branch-box tr:hover td, .commit-box tr:hover td {
  603. background-color: rgba(19, 95, 215, 0.06) !important;
  604. }
  605. .branch-box .name, .commit-box .author {
  606. padding-left: 20px;
  607. }
  608. .branch-box .name {
  609. font-size: 15px;
  610. }
  611. .branch-box .action {
  612. width: 150px;
  613. }
  614. .branch-box td.date, .branch-box td.behind, .branch-box td.ahead {
  615. width: 120px;
  616. font-family: Verdana, Arial, sans-serif;
  617. }
  618. .branch-box .graph {
  619. display: block;
  620. height: 3px;
  621. }
  622. .branch-box .behind {
  623. text-align: right;
  624. direction: rtl;
  625. }
  626. .branch-box .behind .graph {
  627. background-color: #888;
  628. }
  629. .branch-box .ahead .graph {
  630. background-color: #0093c4;
  631. }
  632. .branch-box .branch-main {
  633. background-color: #444;
  634. color: #FFF;
  635. border-color: #444;
  636. }
  637. .branch-box .branch-main a {
  638. color: #FFF;
  639. }
  640. .branch-box .branch-main .name .btn {
  641. margin-left: .5em;
  642. }
  643. .commit-box .avatar {
  644. width: 20px;
  645. height: 20px;
  646. margin-right: 8px;
  647. vertical-align: top;
  648. }
  649. .commit-box .search {
  650. margin-top: 3px;
  651. }
  652. .commit-box td {
  653. background-color: #FFF;
  654. }
  655. .commit-list .date {
  656. width: 120px;
  657. }
  658. .commit-list .author {
  659. min-width: 180px;
  660. }
  661. .guide-box pre, .guide-box .input-group {
  662. margin-top: 20px;
  663. margin-bottom: 30px;
  664. line-height: 24px;
  665. }
  666. .guide-box input[readonly] {
  667. background-color: #FFF;
  668. }
  669. .guide-box {
  670. margin-top: 20px;
  671. }
  672. /* wrapper and footer */
  673. #wrapper {
  674. min-height: 100%;
  675. height: auto !important;
  676. height: 100%;
  677. margin: 0 auto -100px;
  678. padding: 0 0 100px;
  679. }
  680. #footer {
  681. background: #fff;
  682. -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  683. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);;
  684. height: 100px;
  685. }
  686. #footer .footer-wrap {
  687. padding: 20px 15px;
  688. }
  689. #footer a {
  690. color: #000;
  691. }