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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  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,
  56. .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: -354px;
  77. padding: 20px;
  78. box-sizing: border-box;
  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. 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,
  201. 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. #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. .octicon {
  335. margin-right: 12px;
  336. opacity: 0;
  337. }
  338. top: 30px;
  339. left: 0;
  340. .avatar {
  341. width: 20px;
  342. height: 20px;
  343. }
  344. li.checked {
  345. .octicon {
  346. opacity: 1;
  347. }
  348. }
  349. }
  350. .file-name {
  351. margin-left: 1em;
  352. }
  353. .file-size {
  354. font-size: 13px;
  355. color: #888;
  356. margin-left: 1em;
  357. }
  358. .code-view {
  359. overflow: auto;
  360. overflow-x: auto;
  361. overflow-y: hidden;
  362. background: white;
  363. .view-raw {
  364. min-height: 40px;
  365. text-align: center;
  366. padding-top: 20px;
  367. .btn {
  368. font-size: 1.05em;
  369. line-height: 16px;
  370. padding: 6px 8px;
  371. }
  372. }
  373. table {
  374. width: 100%;
  375. td {
  376. padding: 0;
  377. }
  378. }
  379. .lines-num {
  380. text-align: right;
  381. color: #999;
  382. background: #f5f5f5;
  383. width: 1%;
  384. span {
  385. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  386. line-height: 18px;
  387. padding: 0 8px 0 10px;
  388. cursor: pointer;
  389. display: block;
  390. margin-top: 2px;
  391. font-size: 12px;
  392. }
  393. }
  394. .lines-code > pre {
  395. border: none;
  396. border-left: 1px solid #ddd;
  397. > ol.linenums > li {
  398. padding: 0 10px;
  399. &.active {
  400. background: #ffffdd;
  401. }
  402. }
  403. }
  404. }
  405. .repo-setting-zone {
  406. padding: 30px;
  407. }