Commit 87163ef1 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Improvements in layout and search

parent 5b53df8a
...@@ -17,5 +17,18 @@ layout: default ...@@ -17,5 +17,18 @@ layout: default
<input class="search" placeholder="What are you looking for?" /> <input class="search" placeholder="What are you looking for?" />
<button class="search" type="submit">Find it with Google</button> <button class="search" type="submit">Find it with Google</button>
</form> </form>
<small>Note: you will be redirected to Google.com website</small>
</div> </div>
</article> </article>
<script>
var button = document.getElementsByTagName('button')[0];
var edit_box = document.getElementsByClassName('search')[0];
var edit_box_contents = edit_box.value;
button.onclick = function(e) {
document.location = 'https://www.google.com/search?q=site%3Aelixir-luxembourg.org+' + edit_box_contents;
e.preventDefault();
}
</script>
...@@ -166,9 +166,9 @@ ...@@ -166,9 +166,9 @@
flex-direction: column; flex-direction: column;
#left-column { #left-column {
border-bottom: solid 1px #e6e6e6; border-bottom: solid 1px #e6e6e6;
min-width: 92%; min-width: 92% !important;
ul { ul {
min-width: 92%; min-width: 92% !important;
} }
} }
} }
...@@ -179,6 +179,12 @@ ...@@ -179,6 +179,12 @@
margin: 0; margin: 0;
display: flex; display: flex;
img.fit-width {
display: -webkit-box;
width: -webkit-fill-available;
max-width: 600px;
}
#left-column { #left-column {
padding-top: 20px; padding-top: 20px;
padding-right: 20px; padding-right: 20px;
...@@ -458,7 +464,7 @@ div.post { ...@@ -458,7 +464,7 @@ div.post {
} }
input.search { input.search {
width: 400px; width: 330px;
height: 35px; height: 35px;
font-size: 20px; font-size: 20px;
padding: 5px; padding: 5px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "elixir-theme" spec.name = "elixir-theme"
spec.version = "0.3.2" spec.version = "0.4.0"
spec.authors = ["jacek.lebioda"] spec.authors = ["jacek.lebioda"]
spec.email = ["jacek.lebioda@uni.lu"] spec.email = ["jacek.lebioda@uni.lu"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment