gogs.css 14 KB

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