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