You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repository.less 6.3KB

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