repository.less 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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. #team-create-form,
  303. #repo-migrate-form,
  304. #repo-create-form {
  305. width: 800px;
  306. margin: 60px auto auto auto;
  307. background: white;
  308. h2 {
  309. margin: .5em 1em;
  310. }
  311. .field {
  312. margin: 1.2em 0 2em 0;
  313. }
  314. .ipt {
  315. width: 540px;
  316. }
  317. textarea {
  318. height: 120px;
  319. }
  320. .avatar {
  321. vertical-align: middle;
  322. margin-right: .6em;
  323. width: 28px;
  324. height: 28px;
  325. }
  326. &:hover {
  327. box-shadow: 0px 0px 6px #CCC;
  328. }
  329. }
  330. #repo-create-cancel {
  331. margin-left: 4em;
  332. }
  333. #repo-create-owner-list {
  334. top: 30px;
  335. left: 0;
  336. width: auto;
  337. max-width: 300px;
  338. .octicon {
  339. margin-right: 12px;
  340. opacity: 0;
  341. }
  342. .avatar {
  343. width: 20px;
  344. height: 20px;
  345. }
  346. li {
  347. white-space: nowrap;
  348. &.checked {
  349. .octicon {
  350. opacity: 1;
  351. }
  352. }
  353. a {
  354. text-overflow: ellipsis;
  355. -o-text-overflow: ellipsis;
  356. overflow: hidden;
  357. }
  358. }
  359. }
  360. .file-name {
  361. margin-left: 1em;
  362. }
  363. .file-size {
  364. font-size: 13px;
  365. color: #888;
  366. margin-left: 1em;
  367. }
  368. .code-view {
  369. overflow: auto;
  370. overflow-x: auto;
  371. overflow-y: hidden;
  372. background: white;
  373. .view-raw {
  374. min-height: 40px;
  375. text-align: center;
  376. padding-top: 20px;
  377. .btn {
  378. font-size: 1.05em;
  379. line-height: 16px;
  380. padding: 6px 8px;
  381. }
  382. }
  383. table {
  384. width: 100%;
  385. td {
  386. padding: 0;
  387. }
  388. }
  389. .lines-num {
  390. text-align: right;
  391. color: #999;
  392. background: #f5f5f5;
  393. width: 1%;
  394. span {
  395. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  396. line-height: 18px;
  397. padding: 0 8px 0 10px;
  398. cursor: pointer;
  399. display: block;
  400. margin-top: 2px;
  401. font-size: 12px;
  402. }
  403. }
  404. .lines-code > pre {
  405. border: none;
  406. border-left: 1px solid #ddd;
  407. > ol.linenums > li {
  408. padding: 0 10px;
  409. &.active {
  410. background: #ffffdd;
  411. }
  412. }
  413. }
  414. }
  415. .repo-setting-zone {
  416. padding: 30px;
  417. }
  418. #repo-collab-list {
  419. list-style: none;
  420. padding: 10px 0 5px 0;
  421. li.collab {
  422. clear: both;
  423. height: 50px;
  424. padding: 0 15px 0 15px;
  425. }
  426. a.member {
  427. color: #444;
  428. height: 50px;
  429. line-height: 50px;
  430. &:hover {
  431. color: #4183C4;
  432. }
  433. }
  434. .avatar {
  435. margin-right: 1em;
  436. width: 40px;
  437. }
  438. .remove-collab {
  439. color: #DD4B39;
  440. }
  441. }
  442. .repo-user-list-block {
  443. position: relative;
  444. top: 5px;
  445. }
  446. .setting-list {
  447. width: 100%;
  448. list-style: none;
  449. }