repository.less 7.6 KB

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