_base.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. body:not(.full-width) {
  2. font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important;
  3. background-color: @white;
  4. overflow-y: scroll;
  5. overflow-x: auto;
  6. min-width: 1020px;
  7. }
  8. .ui.container:not(.fluid) {
  9. width: 980px !important;
  10. }
  11. h1, h2, h3, h4, h5,
  12. .ui.header,
  13. .ui.menu,
  14. .ui.input input,
  15. .ui.button:not(.label) {
  16. font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
  17. }
  18. img {
  19. border-radius: 3px;
  20. }
  21. pre, code {
  22. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  23. &.raw {
  24. padding: 7px 12px;
  25. margin: @10 0;
  26. background-color: #f8f8f8;
  27. border: 1px solid #ddd;
  28. border-radius: 3px;
  29. font-size: 13px;
  30. line-height: 1.5;
  31. overflow: auto;
  32. }
  33. &.w••rap {
  34. white-space: pre-wrap;
  35. word-break: break-word;
  36. }
  37. }
  38. .dont-break-out {
  39. overflow-wrap: break-word;
  40. word-wrap: break-word;
  41. -ms-word-break: break-all;
  42. word-break: break-all;
  43. word-break: break-word;
  44. -ms-hyphens: auto;
  45. -moz-hyphens: auto;
  46. -webkit-hyphens: auto;
  47. hyphens: auto;
  48. }
  49. .full.height {
  50. padding: 0;
  51. margin: 0 0 -@footer-margin*2 0;
  52. min-height: 100%;
  53. }
  54. .following.bar {
  55. z-index: 900;
  56. left: 0;
  57. width: 100%;
  58. &.light {
  59. background-color: @primary;
  60. border-bottom: 1px solid @primary;
  61. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  62. }
  63. .column .menu {
  64. margin-top: 0;
  65. }
  66. .top.menu a.item.brand {
  67. padding-left: 0;
  68. padding-right: 0;
  69. }
  70. .brand .ui.mini.image {
  71. width: 27px;
  72. }
  73. .top.menu a.item:hover,
  74. .top.menu .dropdown.item:hover,
  75. .top.menu .dropdown.item.active {
  76. background-color: transparent;
  77. }
  78. .top.menu .menu {
  79. z-index: 900;
  80. }
  81. .icon,
  82. .octicon {
  83. margin-right: @5 !important;
  84. }
  85. .head.link.item {
  86. padding-right: 0 !important;
  87. color: @white;
  88. &:hover {
  89. color: #dddddd;
  90. }
  91. }
  92. .avatar > .ui.image {
  93. margin-right: 0;
  94. }
  95. .avatar .octicon-triangle-down {
  96. margin-top: 6.5px;
  97. }
  98. .searchbox {
  99. background-color: #343b42 !important;
  100. transition: all .5s;
  101. border: none;
  102. &:focus {
  103. background-color: @white !important;
  104. }
  105. }
  106. .search.icon {
  107. color: #bcbcbc !important;
  108. }
  109. .text .octicon {
  110. width: 16px;
  111. text-align: center;
  112. }
  113. .right.menu {
  114. .menu {
  115. left: auto;
  116. right: 0;
  117. }
  118. .dropdown .menu {
  119. margin-top: 0;
  120. }
  121. }
  122. }
  123. .ui {
  124. &.left {
  125. float: left;
  126. }
  127. &.right {
  128. float: right;
  129. }
  130. &.container {
  131. &.fluid {
  132. &.padded {
  133. padding: 0 @10 0 @10;
  134. }
  135. }
  136. }
  137. &.form {
  138. .ui.button {
  139. font-weight: normal;
  140. }
  141. .box.field {
  142. padding-left: 27px;
  143. }
  144. }
  145. &.menu,
  146. &.vertical.menu,
  147. &.segment {
  148. box-shadow: none;
  149. }
  150. .text {
  151. &.red {
  152. color: #d95c5c !important;
  153. a {
  154. color: #d95c5c !important;
  155. &:hover {
  156. color: #E67777 !important;
  157. }
  158. }
  159. }
  160. &.blue {
  161. color: #428bca !important;
  162. a {
  163. color: #15c !important;
  164. &:hover {
  165. color: #428bca !important;
  166. }
  167. }
  168. }
  169. &.black {
  170. color: #444;
  171. &:hover {
  172. color: #000;
  173. }
  174. }
  175. &.grey {
  176. color: #767676 !important;
  177. a {
  178. color: #444 !important;
  179. &:hover {
  180. color: #000 !important;
  181. }
  182. }
  183. }
  184. &.light.grey {
  185. color: #888 !important;
  186. }
  187. &.green {
  188. color: #6cc644 !important;
  189. }
  190. &.purple {
  191. color: #6e5494 !important;
  192. }
  193. &.yellow {
  194. color: #FBBD08 !important;
  195. }
  196. &.gold {
  197. color: #a1882b !important;
  198. }
  199. &.left {
  200. text-align: left !important;
  201. }
  202. &.right {
  203. text-align: right !important;
  204. }
  205. &.small {
  206. font-size: 0.75em;
  207. }
  208. &.normal {
  209. font-weight: normal;
  210. }
  211. &.bold {
  212. font-weight: bold;
  213. }
  214. &.italic {
  215. font-style: italic;
  216. }
  217. &.truncate {
  218. overflow: hidden;
  219. text-overflow: ellipsis;
  220. white-space: nowrap;
  221. display: inline-block;
  222. }
  223. &.thin {
  224. font-weight: normal;
  225. }
  226. &.middle {
  227. vertical-align: middle;
  228. }
  229. }
  230. .message {
  231. text-align: center;
  232. }
  233. .header > i + .content {
  234. padding-left: 0.75rem;
  235. vertical-align: middle;
  236. }
  237. .warning {
  238. &.header {
  239. background-color: #F9EDBE !important;
  240. border-color: #F0C36D;
  241. }
  242. &.segment {
  243. border-color: #F0C36D;
  244. }
  245. }
  246. .info {
  247. &.segment {
  248. border: 1px solid #c5d5dd;
  249. &.top {
  250. background-color: #e6f1f6 !important;
  251. h3, h4 {
  252. margin-top: 0;
  253. }
  254. h3:last-child {
  255. margin-top: 4px;
  256. }
  257. > :last-child {
  258. margin-bottom: 0;
  259. }
  260. }
  261. }
  262. }
  263. .normal.header {
  264. font-weight: normal;
  265. }
  266. .avatar.image {
  267. border-radius: 3px;
  268. }
  269. .form {
  270. .fake {
  271. display: none !important;
  272. }
  273. .sub.field {
  274. margin-left: 25px;
  275. }
  276. }
  277. .sha.label {
  278. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  279. font-size: 13px;
  280. padding: 4px @10;
  281. font-weight: normal;
  282. margin: 0 6px;
  283. }
  284. &.status.buttons {
  285. .octicon {
  286. margin-right: 4px;
  287. }
  288. }
  289. &.inline.delete-button {
  290. padding: 8px 15px;
  291. font-weight: normal;
  292. }
  293. }
  294. .overflow.menu {
  295. .items {
  296. max-height: 300px;
  297. overflow-y: auto;
  298. .item {
  299. position: relative;
  300. cursor: pointer;
  301. display: block;
  302. border: none;
  303. height: auto;
  304. border-top: none;
  305. line-height: 1em;
  306. color: rgba(0,0,0,.8);
  307. padding: .71428571em 1.14285714em !important;
  308. font-size: 1rem;
  309. text-transform: none;
  310. font-weight: 400;
  311. box-shadow: none;
  312. -webkit-touch-callout: none;
  313. &.active {
  314. font-weight: 700;
  315. }
  316. &:hover {
  317. background: rgba(0,0,0,.05);
  318. color: rgba(0,0,0,.8);
  319. z-index: 13;
  320. }
  321. }
  322. }
  323. }
  324. .scrolling.menu {
  325. .item.selected {
  326. font-weight: 700 !important;
  327. }
  328. }
  329. footer {
  330. margin-top: @footer-margin+14px !important;
  331. height: @footer-margin;
  332. background-color: white;
  333. border-top: 1px solid #d6d6d6;
  334. clear: both;
  335. width: 100%;
  336. color: #888888;
  337. .container {
  338. padding-top: @10;
  339. .fa {
  340. width: 16px;
  341. text-align: center;
  342. color: #428bca;
  343. }
  344. .links >* {
  345. border-left: 1px solid #d6d6d6;
  346. padding-left: 8px;
  347. margin-left: @5;
  348. &:first-child {
  349. border-left: none;
  350. }
  351. }
  352. }
  353. .ui.language .menu {
  354. max-height: 500px;
  355. overflow-y: auto;
  356. margin-bottom: 7px;
  357. }
  358. }
  359. .side-footer {
  360. font-size: 12px;
  361. line-height: 22px;
  362. color: #707070;
  363. margin-top: @20;
  364. .contents {
  365. margin-right: 3px;
  366. margin-left: 3px;
  367. }
  368. }
  369. .hide {
  370. display: none;
  371. }
  372. .center {
  373. text-align: center;
  374. }
  375. .generate-img(16);
  376. .generate-img(@n, @i: 1) when (@i =< @n) {
  377. .img-@{i} {
  378. width: (2px * @i) !important;
  379. height: (2px * @i) !important;
  380. }
  381. .generate-img(@n, (@i + 1));
  382. }
  383. .sr-only {
  384. position: absolute;
  385. width: 1px;
  386. height: 1px;
  387. padding: 0;
  388. margin: -1px;
  389. overflow: hidden;
  390. clip: rect(0, 0, 0, 0);
  391. border: 0;
  392. }
  393. .sr-only-focusable:active,
  394. .sr-only-focusable:focus {
  395. position: static;
  396. width: auto;
  397. height: auto;
  398. margin: 0;
  399. overflow: visible;
  400. clip: auto;
  401. }
  402. .hljs {
  403. background: inherit !important;
  404. padding: 0 !important;
  405. }
  406. .ui.dropdown .menu>.item>.image,
  407. .ui.dropdown .menu>.item>img,
  408. .ui.dropdown>.text>.image,
  409. .ui.dropdown>.text>img {
  410. vertical-align: middle;
  411. margin-top: 0;
  412. margin-bottom: 0;
  413. }
  414. .error-pages {
  415. h3, h4 {
  416. color: rgba(0, 0, 0, 0.5);
  417. margin: @10 0 @10;
  418. font-size: 18px;
  419. font-weight: 500;
  420. line-height: 1.6em;
  421. }
  422. }
  423. .v-divider {
  424. border-left: 1px solid #e7e7e7;
  425. }
  426. .navbar {
  427. &.container {
  428. width: auto;
  429. padding-right: 1.5em;
  430. padding-left: 16px;
  431. }
  432. &.signedinas {
  433. color: @primary;
  434. }
  435. &.bold {
  436. font-weight: bold !important;
  437. font-size: 13px;
  438. color: @white !important;
  439. &:hover {
  440. color: #dddddd !important;
  441. }
  442. }
  443. &.beta {
  444. padding: 0px !important;
  445. font-size: @15;
  446. color: @white !important;
  447. font-weight: bold !important;
  448. }
  449. &.caret {
  450. font-size: 11px;
  451. }
  452. }
  453. .oembed {
  454. padding: 20px !important;
  455. background: #e2e2e2 !important;
  456. code {
  457. font-size: @15;
  458. font-family: monospace;
  459. }
  460. }
  461. .beta-badge {
  462. padding: 3px 5px !important;
  463. margin-left: 8px !important;
  464. }
  465. @media only screen and (max-width: 991px) and (min-width: 768px) {
  466. .ui.container {
  467. width: 95%;
  468. }
  469. }
  470. // Mobile
  471. @media (max-width: 1020px) {
  472. body {
  473. min-width: 320px !important;
  474. max-width: 100%;
  475. }
  476. img, table, td, blockquote, code, pre, textarea, input, iframe, object, embed, video {
  477. max-width: 100%;
  478. }
  479. .full.height,
  480. .following.bar.light,
  481. .ui.form .inline.field > .selection.dropdown,
  482. .ui.form .inline.fields .field > .selection.dropdown,
  483. .ui.form .inline.field > input,
  484. .ui.form .inline.field > select,
  485. .ui.form .inline.fields .field > input,
  486. .ui.form .inline.fields .field > select{
  487. width: 100% !important;
  488. }
  489. .ui.header .ui.right .ui.small.button,
  490. .ui.header .ui.right .ui.labeled.button {
  491. margin: @5 2.5px;
  492. }
  493. .ui.container,
  494. .ui.container:not(.fluid) {
  495. width: 90% !important;
  496. margin: auto 5% !important;
  497. }
  498. .ui.grid.news {
  499. max-width: 100% !important;
  500. }
  501. footer {
  502. width: 100%;
  503. bottom: 0;
  504. position: relative;
  505. }
  506. footer .ui.container {
  507. height: 100%;
  508. }
  509. footer .version {
  510. display: none;
  511. }
  512. footer .ui.left {
  513. width: 70%;
  514. word-wrap: break-word;
  515. }
  516. .ui.language.bottom.floating.slide.up.dropdown.link.item {
  517. right: 5%;
  518. position: absolute;
  519. }
  520. .following.bar a.main-menu.item .menu-icon.octicon{
  521. display: block;
  522. font-size: medium;
  523. text-indent: 0;
  524. margin: @5 auto !important;
  525. }
  526. .following.bar a.main-menu.item.active{
  527. width: 50px;
  528. }
  529. .following.bar a.main-menu.item{
  530. text-indent: -9999px;
  531. white-space: nowrap;
  532. overflow: hidden;
  533. font-size: 0px;
  534. width: 35px;
  535. }
  536. .following.bar a.main-menu.item .menu-icon.octicon.octicon-git-pull-request{
  537. padding-left: @5;
  538. }
  539. .ui.header{
  540. font-size: 1.3rem;
  541. padding-left: @10;
  542. }
  543. .column .ui.header .ui.right{
  544. padding-top: @5;
  545. width: 90%;
  546. margin: 0 auto;
  547. float: none;
  548. line-height: 1.5;
  549. margin-right: 30px;
  550. }
  551. .ui.container .ui.header .ui.right .ui.small.button{
  552. margin: 0;
  553. }
  554. .ui.attached.header .right{
  555. margin-top: @5;
  556. float: none;
  557. }
  558. .ui.tabs.container .ui.tabular.menu .item{
  559. text-indent: -9999px;
  560. white-space: nowrap;
  561. overflow: hidden;
  562. font-size: 0px;
  563. width: 50px;
  564. }
  565. .ui.tabular.menu .item i{
  566. text-indent: 0;
  567. }
  568. .ui.tabular.menu .item span{
  569. text-indent: 0;
  570. margin-left: 0 !important;
  571. margin: auto;
  572. }
  573. .ui.top.attached.header{
  574. padding-left: 10 !important;
  575. }
  576. .ui.form .inline.field > :first-child,
  577. .ui.form .inline.fields .field > :first-child{
  578. text-align: left;
  579. }
  580. .inline.field a[href^="/join"]{
  581. white-space: nowrap;
  582. }
  583. .ui.form .field:last-child,
  584. .ui.form .field:last-child .ui.button{
  585. width: 100%;
  586. margin: 3px auto;
  587. }
  588. .search-mobile {
  589. display: none !important;
  590. }
  591. .nav-active {
  592. box-shadow: 0px 0px 0px #4e57ef !important;
  593. padding: @5 !important;
  594. width: 40px !important;
  595. &:hover {
  596. background: #000 !important;
  597. }
  598. }
  599. .mega-octicon {
  600. font-size: @20;
  601. }
  602. .commits-card {
  603. background-color: transparent;
  604. border: none;
  605. border-radius: 0;
  606. padding: 0;
  607. }
  608. .mobile-nav {
  609. padding-left: 0 !important
  610. }
  611. .mwlii {
  612. display: none !important;
  613. }
  614. .navbar {
  615. &.container {
  616. width: auto;
  617. padding-right: 1em;
  618. padding-left: 1.5em;
  619. }
  620. &.beta {
  621. display: none !important;
  622. }
  623. }
  624. .hide-mobile {
  625. display: none !important;
  626. }
  627. }