_repository.less 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. .repository {
  2. @mega-octicon-width: 30px;
  3. padding-top: 15px;
  4. padding-bottom: @footer-margin * 3;
  5. .head {
  6. .column {
  7. padding-top: 5px!important;
  8. padding-bottom: 5px!important;
  9. }
  10. .ui.compact.menu {
  11. margin-left: 1rem;
  12. }
  13. .ui.header {
  14. margin-top: 0;
  15. }
  16. .mega-octicon {
  17. width: @mega-octicon-width;
  18. font-size: 30px;
  19. }
  20. .ui.huge.breadcrumb {
  21. font-weight: 300;
  22. font-size: 1.7rem;
  23. }
  24. .fork-flag {
  25. margin-left: @mega-octicon-width + 8px;
  26. display: block;
  27. font-size: 11px;
  28. line-height: 10px;
  29. white-space: nowrap;
  30. }
  31. }
  32. .metas {
  33. .menu {
  34. max-height: 300px;
  35. overflow-x: auto;
  36. }
  37. .ui.list {
  38. .hide {
  39. display: none!important;
  40. }
  41. .label.color {
  42. padding: 0 8px;
  43. margin-right: 5px;
  44. }
  45. a {
  46. padding-top: 5px;
  47. padding-right: 10px;
  48. .text {
  49. color: #444;
  50. &:hover {
  51. color: #000;
  52. }
  53. }
  54. }
  55. }
  56. }
  57. .filter.menu {
  58. .label.color {
  59. margin-left: 15px;
  60. padding: 0 8px;
  61. }
  62. .octicon {
  63. float: left;
  64. margin-left: -5px;
  65. margin-right: -7px;
  66. }
  67. .menu {
  68. max-height: 300px;
  69. overflow-x: auto;
  70. right: 0!important;
  71. left: auto!important;
  72. }
  73. .dropdown.item {
  74. margin: 1px;
  75. padding-right: 0;
  76. }
  77. }
  78. .page.buttons {
  79. padding-top: 15px;
  80. }
  81. .issue.list {
  82. list-style: none;
  83. padding-top: 15px;
  84. >.item {
  85. padding-top: 15px;
  86. padding-bottom: 10px;
  87. border-bottom: 1px dashed #AAA;
  88. .title {
  89. color: #444;
  90. font-size: 15px;
  91. font-weight: bold;
  92. margin: 0 6px;
  93. &:hover {
  94. color: #000;
  95. }
  96. }
  97. .comment {
  98. padding-right: 10px;
  99. color: #666;
  100. }
  101. .desc {
  102. padding-top: 5px;
  103. color: #999;
  104. a.milestone {
  105. padding-left: 5px;
  106. color: #999!important;
  107. &:hover {
  108. color: #000!important;
  109. }
  110. }
  111. .assignee {
  112. margin-top: -5px;
  113. margin-right: 5px;
  114. }
  115. }
  116. }
  117. }
  118. @comment-avatar-width: 3em;
  119. &.new.issue {
  120. .comment.form {
  121. .comment {
  122. .avatar {
  123. width: @comment-avatar-width;
  124. }
  125. }
  126. .content {
  127. margin-left: 4em;
  128. .markdown {
  129. font-size: 14px;
  130. }
  131. }
  132. .metas {
  133. min-width: 220px;
  134. .filter.menu {
  135. max-height: 300px;
  136. overflow-x: auto;
  137. }
  138. }
  139. }
  140. }
  141. &.view.issue {
  142. .title {
  143. padding-bottom: 0!important;
  144. h1 {
  145. font-weight: 300;
  146. font-size: 3rem;
  147. margin-bottom: 5px;
  148. }
  149. .index {
  150. font-weight: 300;
  151. color: #aaa;
  152. letter-spacing: -1px;
  153. }
  154. .label {
  155. margin-right: 10px;
  156. }
  157. }
  158. .comment-list {
  159. &:before {
  160. display: block;
  161. content: "";
  162. position: absolute;
  163. margin-top: 12px;
  164. margin-bottom: 14px;
  165. top: 0;
  166. bottom: 0;
  167. left: 96px;
  168. width: 2px;
  169. background-color: #f3f3f3;
  170. z-index: -1;
  171. }
  172. .comment {
  173. .avatar {
  174. width: @comment-avatar-width;
  175. }
  176. .tag {
  177. color: #767676;
  178. margin-top: 3px;
  179. padding: 2px 5px;
  180. font-size: 12px;
  181. border: 1px solid rgba(0,0,0,0.1);
  182. border-radius: 3px;
  183. }
  184. .content {
  185. margin-left: 4em;
  186. .header {
  187. font-weight: normal;
  188. padding: auto 15px;
  189. color: #767676;
  190. background-color: #f7f7f7;
  191. border-bottom: 1px solid #eee;
  192. border-top-left-radius: 3px;
  193. border-top-right-radius: 3px;
  194. .text {
  195. max-width: 78%;
  196. padding-top: 10px;
  197. padding-bottom: 10px;
  198. }
  199. }
  200. .markdown {
  201. font-size: 14px;
  202. }
  203. .no-content {
  204. color: #767676;
  205. font-style: italic;
  206. }
  207. > .bottom.segment {
  208. background: #f3f4f5;
  209. .ui.image {
  210. max-height: 150px;
  211. }
  212. }
  213. }
  214. .ui.form {
  215. .field:first-child {
  216. clear: none;
  217. }
  218. .tab.segment {
  219. border: none;
  220. padding: 0;
  221. padding-top: 10px;
  222. }
  223. textarea {
  224. height: 200px;
  225. }
  226. }
  227. }
  228. .event {
  229. position: relative;
  230. margin: 15px 0 15px 79px;
  231. padding-left: 25px;
  232. .octicon {
  233. width: 30px;
  234. float: left;
  235. margin-left: -36px;
  236. text-align: center;
  237. &.octicon-circle-slash {
  238. margin-top: 5px;
  239. font-size: 20px;
  240. color: #bd2c00;
  241. }
  242. &.octicon-primitive-dot {
  243. font-size: 35px;
  244. color: #6cc644;
  245. }
  246. }
  247. }
  248. }
  249. .ui.segment.metas {
  250. margin-top: -3px;
  251. }
  252. }
  253. .comment.form {
  254. .ui.comments {
  255. margin-top: -12px;
  256. max-width: 100%;
  257. }
  258. .content {
  259. .field:first-child {
  260. clear: none;
  261. }
  262. .tab.segment {
  263. border: none;
  264. padding: 0;
  265. padding-top: 10px;
  266. }
  267. textarea {
  268. height: 200px;
  269. }
  270. }
  271. }
  272. .label.list {
  273. list-style: none;
  274. padding-top: 15px;
  275. .item {
  276. padding-top: 10px;
  277. padding-bottom: 10px;
  278. border-bottom: 1px dashed #AAA;
  279. a {
  280. font-size: 15px;
  281. padding-top: 5px;
  282. padding-right: 10px;
  283. color: #666;
  284. &:hover {
  285. color: #000;
  286. }
  287. &.open-issues {
  288. margin-right: 30px;
  289. }
  290. }
  291. }
  292. }
  293. .milestone.list {
  294. list-style: none;
  295. padding-top: 15px;
  296. > .item {
  297. padding-top: 10px;
  298. padding-bottom: 10px;
  299. border-bottom: 1px dashed #AAA;
  300. > a {
  301. padding-top: 5px;
  302. padding-right: 10px;
  303. color: #000;
  304. &:hover {
  305. color: #4078c0;
  306. }
  307. }
  308. .ui.progress {
  309. width: 40%;
  310. padding: 0;
  311. border: 0;
  312. margin: 0;
  313. .bar {
  314. height: 20px;
  315. }
  316. }
  317. .meta {
  318. color: #999;
  319. padding-top: 5px;
  320. .issue-stats .octicon{
  321. padding-left: 5px;
  322. }
  323. .overdue {
  324. color: red;
  325. }
  326. }
  327. .operate {
  328. margin-top: -15px;
  329. > a {
  330. font-size: 15px;
  331. padding-top: 5px;
  332. padding-right: 10px;
  333. color: #666;
  334. &:hover {
  335. color: #000;
  336. }
  337. }
  338. }
  339. .content {
  340. padding-top: 10px;
  341. }
  342. }
  343. }
  344. &.new.milestone {
  345. textarea {
  346. height: 200px;
  347. }
  348. #deadline {
  349. width: 150px;
  350. }
  351. }
  352. &.compare.pull {
  353. .choose.branch {
  354. .octicon {
  355. padding-right: 10px;
  356. }
  357. }
  358. }
  359. .filter.dropdown .menu {
  360. margin-top: 1px!important;
  361. .items {
  362. max-height: 300px;
  363. overflow-y: auto;
  364. .item {
  365. position: relative;
  366. cursor: pointer;
  367. display: block;
  368. border: none;
  369. height: auto;
  370. border-top: none;
  371. line-height: 1em;
  372. color: rgba(0,0,0,.8);
  373. padding: .71428571em 1.14285714em!important;
  374. font-size: 1rem;
  375. text-transform: none;
  376. font-weight: 400;
  377. box-shadow: none;
  378. -webkit-touch-callout: none;
  379. &.active {
  380. font-weight: 700;
  381. }
  382. &:hover {
  383. background: rgba(0,0,0,.05);
  384. color: rgba(0,0,0,.8);
  385. z-index: 13;
  386. }
  387. }
  388. }
  389. }
  390. }
  391. .ui.comments {
  392. .dropzone {
  393. width: 100%;
  394. margin-bottom: 10px;
  395. border: 2px dashed #0087F7;
  396. box-shadow: none!important;
  397. .dz-error-message {
  398. top: 140px;
  399. }
  400. }
  401. }
  402. .settings {
  403. .content {
  404. margin-top: 2px;
  405. .header,
  406. .segment {
  407. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  408. }
  409. }
  410. .key.list {
  411. .item:not(:first-child) {
  412. border-top: 1px solid #eaeaea;
  413. }
  414. .ssh-key-state-indicator {
  415. float: left;
  416. color: gray;
  417. padding-left: 10px;
  418. padding-top: 10px;
  419. &.active {
  420. color: #6cc644;
  421. }
  422. }
  423. .meta {
  424. padding-top: 5px;
  425. }
  426. .print {
  427. color: #767676;
  428. }
  429. .activity {
  430. color: #666;
  431. }
  432. }
  433. }
  434. .ui.vertical.menu {
  435. .header.item {
  436. font-size: 1.1em;
  437. background: #f0f0f0;
  438. }
  439. }
  440. .edit-label.modal,
  441. .new-label.segment {
  442. .form {
  443. .column {
  444. padding-right: 0;
  445. }
  446. .buttons {
  447. margin-left: auto;
  448. padding-top: 15px;
  449. }
  450. .color.picker.column {
  451. width: auto;
  452. .color-picker {
  453. height: 35px;
  454. width: auto;
  455. padding-left: 30px;
  456. }
  457. }
  458. .minicolors-swatch.minicolors-sprite {
  459. top: 10px;
  460. left: 10px;
  461. width: 15px;
  462. height: 15px;
  463. }
  464. .precolors {
  465. padding-left: 0;
  466. padding-right: 0;
  467. margin: 3px 10px auto 10px;
  468. width: 120px;
  469. .color {
  470. float: left;
  471. width: 15px;
  472. height: 15px;
  473. }
  474. }
  475. }
  476. }