Skip to content

Commit

Permalink
more layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Bolt-Scripts committed Sep 2, 2019
1 parent 978bbda commit d245e24
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
22 changes: 19 additions & 3 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ footer .right {
width: 100%;
}

.main-stuff > p {
margin: 0;
}

.main-stuff .subtitle {
font-size: x-small;
margin-top: 3px;
margin-bottom: 6px;
}

.results {
overflow-y: scroll;
}
Expand All @@ -106,9 +116,15 @@ footer .right {
margin-bottom: 15px;
}

.code-item {
-webkit-box-shadow: 0px 2px 4px 0px black;
box-shadow: 0px 2px 4px 0px black;
.searchbar {
font-size: larger;
}

@media only screen and (min-aspect-ratio: 3 / 2) {
.code-item {
-webkit-box-shadow: 0px 2px 4px 0px black;
box-shadow: 0px 2px 4px 0px black;
}
}

.code-item > pre {
Expand Down
21 changes: 20 additions & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ footer{
position: fixed;
height: 100%;
width: 100%;

>p{
margin: 0;
}

.subtitle{
font-size: x-small;

margin-top: 3px;
margin-bottom: 6px;
}
}

.results{
Expand All @@ -88,8 +99,16 @@ footer{
}
}

.searchbar{
font-size: larger;
}

.code-item{
box-shadow: 0px 2px 4px 0px black;

@media only screen and (min-aspect-ratio: $aspect) {
box-shadow: 0px 2px 4px 0px black;
}


>pre{
border-bottom: double black 3px;
Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.8/firebase.js"></script>

<script src="/UnityShaderCompendium/js/utility/InitFB.js"></script>
<script src="/UnityShaderCompendium/js/utility/FbHitCounter.js"></script>
<script src="/UnityShaderCompendium/js/json/Output.json"></script>
Expand All @@ -24,7 +24,8 @@
<div class="main-stuff">
<div>
<p>Search the Compendium</p>
<input data-bind="textInput: searchPhrase, event:{keyup: CheckFilter}">
<p class="subtitle">Search the Compendium</p>
<input class="searchbar" data-bind="textInput: searchPhrase, event:{keyup: CheckFilter}">
</div>

<div class="results" data-bind="foreach: searchResults">
Expand Down

0 comments on commit d245e24

Please sign in to comment.