Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
chore: rollback algolia search (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Dec 23, 2021
1 parent 06af2ca commit 734e513
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 352 deletions.
91 changes: 1 addition & 90 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,18 @@
--1inch-text-2: #6C86AD;
--1inch-text-3: #FBFBFB;
--1inch-text-4: #FBFBFB;
--1inch-text-5: rgba(251, 251, 251, 1);
--1inch-border: rgba(255, 255, 255, 0.25);
--1inch-bg-1: #000000;
--1inch-bg-2: #202835;
--1inch-bg-3: #FBFBFB;
--1inch-bg-4: rgba(6, 10, 16, 0.5);
--1inch-bg-5: #202835;
--1inch-bg-6: rgba(255, 255, 255, 0.09);
--1inch-bg-7: #202835;
--1inch-bg-card: #FFFFFF;
--1inch-bg-header: #06070A;
--1inch-bg-toggle: #202835;
--1inch-shadow-1: 0 0 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25);
--1inch-shadow-2: none;
--1inch-shadow-3: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.25);
--1inch-text-2-hover: #FBFBFB;
}

Expand All @@ -38,7 +35,6 @@
--1inch-text-2: #6C86AD;
--1inch-text-3: #2F8AF5;
--1inch-text-4: #6C86AD;
--1inch-text-5: rgba(34, 34, 34, 1);
--1inch-bg-image: rgba(108, 134, 173, 0.12);
--1inch-title: #1c1e21;
--1inch-border: rgba(0, 0, 0, 0.24);
Expand All @@ -48,12 +44,10 @@
--1inch-bg-4: #ECF0F9;
--1inch-bg-5: #FFFFFF;
--1inch-bg-6: #ECF0F9;
--1inch-bg-7: #FFFFFF;
--1inch-bg-header: #FFFFFF;
--1inch-bg-toggle: #ECF0F9;
--1inch-shadow-1: 0 0 4px rgba(71, 73, 79, 0.05), 0 1px 2px rgba(71, 73, 79, 0.05);
--1inch-shadow-2: 0 0 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25);
--1inch-shadow-3: 0px 0px 4px rgba(71, 73, 79, 0.1), 0px 1px 2px rgba(71, 73, 79, 0.25);
--1inch-text-2-hover: #222222;
}

Expand Down Expand Up @@ -158,7 +152,7 @@ html {

.navbar__item {
padding: 0;
margin-right: 24px;
margin-right: 32px;
align-self: stretch;
display: flex;
align-items: center;
Expand Down Expand Up @@ -399,89 +393,6 @@ html[data-theme='dark'] .swagger-ui .model-toggle:after {
}
/* swagger END */

/* search START */

.largeSearch .DocSearch-Button {
margin-top: 32px;
background: var(--1inch-bg-7) !important;
box-shadow: var(--1inch-shadow-3);
width: 275px;
height: 50px;
}

.smallSearch .DocSearch-Button {
background: var(--1inch-bg-7) !important;
box-shadow: var(--1inch-shadow-3);
width: 200px;
height: 42px;
margin-left: 32px;
}

.DocSearch-Button {
border-radius: 12px !important;
}

.DocSearch-Button:hover {
box-shadow: none;
}

.DocSearch-Search-Icon {
margin-left: 19px;
}

.DocSearch-Button-Key {
color: rgba(34, 34, 34, 1) !important;
background: #FFFFFF !important;
border-radius: 6px !important;
width: 27px !important;
height: 22px !important;
}

.navbar {
height: auto !important;
}

.DocSearch-Button-Placeholder {
color: var(--1inch-text-5);
margin-left: 16px;
}

@media (max-width: 1060px) {
.smallSearch .DocSearch-Button {
display: none;
}
}

@media (max-width: 750px) {
.largeSearch .DocSearch-Button {
width: 240px;
}

.DocSearch-Search-Icon {
margin-left: 10px;
}

.DocSearch-Button-Placeholder {
margin-left: 10px;
display: block !important;
}

.DocSearch-Button-Keys {
display: flex !important;
margin-right: 0;
}
}

@media (max-width: 400px) {
.largeSearch .DocSearch-Button {
margin-right: 0;
width: 100%;
}
}


/* search END */

/* Adaptive START */
@media (max-width: 1247px) {
.navbar__item {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import Layout from '@theme/Layout';
import styles from './index.module.css';
import HomepageFeatures from '../components/homepage-features/HomepageFeatures';
import HomepageDeveloperLinks from '../components/homepage-developer-links/HomepageDeveloperLinks';
import SearchBar from '@theme/SearchBar';
import HomepagePreFooter from '../components/homepage-prefooter/HomepagePreFooter';
import HomepageFooter from '../components/homepage-footer/HomepageFooter';
import HomePageBackgroundImage from '../../static/img/logo-background.svg'

function HomepageHeader() {
return (
<header className={styles.headerWrap}>
<h1 className={styles.mainTitle}>Documentation Portal</h1>
<SearchBar size="large"/>
</header>
);
}
Expand Down
219 changes: 0 additions & 219 deletions src/theme/SearchBar/index.js

This file was deleted.

Loading

0 comments on commit 734e513

Please sign in to comment.