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.

_base.less 24KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199
  1. /* lato-regular - latin */
  2. @font-face {
  3. font-family: 'Lato';
  4. font-style: normal;
  5. font-weight: 400;
  6. src: url('../vendor/assets/lato-fonts/lato-v16-latin-regular.eot'); /* IE9 Compat Modes */
  7. src:
  8. local('Lato Regular'),
  9. local('Lato-Regular'),
  10. /* IE6-IE8 */
  11. url('../vendor/assets/lato-fonts/lato-v16-latin-regular.eot?#iefix') format('embedded-opentype'),
  12. /* Super Modern Browsers */
  13. url('../vendor/assets/lato-fonts/lato-v16-latin-regular.woff2') format('woff2'),
  14. /* Modern Browsers */
  15. url('../vendor/assets/lato-fonts/lato-v16-latin-regular.woff') format('woff'),
  16. /* Safari, Android, iOS */
  17. url('../vendor/assets/lato-fonts/lato-v16-latin-regular.ttf') format('truetype'),
  18. /* Legacy iOS */
  19. url('../vendor/assets/lato-fonts/lato-v16-latin-regular.svg#Lato') format('svg');
  20. }
  21. /* lato-italic - latin */
  22. @font-face {
  23. font-family: 'Lato';
  24. font-style: italic;
  25. font-weight: 400;
  26. src: url('../vendor/assets/lato-fonts/lato-v16-latin-italic.eot'); /* IE9 Compat Modes */
  27. src:
  28. local('Lato Italic'),
  29. local('Lato-Italic'),
  30. /* IE6-IE8 */
  31. url('../vendor/assets/lato-fonts/lato-v16-latin-italic.eot?#iefix') format('embedded-opentype'),
  32. /* Super Modern Browsers */
  33. url('../vendor/assets/lato-fonts/lato-v16-latin-italic.woff2') format('woff2'),
  34. /* Modern Browsers */
  35. url('../vendor/assets/lato-fonts/lato-v16-latin-italic.woff') format('woff'),
  36. /* Safari, Android, iOS */
  37. url('../vendor/assets/lato-fonts/lato-v16-latin-italic.ttf') format('truetype'),
  38. /* Legacy iOS */
  39. url('../vendor/assets/lato-fonts/lato-v16-latin-italic.svg#Lato') format('svg');
  40. }
  41. /* lato-700 - latin */
  42. @font-face {
  43. font-family: 'Lato';
  44. font-style: normal;
  45. font-weight: 700;
  46. src: url('../vendor/assets/lato-fonts/lato-v16-latin-700.eot'); /* IE9 Compat Modes */
  47. src:
  48. local('Lato Bold'),
  49. local('Lato-Bold'),
  50. /* IE6-IE8 */
  51. url('../vendor/assets/lato-fonts/lato-v16-latin-700.eot?#iefix') format('embedded-opentype'),
  52. /* Super Modern Browsers */
  53. url('../vendor/assets/lato-fonts/lato-v16-latin-700.woff2') format('woff2'),
  54. /* Modern Browsers */
  55. url('../vendor/assets/lato-fonts/lato-v16-latin-700.woff') format('woff'),
  56. /* Safari, Android, iOS */
  57. url('../vendor/assets/lato-fonts/lato-v16-latin-700.ttf') format('truetype'),
  58. /* Legacy iOS */
  59. url('../vendor/assets/lato-fonts/lato-v16-latin-700.svg#Lato') format('svg');
  60. }
  61. /* lato-700italic - latin */
  62. @font-face {
  63. font-family: 'Lato';
  64. font-style: italic;
  65. font-weight: 700;
  66. src: url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.eot'); /* IE9 Compat Modes */
  67. src:
  68. local('Lato Bold Italic'),
  69. local('Lato-BoldItalic'),
  70. /* IE6-IE8 */
  71. url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.eot?#iefix') format('embedded-opentype'),
  72. /* Super Modern Browsers */
  73. url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.woff2') format('woff2'),
  74. /* Modern Browsers */
  75. url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.woff') format('woff'),
  76. /* Safari, Android, iOS */
  77. url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.ttf') format('truetype'),
  78. /* Legacy iOS */
  79. url('../vendor/assets/lato-fonts/lato-v16-latin-700italic.svg#Lato') format('svg');
  80. }
  81. @font-face {
  82. font-family: 'Yu Gothic';
  83. src: local('Yu Gothic Medium');
  84. font-weight: 400;
  85. }
  86. @font-face {
  87. font-family: 'Yu Gothic';
  88. src: local('Yu Gothic Bold');
  89. font-weight: 700;
  90. }
  91. @default-fonts: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial;
  92. @monospaced-fonts: 'SF Mono', Consolas, Menlo, 'Liberation Mono', Monaco, 'Lucida Console';
  93. .override-fonts(@fonts) {
  94. textarea {
  95. font-family: @fonts, sans-serif;
  96. }
  97. .markdown:not(code) {
  98. font-family: @fonts, sans-serif;
  99. }
  100. /* We're going to just override the semantic fonts here */
  101. h1,
  102. h2,
  103. h3,
  104. h4,
  105. h5 {
  106. font-family: Lato, @fonts, sans-serif;
  107. }
  108. .home .hero h1,
  109. .home .hero h2 {
  110. font-family: 'PT Sans Narrow', Lato, @fonts, sans-serif;
  111. }
  112. .ui.accordion .title:not(.ui),
  113. .ui.button,
  114. .ui.card > .content > .header.ui.card > .content > .header,
  115. .ui.category.search > .results .category > .name,
  116. .ui.form input:not([type]),
  117. .ui.form input[type="date"],
  118. .ui.form input[type="datetime-local"],
  119. .ui.form input[type="email"],
  120. .ui.form input[type="file"],
  121. .ui.form input[type="number"],
  122. .ui.form input[type="password"],
  123. .ui.form input[type="search"],
  124. .ui.form input[type="tel"],
  125. .ui.form input[type="text"],
  126. .ui.form input[type="time"],
  127. .ui.form input[type="url"],
  128. .ui.header,
  129. .ui.items > .item > .content > .header,
  130. .ui.list .list > .item .header,
  131. .ui.list > .item .header,
  132. .ui.menu,
  133. .ui.message .header,
  134. .ui.modal > .header,
  135. .ui.popup > .header,
  136. .ui.search > .results .result .title,
  137. .ui.search > .results > .message .header,
  138. body,
  139. .ui.input > input,
  140. .ui.input input,
  141. .ui.statistics .statistic > .value,
  142. .ui.statistic > .value,
  143. .ui.statistics .statistic > .label,
  144. .ui.statistic > .label,
  145. .ui.steps .step .title,
  146. .ui.text.container,
  147. .ui.language > .menu > .item& {
  148. font-family: Lato, @fonts, sans-serif;
  149. }
  150. }
  151. .override-fonts(@default-fonts);
  152. body {
  153. background-color: #ffffff;
  154. overflow-y: auto;
  155. -webkit-font-smoothing: antialiased;
  156. display: flex;
  157. flex-direction: column;
  158. }
  159. @ja-fonts: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Source Han Sans JP', 'Noto Sans CJK JP', 'Droid Sans Japanese', 'Meiryo', 'MS PGothic';
  160. :lang(ja) {
  161. .override-fonts(@default-fonts, @ja-fonts;);
  162. }
  163. @zh-CN-fonts: 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Heiti SC', SimHei;
  164. :lang(zh-CN) {
  165. .override-fonts(@default-fonts, @zh-CN-fonts;);
  166. }
  167. @zh-TW-fonts: 'PingFang TC', 'Hiragino Sans TC', 'Source Han Sans TW', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU;
  168. :lang(zh-TW) {
  169. .override-fonts(@default-fonts, @zh-TW-fonts;);
  170. }
  171. @zh-HK-fonts: 'PingFang HK', 'Hiragino Sans TC', 'Source Han Sans HK', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU_HKSCS, PMingLiU;
  172. :lang(zh-HK) {
  173. .override-fonts(@default-fonts, @zh-HK-fonts;);
  174. }
  175. @ko-fonts: 'Apple SD Gothic Neo', 'NanumBarunGothic', 'Malgun Gothic', 'Gulim', 'Dotum', 'Nanum Gothic', 'Source Han Sans KR', 'Noto Sans CJK KR';
  176. :lang(ko) {
  177. .override-fonts(@default-fonts, @ko-fonts;);
  178. }
  179. img {
  180. border-radius: 3px;
  181. }
  182. table {
  183. border-collapse: collapse;
  184. }
  185. a {
  186. cursor: pointer;
  187. }
  188. .rounded {
  189. border-radius: 0.28571429rem !important;
  190. }
  191. .wrap {
  192. word-wrap: break-word;
  193. word-break: break-all;
  194. }
  195. pre,
  196. code,
  197. .mono {
  198. font: 12px @monospaced-fonts, monospace;
  199. &.raw {
  200. padding: 7px 12px;
  201. margin: 10px 0;
  202. background-color: #f8f8f8;
  203. border: 1px solid #dddddd;
  204. border-radius: 3px;
  205. font-size: 13px;
  206. line-height: 1.5;
  207. overflow: auto;
  208. }
  209. &.wrap {
  210. white-space: pre-wrap;
  211. word-break: break-all;
  212. overflow-wrap: break-word;
  213. word-wrap: break-word;
  214. }
  215. }
  216. .dont-break-out {
  217. overflow-wrap: break-word;
  218. word-wrap: break-word;
  219. word-break: break-all;
  220. hyphens: auto;
  221. }
  222. .full.height {
  223. flex-grow: 1;
  224. padding-bottom: 80px;
  225. }
  226. .following.bar {
  227. z-index: 900;
  228. left: 0;
  229. margin: 0 !important;
  230. &.light {
  231. background-color: white;
  232. border-bottom: 1px solid #dddddd;
  233. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  234. }
  235. .column .menu {
  236. margin-top: 0;
  237. }
  238. .top.menu a.item.brand {
  239. padding-left: 0;
  240. }
  241. .brand .ui.mini.image {
  242. width: 30px;
  243. }
  244. .top.menu a.item:hover,
  245. .top.menu .dropdown.item:hover,
  246. .top.menu .dropdown.item.active {
  247. background-color: transparent;
  248. }
  249. .top.menu a.item:hover {
  250. color: rgba(0, 0, 0, 0.45);
  251. }
  252. .top.menu .menu {
  253. z-index: 900;
  254. }
  255. .octicon {
  256. &.fitted {
  257. margin-right: 0;
  258. }
  259. margin-right: 0.75em;
  260. }
  261. .searchbox {
  262. background-color: #f4f4f4 !important;
  263. &:focus {
  264. background-color: #e9e9e9 !important;
  265. }
  266. }
  267. .text .octicon {
  268. width: 16px;
  269. text-align: center;
  270. }
  271. #navbar {
  272. width: 100vw;
  273. min-height: 52px;
  274. padding: 0 0.5rem;
  275. }
  276. #navbar .brand {
  277. margin: 0;
  278. }
  279. @media only screen and (max-width: 767px) {
  280. #navbar:not(.shown) > *:not(:first-child) {
  281. display: none;
  282. }
  283. }
  284. }
  285. .right.stackable.menu {
  286. // responsive fix: this makes sure that the right menu when the page
  287. // is on mobile view will have elements stacked on top of each other.
  288. // no, stackable won't work on right menus.
  289. margin-left: auto;
  290. display: flex;
  291. align-items: inherit;
  292. flex-direction: inherit;
  293. }
  294. .ui {
  295. &.left {
  296. float: left;
  297. }
  298. &.right {
  299. float: right;
  300. }
  301. &.button,
  302. &.menu .item {
  303. user-select: auto;
  304. }
  305. &.container {
  306. &.fluid {
  307. &.padded {
  308. padding: 0 10px 0 10px;
  309. }
  310. }
  311. }
  312. &.form {
  313. .ui.button {
  314. font-weight: normal;
  315. }
  316. }
  317. &.floating.label {
  318. z-index: 10;
  319. }
  320. &.transparent.label {
  321. background-color: transparent;
  322. }
  323. &.nopadding {
  324. padding: 0;
  325. }
  326. &.menu,
  327. &.vertical.menu,
  328. &.segment {
  329. box-shadow: none;
  330. }
  331. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  332. /* This fixes the commit graph button on the commits page */
  333. .menu:not(.vertical) .item > .button.compact {
  334. padding: 0.58928571em 1.125em;
  335. }
  336. .menu:not(.vertical) .item > .button.small {
  337. font-size: 0.92857143rem;
  338. }
  339. &.menu .ui.dropdown.item .menu .item {
  340. width: 100%;
  341. }
  342. &.dropdown .menu > .item > .floating.label {
  343. z-index: 11;
  344. }
  345. &.dropdown .menu .menu > .item > .floating.label {
  346. z-index: 21;
  347. }
  348. &.dropdown .menu > .header {
  349. font-size: 0.8em;
  350. }
  351. .text {
  352. &.red {
  353. color: #d95c5c !important;
  354. a {
  355. color: #d95c5c !important;
  356. &:hover {
  357. color: #e67777 !important;
  358. }
  359. }
  360. }
  361. &.blue {
  362. color: #428bca !important;
  363. a {
  364. color: #1155cc !important;
  365. &:hover {
  366. color: #428bca !important;
  367. }
  368. }
  369. }
  370. &.black {
  371. color: #444444;
  372. &:hover {
  373. color: #000000;
  374. }
  375. }
  376. &.grey {
  377. color: #767676 !important;
  378. a {
  379. color: #444444 !important;
  380. &:hover {
  381. color: #000000 !important;
  382. }
  383. }
  384. }
  385. &.light.grey {
  386. color: #888888 !important;
  387. }
  388. &.green {
  389. color: #6cc644 !important;
  390. }
  391. &.purple {
  392. color: #6e5494 !important;
  393. }
  394. &.yellow {
  395. color: #fbbd08 !important;
  396. }
  397. &.orange {
  398. color: #f2711c !important;
  399. }
  400. &.gold {
  401. color: #a1882b !important;
  402. }
  403. &.left {
  404. text-align: left !important;
  405. }
  406. &.right {
  407. text-align: right !important;
  408. }
  409. &.small {
  410. font-size: 0.75em;
  411. }
  412. &.normal {
  413. font-weight: normal;
  414. }
  415. &.bold {
  416. font-weight: bold;
  417. }
  418. &.italic {
  419. font-style: italic;
  420. }
  421. &.truncate {
  422. overflow: hidden;
  423. text-overflow: ellipsis;
  424. white-space: nowrap;
  425. display: inline-block;
  426. }
  427. &.thin {
  428. font-weight: normal;
  429. }
  430. &.middle {
  431. vertical-align: middle;
  432. }
  433. &.nopadding {
  434. padding: 0;
  435. }
  436. &.nomargin {
  437. margin: 0;
  438. }
  439. }
  440. .message {
  441. text-align: center;
  442. }
  443. .message > ul {
  444. margin-left: auto;
  445. margin-right: auto;
  446. display: table;
  447. text-align: left;
  448. }
  449. &.bottom.attached.message {
  450. font-weight: bold;
  451. text-align: left;
  452. color: black;
  453. .pull-right {
  454. color: black;
  455. }
  456. & > span,
  457. .pull-right > span {
  458. color: #21ba45;
  459. }
  460. }
  461. .header > i + .content {
  462. padding-left: 0.75rem;
  463. vertical-align: middle;
  464. }
  465. .warning {
  466. &.header {
  467. background-color: #f9edbe !important;
  468. border-color: #efc16b;
  469. }
  470. &.segment {
  471. border-color: #efc16b;
  472. }
  473. }
  474. .info {
  475. &.segment {
  476. border: 1px solid #c5d5dd;
  477. &.top {
  478. background-color: #e6f1f6 !important;
  479. h3,
  480. h4 {
  481. margin-top: 0;
  482. }
  483. h3:last-child {
  484. margin-top: 4px;
  485. }
  486. > :last-child {
  487. margin-bottom: 0;
  488. }
  489. }
  490. }
  491. }
  492. .normal.header {
  493. font-weight: normal;
  494. }
  495. .avatar.image {
  496. border-radius: 3px;
  497. }
  498. .form {
  499. .fake {
  500. display: none !important;
  501. }
  502. .sub.field {
  503. margin-left: 25px;
  504. }
  505. }
  506. .sha.label {
  507. font-family: @monospaced-fonts, monospace;
  508. font-size: 13px;
  509. padding: 6px 10px 4px 10px;
  510. font-weight: normal;
  511. margin: 0 6px;
  512. }
  513. .button.truncate {
  514. display: inline-block;
  515. max-width: 100%;
  516. overflow: hidden;
  517. text-overflow: ellipsis;
  518. vertical-align: top;
  519. white-space: nowrap;
  520. margin-right: 6px;
  521. }
  522. &.status.buttons {
  523. .octicon {
  524. margin-right: 4px;
  525. }
  526. }
  527. &.inline.delete-button {
  528. padding: 8px 15px;
  529. font-weight: normal;
  530. }
  531. .background {
  532. &.red {
  533. background-color: #d95c5c !important;
  534. }
  535. &.blue {
  536. background-color: #428bca !important;
  537. }
  538. &.black {
  539. background-color: #444444;
  540. }
  541. &.grey {
  542. background-color: #767676 !important;
  543. }
  544. &.light.grey {
  545. background-color: #888888 !important;
  546. }
  547. &.green {
  548. background-color: #6cc644 !important;
  549. }
  550. &.purple {
  551. background-color: #6e5494 !important;
  552. }
  553. &.yellow {
  554. background-color: #fbbf09 !important;
  555. }
  556. &.orange {
  557. background-color: #f2711c !important;
  558. }
  559. &.gold {
  560. background-color: #a1882b !important;
  561. }
  562. }
  563. .migrate {
  564. color: #888888 !important;
  565. opacity: 0.5;
  566. a {
  567. color: #444444 !important;
  568. &:hover {
  569. color: #000000 !important;
  570. }
  571. }
  572. }
  573. .border {
  574. border: 1px solid;
  575. &.red {
  576. border-color: #d95c5c !important;
  577. }
  578. &.blue {
  579. border-color: #428bca !important;
  580. }
  581. &.black {
  582. border-color: #444444;
  583. }
  584. &.grey {
  585. border-color: #767676 !important;
  586. }
  587. &.light.grey {
  588. border-color: #888888 !important;
  589. }
  590. &.green {
  591. border-color: #6cc644 !important;
  592. }
  593. &.purple {
  594. border-color: #6e5494 !important;
  595. }
  596. &.yellow {
  597. border-color: #fbbd08 !important;
  598. }
  599. &.orange {
  600. border-color: #f2711c !important;
  601. }
  602. &.gold {
  603. border-color: #a1882b !important;
  604. }
  605. }
  606. .branch-tag-choice {
  607. line-height: 20px;
  608. }
  609. &.pagination.menu {
  610. @media only screen and (max-width: 767px) {
  611. .item:not(.active):not(.navigation),
  612. .item.navigation span.navigation_label {
  613. display: none;
  614. }
  615. }
  616. }
  617. }
  618. .file-comment {
  619. font: 12px @monospaced-fonts, monospace;
  620. color: rgba(0, 0, 0, 0.87);
  621. }
  622. .ui.floating.dropdown {
  623. .overflow.menu {
  624. .scrolling.menu.items {
  625. border-radius: 0 !important;
  626. box-shadow: none !important;
  627. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  628. }
  629. }
  630. }
  631. .user-menu > .item {
  632. width: 100%;
  633. border-radius: 0 !important;
  634. }
  635. .scrolling.menu {
  636. .item.selected {
  637. font-weight: 700 !important;
  638. }
  639. }
  640. footer {
  641. background-color: white;
  642. border-top: 1px solid #d6d6d6;
  643. width: 100%;
  644. flex-basis: 40px;
  645. color: #888888;
  646. .container {
  647. width: 100vw !important;
  648. padding: 0 0.5rem;
  649. max-width: calc(100vw - 1rem) !important;
  650. .fa {
  651. width: 16px;
  652. text-align: center;
  653. color: #428bca;
  654. }
  655. .links > * {
  656. border-left: 1px solid #d6d6d6;
  657. padding-left: 8px;
  658. margin-left: 5px;
  659. &:first-child {
  660. border-left: 0;
  661. }
  662. }
  663. }
  664. .ui.language .menu {
  665. max-height: 500px;
  666. overflow-y: auto;
  667. margin-bottom: 7px;
  668. }
  669. .ui {
  670. &.left,
  671. &.right {
  672. line-height: 40px;
  673. }
  674. }
  675. }
  676. .hide {
  677. display: none;
  678. &.show-outdated {
  679. display: none !important;
  680. }
  681. &.hide-outdated {
  682. display: none !important;
  683. }
  684. }
  685. .center {
  686. text-align: center;
  687. }
  688. .generate-img(16);
  689. .generate-img(@n, @i: 1) when (@i =< @n) {
  690. .img-@{i} {
  691. width: (2px * @i) !important;
  692. height: (2px * @i) !important;
  693. }
  694. .generate-img(@n, (@i + 1));
  695. }
  696. // Conditional display
  697. @media only screen and (min-width: 768px) {
  698. .mobile-only,
  699. .ui.button.mobile-only {
  700. display: none;
  701. }
  702. // has the same behaviour of sr-only, hiding the content for
  703. // non-screenreaders, but is shown on mobile devices.
  704. .sr-mobile-only {
  705. .sr-only();
  706. }
  707. }
  708. @media only screen and (max-width: 767px) {
  709. .not-mobile {
  710. display: none;
  711. }
  712. }
  713. // Accessibility
  714. .sr-only {
  715. position: absolute;
  716. width: 1px;
  717. height: 1px;
  718. padding: 0;
  719. margin: -1px;
  720. overflow: hidden;
  721. clip: rect(0, 0, 0, 0);
  722. border: 0;
  723. }
  724. .sr-only-focusable:active,
  725. .sr-only-focusable:focus {
  726. position: static;
  727. width: auto;
  728. height: auto;
  729. margin: 0;
  730. overflow: visible;
  731. clip: auto;
  732. }
  733. @media only screen and (max-width: 991px) and (min-width: 768px) {
  734. .ui.container {
  735. width: 95%;
  736. }
  737. }
  738. /* Overrides some styles of the Highlight.js plugin */
  739. .hljs {
  740. background: inherit !important;
  741. padding: 0 !important;
  742. }
  743. .ui.menu.new-menu {
  744. justify-content: center !important;
  745. padding-top: 15px !important;
  746. margin-top: -15px !important;
  747. margin-bottom: 15px !important;
  748. background-color: #fafafa !important;
  749. border-width: 1px !important;
  750. }
  751. @media only screen and (max-width: 1200px) {
  752. .ui.menu.new-menu {
  753. overflow-x: auto !important;
  754. justify-content: left !important;
  755. padding-bottom: 5px;
  756. }
  757. .ui.menu.new-menu::-webkit-scrollbar {
  758. height: 8px;
  759. display: none;
  760. }
  761. .ui.menu.new-menu:hover::-webkit-scrollbar {
  762. display: block;
  763. }
  764. .ui.menu.new-menu::-webkit-scrollbar-track {
  765. background: rgba(0, 0, 0, 0.01);
  766. }
  767. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  768. background: rgba(0, 0, 0, 0.2);
  769. }
  770. .ui.menu.new-menu:after {
  771. position: absolute;
  772. margin-top: -15px;
  773. display: block;
  774. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  775. content: ' ';
  776. right: 0;
  777. height: 53px;
  778. z-index: 1000;
  779. width: 60px;
  780. clear: none;
  781. visibility: visible;
  782. }
  783. .ui.menu.new-menu a.item:last-child {
  784. padding-right: 30px !important;
  785. }
  786. }
  787. [v-cloak] {
  788. display: none !important;
  789. }
  790. .repos-search {
  791. padding-bottom: 0 !important;
  792. }
  793. .repos-filter {
  794. margin-top: 0 !important;
  795. border-bottom-width: 0 !important;
  796. margin-bottom: 2px !important;
  797. }
  798. #user-heatmap {
  799. width: 107%; // Fixes newest contributions not showing
  800. text-align: center;
  801. svg:not(:root) {
  802. overflow: inherit;
  803. padding: 0 !important;
  804. }
  805. @media only screen and (max-width: 1200px) {
  806. & {
  807. display: none;
  808. }
  809. }
  810. .total-contributions {
  811. text-align: left;
  812. font-weight: 500;
  813. margin-top: 0;
  814. }
  815. }
  816. .heatmap-color-0 {
  817. background-color: #f4f4f4;
  818. }
  819. .heatmap-color-1 {
  820. background-color: #d8efbf;
  821. }
  822. .heatmap-color-2 {
  823. background-color: #9fdb81;
  824. }
  825. .heatmap-color-3 {
  826. background-color: #66c74b;
  827. }
  828. .heatmap-color-4 {
  829. background-color: #609926;
  830. }
  831. .heatmap-color-5 {
  832. background-color: #025900;
  833. }
  834. .archived-icon {
  835. color: lighten(#000000, 70%) !important;
  836. }
  837. .oauth2-authorize-application-box {
  838. margin-top: 3em !important;
  839. }
  840. /* Tab color tweaks */
  841. .ui.tabular.menu .item {
  842. color: rgba(0, 0, 0, 0.5);
  843. }
  844. .ui.tabular.menu .item:hover {
  845. color: rgba(0, 0, 0, 0.8);
  846. }
  847. .ui.tabular.menu .item.active {
  848. color: rgba(0, 0, 0, 0.9);
  849. }
  850. /* multiple radio or checkboxes as inline element */
  851. .inline-grouped-list {
  852. display: inline-block;
  853. vertical-align: top;
  854. > .ui {
  855. display: block;
  856. margin-top: 5px;
  857. margin-bottom: 10px;
  858. &:first-child {
  859. margin-top: 1px;
  860. }
  861. }
  862. }
  863. i.icons .icon:first-child {
  864. margin-right: 0;
  865. }
  866. i.icon.centerlock {
  867. top: 1.45em;
  868. }
  869. .ui.label > .detail .icons {
  870. margin-right: 0.25em;
  871. }
  872. .ui.label > .detail .icons .icon {
  873. margin-right: 0;
  874. }
  875. .lines-num {
  876. vertical-align: top;
  877. text-align: right !important;
  878. color: #999999;
  879. background: #f5f5f5;
  880. width: 1%;
  881. user-select: none;
  882. span {
  883. &:before {
  884. content: attr(data-line-number);
  885. line-height: 20px !important;
  886. padding: 0 10px;
  887. cursor: pointer;
  888. display: block;
  889. }
  890. }
  891. }
  892. .lines-num,
  893. .lines-code {
  894. padding: 0 !important;
  895. pre,
  896. ol,
  897. .hljs {
  898. background-color: white;
  899. margin: 0;
  900. padding: 0 !important;
  901. li {
  902. display: block;
  903. width: 100%;
  904. &:before {
  905. content: ' ';
  906. }
  907. }
  908. }
  909. }
  910. .lines-commit {
  911. vertical-align: top;
  912. color: #999999;
  913. padding: 0 !important;
  914. background: #f5f5f5;
  915. width: 1%;
  916. -moz-user-select: none;
  917. -ms-user-select: none;
  918. -webkit-user-select: none;
  919. user-select: none;
  920. .blame-info {
  921. width: 350px;
  922. max-width: 350px;
  923. display: block;
  924. user-select: none;
  925. padding: 0 0 0 10px;
  926. .blame-data {
  927. display: flex;
  928. font-family: @default-fonts;
  929. .blame-message {
  930. flex-grow: 2;
  931. overflow: hidden;
  932. white-space: nowrap;
  933. text-overflow: ellipsis;
  934. line-height: 20px;
  935. }
  936. .blame-time,
  937. .blame-avatar {
  938. flex-shrink: 0;
  939. }
  940. }
  941. }
  942. .ui.avatar.image {
  943. height: 18px;
  944. width: 18px;
  945. }
  946. }
  947. .lines-num,
  948. .lines-code,
  949. .lines-commit {
  950. .bottom-line {
  951. border-bottom: 1px solid #eaecef;
  952. }
  953. }
  954. .code-view {
  955. overflow: auto;
  956. overflow-x: auto;
  957. overflow-y: hidden;
  958. &.has-context-menu {
  959. overflow: visible;
  960. overflow-x: visible;
  961. overflow-y: visible;
  962. }
  963. *:not(.fa):not(.octicon):not(.icon) {
  964. font-size: 12px;
  965. font-family: @monospaced-fonts, monospace;
  966. line-height: 20px;
  967. }
  968. table {
  969. width: 100%;
  970. }
  971. .active {
  972. background: #fff866;
  973. }
  974. }
  975. .octicon-tiny {
  976. font-size: 0.85714286rem;
  977. }
  978. .ui.basic.blue.button,
  979. .ui.basic.blue.buttons .button {
  980. box-shadow: inset 0 0 0 1px #1678c2 !important;
  981. color: #1678c2 !important;
  982. }
  983. .ui.label > img {
  984. width: auto !important;
  985. vertical-align: middle;
  986. height: 2.1666em !important;
  987. }