repository.less 6.5 KB

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