repository.less 6.4 KB

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