diff --git a/_static/css/custom.css b/_static/css/custom.css index cc195d99061..a0882c1d4fc 100755 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -93,22 +93,5 @@ } .pytorch-left-menu-search input[type=text] { - background-image: none; -} - -.gsc-control-cse { - padding-left: 0px !important; - padding-bottom: 0px !important; -} - -.gsc-search-button .gsc-search-button-v2:focus { - border: transparent !important; - outline: none; - box-shadow: none; -} -.gsc-search-button-v2:active { - border: none !important; -} -.gsc-search-button-v2 { - border: none !important; + background-image: url("../images/search-icon.svg"); } diff --git a/_static/css/custom2.css b/_static/css/custom2.css index a4ec9396ee8..d2effb21124 100644 --- a/_static/css/custom2.css +++ b/_static/css/custom2.css @@ -35,3 +35,75 @@ .pytorch-left-menu li.toctree-l1.current > a:before { content: ""; } + +/* search radio button*/ + +input[type="radio"] { + accent-color: #ee4c2c; +} + +.gsst_b { + display: none; +} + +#gsc-i-id1 { + height: 1.5rem; + text-indent: 12px !important; + font-size: 1rem !important; + font-family: "FreightSansi"; + background-image: url(../images/search-icon.svg) !important; + background-repeat: no-repeat !important; + background-size: 18px 18px !important; + background-position: 5px 0px !important; + padding-left: 20px !important; +} + +#gsc-i-id1::placeholder { + font-family: 'FreightSans'; + font-size: 1rem; + color: #262626; +} + +.gsc-control-cse { + padding: 0 !important; + border-radius: 0px !important; + border: none !important;; + overflow: hidden; +} + +#___gcse_0 { + height: 44px !important; + padding: 0 !important; +} + +table.gsc-search-box td.gsc-input { + padding-right: 0 !important; +} + +table.gsc-search-box td { + height: 44px; + margin-bottom: 0 !important; + padding-bottom: 0 !important; +} + +.gsc-search-button-v2 { + display: none; +} + +.gs_id50 { + width: 308px; +} + +.gsib_a { + padding: 0px 8px 4px 9px !important; +} + +.gsc-input-box { + border-radius: 0px !important; + border: none !important; +} + +form.gsc-search-box { + margin-bottom 0px; +} + diff --git a/_templates/layout.html b/_templates/layout.html index fc120ef5022..e3827929f00 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -1,6 +1,5 @@ {% extends "!layout.html" %} - {% block menu %} {% if 'singlehtml' not in builder %} @@ -30,24 +29,87 @@ {%- endblock %} {% block sidebartitle %} - {% if theme_display_version %} - {%- set nav_version = version %} - {% if READTHEDOCS and current_version %} - {%- set nav_version = current_version %} - {% endif %} - {% if nav_version %} -