style.less 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077
  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. #suggestions {
  448. .wrapper {
  449. display: flex;
  450. flex-flow: column;
  451. justify-content: flex-end;
  452. form {
  453. display: inline-block;
  454. flex: 1 1 50%;
  455. }
  456. }
  457. }
  458. #suggestions,
  459. #infoboxes {
  460. input {
  461. padding: 0;
  462. margin: 3px;
  463. font-size: 0.9em;
  464. display: inline-block;
  465. background: transparent;
  466. color: var(--color-result-search-url-font);
  467. cursor: pointer;
  468. width: calc(100%);
  469. text-overflow: ellipsis;
  470. overflow: hidden;
  471. text-align: left;
  472. }
  473. input[type="submit"],
  474. .infobox .url a {
  475. color: var(--color-result-link-font);
  476. text-decoration: none;
  477. font-size: 0.9rem;
  478. &:hover {
  479. text-decoration: underline;
  480. }
  481. }
  482. }
  483. #corrections {
  484. grid-area: corrections;
  485. display: flex;
  486. flex-flow: row wrap;
  487. margin: 0 0 1em 0;
  488. h4,
  489. input[type="submit"] {
  490. display: inline-block;
  491. padding: 0.5rem;
  492. margin: 0.5rem;
  493. }
  494. input[type="submit"] {
  495. font-size: 0.8rem;
  496. .rounded-corners-tiny;
  497. }
  498. }
  499. #suggestions .title,
  500. #search_url .title,
  501. #apis .title {
  502. margin: 2em 0 0.5em 0;
  503. color: var(--color-base-font);
  504. }
  505. #answers {
  506. grid-area: answers;
  507. background: var(--color-answer-background);
  508. padding: @result-padding;
  509. margin: 1rem 0;
  510. margin-top: 0;
  511. color: var(--color-answer-font);
  512. .rounded-corners;
  513. h4 {
  514. display: none;
  515. }
  516. span {
  517. overflow-wrap: anywhere;
  518. }
  519. }
  520. #infoboxes {
  521. form {
  522. min-width: 210px;
  523. }
  524. }
  525. #sidebar {
  526. grid-area: sidebar;
  527. word-wrap: break-word;
  528. color: var(--color-sidebar-font);
  529. .infobox {
  530. margin: 10px 0 10px;
  531. border: 1px solid var(--color-sidebar-border);
  532. padding: 1rem;
  533. font-size: 0.9em;
  534. .rounded-corners;
  535. h2 {
  536. margin: 0 0 0.5em 0;
  537. }
  538. img {
  539. max-width: 100%;
  540. max-height: 12em;
  541. display: block;
  542. margin: 0 auto;
  543. padding: 0;
  544. }
  545. dt {
  546. font-weight: bold;
  547. }
  548. .attributes {
  549. dl {
  550. margin: 0.5em 0;
  551. }
  552. dt {
  553. display: inline;
  554. margin-top: 0.5em;
  555. .ltr-margin-right(0.25em);
  556. margin-bottom: 0.5em;
  557. .ltr-margin-left(0);
  558. padding: 0;
  559. }
  560. dd {
  561. display: inline;
  562. margin: 0.5em 0;
  563. padding: 0;
  564. }
  565. }
  566. input {
  567. font-size: 1em;
  568. }
  569. br {
  570. clear: both;
  571. }
  572. .attributes,
  573. .urls {
  574. clear: both;
  575. }
  576. }
  577. }
  578. #search_url {
  579. margin-top: 8px;
  580. div.selectable_url {
  581. pre {
  582. width: 200em;
  583. }
  584. }
  585. }
  586. #links_on_top {
  587. position: absolute;
  588. .ltr-right(1.8rem);
  589. .ltr-text-align-right();
  590. top: 2.2rem;
  591. padding: 0;
  592. border: 0;
  593. display: flex;
  594. align-items: center;
  595. font-size: 1em;
  596. color: var(--color-search-font);
  597. a {
  598. display: flex;
  599. align-items: center;
  600. margin-left: 1em;
  601. svg {
  602. font-size: 1.2em;
  603. .ltr-margin-right(0.125em);
  604. }
  605. }
  606. a,
  607. a:link *,
  608. a:hover *,
  609. a:visited *,
  610. a:active * {
  611. color: var(--color-search-font);
  612. }
  613. }
  614. #pagination {
  615. grid-area: pagination;
  616. br {
  617. clear: both;
  618. }
  619. }
  620. .numbered_pagination {
  621. display: flex;
  622. flex-direction: row;
  623. justify-content: center;
  624. align-items: center;
  625. overflow: hidden;
  626. }
  627. .page_number {
  628. background: transparent !important;
  629. color: var(--color-result-link-font) !important;
  630. text-decoration: underline;
  631. }
  632. .page_number_current {
  633. background: transparent;
  634. color: var(--color-result-link-visited-font);
  635. border: none;
  636. }
  637. #apis {
  638. margin-top: 8px;
  639. clear: both;
  640. }
  641. #backToTop {
  642. border: 1px solid var(--color-backtotop-border);
  643. margin: 0;
  644. padding: 0;
  645. font-size: 1em;
  646. background: var(--color-backtotop-background);
  647. position: fixed;
  648. bottom: 8rem;
  649. .ltr-left(@results-width + @results-offset + (0.5 * @results-gap - 1.2em));
  650. transition: opacity 0.5s;
  651. opacity: 0;
  652. .rounded-corners;
  653. a {
  654. display: block;
  655. margin: 0;
  656. padding: 0.7em;
  657. }
  658. a,
  659. a:visited,
  660. a:hover,
  661. a:active {
  662. color: var(--color-backtotop-font);
  663. }
  664. }
  665. #results.scrolling #backToTop {
  666. opacity: 1;
  667. }
  668. /*
  669. tablet layout
  670. */
  671. .results-tablet() {
  672. #links_on_top {
  673. span {
  674. display: none;
  675. }
  676. }
  677. .page_with_header {
  678. margin: 2rem 0.5rem;
  679. width: auto;
  680. }
  681. #infoboxes {
  682. position: inherit;
  683. max-width: inherit;
  684. .infobox {
  685. clear: both;
  686. img {
  687. .ltr-float-left();
  688. max-width: 10em;
  689. margin-top: 0.5em;
  690. .ltr-margin-right(0.5em);
  691. margin-bottom: 0.5em;
  692. .ltr-margin-left(0);
  693. }
  694. }
  695. }
  696. #sidebar {
  697. margin: 0 @results-tablet-offset @results-margin @results-tablet-offset;
  698. padding: 0;
  699. float: none;
  700. border: none;
  701. width: auto;
  702. input {
  703. border: 0;
  704. }
  705. }
  706. #apis {
  707. display: none;
  708. }
  709. #search_url {
  710. display: none;
  711. }
  712. .result {
  713. .thumbnail {
  714. max-width: 98%;
  715. }
  716. .url {
  717. span.url {
  718. display: block;
  719. white-space: nowrap;
  720. text-overflow: ellipsis;
  721. overflow: hidden;
  722. width: 100%;
  723. }
  724. }
  725. .engines {
  726. .ltr-float-right();
  727. display: flex;
  728. flex-wrap: wrap;
  729. justify-content: flex-end;
  730. padding: 0 0 3px 0;
  731. }
  732. }
  733. .result-images {
  734. border-bottom: none !important;
  735. }
  736. .image_result {
  737. max-width: 98%;
  738. img {
  739. max-width: 98%;
  740. }
  741. }
  742. #backToTop {
  743. display: none;
  744. }
  745. #pagination {
  746. margin: 2rem 0 0 0 !important;
  747. }
  748. #main_results div#results {
  749. margin: 1rem auto 0 auto;
  750. justify-content: center;
  751. display: grid;
  752. grid-template-columns: @results-width;
  753. grid-template-rows: min-content min-content min-content 1fr min-content min-content;
  754. gap: 0;
  755. grid-template-areas:
  756. "corrections"
  757. "answers"
  758. "sidebar"
  759. "urls"
  760. "pagination";
  761. }
  762. }
  763. @media screen and (max-width: calc(@tablet - 0.5px)) {
  764. #links_on_top {
  765. span {
  766. display: none;
  767. }
  768. }
  769. }
  770. @media screen and (max-width: 52rem) {
  771. body.results_endpoint {
  772. #links_on_top {
  773. .link_on_top_about,
  774. .link_on_top_donate {
  775. display: none;
  776. }
  777. }
  778. }
  779. }
  780. @media screen and (min-width: @phone) and (max-width: @tablet) {
  781. // when .center-aligment-yes, see style-center.less
  782. // the media query includes "min-width: @phone"
  783. // because the phone layout includes the tablet layout unconditionally.
  784. .center-aligment-no {
  785. .results-tablet();
  786. }
  787. }
  788. /* Misc */
  789. #main_results div#results.only_template_images {
  790. margin: 1rem @results-tablet-offset 0 @results-tablet-offset;
  791. display: grid;
  792. grid-template-columns: 100%;
  793. grid-template-rows: min-content min-content min-content 1fr min-content;
  794. gap: 0;
  795. grid-template-areas:
  796. "corrections"
  797. "answers"
  798. "sidebar"
  799. "urls"
  800. "pagination";
  801. #sidebar {
  802. display: none;
  803. }
  804. #urls {
  805. margin: 0;
  806. display: flex;
  807. flex-wrap: wrap;
  808. }
  809. #urls::after {
  810. flex-grow: 10;
  811. content: "";
  812. }
  813. #backToTop {
  814. .ltr-left(auto);
  815. .ltr-right(1rem);
  816. }
  817. #pagination {
  818. .ltr-margin-right(4rem);
  819. }
  820. }
  821. /*
  822. phone layout
  823. */
  824. @media screen and (max-width: @phone) {
  825. // based on the tablet layout
  826. .results-tablet();
  827. html {
  828. background-color: var(--color-base-background-mobile);
  829. }
  830. #main_results div#results {
  831. grid-template-columns: 100%;
  832. margin: 1rem 0 0 0;
  833. }
  834. #links_on_top {
  835. top: 0.8rem;
  836. .ltr-right(0.7rem);
  837. }
  838. #main_index #links_on_top {
  839. top: 0.5rem;
  840. .ltr-right(0.5rem);
  841. }
  842. #results {
  843. margin: 0;
  844. padding: 0;
  845. }
  846. #pagination {
  847. margin: 2rem 1rem 0 1rem !important;
  848. }
  849. article[data-vim-selected] {
  850. border: 1px solid var(--color-result-vim-arrow);
  851. .rounded-corners;
  852. }
  853. .result {
  854. background: var(--color-result-background);
  855. margin: 1rem 0;
  856. }
  857. .result-images {
  858. margin: 0;
  859. height: @results-image-row-height-phone;
  860. background: var(--color-base-background-mobile);
  861. }
  862. .infobox {
  863. border: none !important;
  864. background-color: var(--color-sidebar-background);
  865. }
  866. .numbered_pagination {
  867. display: none;
  868. }
  869. .result-paper {
  870. .attributes {
  871. display: block;
  872. div {
  873. display: block;
  874. span {
  875. display: inline;
  876. }
  877. span:first-child {
  878. font-weight: bold;
  879. }
  880. span:nth-child(2) {
  881. .ltr-margin-left(0.5rem);
  882. }
  883. }
  884. }
  885. }
  886. }
  887. /*
  888. small-phone layout
  889. */
  890. @media screen and (max-width: @small-phone) {
  891. .result-videos {
  892. img.thumbnail {
  893. float: none !important;
  894. }
  895. .content {
  896. overflow: inherit;
  897. }
  898. }
  899. }
  900. pre code {
  901. white-space: pre-wrap;
  902. }