added some search results styles
added search class via JS in search.md tackled a bunch of little CSS issues
This commit is contained in:
@@ -119,5 +119,15 @@
|
|||||||
</main>
|
</main>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.cse .gsc-control-cse, .gsc-control-cse {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gsc-above-wrapper-area {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -81,6 +81,10 @@
|
|||||||
<div class="center">© {{ 'now' | date: "%Y" }} Kubernetes</div>
|
<div class="center">© {{ 'now' | date: "%Y" }} Kubernetes</div>
|
||||||
</main>
|
</main>
|
||||||
</footer>
|
</footer>
|
||||||
|
<style>
|
||||||
|
.cse .gsc-control-cse, .gsc-control-cse {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+38
-10
@@ -586,18 +586,17 @@ section
|
|||||||
margin-top: 10px
|
margin-top: 10px
|
||||||
|
|
||||||
code
|
code
|
||||||
white-space: pre-wrap
|
|
||||||
background-color: $light-grey
|
background-color: $light-grey
|
||||||
color: $dark-grey
|
color: $dark-grey
|
||||||
font-family: $mono-font
|
font-family: $mono-font
|
||||||
line-height: 32px
|
overflow-x: scroll
|
||||||
overflow: auto
|
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
padding: 2px 4px
|
padding: 2px 4px
|
||||||
|
|
||||||
&::-webkit-scrollbar
|
a code
|
||||||
background-color: transparent
|
color: $blue
|
||||||
|
text-decoration: underline
|
||||||
|
|
||||||
pre .pi, pre .s
|
pre .pi, pre .s
|
||||||
margin: 0
|
margin: 0
|
||||||
@@ -615,13 +614,9 @@ section
|
|||||||
pre
|
pre
|
||||||
background-color: #f7f7f7
|
background-color: #f7f7f7
|
||||||
display: block
|
display: block
|
||||||
white-space: pre-wrap
|
|
||||||
margin: 20px 0
|
margin: 20px 0
|
||||||
padding: 15px
|
padding: 15px
|
||||||
overflow: auto
|
overflow-x: scroll
|
||||||
|
|
||||||
pre::-webkit-scrollbar
|
|
||||||
background-color: transparent
|
|
||||||
|
|
||||||
ul li
|
ul li
|
||||||
list-style: disc
|
list-style: disc
|
||||||
@@ -630,11 +625,22 @@ section
|
|||||||
list-style: decimal
|
list-style: decimal
|
||||||
|
|
||||||
ul, ol
|
ul, ol
|
||||||
|
margin: 20px 0
|
||||||
padding-left: 30px
|
padding-left: 30px
|
||||||
|
font-weight: 300
|
||||||
|
|
||||||
li
|
li
|
||||||
margin-bottom: 1em
|
margin-bottom: 1em
|
||||||
|
|
||||||
|
thead, tr:nth-child(even)
|
||||||
|
background-color: $light-grey
|
||||||
|
|
||||||
|
th, td
|
||||||
|
padding: 6px
|
||||||
|
|
||||||
|
td
|
||||||
|
font-size: 0.85em
|
||||||
|
|
||||||
#editPageButton
|
#editPageButton
|
||||||
position: absolute
|
position: absolute
|
||||||
top: -25px
|
top: -25px
|
||||||
@@ -659,6 +665,7 @@ section
|
|||||||
|
|
||||||
ul
|
ul
|
||||||
padding: 0 15px
|
padding: 0 15px
|
||||||
|
margin: 0
|
||||||
|
|
||||||
li
|
li
|
||||||
padding: 0
|
padding: 0
|
||||||
@@ -675,6 +682,27 @@ section
|
|||||||
bottom: 0
|
bottom: 0
|
||||||
|
|
||||||
|
|
||||||
|
html.search #docsContent
|
||||||
|
position: relative
|
||||||
|
float: none
|
||||||
|
width: 90%
|
||||||
|
max-width: 850px
|
||||||
|
margin: 0 auto
|
||||||
|
|
||||||
|
#editPageButton
|
||||||
|
display: none
|
||||||
|
|
||||||
|
td
|
||||||
|
padding: 0
|
||||||
|
|
||||||
|
h1
|
||||||
|
margin-bottom: 0
|
||||||
|
border-bottom: 0
|
||||||
|
padding-bottom: 0
|
||||||
|
padding-left: 8px
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Default gh-pages-blog css from https://github.com/thedereck/gh-pages-blog/blob/master/css/syntax.css */
|
/* Default gh-pages-blog css from https://github.com/thedereck/gh-pages-blog/blob/master/css/syntax.css */
|
||||||
.highlight br
|
.highlight br
|
||||||
display: none
|
display: none
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ hideTOC: true
|
|||||||
'//cse.google.com/cse.js?cx=' + cx;
|
'//cse.google.com/cse.js?cx=' + cx;
|
||||||
var s = document.getElementsByTagName('script')[0];
|
var s = document.getElementsByTagName('script')[0];
|
||||||
s.parentNode.insertBefore(gcse, s);
|
s.parentNode.insertBefore(gcse, s);
|
||||||
|
|
||||||
|
document.querySelector('html').classList.add('search');
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<gcse:searchresults-only linktarget="_parent"></gcse:searchresults-only>
|
<gcse:searchresults-only linktarget="_parent"></gcse:searchresults-only>
|
||||||
Reference in New Issue
Block a user