Romarain

CSS_Restyle_GoogleSearch_v1.4

Sep 4th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.65 KB | None | 0 0
  1. @-moz-document url-prefix("https://www.google.com/search?") {
  2. @media (min-width: 1300px) {
  3.     #footcnt {
  4.         text-align: center;
  5.     }
  6. }
  7.  
  8. @media (min-width: 1300px) and (max-width: 1499px) {
  9.    
  10.     /* ---- WEBSITES SEARCH ---- */
  11.    
  12.     /* SEARCH RESULTS */
  13.     #cnt .mw {
  14.         max-width: unset;
  15.         width: 100%;
  16.     }
  17.     #cnt > .mw > #rcnt {
  18.         display: flex;
  19.         width: 95% !important;
  20.         margin-left: 5%;
  21.     }
  22.     #cnt > .mw > #rcnt > .col:not(#rhscol) {
  23.         width: 55% !important;
  24.     }
  25.     #cnt > .mw > #rcnt > .col:not(#rhscol) #center_col {
  26.         width: 100%;
  27.         margin-left: unset;
  28.     }
  29.     .s {
  30.         max-width: 100%;
  31.     }
  32.    
  33.     /* SIDEBAR (ADDS) */
  34.     #rhscol {
  35.         width: 470px;
  36.         min-width: unset;
  37.         position: absolute;
  38.         right: 10px;
  39.     }
  40.     #rhscol #rhs {
  41.         margin-left: unset;
  42.     }
  43.  
  44. }
  45.  
  46. @media (min-width: 1500px) and (max-width: 2249px) {
  47.    
  48.     /* SEARCH RESULTS */
  49.     #cnt .mw {
  50.         max-width: unset;
  51.         width: 100%;
  52.     }
  53.     #cnt > .mw > #rcnt {
  54.         display: flex;
  55.         width: 95% !important;
  56.         margin-left: 5%;
  57.     }
  58.     #cnt > .mw > #rcnt > .col:not(#rhscol) {
  59.         width: 62% !important;
  60.     }
  61.     #cnt > .mw > #rcnt > .col:not(#rhscol) #center_col {
  62.         width: 100%;
  63.         margin-left: unset;
  64.     }
  65.     .s {
  66.         max-width: 100%;
  67.     }
  68.    
  69.     /* SIDEBAR (ADDS) */
  70.     #rhscol {
  71.         width: 470px;
  72.         min-width: unset;
  73.         position: absolute;
  74.         right: 90px;
  75.     }
  76.     #rhscol #rhs {
  77.         margin-left: unset;
  78.     }  
  79. }
  80.  
  81. @media (min-width: 2250px) {
  82.    
  83.     /* ---- WEBSITES SEARCH ---- */
  84.    
  85.     /* SEARCHBAR */
  86.     body.srp > #searchform {
  87.         position: fixed !important;
  88.         top: 20px !important;
  89.     /*     width: 1650px;
  90.         margin: auto; */
  91.         padding-left: 20%;
  92.         padding-right: 20%;
  93.         width: 60%;
  94.     }
  95.     body.srp > #searchform form#tsf .RNNXgb { /* Search input. */
  96.         width: 900px;
  97.     }
  98.     body.srp > #searchform #gb { /* Connexion button. */
  99.         position: absolute;
  100.         right: 20px;
  101.     }
  102.  
  103.     /* TOOLBAR */
  104.     #hdtb.notl #hdtbSum {
  105.         width: 1650px;
  106.         margin: auto;
  107.         display: flex;
  108.         justify-content: center;
  109.     }
  110.     #hdtb.notl #hdtbSum #hdtb-s {
  111.         width: 100%;
  112.     }
  113.  
  114.     /* SUB-TOOLBAR */
  115.     body.vasq #hdtbMenus.hdtb-td-o {
  116.         width: 1650px;
  117.         margin: auto;
  118.         position: relative;
  119.         top: 0;
  120.     }
  121.     #hdtbMenus.hdtb-td-c[aria-expanded="false"] {
  122.         display: none;
  123.     }    
  124.  
  125.     /* BELOW TOP BAR */
  126.     body.vasq .ab_tnav_wrp {
  127.         width: 1650px;
  128.         margin: auto;
  129.         position: relative;
  130.         left: 150px;
  131.     }
  132.    
  133.     /* SEARCH RESULTS */
  134.     .big .mw {
  135.         max-width: 1650px;
  136.         margin: auto;
  137.     }
  138.     #cnt #center_col, #cnt #foot {
  139.         width: 1280px;
  140.     }
  141.     .s {
  142.         max-width: 100%;
  143.     }
  144.    
  145.     /* SIDEBAR (ADDS) */
  146.     #rhscol {
  147.         position: relative;
  148.         left: 650px;
  149.     }
  150.    
  151.    
  152.     /* ---- IMAGES SEARCH ---- */
  153.  
  154.        
  155.     /* WHOLE HEADER */
  156.    
  157.     /* Google Images. */
  158.     body:not([jsmodel="jivSc"]).srp #searchform {
  159.         position: static !important;
  160.         margin-top: 20px;
  161.     }
  162.     body:not([jsmodel="jivSc"]) .sfbg .sfbgg {
  163.         background: white;
  164. /*         box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28);    */ /* Disabled because display a residual shadow after fixing the #main positioning (position: absolute). */
  165.         height: 83px !important;
  166.     }
  167.    
  168.     /* TOOLBAR */
  169.     body:not([jsmodel="jivSc"]) [jsname="haAclf"] {
  170.         text-align: center;
  171.     }
  172.    
  173.     /* SEARCH RESULTS */
  174.     body:not([jsmodel="jivSc"]) #main > #cnt > #rcnt > .col > #center_col {
  175.         width: 100%;
  176.         margin: auto;
  177.     }
  178.     body:not([jsmodel="jivSc"]) #main > #cnt > #rcnt > #res.med {
  179.         padding-left: 0px;
  180.         padding-right: 0px;
  181.     }
  182.     body:not([jsmodel="jivSc"]) #main > #cnt > #rcnt > #res.med .rg {
  183.         width: 2520px;
  184.     }
  185.    
  186.     /* ---- NEWS SEARCH ---- */
  187.    
  188.     body:not([jsmodel="jivSc"]) #main > #cnt > .mw {
  189.         margin: auto;
  190.     }
  191.     body:not([jsmodel="jivSc"]) #main > #cnt > .mw > #rcnt > .col {
  192.         width: 100% !important; /* Need "!mportant" for fixing the Video Search view. */
  193.     }
  194.     body:not([jsmodel="jivSc"]) #main > #cnt > .mw > #rcnt > .col > #center_col {
  195.         width: 100%;
  196.         margin: auto;        
  197.     }
  198.    
  199.     /* ---- VIDEOS SEARCH ---- */
  200.    
  201.    
  202.     /* ---- SHOPPING SEARCH ---- */
  203.    
  204.     body:not([jsmodel="jivSc"]) #main > #cnt > .mw > #rcnt > #bcenter > .col {
  205.         position: relative;
  206.         left: -250px;
  207.     }
  208.     body:not([jsmodel="jivSc"]) #main > #cnt > .mw > #rcnt > .col > #center_col > .med > #search .sh-sr__shop-result-header {
  209.         height: 80px;
  210.     }
  211.     body:not([jsmodel="jivSc"]) #main > #cnt > .mw > #rcnt > .col > #center_col > .med > #search .sh-sr__shop-result-header .eq5rcc {
  212. /*         padding-left: 15em; */
  213.     }
  214.    
  215.     /* ---- ALL ---- */
  216.    
  217.     #main { /* Fix the gap below the searchbar for Images, Video, News, and Shop, but disabled here because makes the searchbar unclickable. It overlap it in a way I can't find how to solve it. Z-index tests didn't work. */
  218. /*         position: absolute;
  219.         top: 0px; */
  220.     }
  221.    
  222. }
  223.  
  224. /* OTHER THINGS */
  225.  
  226. a:link {
  227.     color: #1174DF; /* #1A73E8 #1887D0 #127EC6 #1A7DE8 #1174DF #1774DF */
  228. }
  229. a.fl:link {
  230.     color: #B57129; /* #B57129 #B53029 #B56763 #D0C5C1 */
  231. }
  232. a:visited {
  233.     color: #7C4FC1; /* #7C4FC1 */
  234. }
  235. }
Add Comment
Please, Sign In to add comment