_base.less 12 KB

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