repository.less 7.6 KB

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