gogs.css 14 KB

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