You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

698 lines
11 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  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. .list-group .list-group-item {
  29. background-color: transparent;
  30. }
  31. .btn {
  32. cursor: pointer;
  33. }
  34. .panel-default .panel-heading {
  35. background-color: #FAFAFA;
  36. border-bottom: 1px solid #DDD;
  37. font-weight: bold;
  38. }
  39. /* gogits nav header */
  40. .gogs-masthead {
  41. background-color: #428bca;
  42. box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1);
  43. margin: 0;
  44. }
  45. /* gogits nav item link */
  46. .gogs-nav-item {
  47. position: relative;
  48. display: inline-block;
  49. padding: 10px;
  50. font-weight: bold;
  51. color: #EEE;
  52. font-size: 100%;
  53. height: 46px;
  54. }
  55. #gogs-nav-logo{
  56. padding-left: 0;
  57. padding-right: 0;
  58. margin-right: 10px;
  59. }
  60. .gogs-nav-item:hover,
  61. .gogs-nav-item:focus {
  62. color: #fff;
  63. text-decoration: none;
  64. }
  65. .gogs-nav-item.navbar-right {
  66. margin-top: 3px;
  67. }
  68. .gogs-nav-item.navbar-btn {
  69. cursor: pointer;
  70. margin-top: 8px;
  71. padding: 5px 15px;
  72. height: 30px;
  73. }
  74. .gogs-nav-item.navbar-right .fa {
  75. margin: 0;
  76. }
  77. /* gogits nav item active status */
  78. .gogs-nav .active {
  79. color: #fff;
  80. }
  81. .gogs-nav .active:after {
  82. position: absolute;
  83. bottom: -1px;
  84. left: 50%;
  85. width: 0;
  86. height: 0;
  87. margin-left: -5px;
  88. vertical-align: middle;
  89. content: " ";
  90. border-right: 5px solid transparent;
  91. border-bottom: 5px solid;
  92. border-left: 5px solid transparent;
  93. }
  94. #gogs-nav-logo:after {
  95. bottom: -4px !important;
  96. }
  97. .gogs-nav .tooltip {
  98. border: none;
  99. }
  100. /* gogits logo */
  101. #gogs-nav-avatar {
  102. margin-top: 0;
  103. }
  104. #gogs-logo, #gogs-nav-avatar img {
  105. width: 28px;
  106. height: 28px;
  107. }
  108. #gogs-nav-out {
  109. margin-top: 10px;
  110. padding: 5px 0;
  111. margin-left: 10px;
  112. height: 28px;
  113. float: right;
  114. }
  115. #gogs-nav-signin{
  116. float: right;
  117. }
  118. #gogs-nav-out .fa {
  119. vertical-align: -10%;
  120. margin: 0 .5em;
  121. }
  122. /* gogits body */
  123. #gogs-body {
  124. padding-bottom: 60px;
  125. margin-top: 30px;
  126. }
  127. #gogs-body .btn-default {
  128. background-color: #FFF;
  129. background-image: linear-gradient(to bottom, #FFF 0, #FAFAFA 100%);
  130. }
  131. #gogs-body-nav {
  132. background-color: #FFF;
  133. border-bottom: 1px solid #DDD;
  134. height: 66px
  135. }
  136. #gogs-body-nav .nav {
  137. font-size: 14px;
  138. margin-top: 12px;
  139. }
  140. #gogs-body-nav .nav-pills li a {
  141. color: #444;
  142. }
  143. #gogs-body-nav .nav-pills li.active a {
  144. font-weight: bold;
  145. border-bottom: 2px solid #d26911;
  146. background-color: transparent;
  147. color: #444;
  148. }
  149. #gogs-body-nav .nav-pills li:hover a {
  150. background-color: transparent;
  151. text-decoration: underline;
  152. }
  153. /* gogits login card */
  154. .gogs-card {
  155. margin: auto;
  156. padding: 30px;
  157. background: #fff;
  158. border: 1px solid #ccc;
  159. border-radius: 5px;
  160. box-sizing: border-box;
  161. }
  162. .gogs-card h3 {
  163. margin-top: 0;
  164. margin-bottom: 30px;
  165. padding-bottom: 20px;
  166. border-bottom: 1px solid #ccc;
  167. }
  168. #gogs-login-card {
  169. width: 600px;
  170. }
  171. #gogs-login-card .form-control {
  172. padding: 6px 12px;
  173. box-sizing: content-box;
  174. }
  175. #gogs-login-card .control-label {
  176. height: 44px;
  177. line-height: 30px;
  178. }
  179. .gogs-card .btn {
  180. cursor: pointer;
  181. margin-right: 1.2em;
  182. }
  183. #gogs-social-login {
  184. margin-top: 30px;
  185. padding-top: 20px;
  186. border-top: 1px solid #ccc;
  187. }
  188. #gogs-social-login .btn {
  189. float: none;
  190. margin: auto;
  191. }
  192. /* gogs-user-profile */
  193. #gogs-user-avatar {
  194. width: 200px;
  195. height: 200px;
  196. border-radius: 6px;
  197. }
  198. #gogs-user-avatar-commit {
  199. width: 16px;
  200. height: 16px;
  201. border-radius: 2px;
  202. }
  203. #gogs-user-name {
  204. margin-top: 20px;
  205. font-size: 1.6em;
  206. font-weight: bold;
  207. margin-bottom: 20px;
  208. }
  209. #gogs-user-profile .profile-info .list-group-item {
  210. background-color: transparent;
  211. padding-top: 18px;
  212. color: #666;
  213. }
  214. #gogs-user-profile .profile-info .list-group-item a {
  215. margin: 0;
  216. padding: 0;
  217. display: inline;
  218. color: #0093c4;
  219. }
  220. #gogs-user-profile .profile-info .list-group {
  221. border-top: 1px solid #ccc;
  222. padding-bottom: 18px;
  223. border-bottom: 1px solid #ccc;
  224. padding-left: 18px;
  225. padding-right: 18px;
  226. }
  227. #gogs-user-activity .tab-pane {
  228. padding: 20px;
  229. }
  230. #gogs-user-act-tabs li.active a {
  231. border-bottom-color: #ddd;
  232. }
  233. /* gogits repo create */
  234. #gogs-repo-create {
  235. width: 800px;
  236. }
  237. #gogs-repo-create textarea[name=desc] {
  238. height: 8em;
  239. }
  240. /* gogits user setting */
  241. #gogs-user-setting-nav > h4, #gogs-user-setting-container > h4, #gogs-user-setting-container > div > h4,
  242. #gogs-ssh-keys > h4, #gogs-user-delete > h4, #gogs-repo-setting-container .tab-pane > h4 {
  243. padding-bottom: 18px;
  244. margin-bottom: 18px;
  245. border-bottom: 1px solid #CCC;
  246. }
  247. #gogs-user-setting-nav .list-group .list-group-item a {
  248. margin-left: 0;
  249. padding: .6em;
  250. font-size: 14px;
  251. color: #3B73AF;
  252. }
  253. #gogs-user-setting-nav .list-group .list-group-item {
  254. background-color: transparent;
  255. }
  256. #gogs-user-setting-nav .list-group .list-group-item-success a {
  257. font-weight: bold;
  258. color: #444;
  259. }
  260. /* gogits user ssh keys */
  261. #gogs-ssh-keys .list-group-item {
  262. padding: 15px 0;
  263. border-bottom: 1px solid #DDD;
  264. }
  265. #gogs-ssh-keys .list-group-item .delete {
  266. margin: -5px 50px 0;
  267. }
  268. #gogs-ssh-keys .list-group-item:after {
  269. clear: both;
  270. }
  271. #gogs-ssh-keys .name {
  272. font-size: 14px;
  273. font-weight: bold;
  274. }
  275. #gogs-ssh-keys .print {
  276. padding-left: 1em;
  277. color: #888;
  278. }
  279. #gogs-ssh-add {
  280. display: inline-block;
  281. color: white;
  282. cursor: pointer;
  283. margin-left: 0;
  284. border-radius: 3px;
  285. }
  286. #gogs-ssh-form textarea {
  287. height: 16em;
  288. }
  289. /* #gogs-feed */
  290. #gogs-feed-right .repo-panel .panel-heading .btn {
  291. margin-top: -4px;
  292. }
  293. #gogs-feed-right .repo-panel .panel-body {
  294. padding: 0;
  295. }
  296. #gogs-feed-right .repo-panel .list-group {
  297. margin-bottom: 0;
  298. }
  299. #gogs-feed-right .repo-panel .list-group-item a {
  300. display: inline-block;
  301. margin-left: 0;
  302. background-color: transparent;
  303. padding-left: 0;
  304. font-weight: bold;
  305. }
  306. #gogs-feed-right .repo-panel .list-group-item .fa {
  307. color: #666;
  308. }
  309. #gogs-feed-right .repo-panel .list-group-item {
  310. font-size: 14px;
  311. line-height: 32px;
  312. border-bottom: 1px solid #DDD;
  313. padding-left: 15px;
  314. clear: both;
  315. }
  316. #gogs-feed-right .repo-panel .list-group-item:last-child {
  317. border-bottom: none;
  318. }
  319. #gogs-feed-right .repo-panel .list-group-item:hover {
  320. background-color: #eafffd;
  321. background-color: rgba(65, 131, 196, 0.1);
  322. }
  323. #gogs-feed-right .repo-panel span.stars {
  324. color: #666;
  325. line-height: 44px;
  326. margin-right: 1em;
  327. }
  328. /* gogits repo single page */
  329. #gogs-body-nav.gogs-repo-nav {
  330. padding-top: 16px;
  331. padding-bottom: 30px;
  332. height: auto;
  333. }
  334. .gogs-repo-nav h3 .fa {
  335. color: #BBB;
  336. margin-left: 0;
  337. }
  338. .gogs-repo-nav .actions {
  339. padding-top: 20px;
  340. }
  341. #gogs-repo-watching .dropdown-menu {
  342. width: 280px;
  343. padding: 0;
  344. }
  345. #gogs-repo-watching .dropdown-menu .dropdown-item:hover .dropdown-header {
  346. color: rgb(65, 131, 196);
  347. cursor: pointer;
  348. }
  349. #gogs-repo-watching .dropdown-menu .description {
  350. padding: 0 20px;
  351. color: #888;
  352. }
  353. #gogs-repo-watching .dropdown-menu .dropdown-header {
  354. color: #444;
  355. font-weight: bold;
  356. font-size: 14px;
  357. margin-bottom: 4px;
  358. }
  359. #gogs-repo-toolbar {
  360. border-bottom: 1px solid #DDD;
  361. background-color: #FFF;
  362. height: 40px;
  363. font-size: 14px;
  364. }
  365. #gogs-repo-toolbar .navbar-default {
  366. border: none;
  367. height: 39px;
  368. }
  369. #gogs-repo-toolbar .nav > li > a {
  370. height: 39px;
  371. }
  372. #gogs-repo-toolbar .navbar-toolbar.navbar-default .navbar-nav > .active > a:after {
  373. border-bottom-color: #999;
  374. }
  375. #gogs-repo-toolbar .navbar.nav-toolbar {
  376. margin-bottom: 0;
  377. }
  378. #gogs-repo-toolbar .navbar-collapse {
  379. padding: 0;
  380. }
  381. .activity-list {
  382. font-size: 14px;
  383. }
  384. .activity-list .icon {
  385. font-size: 20px;
  386. color: #aaa;
  387. float: left;
  388. }
  389. .activity-list .info {
  390. float: left;
  391. padding: 0 0 0 10px;
  392. line-height: 1.7em;
  393. }
  394. .activity-list .meta {
  395. color: #aaa;
  396. }
  397. .activity-list li {
  398. padding: 15px 0;
  399. border-top: 1px solid #ddd;
  400. }
  401. .activity-list li:first-child {
  402. border-top: none;
  403. }
  404. .repo-list li {
  405. padding: 15px 0;
  406. border-top: 1px solid #ddd;
  407. }
  408. .repo-list li:first-child {
  409. border-top: none;
  410. }
  411. .repo-list h4 {
  412. font-weight: bold;
  413. font-size: 24px;
  414. }
  415. .repo-list .meta {
  416. margin: 15px 0 0;
  417. font-size: 14px;
  418. }
  419. .repo-list .desc {
  420. font-size: 15px;
  421. }
  422. .repo-list .meta .fa {
  423. margin: 0 0 0 20px;
  424. }
  425. .repo-list .meta,
  426. .repo-list .info {
  427. color: #999;
  428. }
  429. /* #gogs-source */
  430. #gogs-source {
  431. margin-top: -20px;
  432. }
  433. #gogs-source .source-toolbar:after {
  434. clear: both;
  435. }
  436. #gogs-source .source-toolbar .branch-switch {
  437. display: inline-block;
  438. }
  439. #gogs-source .source-toolbar .breadcrumb {
  440. margin: 0 .5em;
  441. padding: 6px 15px;
  442. font-size: 16px;
  443. vertical-align: middle;
  444. display: inline-block;
  445. background-color: transparent;
  446. }
  447. #gogs-source .source-toolbar,
  448. #gogs-source .info-box,
  449. #gogs-source .file-content {
  450. margin: 0 0 10px;
  451. }
  452. .info-box .info-head,
  453. .info-box .info-content {
  454. padding: 9px 20px;
  455. }
  456. .file-list {
  457. background-color: #fafafa;
  458. }
  459. .file-list .icon {
  460. font-size: 17px;
  461. padding: 5px 0 4px 10px;
  462. width: 50px;
  463. color: #999;
  464. text-align: right;
  465. }
  466. .file-list .wrap {
  467. display: inline-block;
  468. overflow: hidden;
  469. text-overflow: ellipsis;
  470. vertical-align: top;
  471. white-space: nowrap;
  472. }
  473. .file-list .name .wrap {
  474. max-width: 180px;
  475. }
  476. .file-list .text .wrap {
  477. max-width: 450px;
  478. }
  479. .file-list .date .wrap {
  480. max-width: 120px;
  481. padding: 0 20px 0 0;
  482. }
  483. .file-list .date {
  484. text-align: right;
  485. }
  486. .file-content .file-head {
  487. font-size: 18px;
  488. }
  489. .file-content .file-head .icon {
  490. color: #666;
  491. margin: 0 .5em 0 0;
  492. }
  493. .file-content .file-body {
  494. padding: 30px 30px 50px;
  495. }
  496. .branch-list th{
  497. background-color: #FFF;
  498. line-height: 28px !important;
  499. }
  500. .branch-list td{
  501. line-height: 36px !important;
  502. }
  503. .branch-box tr:hover td{
  504. background-color: rgba(19, 95, 215, 0.06) !important;
  505. }
  506. .branch-box .name{
  507. padding-left: 20px;
  508. font-size: 15px;
  509. }
  510. .branch-box .action{
  511. width: 150px;
  512. }
  513. .branch-box td.date,.branch-box td.behind,.branch-box td.ahead{
  514. width: 120px;
  515. font-family: Verdana, Arial, sans-serif;
  516. }
  517. .branch-box .graph{
  518. display: block;
  519. height: 3px;
  520. }
  521. .branch-box .behind{
  522. text-align: right;
  523. direction: rtl;
  524. }
  525. .branch-box .behind .graph{
  526. background-color: #888;
  527. }
  528. .branch-box .ahead .graph{
  529. background-color: #0093c4;
  530. }
  531. .branch-box .branch-main{
  532. background-color: #444;
  533. color: #FFF;
  534. border-color: #444;
  535. }
  536. .branch-box .branch-main a{
  537. color: #FFF;
  538. }
  539. .branch-box .branch-main .name .btn{
  540. margin-left: .5em;
  541. }
  542. /* wrapper and footer */
  543. #wrapper {
  544. min-height: 100%;
  545. height: auto !important;
  546. height: 100%;
  547. margin: 0 auto -100px;
  548. padding: 0 0 100px;
  549. }
  550. #footer {
  551. background: #fff;
  552. -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  553. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);;
  554. height: 100px;
  555. }
  556. #footer .footer-wrap {
  557. padding: 20px 15px;
  558. }
  559. #footer a {
  560. color: #000;
  561. }