repository.less 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. @import "../ui/var";
  2. @repoHeaderBorderColor: #D6D6D6;
  3. @repoHeaderBgColor: #FFF;
  4. @repoHeaderNameColor: #888;
  5. /* repository main */
  6. #repo-wrapper {
  7. padding-bottom: 100px;
  8. }
  9. #repo-header {
  10. height: 69px;
  11. border-bottom: 1px solid@repoHeaderBorderColor;
  12. background-color: @repoHeaderBgColor;
  13. }
  14. #repo-header-name {
  15. line-height: 66px;
  16. color: @repoHeaderNameColor;
  17. font-size: 1.6em;
  18. font-weight: normal;
  19. margin-bottom: 0;
  20. i {
  21. margin-right: 12px;
  22. vertical-align: middle;
  23. }
  24. .divider {
  25. margin: 0 4px;
  26. }
  27. }
  28. #repo-header-meta {
  29. line-height: 66px;
  30. li {
  31. > a {
  32. padding: 0;
  33. &:hover {
  34. background-color: transparent;
  35. }
  36. }
  37. }
  38. a {
  39. & > .btn {
  40. line-height: 16px;
  41. margin-left: 16px;
  42. font-size: 13px;
  43. i {
  44. margin-right: 6px;
  45. }
  46. .num {
  47. margin-left: 6px;
  48. }
  49. }
  50. }
  51. }
  52. #repo-header-download-btn {
  53. > .btn > i {
  54. margin-right: 0 !important;
  55. }
  56. &:hover {
  57. &:after, .btn {
  58. background-color: @btnHoverBlackColor;
  59. color: #FFF;
  60. }
  61. }
  62. &:after {
  63. background-color: @btnBlackColor;
  64. padding: 9px 16px 8px 0;
  65. margin-left: -8px !important;
  66. color: #FFF;
  67. border-top: 1px solid@btnBlackColor;
  68. border-bottom: 1px solid@btnBlackColor;
  69. border-top-right-radius: .25em;
  70. border-bottom-right-radius: .25em;
  71. }
  72. }
  73. #repo-header-download-drop {
  74. line-height: 24px;
  75. width: 440px;
  76. top: 50px;
  77. left: -370px;
  78. padding: 20px;
  79. box-sizing: border-box;
  80. z-index: 1;
  81. .btn > i {
  82. margin-right: 6px;
  83. }
  84. button,
  85. input {
  86. font-size: 11px;
  87. }
  88. }
  89. #repo-content {
  90. padding: 18px 0;
  91. }
  92. #repo-clone-url {
  93. border-right: none;
  94. width: 190px;
  95. border-left: none;
  96. }
  97. #repo-clone-help {
  98. clear: both;
  99. line-height: 48px;
  100. }
  101. #repo-clone-zip {
  102. line-height: 48px;
  103. a {
  104. cursor: pointer;
  105. color: white;
  106. overflow: visible;
  107. padding: .6em 1.2em;
  108. }
  109. .btn {
  110. margin: 0 6px;
  111. }
  112. }
  113. #repo-desc {
  114. font-size: 1.2em;
  115. }
  116. #repo-sidebar-nav {
  117. .label {
  118. font-size: 12px;
  119. line-height: 1.4em;
  120. margin-top: 2px;
  121. }
  122. i {
  123. margin-right: 6px;
  124. }
  125. }
  126. #repo-sidebar-mini {
  127. margin-top: 6px;
  128. width: 60px;
  129. li {
  130. margin-bottom: 4px;
  131. }
  132. li > a {
  133. position: relative;
  134. padding-left: 12px;
  135. width: 24px;
  136. text-align: center;
  137. > i.octicon{
  138. font-size: 21px;
  139. }
  140. }
  141. .num{
  142. position: absolute;
  143. font-size: 12px;
  144. top:0;
  145. left: 36px;
  146. padding: 0 2px;
  147. min-width: 16px;
  148. height: 16px;
  149. text-align: center;
  150. line-height: 16px;
  151. border-radius: 4px;
  152. opacity: 0.7;
  153. -webkit-transform: scale(0.9);
  154. font-weight: bold;
  155. }
  156. }
  157. #repo-file-nav {
  158. padding: .6em 0 1em 0;
  159. > li > a {
  160. padding-left: 0;
  161. &:hover {
  162. background-color: transparent;
  163. }
  164. }
  165. li.repo-jump > a {
  166. padding-right: 0;
  167. .btn {
  168. margin-left: -1px;
  169. }
  170. }
  171. }
  172. #repo-branch-switch {
  173. > a {
  174. .btn {
  175. padding-right: 30px;
  176. }
  177. &:after {
  178. position: absolute;
  179. top: 12px;
  180. right: 30px;
  181. margin-left: 0;
  182. color: @baseFontColor;
  183. }
  184. }
  185. > .drop-down {
  186. top: 40px;
  187. left: 0;
  188. }
  189. }
  190. #repo-branch-filter-ipt {
  191. width: 100%;
  192. border-left: none;
  193. border-right: none;
  194. box-sizing: border-box;
  195. }
  196. #repo-branch-tag {
  197. .tab-nav {
  198. border-bottom: 1px solid #EAEAEA;
  199. a {
  200. padding: .3em .8em;
  201. }
  202. .js-tab-nav-show {
  203. background-color: #EEE;
  204. font-weight: bold;
  205. }
  206. }
  207. .switching-list {
  208. max-height: 300px;
  209. overflow-y: auto;
  210. }
  211. }
  212. #repo-branch-list,
  213. #repo-tag-list {
  214. li {
  215. i {
  216. margin-right: 12px;
  217. opacity: 0;
  218. }
  219. }
  220. li.checked {
  221. i {
  222. opacity: 1;
  223. }
  224. }
  225. }
  226. #repo-bread {
  227. .bread {
  228. padding-right: 0;
  229. font-size: 16px;
  230. font-weight: bold;
  231. }
  232. }
  233. #repo-main {
  234. padding-right: 40px;
  235. box-sizing: border-box;
  236. }
  237. #repo-files-table {
  238. margin-bottom: 20px;
  239. th, td {
  240. text-align: left;
  241. line-height: 32px;
  242. }
  243. td.icon {
  244. width: 16px;
  245. padding-right: .1em;
  246. padding-left: 1em;
  247. }
  248. td.name {
  249. max-width: 120px;
  250. .text-truncate {
  251. max-width: 100%;
  252. }
  253. }
  254. td.age {
  255. max-width: 120px;
  256. text-align: right;
  257. }
  258. td.msg {
  259. max-width: 440px;
  260. .text-truncate {
  261. max-width: 100%;
  262. }
  263. }
  264. td.age,
  265. td.size,
  266. td.msg a {
  267. color: #888;
  268. }
  269. td.msg a:hover {
  270. color: #428BCA;
  271. text-decoration: underline;
  272. }
  273. tbody {
  274. background-color: #FFF;
  275. tr:hover {
  276. background-color: #ffffEE;
  277. }
  278. }
  279. thead {
  280. background-color: #F0F0F0;
  281. .author {
  282. a {
  283. margin: 0 .4em;
  284. }
  285. }
  286. .last-commit {
  287. strong {
  288. color: #444;
  289. }
  290. .text-truncate {
  291. margin-left: .4em;
  292. }
  293. }
  294. .last-commit .text-truncate,
  295. .age {
  296. font-weight: normal;
  297. color: #888;
  298. }
  299. }
  300. }
  301. #repo-readme {
  302. margin-bottom: 80px;
  303. }
  304. #repo-bare-start {
  305. margin-bottom: 100px;
  306. .panel-content {
  307. background-color: #FFF;
  308. }
  309. pre {
  310. margin: 0 40px;
  311. padding: 6px 10px;
  312. border: 1px solid #ddd;
  313. background: #f8f8f8;
  314. }
  315. }
  316. .repo-bare {
  317. #repo-bare-start {
  318. h2 {
  319. margin-top: 30px;
  320. margin-bottom: 24px;
  321. }
  322. }
  323. #repo-header-meta {
  324. display: none;
  325. }
  326. #repo-clone-ssh {
  327. margin-left: 200px;
  328. }
  329. #repo-clone-copy {
  330. margin-right: 200px;
  331. }
  332. #repo-clone-help {
  333. clear: both;
  334. width: 100%;
  335. }
  336. #repo-clone-url {
  337. width: 520px;
  338. }
  339. }
  340. /* repository create */
  341. #team-create-form,
  342. #repo-migrate-form,
  343. #repo-create-form {
  344. width: 800px;
  345. margin: 60px auto auto auto;
  346. background: white;
  347. h2 {
  348. margin: .5em 1em;
  349. }
  350. .field {
  351. margin: 1.2em 0 2em 0;
  352. }
  353. .ipt {
  354. width: 540px;
  355. }
  356. textarea {
  357. height: 120px;
  358. }
  359. .avatar {
  360. vertical-align: middle;
  361. margin-right: .6em;
  362. width: 28px;
  363. height: 28px;
  364. }
  365. &:hover {
  366. box-shadow: 0px 0px 6px #CCC;
  367. }
  368. }
  369. #repo-create-cancel {
  370. margin-left: 4em;
  371. }
  372. #repo-create-owner-list {
  373. top: 30px;
  374. left: 0;
  375. width: auto;
  376. max-width: 300px;
  377. .octicon {
  378. margin-right: 12px;
  379. opacity: 0;
  380. }
  381. .avatar {
  382. width: 20px;
  383. height: 20px;
  384. }
  385. li {
  386. white-space: nowrap;
  387. &.checked {
  388. .octicon {
  389. opacity: 1;
  390. }
  391. }
  392. a {
  393. text-overflow: ellipsis;
  394. -o-text-overflow: ellipsis;
  395. overflow: hidden;
  396. }
  397. }
  398. }
  399. .file-name {
  400. margin-left: 1em;
  401. }
  402. .file-size {
  403. font-size: 13px;
  404. color: #888;
  405. margin-left: 1em;
  406. }
  407. .code-view {
  408. overflow: auto;
  409. overflow-x: auto;
  410. overflow-y: hidden;
  411. background: white;
  412. .view-raw {
  413. min-height: 40px;
  414. text-align: center;
  415. padding-top: 20px;
  416. .btn {
  417. font-size: 1.05em;
  418. line-height: 16px;
  419. padding: 6px 8px;
  420. }
  421. }
  422. table {
  423. width: 100%;
  424. td {
  425. padding: 0;
  426. }
  427. }
  428. .lines-num {
  429. vertical-align: top;
  430. text-align: right;
  431. color: #999;
  432. background: #f5f5f5;
  433. width: 1%;
  434. span {
  435. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  436. line-height: 18px;
  437. padding: 0 8px 0 10px;
  438. cursor: pointer;
  439. display: block;
  440. margin-top: 2px;
  441. font-size: 12px;
  442. }
  443. }
  444. .lines-code > pre {
  445. border: none;
  446. border-left: 1px solid #ddd;
  447. > ol.linenums > li {
  448. padding: 0 10px;
  449. &.active {
  450. background: #ffffdd;
  451. }
  452. }
  453. }
  454. }
  455. .repo-setting-zone {
  456. padding: 30px;
  457. }
  458. #team-repositories-list,
  459. #team-members-list,
  460. #repo-collab-list {
  461. list-style: none;
  462. padding: 10px 0 5px 0;
  463. li.collab {
  464. clear: both;
  465. height: 50px;
  466. padding: 0 15px 0 15px;
  467. }
  468. a.member {
  469. color: #444;
  470. height: 50px;
  471. line-height: 50px;
  472. &:hover {
  473. color: #4183C4;
  474. }
  475. }
  476. .avatar {
  477. margin-right: 1em;
  478. width: 40px;
  479. }
  480. .remove-collab {
  481. color: #DD4B39;
  482. }
  483. }
  484. .repo-user-list-block {
  485. position: relative;
  486. top: 5px;
  487. }
  488. .setting-list {
  489. width: 100%;
  490. list-style: none;
  491. }
  492. #commits-list {
  493. padding-top: 20px;
  494. }
  495. .commit-list {
  496. th {
  497. background-color: #FFF;
  498. line-height: 28px !important;
  499. }
  500. .date {
  501. width: 120px;
  502. }
  503. .author {
  504. padding-left: 20px;
  505. min-width: 180px;
  506. img {
  507. margin-top: -4px;
  508. }
  509. }
  510. .sha a {
  511. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  512. font-size: 14px;
  513. }
  514. }
  515. .no-desc {
  516. color: #888;
  517. font-style: italic;
  518. }