Advertisement
dogrunner

Kagi Search^ Catppuccin Mocha Custom CSS

Dec 23rd, 2024
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 9.06 KB | None | 0 0
  1. /* Source: https://repo.jcrabapple.com/jcrabapple/82208449e52b434a8e695c8124fa3f79 */
  2.  
  3. :root {
  4.   --font-main: "Poppins", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  5.   --font-lufga: "Poppins", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  6. }
  7.  
  8. .theme_dark, .theme_moon_dark, .theme_moon_dark_conditional {
  9.   --app-bg: #1E1E2E; /* Base */
  10.   --page-text: #CDD6F4; /* Text */
  11.   --app-text: #CDD6F4; /* Text */
  12.   --primary: #CDD6F4; /* Text */
  13.   --primary-hover: #1E1E2E; /* Base */
  14.   --blue: #89b4fa; /* Blue */
  15.   --peach: #fab387; /* Peach */
  16.   --green: #a6e3a1; /* Green */
  17.   --crust: #11111b; /* Crust */
  18.   --header-bg: #1E1E2E; /* Base */
  19.   --header-border: #313244; /* Surface1 */
  20.  
  21.   --app-sidebar-bg: #1E1E2E; /* Base */
  22.  
  23.   --input-bg: #313244; /* Surface1 */
  24.   --color-search-input: #1E1E2E; /* Base */
  25.  
  26.   --search-result-title: #CDD6F4; /* Text */
  27.   --search-result-title-hover: #BAC2DE; /* Subtext1 */
  28.   --search-result-content-text: #BAC2DE; /* Subtext1 */
  29.   --search-result-url-link: #BAC2DE; /* Subtext1 */
  30.   --search-result-date-bg: #313244; /* Surface1 */
  31.   --search-result-date-new-bg: #F38BA8; /* Red */
  32.  
  33.   --domain-rank-icon-color-trackers: #F9E2AF; /* Yellow */
  34.  
  35.   --color_link: #F9E2AF; /* Yellow */
  36.   --primary-hover: #BAC2DE; /* Subtext1 */
  37.   --primary-visited: #6C7086; /* Subtext0 */
  38.   --related-item-bg: #313244; /* Surface1 */
  39.   --inline-domain-tag-bg: #313244; /* Surface1 */
  40.   --inline-header-border: #313244; /* Surface1 */
  41.   --inline-header-title: #CDD6F4; /* Text */
  42.   --inline-widget-bg: #313244; /* Surface1 */
  43.  
  44.   --primary-700: #6C7086; /* Subtext0 */
  45.   --primary-800: #BAC2DE; /* Subtext1 */
  46.  
  47.   --resultsummary-highlight: #F9E2AF; /* Yellow */
  48.   --resultsummary-highlight_text: #313244; /* Surface1 */
  49.  
  50.   --wiki-title: #CDD6F4; /* Text */
  51.   --wiki-content-links: #F9E2AF; /* Yellow */
  52.   --wiki-nw-links: #F9E2AF; /* Yellow */
  53.   --result-item-title-border: transparent;
  54.  
  55.   --site_info_bg: #313244; /* Surface1 */
  56.   --site_info_bottom_bg: #313244; /* Surface1 */
  57.   --btn-group-bg: #fab387; /* Surface1 */
  58.  
  59.   --dd-hover-bg: #313244; /* Surface1 */
  60.   --dd-list-input-bg: #313244; /* Surface1 */
  61.   --kagi-accent: #313244; /* Surface1 */
  62.   --filter-dd-bg: #313244; /* Surface1 */
  63.  
  64.   /* mobile */
  65.   --m_sri_gap_color: #313244; /* Surface1 */
  66. }
  67.  
  68. /* disable horizontal scrollbars */
  69. body {
  70.   overflow-x: hidden;
  71. }
  72.  
  73. ::selection {
  74.   background-color: var(--color_link);
  75.   color: #313244; /* Surface1 */
  76. }
  77.  
  78. .logo svg, .app-logo.--kagi {
  79. stroke: var(--blue);
  80. stroke-width: 2px;
  81. }
  82.  
  83. .h-w #accountContainer .header_links, .search-form .search-form-icons svg {
  84. color: var(--peach);
  85. }
  86.  
  87. .mr-3 {
  88. color: var(--green);
  89. }
  90.  
  91. /* container-level */
  92. .results-box {
  93.   margin-top: 10px;
  94. }
  95.  
  96. /* update color borders for serp tabs */
  97. .serp-nav .nav_item.--active:after, .serp-nav .nav_item:hover:after, ._0_lenses .k_ui_dropdown.--active .k_ui_dropdown_first_item span:after {
  98.   border-color: var(--primary);
  99. }
  100.  
  101. /* button background color */
  102. .btn.--lg, .btn.--primary, .search-form .searchFormSubmitBtn, .sfi_sep {
  103. background-color: var(--blue);
  104. }
  105.  
  106. #searchFormSubmit, .dropdown.dd_clean .dd-toggle-label, .c-p, ._0_summarize_link a {
  107. color: var(--blue);
  108. }
  109.  
  110. .footer .copyright, .serp_nav_start, .serp-nav .nav_item, .trigger svg {
  111. color: var(--peach);
  112. }
  113.  
  114. .px-4, .more_search_dropdown_box .k_ui_dropdown, .more_search_dropdown_box .k_ui_dropdown_data_list {
  115. color: var(--peach);
  116. }
  117.  
  118. .control-center-btn svg {
  119. color: var(--peach);
  120. }
  121.  
  122. .user-auth-bar, #bell_notification, .footer .footerInner ul li a, footer .footerInner ul li a {
  123. color: var(--peach);
  124. }
  125.  
  126. #bell_notification .notification_count {
  127. background-color: var(--green);
  128. }
  129.  
  130. .control-center-btn, .control-center-btn:hover {
  131. color: var(--peach);
  132. }
  133.  
  134. .quick-settings a, .app-content-box._0_content-bay a {
  135. color: var(--peach);
  136. }
  137.  
  138. /* disable links borders */
  139. #layout-v2 a, .__sri-title .__sri_title_link, .__sri-title .__sri_title_link:hover, .wikipediaResult a:hover {
  140.   border-bottom: 0;
  141. }
  142.  
  143. /* general input focus */
  144. :focus-visible {
  145.   outline-color: var(--color_link);
  146. }
  147.  
  148. /* result tweaks */
  149. .__sri-title-box, .__sri-title, .__sri-url-box, .__sri-body {
  150.   padding-left: 0;
  151. }
  152.  
  153. .__sri-title .__domain-favicon {
  154.   margin-left: -25px;
  155. }
  156.  
  157. .__sri-preview {
  158.   left: 0;
  159. }
  160.  
  161. .__sri-url-box {
  162.   margin-bottom: 4px;
  163. }
  164.  
  165. .__sri-url {
  166.   font-size: 0.75rem;
  167. }
  168.  
  169. .__sri-time {
  170.   background-color: transparent;
  171.   color: #6C7086; /* Subtext0 */
  172.   padding: 0;
  173. }
  174.  
  175. .__sri-time::after {
  176.   content: "—";
  177.   display: inline-block;
  178.   padding: 0 4px;
  179. }
  180.  
  181. .__sri-time.--new {
  182.   background: transparent;
  183.   color: var(--color_link);
  184. }
  185.  
  186. .__sri-desc {
  187.   line-height: 1.57;
  188. }
  189.  
  190. .newsResultItem .newsResultBody {
  191.   margin-top: 0;
  192. }
  193.  
  194. .top_podcasts_box:empty {
  195.   display: none;
  196. }
  197.  
  198. ._0_app_theme_switch_box button.checked .theme_name, ._0_app_theme_switch_box button > input:checked + .theme_name {
  199. background-color: var(--blue);
  200. }
  201.  
  202. .freeScroller {
  203.   overflow-x: auto !important;
  204. }
  205.  
  206. /* domain info popover */
  207. #domainInfoModal .d-info-box-title-header {
  208.   background: transparent;
  209. }
  210.  
  211. #domainInfoModal .d-info-domain-title {
  212.   text-shadow: none;
  213.   color: var(--color-primary);
  214. }
  215.  
  216. #domainInfoModal .rakned-box-close {
  217.   color: var(--color-primary);
  218. }
  219.  
  220. /* wolfram-alpha/"smart" things specific */
  221. .widget_holder .wasb, .wasb, .wasb-ans {
  222.   font-family: var(--font-main);
  223. }
  224.  
  225. .widget_holder .wasb {
  226.   border: 1px solid var(--color-primary-dim_3);
  227. }
  228.  
  229. .suggestions_area {
  230.   border-bottom: 1px solid var(--color-primary-dim_3);
  231. }
  232.  
  233. /* misc */
  234. .wikipediaResult .wiki-title a:hover {
  235.   color: var(--color-primary_hover);  
  236.   border-bottom: 0;
  237. }
  238.  
  239. .wiki-desc-box {
  240.   font-size: 14px;
  241. }
  242.  
  243. .k_ui_toggle_switch {
  244.   --active-bg-color: var(--color_link);
  245. }
  246.  
  247. .footer .footerInner ul li, footer .footerInner ul li {
  248.   color: inherit;
  249. }
  250.  
  251. .search-form .search-input-container {
  252.   border: 1px solid var(--blue);
  253. }
  254.  
  255. .land_adv_search_btn {
  256.   color: var(--peach);
  257. }
  258.  
  259. /* mobile specific */
  260. @media screen and (max-width: 767px) {
  261.   /* header */
  262.   .m-h {
  263.     padding: 0;
  264.   }
  265.  
  266.   .m-h .m-h-i {
  267.     height: auto;
  268.   }
  269.  
  270.   .m-h .control-center-btn {
  271.     top: 32px;
  272.     z-index: 51;
  273.   }
  274.  
  275.   .m-h .m-app-logo {
  276.     display: none;
  277.   }
  278.  
  279.   /* search box */
  280.   .search-form {
  281.     height: auto;
  282.   }
  283.  
  284.   .search_form_box {
  285.     width: 100%;
  286.   }
  287.  
  288.   .search-form .search-input-container {
  289.     padding-inline: 0;
  290.     border: 0;
  291.   }
  292.  
  293.   .search-form .search_area {
  294.     min-height: auto;
  295.   }
  296.  
  297.   .search-form .search-input-box {
  298.     border: 1px solid var(--blue);
  299.     border-radius: 24px;
  300.     padding: 0 14px;
  301.   }
  302.  
  303.   .s-f-w .search-form-container {
  304.     padding: 10px 46px 5px 10px;
  305.   }
  306.  
  307.   .s-f-w.--active {
  308.     margin: 0;
  309.   }
  310.  
  311.   .s-f-w.--active .search-input-container {
  312.     border: 0;
  313.     min-height: 64px;
  314.   }
  315.  
  316.   .s-f-w.--active .search-form-container {
  317.     margin: 0;
  318.     padding: 0 10px;
  319.     height: 64px;
  320.   }
  321.  
  322.   .s-f-w.--active .search-form {
  323.     padding-top: 0;
  324.   }
  325.  
  326.   .s-f-w.--active .search-input-box {
  327.     margin-left: 4px;
  328.     padding-right: 0;
  329.     max-width: 100%;
  330.   }
  331.  
  332.   .s-f-w.--active .search-form-icons {
  333.     margin-right: 0;
  334.   }
  335.  
  336.   .s-f-w.--active .auto_suggestions {
  337.     top: 64px;
  338.   }
  339.  
  340.   .s-f-w.--active .m-b-arrow {
  341.     position: relative;
  342.     width: auto;
  343.     height: auto;
  344.     left: 0;
  345.   }
  346.  
  347.   #searchFormSubmit {
  348.     display: none;
  349.   }
  350.  
  351.   .m-h .search-form-icons .clear-search {
  352.     margin-right: 4px;
  353.   }
  354.  
  355.   .m-b-arrow {
  356.     width: 35px;
  357.     top: 0;
  358.   }
  359.  
  360.   .search-form .auto_suggestions {
  361.     margin: 0;
  362.     border: 0;
  363.   }
  364.  
  365.   .widgetContent {
  366.     margin-bottom: 0;
  367.   }
  368.  
  369.   .landing-category-select .landing_cat_buttons > button.--active {
  370.     background-color: var(--green);
  371.     border: 1px solid var(--green);
  372.     color: var(--crust);
  373.   }
  374.  
  375.   /* remove top/bottom border between results */
  376.   .search-result, .sri-group, .inline-content+.search-result, .inline-content+.sri-group {
  377.     border-top: 0;
  378.     border-bottom: 0;
  379.   }
  380.  
  381.   /* tighten line-height */
  382.   .__sri-title .__sri_title_link {
  383.     line-height: 1.65rem;
  384.   }
  385.  
  386.   /* hide inline image preview */
  387.   .__sri-body.--img .__sri-preview {
  388.     display: none;
  389.   }
  390.  
  391.   .__sri-body.--img .__sri-desc:before {
  392.     display: none;
  393.   }
  394.  
  395.   /* tighten up secondary results to match rhythm */
  396.   .sri-group .sr-group {
  397.     margin-top: 15px;
  398.   }
  399.  
  400.   /* disable bottom-right distracting button on scroll up */
  401.   .quick-search-btn {
  402.     display: none;
  403.   }
  404.  
  405.   /* fix video results spacing */
  406.   #newsHeader, .headerVideos {
  407.     margin-right: 0;
  408.   }
  409.  
  410.   /* clean up page 2 results spacing */
  411.   ._0_page-separator {
  412.     margin-bottom: 15px;
  413.   }
  414.  
  415.   /* give the page 2 button more bottom room */
  416.   .main-footer {
  417.     padding-bottom: 40px;
  418.   }
  419.  
  420.   /* light-specific */
  421.   .theme_light .search-form .search-form-icons {
  422.     /* background: linear-gradient(90deg, transparent 0%, rgb(255, 255, 255) 50%); */
  423.   }
  424. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement