gogs.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  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. /* gogits user ssh keys */
  285. #gogs-ssh-keys .list-group-item {
  286. padding: 15px 0;
  287. border-bottom: 1px solid #DDD;
  288. }
  289. #gogs-ssh-keys .list-group-item .delete {
  290. margin: -5px 50px 0;
  291. }
  292. #gogs-ssh-keys .list-group-item:after {
  293. clear: both;
  294. }
  295. #gogs-ssh-keys .name {
  296. font-size: 14px;
  297. font-weight: bold;
  298. }
  299. #gogs-ssh-keys .print {
  300. padding-left: 1em;
  301. color: #888;
  302. }
  303. #gogs-ssh-add {
  304. display: inline-block;
  305. color: white;
  306. cursor: pointer;
  307. margin-left: 0;
  308. border-radius: 3px;
  309. }
  310. #gogs-ssh-form textarea {
  311. height: 16em;
  312. }
  313. /* #gogs-feed */
  314. #gogs-feed-right .repo-panel .panel-heading .btn {
  315. margin-top: -4px;
  316. }
  317. #gogs-feed-right .repo-panel .panel-body {
  318. padding: 0;
  319. }
  320. #gogs-feed-right .repo-panel .list-group {
  321. margin-bottom: 0;
  322. }
  323. #gogs-feed-right .repo-panel .list-group-item a {
  324. display: block;
  325. margin-left: 0;
  326. background-color: transparent;
  327. padding-left: 0;
  328. font-weight: bold;
  329. }
  330. #gogs-feed-right .repo-panel .list-group-item .fa {
  331. color: #666;
  332. }
  333. #gogs-feed-right .repo-panel .list-group-item {
  334. font-size: 14px;
  335. line-height: 32px;
  336. border-bottom: 1px solid #DDD;
  337. padding-left: 15px;
  338. clear: both;
  339. }
  340. #gogs-feed-right .repo-panel .list-group-item:last-child {
  341. border-bottom: none;
  342. }
  343. #gogs-feed-right .repo-panel .list-group-item:hover {
  344. background-color: #eafffd;
  345. background-color: rgba(65, 131, 196, 0.1);
  346. }
  347. #gogs-feed-right .repo-panel span.stars {
  348. color: #666;
  349. margin-right: 1em;
  350. }
  351. /* gogits repo single page */
  352. #gogs-body-nav.gogs-repo-nav {
  353. padding-top: 16px;
  354. padding-bottom: 30px;
  355. height: auto;
  356. }
  357. .gogs-repo-nav .name {
  358. margin-top: 15px;
  359. }
  360. .gogs-repo-nav .desc {
  361. color: #888;
  362. margin-bottom: 0;
  363. }
  364. .gogs-repo-nav h3 .fa {
  365. color: #BBB;
  366. margin-left: 0;
  367. }
  368. .gogs-repo-nav .actions {
  369. padding-top: 20px;
  370. }
  371. .gogs-repo-nav .btn-default {
  372. font-family: Tahoma, Arial, sans-serif;
  373. }
  374. #gogs-repo-watching .dropdown-menu {
  375. width: 280px;
  376. padding: 0;
  377. }
  378. #gogs-repo-watching .dropdown-menu .dropdown-item:hover .dropdown-header, #gogs-repo-watching .dropdown-item .dropdown-header.text-primary {
  379. color: rgb(65, 131, 196);
  380. cursor: pointer;
  381. }
  382. #gogs-repo-watching .dropdown-menu .description {
  383. padding: 0 20px;
  384. color: #888;
  385. }
  386. #gogs-repo-watching .dropdown-menu .dropdown-header {
  387. color: #444;
  388. font-weight: bold;
  389. font-size: 14px;
  390. margin-bottom: 4px;
  391. }
  392. #gogs-repo-toolbar {
  393. border-bottom: 1px solid #DDD;
  394. background-color: #FFF;
  395. height: 40px;
  396. font-size: 14px;
  397. }
  398. #gogs-repo-toolbar .navbar-default {
  399. border: none;
  400. height: 39px;
  401. }
  402. #gogs-repo-toolbar .nav > li > a {
  403. height: 39px;
  404. }
  405. #gogs-repo-toolbar .navbar-toolbar.navbar-default .navbar-nav > .active > a:after {
  406. border-bottom-color: #999;
  407. }
  408. #gogs-repo-toolbar .navbar.nav-toolbar {
  409. margin-bottom: 0;
  410. }
  411. #gogs-repo-toolbar .navbar-collapse {
  412. padding: 0;
  413. }
  414. .activity-list {
  415. font-size: 14px;
  416. }
  417. .activity-list .icon {
  418. font-size: 20px;
  419. color: #aaa;
  420. float: left;
  421. }
  422. .activity-list .info {
  423. margin: 0 0 0 40px;
  424. line-height: 1.7em;
  425. }
  426. .activity-list .meta {
  427. color: #aaa;
  428. }
  429. .activity-list li {
  430. padding: 15px 0;
  431. border-top: 1px solid #ddd;
  432. }
  433. .activity-list li:first-child {
  434. border-top: none;
  435. }
  436. .repo-list li {
  437. padding: 15px 0;
  438. border-top: 1px solid #ddd;
  439. }
  440. .repo-list li:first-child {
  441. border-top: none;
  442. }
  443. .repo-list h4 {
  444. font-weight: bold;
  445. font-size: 24px;
  446. }
  447. .repo-list .meta {
  448. margin: 15px 0 0;
  449. font-size: 14px;
  450. }
  451. .repo-list .desc {
  452. font-size: 15px;
  453. }
  454. .repo-list .meta .fa {
  455. margin: 0 0 0 20px;
  456. }
  457. .repo-list .meta,
  458. .repo-list .info {
  459. color: #999;
  460. }
  461. .popover .repo-clone-div {
  462. min-width: 200px;
  463. }
  464. /* #gogs-source */
  465. #gogs-source {
  466. margin-top: -20px;
  467. }
  468. #gogs-source .source-toolbar:after {
  469. clear: both;
  470. }
  471. #gogs-source .source-toolbar .branch-switch {
  472. display: inline-block;
  473. }
  474. #gogs-source .source-toolbar .breadcrumb {
  475. margin: 0 .5em;
  476. padding: 6px 15px;
  477. font-size: 16px;
  478. vertical-align: middle;
  479. display: inline-block;
  480. background-color: transparent;
  481. }
  482. #gogs-source .source-toolbar,
  483. #gogs-source .info-box,
  484. #gogs-source .file-content {
  485. margin: 0 0 10px;
  486. }
  487. .info-box .info-head,
  488. .info-box .info-content {
  489. padding: 9px 20px;
  490. }
  491. .info-box .info-head {
  492. font-weight: normal;
  493. }
  494. .info-box .info-content a,
  495. .info-box .info-head a {
  496. color: #666;
  497. }
  498. .file-list {
  499. background-color: #fafafa;
  500. }
  501. .file-list .icon {
  502. font-size: 17px;
  503. padding: 5px 0 4px 10px;
  504. width: 50px;
  505. color: #999;
  506. text-align: right;
  507. }
  508. .file-list .wrap {
  509. display: inline-block;
  510. overflow: hidden;
  511. text-overflow: ellipsis;
  512. vertical-align: top;
  513. white-space: nowrap;
  514. }
  515. .file-list .name .wrap {
  516. max-width: 180px;
  517. }
  518. .file-list .text .wrap {
  519. max-width: 450px;
  520. }
  521. .file-list .date .wrap {
  522. max-width: 120px;
  523. padding: 0 20px 0 0;
  524. }
  525. .file-list .date {
  526. text-align: right;
  527. }
  528. .file-content .file-head {
  529. font-size: 18px;
  530. }
  531. .file-content .file-head .icon {
  532. color: #666;
  533. margin: 0 .5em 0 0;
  534. }
  535. .file-content .file-body {
  536. padding: 30px 30px 50px;
  537. border: none;
  538. background-color: #FFF;
  539. overflow: auto;
  540. overflow-x: auto;
  541. overflow-y: hidden;
  542. }
  543. .file-content .file-body.file-code pre {
  544. background-color: #FFF;
  545. border: none;
  546. }
  547. .file-content .file-body.file-code {
  548. padding: 0;
  549. }
  550. .file-content .file-body.file-code .lines-code > pre {
  551. border: none;
  552. background: none;
  553. border-left: 1px solid #ddd;
  554. }
  555. .file-content .file-body.file-code .lines-code ol.linenums > .active {
  556. background: #ffffdd;
  557. }
  558. .file-content .file-body.file-code .lines-num {
  559. text-align: right;
  560. color: #999;
  561. background: #fafafa;
  562. width: 1%;
  563. }
  564. .file-content .file-body.file-code .lines-num span {
  565. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  566. line-height: 1.6;
  567. padding: 0 8px 0 10px;
  568. cursor: pointer;
  569. display: block;
  570. margin-top: 2px;
  571. font-size: 90%;
  572. }
  573. .file-content .file-body.file-code .lines-num span:first-child {
  574. margin-top: 0;
  575. }
  576. .file-content .file-body.file-code > table {
  577. width: 100%;
  578. }
  579. .file-content .file-body.file-code > table > tbody > tr,
  580. .file-content .file-body.file-code > table > tbody > tr > td,
  581. .file-content .file-body.file-code > table {
  582. border: none;
  583. background: none;
  584. }
  585. .branch-list th, .commit-list th {
  586. background-color: #FFF;
  587. line-height: 28px !important;
  588. }
  589. .branch-list td {
  590. line-height: 36px !important;
  591. }
  592. .branch-box tr:hover td, .commit-box tr:hover td {
  593. background-color: rgba(19, 95, 215, 0.06) !important;
  594. }
  595. .branch-box .name, .commit-box .author {
  596. padding-left: 20px;
  597. }
  598. .branch-box .name {
  599. font-size: 15px;
  600. }
  601. .branch-box .action {
  602. width: 150px;
  603. }
  604. .branch-box td.date, .branch-box td.behind, .branch-box td.ahead {
  605. width: 120px;
  606. font-family: Verdana, Arial, sans-serif;
  607. }
  608. .branch-box .graph {
  609. display: block;
  610. height: 3px;
  611. }
  612. .branch-box .behind {
  613. text-align: right;
  614. direction: rtl;
  615. }
  616. .branch-box .behind .graph {
  617. background-color: #888;
  618. }
  619. .branch-box .ahead .graph {
  620. background-color: #0093c4;
  621. }
  622. .branch-box .branch-main {
  623. background-color: #444;
  624. color: #FFF;
  625. border-color: #444;
  626. }
  627. .branch-box .branch-main a {
  628. color: #FFF;
  629. }
  630. .branch-box .branch-main .name .btn {
  631. margin-left: .5em;
  632. }
  633. .commit-box .avatar {
  634. width: 20px;
  635. height: 20px;
  636. margin-right: 8px;
  637. vertical-align: top;
  638. }
  639. .commit-box .search {
  640. margin-top: 3px;
  641. }
  642. .commit-box td {
  643. background-color: #FFF;
  644. }
  645. .commit-list .date {
  646. width: 120px;
  647. }
  648. .commit-list .author {
  649. min-width: 180px;
  650. }
  651. .guide-box pre, .guide-box .input-group {
  652. margin-top: 20px;
  653. margin-bottom: 30px;
  654. line-height: 24px;
  655. }
  656. .guide-box input[readonly] {
  657. background-color: #FFF;
  658. }
  659. .guide-box {
  660. margin-top: 20px;
  661. }
  662. /* wrapper and footer */
  663. #wrapper {
  664. min-height: 100%;
  665. height: auto !important;
  666. height: 100%;
  667. margin: 0 auto -100px;
  668. padding: 0 0 100px;
  669. }
  670. #footer {
  671. background: #fff;
  672. -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  673. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);;
  674. height: 100px;
  675. }
  676. #footer .footer-wrap {
  677. padding: 20px 15px;
  678. }
  679. #footer a {
  680. color: #000;
  681. }