_base.less 12 KB

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