repository.less 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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. }
  208. #repo-branch-list,
  209. #repo-tag-list {
  210. li {
  211. i {
  212. margin-right: 12px;
  213. opacity: 0;
  214. }
  215. }
  216. li.checked {
  217. i {
  218. opacity: 1;
  219. }
  220. }
  221. }
  222. #repo-tag-list {
  223. display: none;
  224. }
  225. #repo-bread {
  226. .bread {
  227. padding-right: 0;
  228. font-size: 16px;
  229. font-weight: bold;
  230. }
  231. }
  232. #repo-main {
  233. padding-right: 40px;
  234. box-sizing: border-box;
  235. }
  236. #repo-files-table {
  237. margin-bottom: 20px;
  238. th, td {
  239. text-align: left;
  240. line-height: 32px;
  241. }
  242. td.icon {
  243. width: 16px;
  244. padding-right: .1em;
  245. padding-left: 1em;
  246. }
  247. td.name {
  248. max-width: 120px;
  249. .text-truncate {
  250. max-width: 100%;
  251. }
  252. }
  253. td.age {
  254. max-width: 120px;
  255. text-align: right;
  256. }
  257. td.msg {
  258. max-width: 440px;
  259. .text-truncate {
  260. max-width: 100%;
  261. }
  262. }
  263. td.age,
  264. td.size,
  265. td.msg a {
  266. color: #888;
  267. }
  268. td.msg a:hover {
  269. color: #428BCA;
  270. text-decoration: underline;
  271. }
  272. tbody {
  273. background-color: #FFF;
  274. tr:hover {
  275. background-color: #ffffEE;
  276. }
  277. }
  278. thead {
  279. background-color: #F0F0F0;
  280. .author {
  281. a {
  282. margin: 0 .4em;
  283. }
  284. }
  285. .last-commit {
  286. strong {
  287. color: #444;
  288. }
  289. .text-truncate {
  290. margin-left: .4em;
  291. }
  292. }
  293. .last-commit .text-truncate,
  294. .age {
  295. font-weight: normal;
  296. color: #888;
  297. }
  298. }
  299. }
  300. #repo-readme {
  301. margin-bottom: 80px;
  302. }
  303. #repo-bare-start {
  304. margin-bottom: 100px;
  305. .panel-content {
  306. background-color: #FFF;
  307. }
  308. pre {
  309. margin: 0 40px;
  310. padding: 6px 10px;
  311. border: 1px solid #ddd;
  312. background: #f8f8f8;
  313. }
  314. }
  315. .repo-bare {
  316. #repo-bare-start {
  317. h2 {
  318. margin-top: 30px;
  319. margin-bottom: 24px;
  320. }
  321. }
  322. #repo-header-meta {
  323. display: none;
  324. }
  325. #repo-clone-ssh {
  326. margin-left: 200px;
  327. }
  328. #repo-clone-copy {
  329. margin-right: 200px;
  330. }
  331. #repo-clone-help {
  332. clear: both;
  333. width: 100%;
  334. }
  335. #repo-clone-url {
  336. width: 520px;
  337. }
  338. }
  339. /* repository create */
  340. #team-create-form,
  341. #repo-migrate-form,
  342. #repo-create-form {
  343. width: 800px;
  344. margin: 60px auto auto auto;
  345. background: white;
  346. h2 {
  347. margin: .5em 1em;
  348. }
  349. .field {
  350. margin: 1.2em 0 2em 0;
  351. }
  352. .ipt {
  353. width: 540px;
  354. }
  355. textarea {
  356. height: 120px;
  357. }
  358. .avatar {
  359. vertical-align: middle;
  360. margin-right: .6em;
  361. width: 28px;
  362. height: 28px;
  363. }
  364. &:hover {
  365. box-shadow: 0px 0px 6px #CCC;
  366. }
  367. }
  368. #repo-create-cancel {
  369. margin-left: 4em;
  370. }
  371. #repo-create-owner-list {
  372. top: 30px;
  373. left: 0;
  374. width: auto;
  375. max-width: 300px;
  376. .octicon {
  377. margin-right: 12px;
  378. opacity: 0;
  379. }
  380. .avatar {
  381. width: 20px;
  382. height: 20px;
  383. }
  384. li {
  385. white-space: nowrap;
  386. &.checked {
  387. .octicon {
  388. opacity: 1;
  389. }
  390. }
  391. a {
  392. text-overflow: ellipsis;
  393. -o-text-overflow: ellipsis;
  394. overflow: hidden;
  395. }
  396. }
  397. }
  398. .file-name {
  399. margin-left: 1em;
  400. }
  401. .file-size {
  402. font-size: 13px;
  403. color: #888;
  404. margin-left: 1em;
  405. }
  406. .code-view {
  407. overflow: auto;
  408. overflow-x: auto;
  409. overflow-y: hidden;
  410. background: white;
  411. .view-raw {
  412. min-height: 40px;
  413. text-align: center;
  414. padding-top: 20px;
  415. .btn {
  416. font-size: 1.05em;
  417. line-height: 16px;
  418. padding: 6px 8px;
  419. }
  420. }
  421. table {
  422. width: 100%;
  423. td {
  424. padding: 0;
  425. }
  426. }
  427. .lines-num {
  428. vertical-align: top;
  429. text-align: right;
  430. color: #999;
  431. background: #f5f5f5;
  432. width: 1%;
  433. span {
  434. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  435. line-height: 18px;
  436. padding: 0 8px 0 10px;
  437. cursor: pointer;
  438. display: block;
  439. margin-top: 2px;
  440. font-size: 12px;
  441. }
  442. }
  443. .lines-code > pre {
  444. border: none;
  445. border-left: 1px solid #ddd;
  446. > ol.linenums > li {
  447. padding: 0 10px;
  448. &.active {
  449. background: #ffffdd;
  450. }
  451. }
  452. }
  453. }
  454. .repo-setting-zone {
  455. padding: 30px;
  456. }
  457. #team-repositories-list,
  458. #team-members-list,
  459. #repo-collab-list {
  460. list-style: none;
  461. padding: 10px 0 5px 0;
  462. li.collab {
  463. clear: both;
  464. height: 50px;
  465. padding: 0 15px 0 15px;
  466. }
  467. a.member {
  468. color: #444;
  469. height: 50px;
  470. line-height: 50px;
  471. &:hover {
  472. color: #4183C4;
  473. }
  474. }
  475. .avatar {
  476. margin-right: 1em;
  477. width: 40px;
  478. }
  479. .remove-collab {
  480. color: #DD4B39;
  481. }
  482. }
  483. .repo-user-list-block {
  484. position: relative;
  485. top: 5px;
  486. }
  487. .setting-list {
  488. width: 100%;
  489. list-style: none;
  490. }