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.

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