_base.less 12 KB

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