style.less 18 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093
  1. /*
  2. * SearXNG, A privacy-respecting, hackable metasearch engine
  3. *
  4. * To convert "style.less" to "style.css" run: $make styles
  5. */
  6. // stylelint-disable no-descending-specificity
  7. @import (inline) "../../node_modules/normalize.css/normalize.css";
  8. @import "definitions.less";
  9. @import "mixins.less";
  10. @import "code.less";
  11. @import "toolkit.less";
  12. @import "autocomplete.less";
  13. @import "detail.less";
  14. @import "animations.less";
  15. @import "embedded.less";
  16. @import "info.less";
  17. @import "new_issue.less";
  18. @import "stats.less";
  19. @import "result_templates.less";
  20. // for index.html template
  21. @import "index.less";
  22. // for preferences.html template
  23. @import "preferences.less";
  24. // Search-Field
  25. @import "search.less";
  26. // to center the results
  27. @import "style-center.less";
  28. // ion-icon
  29. .ion-icon {
  30. display: inline-block;
  31. vertical-align: bottom;
  32. line-height: 1;
  33. text-decoration: inherit;
  34. .ltr-transform();
  35. }
  36. .ion-icon-small {
  37. width: 1rem;
  38. height: 1rem;
  39. .ion-icon;
  40. }
  41. .ion-icon-big {
  42. width: 1.5rem;
  43. height: 1.5rem;
  44. .ion-icon;
  45. }
  46. // Main LESS-Code
  47. html {
  48. font-family: sans-serif;
  49. font-size: 0.9em;
  50. .text-size-adjust;
  51. color: var(--color-base-font);
  52. background-color: var(--color-base-background);
  53. padding: 0;
  54. margin: 0;
  55. }
  56. body,
  57. main {
  58. padding: 0;
  59. margin: 0;
  60. }
  61. body {
  62. display: flex;
  63. flex-direction: column;
  64. height: 100vh;
  65. margin: 0;
  66. }
  67. main {
  68. width: 100%;
  69. margin-bottom: 2rem;
  70. flex: 1;
  71. }
  72. .page_with_header {
  73. margin: 2em auto;
  74. width: 85em;
  75. }
  76. footer {
  77. clear: both;
  78. min-height: 4rem;
  79. padding: 1rem 0;
  80. width: 100%;
  81. text-align: center;
  82. background-color: var(--color-footer-background);
  83. border-top: 1px solid var(--color-footer-border);
  84. overflow: hidden;
  85. p {
  86. font-size: 0.9em;
  87. }
  88. }
  89. .page_with_header .logo {
  90. height: 40px;
  91. }
  92. input[type="submit"],
  93. #results button[type="submit"] {
  94. padding: 0.7rem;
  95. display: inline-block;
  96. background: var(--color-btn-background);
  97. color: var(--color-btn-font);
  98. .rounded-corners;
  99. border: 0;
  100. cursor: pointer;
  101. }
  102. a {
  103. text-decoration: none;
  104. color: var(--color-url-font);
  105. &:visited {
  106. color: var(--color-url-visited-font);
  107. .highlight {
  108. color: var(--color-url-visited-font);
  109. }
  110. }
  111. }
  112. article[data-vim-selected] {
  113. background: var(--color-result-vim-selected);
  114. .ltr-border-left(0.2rem solid var(--color-result-vim-arrow));
  115. .ltr-rounded-right-corners(10px);
  116. }
  117. article.result-images[data-vim-selected] {
  118. background: var(--color-result-vim-arrow);
  119. border: none;
  120. .rounded-corners;
  121. .image_thumbnail {
  122. filter: opacity(60%);
  123. }
  124. span.title,
  125. span.source {
  126. color: var(--color-result-image-span-font-selected);
  127. }
  128. }
  129. article[data-vim-selected].category-videos,
  130. article[data-vim-selected].category-news,
  131. article[data-vim-selected].category-map,
  132. article[data-vim-selected].category-music,
  133. article[data-vim-selected].category-files,
  134. article[data-vim-selected].category-social {
  135. border: 1px solid var(--color-result-vim-arrow);
  136. .rounded-corners;
  137. }
  138. .result {
  139. margin: @results-margin 0;
  140. padding: @result-padding;
  141. .ltr-border-left(0.2rem solid transparent);
  142. h3 {
  143. font-size: 1.2rem;
  144. word-wrap: break-word;
  145. margin: 0.4rem 0 0.4rem 0;
  146. padding: 0;
  147. a {
  148. color: var(--color-result-link-font);
  149. font-weight: normal;
  150. font-size: 1.1em;
  151. &:visited {
  152. color: var(--color-result-link-visited-font);
  153. }
  154. &:focus,
  155. &:hover {
  156. text-decoration: underline;
  157. border: none;
  158. outline: none;
  159. }
  160. }
  161. }
  162. .cache_link,
  163. .proxyfied_link {
  164. font-size: 0.9em !important;
  165. }
  166. .content,
  167. .stat {
  168. font-size: 0.9em;
  169. margin: 0;
  170. padding: 0;
  171. max-width: 54em;
  172. word-wrap: break-word;
  173. line-height: 1.24;
  174. .highlight {
  175. color: var(--color-result-description-highlight-font);
  176. background: inherit;
  177. font-weight: bold;
  178. }
  179. }
  180. .altlink a {
  181. font-size: 0.9em;
  182. margin: 0 10px 0 0;
  183. .show-content-button;
  184. }
  185. .codelines {
  186. .highlight {
  187. color: inherit;
  188. background: inherit;
  189. font-weight: normal;
  190. }
  191. }
  192. .url_wrapper {
  193. display: flex;
  194. font-size: 1rem;
  195. color: var(--color-result-url-font);
  196. flex-wrap: nowrap;
  197. overflow: hidden;
  198. flex-direction: row;
  199. margin: 0;
  200. padding: 0;
  201. .url_o1 {
  202. white-space: nowrap;
  203. flex-shrink: 1;
  204. }
  205. .url_o1::after {
  206. content: " ";
  207. width: 1ch;
  208. display: inline-block;
  209. }
  210. .url_o2 {
  211. overflow: hidden;
  212. white-space: nowrap;
  213. flex-basis: content;
  214. flex-grow: 0;
  215. flex-shrink: 1;
  216. text-align: right;
  217. .url_i2 {
  218. float: right;
  219. }
  220. }
  221. }
  222. .published_date,
  223. .result_length,
  224. .result_author,
  225. .result_shipping,
  226. .result_source_country {
  227. font-size: 0.8em;
  228. color: var(--color-result-publishdate-font);
  229. }
  230. .result_price {
  231. font-size: 1.2em;
  232. color: var(--color-result-description-highlight-font);
  233. }
  234. img {
  235. &.thumbnail {
  236. .ltr-float-left();
  237. padding-top: 0.6rem;
  238. .ltr-padding-right(1rem);
  239. width: 20rem;
  240. height: unset; // remove heigth value that was needed for lazy loading
  241. }
  242. &.image {
  243. .ltr-float-left();
  244. padding-top: 0.6rem;
  245. .ltr-padding-right(1rem);
  246. width: 7rem;
  247. max-height: 7rem;
  248. object-fit: scale-down;
  249. object-position: right top;
  250. }
  251. }
  252. .break {
  253. clear: both;
  254. }
  255. }
  256. .result-paper {
  257. .attributes {
  258. display: table;
  259. border-spacing: 0.125rem;
  260. div {
  261. display: table-row;
  262. span {
  263. font-size: 0.9rem;
  264. margin-top: 0.25rem;
  265. display: table-cell;
  266. time {
  267. font-size: 0.9rem;
  268. }
  269. }
  270. span:first-child {
  271. color: var(--color-base-font);
  272. min-width: 10rem;
  273. }
  274. span:nth-child(2) {
  275. color: var(--color-result-publishdate-font);
  276. }
  277. }
  278. }
  279. .content {
  280. margin-top: 0.25rem;
  281. }
  282. .comments {
  283. font-size: 0.9rem;
  284. margin: 0.25rem 0 0 0;
  285. padding: 0;
  286. word-wrap: break-word;
  287. line-height: 1.24;
  288. font-style: italic;
  289. }
  290. }
  291. .template_group_images {
  292. display: flex;
  293. flex-wrap: wrap;
  294. }
  295. .template_group_images::after {
  296. flex-grow: 10;
  297. content: "";
  298. }
  299. .category-videos,
  300. .category-news,
  301. .category-map,
  302. .category-music,
  303. .category-files,
  304. .category-social {
  305. border: 1px solid var(--color-result-border);
  306. margin: 0 @results-tablet-offset 1rem @results-tablet-offset !important;
  307. .rounded-corners;
  308. }
  309. .category-social .image {
  310. width: auto !important;
  311. min-width: 48px;
  312. min-height: 48px;
  313. padding: 0 5px 25px 0 !important;
  314. }
  315. .audio-control audio {
  316. width: 100%;
  317. padding: 10px 0 0 0;
  318. }
  319. .embedded-content iframe {
  320. width: 100%;
  321. padding: 10px 0 0 0;
  322. }
  323. .result-videos .content {
  324. overflow: hidden;
  325. }
  326. .result-videos .embedded-video iframe {
  327. width: 100%;
  328. aspect-ratio: 16 / 9;
  329. padding: 10px 0 0 0;
  330. }
  331. @supports not (aspect-ratio: 1 / 1) {
  332. // support older browsers which do not have aspect-ratio
  333. // https://caniuse.com/?search=aspect-ratio
  334. .result-videos .embedded-video iframe {
  335. height: calc(@results-width * 9 / 16);
  336. }
  337. }
  338. .engines {
  339. .ltr-float-right();
  340. display: flex;
  341. flex-wrap: wrap;
  342. justify-content: flex-end;
  343. color: var(--color-result-engines-font);
  344. span {
  345. font-size: smaller;
  346. margin-top: 0;
  347. margin-bottom: 0;
  348. .ltr-margin-right(0.5rem);
  349. .ltr-margin-left(0);
  350. }
  351. }
  352. .small_font {
  353. font-size: 0.8em;
  354. }
  355. .highlight {
  356. color: var(--color-result-link-font-highlight);
  357. background: inherit;
  358. }
  359. .empty_element {
  360. font-style: italic;
  361. }
  362. .result-images {
  363. flex-grow: 1;
  364. padding: 0.5rem 0.5rem 3rem 0.5rem;
  365. margin: 0.25rem;
  366. border: none !important;
  367. height: @results-image-row-height;
  368. & > a {
  369. position: relative;
  370. }
  371. img {
  372. margin: 0;
  373. padding: 0;
  374. border: none;
  375. height: 100%;
  376. width: 100%;
  377. object-fit: cover;
  378. vertical-align: bottom;
  379. background: var(--color-result-image-background);
  380. }
  381. span.title,
  382. span.source {
  383. display: block;
  384. position: absolute;
  385. width: 100%;
  386. font-size: 0.9rem;
  387. color: var(--color-result-image-span-font);
  388. padding: 0.5rem 0 0 0;
  389. overflow: hidden;
  390. text-overflow: ellipsis;
  391. white-space: nowrap;
  392. }
  393. span.source {
  394. padding: 1.8rem 0 0 0;
  395. font-size: 0.7rem;
  396. }
  397. }
  398. .result-map {
  399. img.image {
  400. .ltr-float-right() !important;
  401. height: 100px !important;
  402. width: auto !important;
  403. }
  404. table {
  405. font-size: 0.9em;
  406. width: auto;
  407. border-collapse: separate;
  408. border-spacing: 0 0.35rem;
  409. th {
  410. font-weight: inherit;
  411. width: 17rem;
  412. vertical-align: top;
  413. .ltr-text-align-left();
  414. }
  415. td {
  416. vertical-align: top;
  417. .ltr-text-align-left();
  418. }
  419. }
  420. }
  421. .hidden {
  422. display: none !important;
  423. }
  424. #results {
  425. margin-top: 1rem;
  426. .ltr-margin-right(2rem);
  427. margin-bottom: 0;
  428. .ltr-margin-left(@results-offset);
  429. display: grid;
  430. grid-template-columns: @results-width @results-sidebar-width;
  431. grid-template-rows: min-content min-content 1fr min-content;
  432. gap: 0 @results-gap;
  433. grid-template-areas:
  434. "corrections sidebar"
  435. "answers sidebar"
  436. "urls sidebar"
  437. "pagination sidebar";
  438. }
  439. #results #sidebar *:first-child,
  440. #results #urls *:first-child {
  441. margin-top: 0;
  442. }
  443. #urls {
  444. padding: 0;
  445. grid-area: urls;
  446. }
  447. #apis .wrapper {
  448. display: flex;
  449. }
  450. #suggestions {
  451. .wrapper {
  452. display: flex;
  453. flex-flow: column;
  454. justify-content: flex-end;
  455. form {
  456. display: inline-block;
  457. flex: 1 1 50%;
  458. }
  459. }
  460. }
  461. #suggestions,
  462. #infoboxes {
  463. input {
  464. padding: 0;
  465. margin: 3px;
  466. font-size: 0.9em;
  467. display: inline-block;
  468. background: transparent;
  469. color: var(--color-result-search-url-font);
  470. cursor: pointer;
  471. width: calc(100%);
  472. text-overflow: ellipsis;
  473. overflow: hidden;
  474. text-align: left;
  475. }
  476. input[type="submit"],
  477. .infobox .url a {
  478. color: var(--color-result-link-font);
  479. text-decoration: none;
  480. font-size: 0.9rem;
  481. &:hover {
  482. text-decoration: underline;
  483. }
  484. }
  485. }
  486. #corrections {
  487. grid-area: corrections;
  488. display: flex;
  489. flex-flow: row wrap;
  490. margin: 0 0 1em 0;
  491. h4,
  492. input[type="submit"] {
  493. display: inline-block;
  494. padding: 0.5rem;
  495. margin: 0.5rem;
  496. }
  497. input[type="submit"] {
  498. font-size: 0.8rem;
  499. .rounded-corners-tiny;
  500. }
  501. }
  502. #infoboxes .title,
  503. #suggestions .title,
  504. #search_url .title,
  505. #engines_msg .title,
  506. #apis .title {
  507. margin: 2em 0 0.5em 0;
  508. color: var(--color-base-font);
  509. }
  510. summary.title {
  511. cursor: pointer;
  512. padding-top: 1em;
  513. }
  514. .sidebar-collapsable {
  515. border-top: 1px solid var(--color-sidebar-border);
  516. padding-bottom: 0.5em;
  517. }
  518. #sidebar-end-collapsable {
  519. border-bottom: 1px solid var(--color-sidebar-border);
  520. width: 100%;
  521. }
  522. #answers {
  523. grid-area: answers;
  524. background: var(--color-answer-background);
  525. padding: @result-padding;
  526. margin: 1rem 0;
  527. margin-top: 0;
  528. color: var(--color-answer-font);
  529. .rounded-corners;
  530. h4 {
  531. display: none;
  532. }
  533. span {
  534. overflow-wrap: anywhere;
  535. }
  536. }
  537. #infoboxes {
  538. form {
  539. min-width: 210px;
  540. }
  541. }
  542. #sidebar {
  543. grid-area: sidebar;
  544. word-wrap: break-word;
  545. color: var(--color-sidebar-font);
  546. .infobox {
  547. margin: 10px 0 10px;
  548. border: 1px solid var(--color-sidebar-border);
  549. padding: 1rem;
  550. font-size: 0.9em;
  551. .rounded-corners;
  552. h2 {
  553. margin: 0 0 0.5em 0;
  554. }
  555. img {
  556. max-width: 100%;
  557. max-height: 12em;
  558. display: block;
  559. margin: 0 auto;
  560. padding: 0;
  561. }
  562. dt {
  563. font-weight: bold;
  564. }
  565. .attributes {
  566. dl {
  567. margin: 0.5em 0;
  568. }
  569. dt {
  570. display: inline;
  571. margin-top: 0.5em;
  572. .ltr-margin-right(0.25em);
  573. margin-bottom: 0.5em;
  574. .ltr-margin-left(0);
  575. padding: 0;
  576. }
  577. dd {
  578. display: inline;
  579. margin: 0.5em 0;
  580. padding: 0;
  581. }
  582. }
  583. input {
  584. font-size: 1em;
  585. }
  586. br {
  587. clear: both;
  588. }
  589. .attributes,
  590. .urls {
  591. clear: both;
  592. }
  593. }
  594. }
  595. #apis {
  596. input {
  597. font-size: 0.9em;
  598. margin: 0 10px 0 0;
  599. .show-content-button;
  600. }
  601. }
  602. #search_url {
  603. div.selectable_url {
  604. pre {
  605. width: 200em;
  606. }
  607. }
  608. }
  609. #links_on_top {
  610. position: absolute;
  611. .ltr-right(1.8rem);
  612. .ltr-text-align-right();
  613. top: 2.2rem;
  614. padding: 0;
  615. border: 0;
  616. display: flex;
  617. align-items: center;
  618. font-size: 1em;
  619. color: var(--color-search-font);
  620. a {
  621. display: flex;
  622. align-items: center;
  623. margin-left: 1em;
  624. svg {
  625. font-size: 1.2em;
  626. .ltr-margin-right(0.125em);
  627. }
  628. }
  629. a,
  630. a:link *,
  631. a:hover *,
  632. a:visited *,
  633. a:active * {
  634. color: var(--color-search-font);
  635. }
  636. }
  637. #pagination {
  638. grid-area: pagination;
  639. br {
  640. clear: both;
  641. }
  642. }
  643. .numbered_pagination {
  644. display: flex;
  645. flex-direction: row;
  646. justify-content: center;
  647. align-items: center;
  648. overflow: hidden;
  649. }
  650. .page_number {
  651. background: transparent !important;
  652. color: var(--color-result-link-font) !important;
  653. text-decoration: underline;
  654. }
  655. .page_number_current {
  656. background: transparent;
  657. color: var(--color-result-link-visited-font);
  658. border: none;
  659. }
  660. #backToTop {
  661. border: 1px solid var(--color-backtotop-border);
  662. margin: 0;
  663. padding: 0;
  664. font-size: 1em;
  665. background: var(--color-backtotop-background);
  666. position: fixed;
  667. bottom: 8rem;
  668. .ltr-left(@results-width + @results-offset + (0.5 * @results-gap - 1.2em));
  669. transition: opacity 0.5s;
  670. opacity: 0;
  671. pointer-events: none;
  672. .rounded-corners;
  673. a {
  674. display: block;
  675. margin: 0;
  676. padding: 0.7em;
  677. }
  678. a,
  679. a:visited,
  680. a:hover,
  681. a:active {
  682. color: var(--color-backtotop-font);
  683. }
  684. }
  685. #results.scrolling #backToTop {
  686. opacity: 1;
  687. pointer-events: all;
  688. }
  689. /*
  690. tablet layout
  691. */
  692. .results-tablet() {
  693. #links_on_top {
  694. span {
  695. display: none;
  696. }
  697. }
  698. .page_with_header {
  699. margin: 2rem 0.5rem;
  700. width: auto;
  701. }
  702. #infoboxes {
  703. position: inherit;
  704. max-width: inherit;
  705. .infobox {
  706. clear: both;
  707. img {
  708. .ltr-float-left();
  709. max-width: 10em;
  710. margin-top: 0.5em;
  711. .ltr-margin-right(0.5em);
  712. margin-bottom: 0.5em;
  713. .ltr-margin-left(0);
  714. }
  715. }
  716. }
  717. #sidebar {
  718. margin: 0 @results-tablet-offset @results-margin @results-tablet-offset;
  719. padding: 0;
  720. float: none;
  721. border: none;
  722. width: auto;
  723. input {
  724. border: 0;
  725. }
  726. }
  727. .result {
  728. .thumbnail {
  729. max-width: 98%;
  730. }
  731. .url {
  732. span.url {
  733. display: block;
  734. white-space: nowrap;
  735. text-overflow: ellipsis;
  736. overflow: hidden;
  737. width: 100%;
  738. }
  739. }
  740. .engines {
  741. .ltr-float-right();
  742. display: flex;
  743. flex-wrap: wrap;
  744. justify-content: flex-end;
  745. padding: 0 0 3px 0;
  746. }
  747. }
  748. .result-images {
  749. border-bottom: none !important;
  750. }
  751. .image_result {
  752. max-width: 98%;
  753. img {
  754. max-width: 98%;
  755. }
  756. }
  757. #backToTop {
  758. display: none;
  759. }
  760. #pagination {
  761. margin: 2rem 0 0 0 !important;
  762. }
  763. #main_results div#results {
  764. margin: 1rem auto 0 auto;
  765. justify-content: center;
  766. display: grid;
  767. grid-template-columns: @results-width;
  768. grid-template-rows: min-content min-content min-content 1fr min-content min-content;
  769. gap: 0;
  770. grid-template-areas:
  771. "corrections"
  772. "answers"
  773. "sidebar"
  774. "urls"
  775. "pagination";
  776. }
  777. }
  778. @media screen and (max-width: calc(@tablet - 0.5px)) {
  779. #links_on_top {
  780. span {
  781. display: none;
  782. }
  783. }
  784. }
  785. @media screen and (max-width: 52rem) {
  786. body.results_endpoint {
  787. #links_on_top {
  788. .link_on_top_about,
  789. .link_on_top_donate {
  790. display: none;
  791. }
  792. }
  793. }
  794. }
  795. @media screen and (min-width: @phone) and (max-width: @tablet) {
  796. // when .center-aligment-yes, see style-center.less
  797. // the media query includes "min-width: @phone"
  798. // because the phone layout includes the tablet layout unconditionally.
  799. .center-aligment-no {
  800. .results-tablet();
  801. }
  802. }
  803. /* Misc */
  804. #main_results div#results.only_template_images {
  805. margin: 1rem @results-tablet-offset 0 @results-tablet-offset;
  806. display: grid;
  807. grid-template-columns: 100%;
  808. grid-template-rows: min-content min-content min-content 1fr min-content;
  809. gap: 0;
  810. grid-template-areas:
  811. "corrections"
  812. "answers"
  813. "sidebar"
  814. "urls"
  815. "pagination";
  816. #sidebar {
  817. display: none;
  818. }
  819. #urls {
  820. margin: 0;
  821. display: flex;
  822. flex-wrap: wrap;
  823. }
  824. #urls::after {
  825. flex-grow: 10;
  826. content: "";
  827. }
  828. #backToTop {
  829. .ltr-left(auto);
  830. .ltr-right(1rem);
  831. }
  832. #pagination {
  833. .ltr-margin-right(4rem);
  834. }
  835. }
  836. /*
  837. phone layout
  838. */
  839. @media screen and (max-width: @phone) {
  840. // based on the tablet layout
  841. .results-tablet();
  842. html {
  843. background-color: var(--color-base-background-mobile);
  844. }
  845. #main_results div#results {
  846. grid-template-columns: 100%;
  847. margin: 1rem 0 0 0;
  848. }
  849. #links_on_top {
  850. top: 0.8rem;
  851. .ltr-right(0.7rem);
  852. }
  853. #main_index #links_on_top {
  854. top: 0.5rem;
  855. .ltr-right(0.5rem);
  856. }
  857. #results {
  858. margin: 0;
  859. padding: 0;
  860. }
  861. #pagination {
  862. margin: 2rem 1rem 0 1rem !important;
  863. }
  864. article[data-vim-selected] {
  865. border: 1px solid var(--color-result-vim-arrow);
  866. .rounded-corners;
  867. }
  868. .result {
  869. background: var(--color-result-background);
  870. margin: 1rem 0;
  871. }
  872. .result-images {
  873. margin: 0;
  874. height: @results-image-row-height-phone;
  875. background: var(--color-base-background-mobile);
  876. }
  877. .infobox {
  878. border: none !important;
  879. background-color: var(--color-sidebar-background);
  880. }
  881. .numbered_pagination {
  882. display: none;
  883. }
  884. .result-paper {
  885. .attributes {
  886. display: block;
  887. div {
  888. display: block;
  889. span {
  890. display: inline;
  891. }
  892. span:first-child {
  893. font-weight: bold;
  894. }
  895. span:nth-child(2) {
  896. .ltr-margin-left(0.5rem);
  897. }
  898. }
  899. }
  900. }
  901. }
  902. /*
  903. small-phone layout
  904. */
  905. @media screen and (max-width: @small-phone) {
  906. .result-videos {
  907. img.thumbnail {
  908. float: none !important;
  909. }
  910. .content {
  911. overflow: inherit;
  912. }
  913. }
  914. }
  915. pre code {
  916. white-space: pre-wrap;
  917. }