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

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