Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

_base.less 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. @footer-margin: 40px;
  2. body {
  3. font-family: "Lato", "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
  4. background-color: #fff;
  5. overflow-y: scroll;
  6. -webkit-font-smoothing: antialiased;
  7. }
  8. img {
  9. border-radius: 3px;
  10. }
  11. table {
  12. border-collapse: collapse;
  13. }
  14. .rounded {
  15. border-radius: .28571429rem !important;
  16. }
  17. pre, code {
  18. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  19. &.raw {
  20. padding: 7px 12px;
  21. margin: 10px 0;
  22. background-color: #f8f8f8;
  23. border: 1px solid #ddd;
  24. border-radius: 3px;
  25. font-size: 13px;
  26. line-height: 1.5;
  27. overflow: auto;
  28. }
  29. &.wrap {
  30. white-space: pre-wrap; /* CSS 3 */
  31. // white-space: -moz-normal; /* Mozilla, since 1999 */
  32. // white-space: -normal; /* Opera 4-6 */
  33. // white-space: -o-normal; /* Opera 7 */
  34. -ms-word-break: break-all;
  35. word-break: break-all;
  36. /* These are technically the same, but use both */
  37. overflow-wrap: break-word;
  38. word-wrap: break-word;
  39. }
  40. }
  41. .dont-break-out {
  42. /* These are technically the same, but use both */
  43. overflow-wrap: break-word;
  44. word-wrap: break-word;
  45. -ms-word-break: break-all;
  46. word-break: break-all;
  47. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  48. -ms-hyphens: auto;
  49. -moz-hyphens: auto;
  50. -webkit-hyphens: auto;
  51. hyphens: auto;
  52. }
  53. .full.height {
  54. padding: 0;
  55. margin: 0 0 -@footer-margin 0;
  56. min-height: 100%;
  57. }
  58. .following.bar {
  59. z-index: 900;
  60. left: 0;
  61. width: 100%;
  62. margin: 0;
  63. &.light {
  64. background-color: white;
  65. border-bottom: 1px solid #DDDDDD;
  66. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  67. }
  68. .column .menu {
  69. margin-top: 0;
  70. }
  71. .top.menu a.item.brand {
  72. padding-left: 0;
  73. }
  74. .brand .ui.mini.image {
  75. width: 30px;
  76. }
  77. .top.menu a.item:hover,
  78. .top.menu .dropdown.item:hover,
  79. .top.menu .dropdown.item.active {
  80. background-color: transparent;
  81. }
  82. .top.menu a.item:hover {
  83. color: rgba(0,0,0,.45);
  84. }
  85. .top.menu .menu {
  86. z-index: 900;
  87. }
  88. .octicon {
  89. &.fitted {
  90. margin-right: 0;
  91. }
  92. margin-right: .75em;
  93. }
  94. .searchbox {
  95. background-color: rgb(244, 244, 244) !important;
  96. &:focus {
  97. background-color: rgb(233, 233, 233) !important;
  98. }
  99. }
  100. .text .octicon {
  101. width: 16px;
  102. text-align: center;
  103. }
  104. @media only screen and (max-width: 767px) {
  105. #navbar:not(.shown) > *:not(:first-child) {
  106. display: none;
  107. }
  108. }
  109. }
  110. .right.stackable.menu {
  111. // responsive fix: this makes sure that the right menu when the page
  112. // is on mobile view will have elements stacked on top of each other.
  113. // no, stackable won't work on right menus.
  114. margin-left: auto;
  115. display: flex;
  116. display: -ms-flexbox;
  117. -ms-flex-align: inherit;
  118. align-items: inherit;
  119. -ms-flex-direction: inherit;
  120. flex-direction: inherit;
  121. }
  122. .ui {
  123. &.left {
  124. float: left;
  125. }
  126. &.right {
  127. float: right;
  128. }
  129. &.button, &.menu .item {
  130. -moz-user-select: auto;
  131. -ms-user-select: auto;
  132. -webkit-user-select: auto;
  133. user-select: auto;
  134. }
  135. &.container {
  136. &.fluid {
  137. &.padded {
  138. padding: 0 10px 0 10px;
  139. }
  140. }
  141. }
  142. &.form {
  143. .ui.button {
  144. font-weight: normal;
  145. }
  146. }
  147. &.floating.label {
  148. z-index: 10;
  149. }
  150. &.transparent.label {
  151. background-color: transparent;
  152. }
  153. &.menu,
  154. &.vertical.menu,
  155. &.segment {
  156. box-shadow: none;
  157. }
  158. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  159. /* This fixes the commit graph button on the commits page */
  160. .menu:not(.vertical) .item > .button.compact {
  161. padding: .58928571em 1.125em;
  162. }
  163. .menu:not(.vertical) .item > .button.small {
  164. font-size: .92857143rem;
  165. }
  166. &.dropdown .menu>.item>.floating.label {
  167. z-index: 11;
  168. }
  169. &.dropdown .menu .menu>.item>.floating.label {
  170. z-index: 21;
  171. }
  172. .text {
  173. &.red {
  174. color: #d95c5c !important;
  175. a {
  176. color: #d95c5c !important;
  177. &:hover {
  178. color: #E67777 !important;
  179. }
  180. }
  181. }
  182. &.blue {
  183. color: #428bca !important;
  184. a {
  185. color: #15c !important;
  186. &:hover {
  187. color: #428bca !important;
  188. }
  189. }
  190. }
  191. &.black {
  192. color: #444;
  193. &:hover {
  194. color: #000;
  195. }
  196. }
  197. &.grey {
  198. color: #767676 !important;
  199. a {
  200. color: #444 !important;
  201. &:hover {
  202. color: #000 !important;
  203. }
  204. }
  205. }
  206. &.light.grey {
  207. color: #888 !important;
  208. }
  209. &.green {
  210. color: #6cc644 !important;
  211. }
  212. &.purple {
  213. color: #6e5494 !important;
  214. }
  215. &.yellow {
  216. color: #FBBD08 !important;
  217. }
  218. &.gold {
  219. color: #a1882b !important;
  220. }
  221. &.left {
  222. text-align: left !important;
  223. }
  224. &.right {
  225. text-align: right !important;
  226. }
  227. &.small {
  228. font-size: 0.75em;
  229. }
  230. &.normal {
  231. font-weight: normal;
  232. }
  233. &.bold {
  234. font-weight: bold;
  235. }
  236. &.italic {
  237. font-style: italic;
  238. }
  239. &.truncate {
  240. overflow: hidden;
  241. text-overflow: ellipsis;
  242. white-space: nowrap;
  243. display: inline-block;
  244. }
  245. &.thin {
  246. font-weight: normal;
  247. }
  248. &.middle {
  249. vertical-align: middle;
  250. }
  251. }
  252. .message {
  253. text-align: center;
  254. }
  255. .header > i + .content {
  256. padding-left: 0.75rem;
  257. vertical-align: middle;
  258. }
  259. .warning {
  260. &.header {
  261. background-color: #F9EDBE !important;
  262. border-color: #F0C36D;
  263. }
  264. &.segment {
  265. border-color: #F0C36D;
  266. }
  267. }
  268. .info {
  269. &.segment {
  270. border: 1px solid #c5d5dd;
  271. &.top {
  272. background-color: #e6f1f6 !important;
  273. h3, h4 {
  274. margin-top: 0;
  275. }
  276. h3:last-child {
  277. margin-top: 4px;
  278. }
  279. > :last-child {
  280. margin-bottom: 0;
  281. }
  282. }
  283. }
  284. }
  285. .normal.header {
  286. font-weight: normal;
  287. }
  288. .avatar.image {
  289. border-radius: 3px;
  290. }
  291. .form {
  292. .fake {
  293. display: none !important;
  294. }
  295. .sub.field {
  296. margin-left: 25px;
  297. }
  298. }
  299. .sha.label {
  300. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  301. font-size: 13px;
  302. padding: 6px 10px 4px 10px;
  303. font-weight: normal;
  304. margin: 0 6px;
  305. }
  306. &.status.buttons {
  307. .octicon {
  308. margin-right: 4px;
  309. }
  310. }
  311. &.inline.delete-button {
  312. padding: 8px 15px;
  313. font-weight: normal;
  314. }
  315. .background {
  316. &.red {
  317. background-color: #d95c5c !important;
  318. }
  319. &.blue {
  320. background-color: #428bca !important;
  321. }
  322. &.black {
  323. background-color: #444;
  324. }
  325. &.grey {
  326. background-color: #767676 !important;
  327. }
  328. &.light.grey {
  329. background-color: #888 !important;
  330. }
  331. &.green {
  332. background-color: #6cc644 !important;
  333. }
  334. &.purple {
  335. background-color: #6e5494 !important;
  336. }
  337. &.yellow {
  338. background-color: #FBBD08 !important;
  339. }
  340. &.gold {
  341. background-color: #a1882b !important;
  342. }
  343. }
  344. .branch-tag-choice {
  345. line-height: 20px;
  346. }
  347. }
  348. .file-comment {
  349. font: 12px Consolas,"Liberation Mono",Menlo,Courier,monospace;
  350. color: rgba(0,0,0,.87);
  351. }
  352. .overflow.menu {
  353. .items {
  354. max-height: 300px;
  355. overflow-y: auto;
  356. .item {
  357. position: relative;
  358. cursor: pointer;
  359. display: block;
  360. border: none;
  361. height: auto;
  362. border-top: none;
  363. line-height: 1em;
  364. color: rgba(0,0,0,.8);
  365. padding: .71428571em 1.14285714em !important;
  366. font-size: 1rem;
  367. text-transform: none;
  368. font-weight: 400;
  369. box-shadow: none;
  370. -webkit-touch-callout: none;
  371. &.active {
  372. font-weight: 700;
  373. }
  374. &:hover {
  375. background: rgba(0,0,0,.05);
  376. color: rgba(0,0,0,.8);
  377. z-index: 13;
  378. }
  379. }
  380. }
  381. }
  382. .user-menu > .item {
  383. width: 100%;
  384. border-radius: 0 !important;
  385. }
  386. .scrolling.menu {
  387. .item.selected {
  388. font-weight: 700 !important;
  389. }
  390. }
  391. footer {
  392. height: @footer-margin;
  393. background-color: white;
  394. border-top: 1px solid #d6d6d6;
  395. clear: both;
  396. width: 100%;
  397. color: #888888;
  398. .container {
  399. padding-top: 10px;
  400. .fa {
  401. width: 16px;
  402. text-align: center;
  403. color: #428bca;
  404. }
  405. .links >* {
  406. border-left: 1px solid #d6d6d6;
  407. padding-left: 8px;
  408. margin-left: 5px;
  409. &:first-child {
  410. border-left: none;
  411. }
  412. }
  413. }
  414. .ui.language .menu {
  415. max-height: 500px;
  416. overflow-y: auto;
  417. margin-bottom: 7px;
  418. }
  419. }
  420. .hide {
  421. display: none;
  422. &.show-outdated {
  423. display: none !important;
  424. }
  425. &.hide-outdated {
  426. display: none !important;
  427. }
  428. }
  429. .center {
  430. text-align: center;
  431. }
  432. .generate-img(16);
  433. .generate-img(@n, @i: 1) when (@i =< @n) {
  434. .img-@{i} {
  435. width: (2px * @i) !important;
  436. height: (2px * @i) !important;
  437. }
  438. .generate-img(@n, (@i + 1));
  439. }
  440. // Conditional display
  441. @media only screen and (min-width: 768px) {
  442. .mobile-only, .ui.button.mobile-only {
  443. display: none;
  444. }
  445. // has the same behaviour of sr-only, hiding the content for
  446. // non-screenreaders, but is shown on mobile devices.
  447. .sr-mobile-only {
  448. .sr-only();
  449. }
  450. }
  451. @media only screen and (max-width: 767px) {
  452. .not-mobile {
  453. display: none;
  454. }
  455. }
  456. // Accessibility
  457. .sr-only {
  458. position: absolute;
  459. width: 1px;
  460. height: 1px;
  461. padding: 0;
  462. margin: -1px;
  463. overflow: hidden;
  464. clip: rect(0, 0, 0, 0);
  465. border: 0;
  466. }
  467. .sr-only-focusable:active,
  468. .sr-only-focusable:focus {
  469. position: static;
  470. width: auto;
  471. height: auto;
  472. margin: 0;
  473. overflow: visible;
  474. clip: auto;
  475. }
  476. @media only screen and (max-width: 991px) and (min-width: 768px) {
  477. .ui.container {
  478. width: 95%;
  479. }
  480. }
  481. /* Overrides some styles of the Highlight.js plugin */
  482. .hljs {
  483. background: inherit !important;
  484. padding: 0 !important;
  485. }
  486. .ui.menu.new-menu {
  487. justify-content: center !important;
  488. padding-top: 15px !important;
  489. margin-top: -15px !important;
  490. margin-bottom: 15px !important;
  491. background-color: #FAFAFA !important;
  492. border-width: 1px !important;
  493. }
  494. @media only screen and (max-width: 1200px) {
  495. .ui.menu.new-menu {
  496. overflow-x: auto !important;
  497. justify-content: left !important;
  498. padding-bottom: 5px;
  499. }
  500. .ui.menu.new-menu::-webkit-scrollbar {
  501. height: 8px;
  502. display: none;
  503. }
  504. .ui.menu.new-menu:hover::-webkit-scrollbar {
  505. display: block;
  506. }
  507. .ui.menu.new-menu::-webkit-scrollbar-track {
  508. background: rgba(0,0,0,0.01);
  509. }
  510. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  511. background:rgba(0,0,0,0.2);
  512. }
  513. .ui.menu.new-menu:after {
  514. position: absolute;
  515. margin-top: -15px;
  516. display: block;
  517. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  518. content: ' ';
  519. right: 0;
  520. height: 53px;
  521. z-index: 1000;
  522. width: 60px;
  523. clear: none;
  524. visibility: visible;
  525. }
  526. .ui.menu.new-menu a.item:last-child {
  527. padding-right: 30px !important;
  528. }
  529. }
  530. [v-cloak] {
  531. display: none !important;
  532. }
  533. .repos-search {
  534. padding-bottom: 0 !important;
  535. }
  536. .repos-filter {
  537. margin-top: 0 !important;
  538. border-bottom-width: 0 !important;
  539. margin-bottom: 2px !important;
  540. }
  541. #user-heatmap{
  542. width: 107%; // Fixes newest contributions not showing
  543. text-align: center;
  544. margin: 40px 0 30px;
  545. svg:not(:root) {
  546. overflow: inherit;
  547. padding: 0 !important;
  548. }
  549. @media only screen and (max-width: 1200px) {
  550. & {
  551. display: none;
  552. }
  553. }
  554. }