mirror of
https://github.com/IdleEndeavor/gamesearch.git
synced 2025-04-29 14:14:31 +02:00

Updated engine switcher on desktop Minor tweaks to search bar and results Updated classes and ids for easier editing and reference in the future Updated and simplified meta-tags
404 lines
11 KiB
CSS
404 lines
11 KiB
CSS
@font-face {
|
|
font-family: 'Roboto';
|
|
src: url('fonts/roboto-regular-webfont.woff2') format('woff2'),
|
|
url('fonts/roboto-regular-webfont.woff') format('woff');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
:root {
|
|
--bg-color: #121212;
|
|
--text-color: #ffffff;
|
|
--primary-color: #F63F4D;
|
|
--secondary-color: #f63f4e78;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--bg-color);
|
|
height: 100%;
|
|
font-family: Roboto;
|
|
}
|
|
|
|
.container {
|
|
height: 100%;
|
|
}
|
|
|
|
/* Search Bar and Logo Container */
|
|
.maindiv {
|
|
margin: auto;
|
|
position: relative;
|
|
text-align: left;
|
|
top: 25%;
|
|
width: 40%;
|
|
}
|
|
|
|
.maindiv img {
|
|
max-width: 70%;
|
|
}
|
|
|
|
.searchlogo {
|
|
text-align: center;
|
|
}
|
|
|
|
.tips {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* Fade animation for banner images */
|
|
.searchlogo {
|
|
cursor: pointer;
|
|
transition: opacity 1s ease-in-out; /* Transition for fade effect */
|
|
opacity: 1; /* Ensures image is visible initially */
|
|
}
|
|
|
|
/* Search Engine Switcher */
|
|
.engine-swticher {
|
|
display: flex;
|
|
position: fixed;
|
|
flex-direction: column;
|
|
font-family: Roboto;
|
|
margin: 10px;
|
|
top: 0;
|
|
left: 0;
|
|
animation: 0.5s ease-out 0s 1 slideInFromTop;
|
|
}
|
|
|
|
.engine-swticher a {
|
|
padding: 5px;
|
|
font-size: 15px;
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
#primary {
|
|
color: var(--primary-color);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.engine-swticher a:hover {
|
|
color: var(--secondary-color);
|
|
font-size: 20px;
|
|
}
|
|
|
|
/* Mobile engine switcher */
|
|
.m-engine-switcher {
|
|
display: none; /* Initially hide the toggle container */
|
|
position: absolute;
|
|
justify-content: center;
|
|
top: 15px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border-radius: 50px;
|
|
z-index: 1000;
|
|
width: 80%;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.toggle-btn {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
border-radius: 20px;
|
|
border-width: 5px;
|
|
transition: background-color 0.3s ease;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#m-primary {
|
|
background-color: var(--primary-color);
|
|
color: var(--text-color);
|
|
box-shadow: 0 0 10px black;
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
background-color: var(--secondary-color);
|
|
}
|
|
|
|
/* Notification Center */
|
|
.notification-zone {
|
|
position: fixed;
|
|
margin-top: 15px;
|
|
margin-right: 10px;
|
|
top: 0;
|
|
right: 0;
|
|
width: 20%; /* 1/5 of the page width */
|
|
font-family: Roboto, sans-serif;
|
|
z-index: 1000; /* Ensure it is on top of other elements */
|
|
}
|
|
|
|
.notification-zone .item {
|
|
position: relative;
|
|
color: var(--text-color); /* Text color */
|
|
padding: 10px;
|
|
margin-bottom: 10px; /* Space between items */
|
|
border: 5px solid white; /* White border */
|
|
border-radius: 5px; /* Rounded corners */
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for better visibility */
|
|
width: 100%; /* Full width of the container */
|
|
box-sizing: border-box; /* Include padding and border in the width */
|
|
display: block; /* Ensure items are initially visible */
|
|
box-shadow: 0 0 10px black;
|
|
}
|
|
|
|
.notification-zone .item.hidden {
|
|
display: none; /* Hide items with the 'hidden' class */
|
|
}
|
|
|
|
.notification-zone .item .close-btn {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
cursor: pointer;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
#donate-button {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
/* Corner Box */
|
|
.corner-box {
|
|
display: flex;
|
|
max-width: 20%;
|
|
bottom: 0;
|
|
left: 0;
|
|
flex-direction: column;
|
|
font-family: Roboto;
|
|
margin: 10px;
|
|
width: fit-content;
|
|
position: fixed;
|
|
}
|
|
|
|
.corner-box a {
|
|
padding: 5px;
|
|
font-size: 16px;
|
|
width: 20%;
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Terms of Use, Privacy Policy and GitHub Link */
|
|
.terms {
|
|
position: fixed;
|
|
bottom: 0;
|
|
right: 0;
|
|
display: flex;
|
|
font-family: Roboto;
|
|
margin: 10px;
|
|
}
|
|
|
|
.terms a {
|
|
padding: 5px;
|
|
font-size: 16px;
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.terms a:hover {
|
|
color: var(--secondary-color);
|
|
font-size: 20px;
|
|
}
|
|
|
|
/* Search Box */
|
|
/* search button */
|
|
.gsc-search-button .gsc-search-button-v2 {
|
|
border-radius: 50%;
|
|
border-color: var(--primary-color);
|
|
background-color: var(--primary-color);
|
|
height: 50px;
|
|
width: 50px;
|
|
margin: auto;
|
|
padding:10px !important;
|
|
box-shadow: 0 0 10px black;
|
|
}
|
|
/* search input box, includes input field */
|
|
.gsc-input-box input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus {
|
|
background-color: var(--bg-color) !important; /* inner background colour */
|
|
color: var(--text-color);
|
|
font-size: 20px;
|
|
}
|
|
/* search input box, excludes input field */
|
|
.gsc-input-box, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus {
|
|
border-radius: 50px !important; /* rounded corner */
|
|
border-color: var(--primary-color) !important;
|
|
border-width: 5px !important;
|
|
}
|
|
/* searchbox outer shadow */
|
|
.gsc-input-box {
|
|
box-shadow: 0 0 10px black;
|
|
}
|
|
/* resets colour of white box behind searchbox */
|
|
.gsc-control-cse {
|
|
background-color: transparent !important;
|
|
border-color: transparent !important;
|
|
}
|
|
/* gets rid of 'x results in x seconds' text */
|
|
.gsc-result-info {
|
|
display: none;
|
|
}
|
|
/* gets rid of images gathered from indexed results */
|
|
.gsc-thumbnail {
|
|
display: none;
|
|
}
|
|
/* gets rid of description gathered from indexed results */
|
|
.gs-snippet {
|
|
display: none;
|
|
}
|
|
/* 'search on google for x' text remover */
|
|
.gcsc-more-maybe-branding-root {
|
|
display: none;
|
|
}
|
|
/* sort-by option remover */
|
|
.gsc-orderby {
|
|
display: none;
|
|
}
|
|
/* colours result titles white (including visited results) */
|
|
.gs-webResult.gs-result a.gs-title:link, .gs-webResult.gs-result a.gs-title:link b, .gs-imageResult a.gs-title:link, .gs-imageResult a.gs-title:link b, a.gs-title:visited {
|
|
color: var(--text-color) !important;
|
|
font-size: 20px;
|
|
}
|
|
/* colouring of search result background and border */
|
|
.gsc-webResult.gsc-result, .gsc-results .gsc-imageResult {
|
|
background-color: var(--bg-color) !important;
|
|
border-color: var(--primary-color) !important;
|
|
border: none !important;
|
|
padding-bottom: 5px !important;
|
|
}
|
|
/* colouring of upper border on search results */
|
|
.gsc-above-wrapper-area {
|
|
border-bottom: black !important;
|
|
}
|
|
/* Styles pagination switcher */
|
|
.gsc-results .gsc-cursor-box .gsc-cursor-page {
|
|
border-color: var(--primary-color) !important;
|
|
border-radius: 50% !important;
|
|
background-color: transparent !important;
|
|
color: var(--text-color) !important;
|
|
padding: 5px 10px !important;
|
|
margin: 5px;
|
|
}
|
|
/* results pagination design */
|
|
.gsc-cursor-page {
|
|
font-size: 1.5em;
|
|
padding: 5px 10px !important;
|
|
}
|
|
/* Styles active page pagination switcher */
|
|
.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
|
|
border-color: var(--primary-color) !important;
|
|
color: var(--primary-color) !important;
|
|
border-bottom: 2px solid var(--primary-color) !important;
|
|
padding: 5px 10px !important;
|
|
}
|
|
.gsc-results .gsc-cursor {
|
|
color: var(--primary-color) !important;
|
|
fill: var(--primary-color) !important;
|
|
}
|
|
/* makes pagination switcher background transparent */
|
|
.gsc-results {
|
|
background-color: transparent !important;
|
|
}
|
|
/* colours search phrase clear button */
|
|
.gsst_a .gscb_a {
|
|
color: var(--primary-color) !important;
|
|
cursor: pointer;
|
|
}
|
|
/* styles sizing and colouring of autocomplete suggestions */
|
|
.gsc-completion-container {
|
|
color: var(--text-color) !important;
|
|
border-color: var(--primary-color) !important;
|
|
border-radius: 10px !important;
|
|
padding: 10px !important;
|
|
}
|
|
/* styles autocomplete suggestion when hovered */
|
|
.gssb_a:hover {
|
|
background: var(--primary-color) !important;
|
|
color: var(--text-color) !important;
|
|
}
|
|
/* removes border-line below filters switcher and removes border on mobile view */
|
|
.gsc-refinementsArea {
|
|
background-color: none !important;
|
|
border: none !important;
|
|
border-bottom: none !important;
|
|
}
|
|
/* styles inactive refinement tabs */
|
|
.gsc-tabHeader.gsc-tabhInactive, .gsc-refinementHeader.gsc-refinementhInactive {
|
|
color: var(--text-color) !important;
|
|
border-color: var(--bg-color) !important;
|
|
background-color: var(--bg-color) !important;
|
|
}
|
|
/* styles active refinement tabs */
|
|
.gsc-tabHeader.gsc-tabhActive, .gsc-refinementHeader.gsc-refinementhActive {
|
|
color: var(--primary-color) !important;
|
|
border-color: var(--primary-color) !important;
|
|
background-color: var(--bg-color) !important;
|
|
}
|
|
/* styles tags on search results */
|
|
.gsc-control-cse .gsc-table-result span {
|
|
display: none;
|
|
}
|
|
a.gs-label {
|
|
float: right;
|
|
color: var(--text-color) !important;
|
|
text-decoration: none !important;
|
|
}
|
|
/* colours url on search results */
|
|
.gs-webResult div.gs-visibleUrl {
|
|
color: lightgreen !important;
|
|
}
|
|
/* removes find more on Google text in mobile view */
|
|
.gcsc-find-more-on-google-root {
|
|
display: none;
|
|
}
|
|
/* removes ads from the search results */
|
|
.gsc-adBlock {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Screen-size dependant options */
|
|
@media (max-width: 1000px) {
|
|
.maindiv {
|
|
margin: auto;
|
|
position: relative;
|
|
text-align: left;
|
|
top: 30%;
|
|
width: 90%;
|
|
}
|
|
|
|
.maindiv img {
|
|
max-width: 90%;
|
|
}
|
|
|
|
.engine-swticher {
|
|
display: none;
|
|
}
|
|
|
|
.m-engine-switcher {
|
|
display: flex;
|
|
}
|
|
|
|
.notification-zone {
|
|
display: none;
|
|
}
|
|
|
|
/* search input box, excludes input field */
|
|
.gsc-input-box, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus {
|
|
border-radius: 50px !important; /* rounded corner */
|
|
margin-right: 5px !important;
|
|
}
|
|
|
|
/* Removes gradient from the refinenments area */
|
|
.gsc-refinementsArea {
|
|
background-color: var(--bg-color) !important;
|
|
}
|
|
.gsc-refinementsGradient {
|
|
display: none !important;
|
|
}
|
|
|
|
.corner-box {
|
|
display: none;
|
|
}
|
|
} |