New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make layout responsive. #378
Conversation
Note that on large screen, the layout-container's width is fixed (but it's completely optional): @media (min-width: 1024px) {
.layout-container {
margin: 0 auto;
width: 1024px; /* Comment this line to disable the feature */
box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
box-sizing: border-box;
border-width: 0 1px;
border-style: solid;
border-color: #ddd;
}
} |
- Fix the .main:after position - Add .responsive class
- wrap the table with .table-wrapper
Here is the new markup for the <div class="search-box">
<div><input class="search-input"/></div>
<ul class="search-result"></ul>
</div> |
- and adjust the .search-result 'width'
By the way, the free icons comes from: |
Here's the new <div class="search-box">
<div class="search-input"><input/></div>
<div class="search-result"><ul></ul></div>
</div> And in var input = document.querySelector('.search-input').firstChild;
var resultWrapper = document.querySelector('.search-result');
var result = resultWrapper.firstChild; Then, simply replace |
- Close properly the search box in search.js - Improve the search result render - Make responsive the search result height - Some code refactoring
- usefull for page anchor
Hi, First, I really like the amazing job you have done and I will be very happy if you are interested in my contribution. The roadmap might be to split the CSS into something like:
This way, it will be super easy for anyone to just disable the The {
"includeTheme": true, // Include `theme.css` in the `layout.html`
"styles": ["./path/to/style.css"],
"scripts": ["./path/to/script.js"]
} Best regards, |
Please check the result at: |
👏 i ❤️ it! I hope it gets merged! |
Thanks. I hope too.
|
Thank you ❤️ |
Thanks in advance. Feel free to ask me any question. I will be pleased to explain the code if needed. |
Please check #379 (comment) |
Please check #379 (comment) |
i have done some work to make the layout responsive.
You can check the result at:
http://esdoc.avine.fr/https://avine.io/projects/esdoc/v1/Just resize the window to see it in action...