Skip to content

Instantly share code, notes, and snippets.

@lazamar
Last active September 15, 2019 17:40
Show Gist options
  • Save lazamar/83450fbf43d59b36557ffdc3bcd9c64e to your computer and use it in GitHub Desktop.
Save lazamar/83450fbf43d59b36557ffdc3bcd9c64e to your computer and use it in GitHub Desktop.
Make hoogle look nicer.
html {
/*background-color: #f5f5f5;*/
}
body {
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
}
a {
color: #E91E63;
}
p {
margin-left: unset;
margin-right: unset;
}
/* Main page example box */
#example {
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
padding: 1em;
width: unset;
border: none;
background-color: rgba(0,0,0,0.025);
}
#example a {
font-family: "Fira Code", consolas,"Liberation Mono",courier,monospace;
}
/* Footer */
#footer {
background-color: rgba(0,0,0,0.025);
}
#logo {
color: purple;
font-size: 35px;
font-weight: bold;
}
#logo:hover {
background-color: unset;
color: #E91E63;
}
#logo::after {
content:"Hoogλe"
}
#logo img {
display: none
}
/* Search */
#search {
max-width: 700px;
margin: auto;
padding: 1em;
display: flex;
align-items: center;
}
#search .chosen-container {
display: none;
}
#search input#hoogle {
flex-grow: 1;
width: 100vw;
padding: 1em;
margin: 0 .5em;
border: 1px solid #293845;
border-radius: 3px;
background-color: rgba(0,0,0,0.025);
}
#search input#hoogle:focus {
outline: none !important;
background-color: white;
}
#search #submit {
background-color: #f9f9f9;
padding: 1em;
margin: 0;
box-shadow: none;
border: 1px solid #293845;
border-radius: 3px;
cursor: pointer;
}
#search #submit:hover {
outline: none;
color: white;
background-color: #6448b4 !important;
}
#body {
max-width: 700px;
margin: auto;
}
/* Search side bar */
#left {
display: none !important;
}
/* Search title */
#body h1 {
padding: 1em;
font-family: "Fira Code", consolas,"Liberation Mono",courier,monospace;
font-weight: normal;
background-color: #293c4b;
color: #eee;
background-color: rgba(0,0,0,0.025);
color: #293c4b;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
border-radius: 3px;
}
/* -------- Search result -------- */
.result{
border: 1px solid grey;
margin: 1em 0;
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
background-color: white;
}
.result a:hover {
color: #00BCD4 !important;
background-color: unset;
}
/* Type signature */
.result .ans {
font-family: "Fira Code", consolas,"Liberation Mono",courier,monospace;
background: unset;
border: 0;
background-color: rgba(0,0,0,0.025);
padding: 1rem;
color: #293845;
}
.result .ans a {
color: inherit;
}
.result .ans .name {
color: #6144b3;
}
/* Package name and module import */
.result .from {
padding: 1rem;
border-top: 1px solid #ccc;
margin: 0;
/* hide commas */
color: transparent;
font-size: 0;
}
.result .from a {
color: #293845;
font-size: 13px;
}
.result .from a:first-child { /*Module name */
color: #E91E63;
}
.result .from a:after {
content: " |";
color: #eee;
padding: 0 .5em;
}
.result .from a:last-child::after {
content: "";
}
/* Result description */
.result .doc {
padding: 1rem;
overflow: hidden;
font-size: inherit;
border-top: 1px solid #ccc;
margin: 0;
background-image: none; /* hide expand/contract sign */
cursor: pointer; /* signal you can click to expand/contract */
}
.result .doc:empty {
display:none
}
/* Control expansion */
.result .doc.shut {
white-space: nowrap;
text-overflow: ellipsis;
}
.result .doc.shut * {
white-space: nowrap;
display: inline;
}
/* "uses" link */
.result .ans .links {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment