_base.less 11 KB

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