_repository.less 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. .repository {
  2. @mega-octicon-width: 30px;
  3. padding-top: 15px;
  4. padding-bottom: @footer-margin * 2;
  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. .ui.input {
  149. font-size: 0.5em;
  150. vertical-align: top;
  151. width: 50%;
  152. min-width: 600px;
  153. input {
  154. font-size: 1.5em;
  155. padding: 6px 10px;
  156. }
  157. }
  158. }
  159. .index {
  160. font-weight: 300;
  161. color: #aaa;
  162. letter-spacing: -1px;
  163. }
  164. .label {
  165. margin-right: 10px;
  166. }
  167. .edit-zone {
  168. margin-top: 10px;
  169. }
  170. }
  171. .comment-list {
  172. &:before {
  173. display: block;
  174. content: "";
  175. position: absolute;
  176. margin-top: 12px;
  177. margin-bottom: 14px;
  178. top: 0;
  179. bottom: 0;
  180. left: 96px;
  181. width: 2px;
  182. background-color: #f3f3f3;
  183. z-index: -1;
  184. }
  185. .comment {
  186. .avatar {
  187. width: @comment-avatar-width;
  188. }
  189. .tag {
  190. color: #767676;
  191. margin-top: 3px;
  192. padding: 2px 5px;
  193. font-size: 12px;
  194. border: 1px solid rgba(0,0,0,0.1);
  195. border-radius: 3px;
  196. }
  197. .actions {
  198. .item {
  199. float: left;
  200. }
  201. a.item {
  202. margin-top: 6px;
  203. margin-left: 10px;
  204. }
  205. }
  206. .content {
  207. margin-left: 4em;
  208. .header {
  209. font-weight: normal;
  210. padding: auto 15px;
  211. color: #767676;
  212. background-color: #f7f7f7;
  213. border-bottom: 1px solid #eee;
  214. border-top-left-radius: 3px;
  215. border-top-right-radius: 3px;
  216. .text {
  217. max-width: 78%;
  218. padding-top: 10px;
  219. padding-bottom: 10px;
  220. }
  221. }
  222. .markdown {
  223. font-size: 14px;
  224. }
  225. .no-content {
  226. color: #767676;
  227. font-style: italic;
  228. }
  229. > .bottom.segment {
  230. background: #f3f4f5;
  231. .ui.image {
  232. max-height: 150px;
  233. }
  234. }
  235. }
  236. .ui.form {
  237. .field:first-child {
  238. clear: none;
  239. }
  240. .tab.segment {
  241. border: none;
  242. padding: 0;
  243. padding-top: 10px;
  244. }
  245. textarea {
  246. height: 200px;
  247. }
  248. }
  249. .edit.buttons {
  250. margin-top: 10px;
  251. }
  252. }
  253. .event {
  254. position: relative;
  255. margin: 15px 0 15px 79px;
  256. padding-left: 25px;
  257. .octicon {
  258. width: 30px;
  259. float: left;
  260. margin-left: -36px;
  261. text-align: center;
  262. &.octicon-circle-slash {
  263. margin-top: 5px;
  264. font-size: 20px;
  265. color: #bd2c00;
  266. }
  267. &.octicon-primitive-dot {
  268. font-size: 35px;
  269. color: #6cc644;
  270. }
  271. }
  272. }
  273. }
  274. .ui.segment.metas {
  275. margin-top: -3px;
  276. }
  277. }
  278. .comment.form {
  279. .ui.comments {
  280. margin-top: -12px;
  281. max-width: 100%;
  282. }
  283. .content {
  284. .field:first-child {
  285. clear: none;
  286. }
  287. .tab.segment {
  288. border: none;
  289. padding: 0;
  290. padding-top: 10px;
  291. }
  292. textarea {
  293. height: 200px;
  294. }
  295. }
  296. }
  297. .label.list {
  298. list-style: none;
  299. padding-top: 15px;
  300. .item {
  301. padding-top: 10px;
  302. padding-bottom: 10px;
  303. border-bottom: 1px dashed #AAA;
  304. a {
  305. font-size: 15px;
  306. padding-top: 5px;
  307. padding-right: 10px;
  308. color: #666;
  309. &:hover {
  310. color: #000;
  311. }
  312. &.open-issues {
  313. margin-right: 30px;
  314. }
  315. }
  316. }
  317. }
  318. .milestone.list {
  319. list-style: none;
  320. padding-top: 15px;
  321. > .item {
  322. padding-top: 10px;
  323. padding-bottom: 10px;
  324. border-bottom: 1px dashed #AAA;
  325. > a {
  326. padding-top: 5px;
  327. padding-right: 10px;
  328. color: #000;
  329. &:hover {
  330. color: #4078c0;
  331. }
  332. }
  333. .ui.progress {
  334. width: 40%;
  335. padding: 0;
  336. border: 0;
  337. margin: 0;
  338. .bar {
  339. height: 20px;
  340. }
  341. }
  342. .meta {
  343. color: #999;
  344. padding-top: 5px;
  345. .issue-stats .octicon{
  346. padding-left: 5px;
  347. }
  348. .overdue {
  349. color: red;
  350. }
  351. }
  352. .operate {
  353. margin-top: -15px;
  354. > a {
  355. font-size: 15px;
  356. padding-top: 5px;
  357. padding-right: 10px;
  358. color: #666;
  359. &:hover {
  360. color: #000;
  361. }
  362. }
  363. }
  364. .content {
  365. padding-top: 10px;
  366. }
  367. }
  368. }
  369. &.new.milestone {
  370. textarea {
  371. height: 200px;
  372. }
  373. #deadline {
  374. width: 150px;
  375. }
  376. }
  377. &.compare.pull {
  378. .choose.branch {
  379. .octicon {
  380. padding-right: 10px;
  381. }
  382. }
  383. }
  384. .filter.dropdown .menu {
  385. margin-top: 1px!important;
  386. .items {
  387. max-height: 300px;
  388. overflow-y: auto;
  389. .item {
  390. position: relative;
  391. cursor: pointer;
  392. display: block;
  393. border: none;
  394. height: auto;
  395. border-top: none;
  396. line-height: 1em;
  397. color: rgba(0,0,0,.8);
  398. padding: .71428571em 1.14285714em!important;
  399. font-size: 1rem;
  400. text-transform: none;
  401. font-weight: 400;
  402. box-shadow: none;
  403. -webkit-touch-callout: none;
  404. &.active {
  405. font-weight: 700;
  406. }
  407. &:hover {
  408. background: rgba(0,0,0,.05);
  409. color: rgba(0,0,0,.8);
  410. z-index: 13;
  411. }
  412. }
  413. }
  414. }
  415. &.commits {
  416. .header {
  417. .ui.right {
  418. .search {
  419. input {
  420. font-weight: normal;
  421. padding: 5px 10px;
  422. }
  423. }
  424. .button {
  425. float: right;
  426. margin-left: 5px;
  427. margin-top: 1px;
  428. }
  429. }
  430. }
  431. }
  432. .commits.table {
  433. font-size: 13px;
  434. th, td {
  435. &:first-child {
  436. padding-left: 15px;
  437. }
  438. }
  439. td {
  440. line-height: 15px;
  441. }
  442. .author {
  443. min-width: 180px;
  444. }
  445. .sha {
  446. a {
  447. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  448. font-size: 14px;
  449. padding: 6px 10px 4px 10px;
  450. font-weight: normal;
  451. }
  452. }
  453. .message span {
  454. max-width: 500px;
  455. }
  456. .date {
  457. width: 120px;
  458. }
  459. }
  460. }
  461. .ui.comments {
  462. .dropzone {
  463. width: 100%;
  464. margin-bottom: 10px;
  465. border: 2px dashed #0087F7;
  466. box-shadow: none!important;
  467. .dz-error-message {
  468. top: 140px;
  469. }
  470. }
  471. }
  472. .settings {
  473. .content {
  474. margin-top: 2px;
  475. .header,
  476. .segment {
  477. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  478. }
  479. }
  480. .key.list {
  481. .item:not(:first-child) {
  482. border-top: 1px solid #eaeaea;
  483. }
  484. .ssh-key-state-indicator {
  485. float: left;
  486. color: gray;
  487. padding-left: 10px;
  488. padding-top: 10px;
  489. &.active {
  490. color: #6cc644;
  491. }
  492. }
  493. .meta {
  494. padding-top: 5px;
  495. }
  496. .print {
  497. color: #767676;
  498. }
  499. .activity {
  500. color: #666;
  501. }
  502. }
  503. }
  504. .ui.vertical.menu {
  505. .header.item {
  506. font-size: 1.1em;
  507. background: #f0f0f0;
  508. }
  509. }
  510. .edit-label.modal,
  511. .new-label.segment {
  512. .form {
  513. .column {
  514. padding-right: 0;
  515. }
  516. .buttons {
  517. margin-left: auto;
  518. padding-top: 15px;
  519. }
  520. .color.picker.column {
  521. width: auto;
  522. .color-picker {
  523. height: 35px;
  524. width: auto;
  525. padding-left: 30px;
  526. }
  527. }
  528. .minicolors-swatch.minicolors-sprite {
  529. top: 10px;
  530. left: 10px;
  531. width: 15px;
  532. height: 15px;
  533. }
  534. .precolors {
  535. padding-left: 0;
  536. padding-right: 0;
  537. margin: 3px 10px auto 10px;
  538. width: 120px;
  539. .color {
  540. float: left;
  541. width: 15px;
  542. height: 15px;
  543. }
  544. }
  545. }
  546. }