repository.less 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  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. #repo-read-file{
  303. margin-bottom: 80px;
  304. }
  305. #repo-bare-start {
  306. margin-bottom: 100px;
  307. .panel-content {
  308. background-color: #FFF;
  309. }
  310. pre {
  311. margin: 0 40px;
  312. padding: 6px 10px;
  313. border: 1px solid #ddd;
  314. background: #f8f8f8;
  315. }
  316. }
  317. .repo-bare {
  318. #repo-bare-start {
  319. h2 {
  320. margin-top: 30px;
  321. margin-bottom: 24px;
  322. }
  323. }
  324. #repo-header-meta {
  325. display: none;
  326. }
  327. #repo-clone-ssh {
  328. margin-left: 200px;
  329. }
  330. #repo-clone-copy {
  331. margin-right: 200px;
  332. }
  333. #repo-clone-help {
  334. clear: both;
  335. width: 100%;
  336. }
  337. #repo-clone-url {
  338. width: 520px;
  339. }
  340. }
  341. /* repository create */
  342. #team-create-form,
  343. #repo-migrate-form,
  344. #repo-create-form {
  345. width: 800px;
  346. margin: 60px auto auto auto;
  347. background: white;
  348. h2 {
  349. margin: .5em 1em;
  350. }
  351. .field {
  352. margin: 1.2em 0 2em 0;
  353. }
  354. .ipt {
  355. width: 540px;
  356. }
  357. textarea {
  358. height: 120px;
  359. }
  360. .avatar {
  361. vertical-align: middle;
  362. margin-right: .6em;
  363. width: 28px;
  364. height: 28px;
  365. }
  366. &:hover {
  367. box-shadow: 0px 0px 6px #CCC;
  368. }
  369. }
  370. #repo-create-cancel {
  371. margin-left: 4em;
  372. }
  373. #repo-create-owner-list {
  374. top: 30px;
  375. left: 0;
  376. width: auto;
  377. max-width: 300px;
  378. .octicon {
  379. margin-right: 12px;
  380. opacity: 0;
  381. }
  382. .avatar {
  383. width: 20px;
  384. height: 20px;
  385. }
  386. li {
  387. white-space: nowrap;
  388. &.checked {
  389. .octicon {
  390. opacity: 1;
  391. }
  392. }
  393. a {
  394. text-overflow: ellipsis;
  395. -o-text-overflow: ellipsis;
  396. overflow: hidden;
  397. }
  398. }
  399. }
  400. .file-name {
  401. margin-left: 1em;
  402. }
  403. .file-size {
  404. font-size: 13px;
  405. color: #888;
  406. margin-left: 1em;
  407. }
  408. .code-view {
  409. overflow: auto;
  410. overflow-x: auto;
  411. overflow-y: hidden;
  412. background: white;
  413. .view-raw {
  414. min-height: 40px;
  415. text-align: center;
  416. padding-top: 20px;
  417. .btn {
  418. font-size: 1.05em;
  419. line-height: 16px;
  420. padding: 6px 8px;
  421. }
  422. }
  423. table {
  424. width: 100%;
  425. td {
  426. padding: 0;
  427. }
  428. }
  429. .lines-num {
  430. vertical-align: top;
  431. text-align: right;
  432. color: #999;
  433. background: #f5f5f5;
  434. width: 1%;
  435. span {
  436. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  437. line-height: 18px;
  438. padding: 0 8px 0 10px;
  439. cursor: pointer;
  440. display: block;
  441. margin-top: 2px;
  442. font-size: 12px;
  443. }
  444. }
  445. .lines-code > pre {
  446. border: none;
  447. border-left: 1px solid #ddd;
  448. > ol.linenums > li {
  449. padding: 0 10px;
  450. &.active {
  451. background: #ffffdd;
  452. }
  453. }
  454. }
  455. }
  456. .repo-setting-zone {
  457. padding: 30px;
  458. }
  459. #team-repositories-list,
  460. #team-members-list,
  461. #repo-collab-list {
  462. list-style: none;
  463. padding: 10px 0 5px 0;
  464. li.collab {
  465. clear: both;
  466. height: 50px;
  467. padding: 0 15px 0 15px;
  468. }
  469. a.member {
  470. color: #444;
  471. height: 50px;
  472. line-height: 50px;
  473. &:hover {
  474. color: #4183C4;
  475. }
  476. }
  477. .avatar {
  478. margin-right: 1em;
  479. width: 40px;
  480. }
  481. .remove-collab {
  482. color: #DD4B39;
  483. }
  484. }
  485. .repo-user-list-block {
  486. position: relative;
  487. top: 5px;
  488. }
  489. .setting-list {
  490. width: 100%;
  491. list-style: none;
  492. }
  493. #commits-list {
  494. padding-top: 20px;
  495. }
  496. .commit-list {
  497. th {
  498. background-color: #FFF;
  499. line-height: 28px !important;
  500. }
  501. .date {
  502. width: 120px;
  503. }
  504. .author {
  505. padding-left: 20px;
  506. min-width: 180px;
  507. img {
  508. margin-top: -4px;
  509. }
  510. }
  511. .sha a {
  512. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  513. font-size: 14px;
  514. }
  515. }