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 {
  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: inline-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. line-height: 44px;
  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. }