Commit ad69ad9d authored by Denis Salem's avatar Denis Salem
Browse files

Fix table to add horizonta scroll

parent 163a5f19
......@@ -44,7 +44,16 @@ math
.footnote:target
{height: auto;
opacity: 1;}
.__VENC_PYGMENTIZE_WRAPPER__ {clear: both; width: 100%;}
.__VENC_PYGMENTIZE_WRAPPER__ pre {overflow: hidden; overflow-x: auto;}
.__VENC_PYGMENTIZE_WRAPPER__ table {width: 100%; display: block; clear: both;}
.__VENC_PYGMENTIZE_WRAPPER__ table tr {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table tbody {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table .linenos {width: 4%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table .code {width: 95%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table td pre {vertical-align: top; overflow: hidden; overflow-x: auto; margin: 0px;}
/**************/
/* VENC BOXES */
/**************/
......@@ -174,15 +183,6 @@ header a:hover
.entry pre
{overflow-x: auto;}
.__VENC_PYGMENTIZE_WRAPPER__ {clear: both; width: 100%;}
.__VENC_PYGMENTIZE_WRAPPER__ pre {overflow: hidden; overflow-x: auto;}
.__VENC_PYGMENTIZE_WRAPPER__ table {width: 100%; display: block; clear: both;}
.__VENC_PYGMENTIZE_WRAPPER__ table tr {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table tbody {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table .linenos {width: 4%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table .code {width: 95%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table td pre {vertical-align: top; overflow: hidden; overflow-x: auto; margin: 0px;}
/***************/
/* F O O T E R */
......@@ -217,7 +217,7 @@ footer #pagesList li, #previous, #next
#__VENC_THREAD__
{margin-bottom: 1em;}
@media (max-width: 360px) {
@media (max-width: 480px) {
header li
{display: block;}
......
......@@ -23,13 +23,38 @@ hr
background-color: grey;
height: 1px;}
.__VENC_PYGMENTIZE_WRAPPER__ {clear: both; width: 100%;}
.__VENC_PYGMENTIZE_WRAPPER__ pre {overflow: hidden; overflow-x: auto;}
.__VENC_PYGMENTIZE_WRAPPER__ table {width: 100%; display: block; clear: both;}
.__VENC_PYGMENTIZE_WRAPPER__ table tr {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table tbody {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table .linenos {width: 4%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table .code {width: 95%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table .code {width: 94%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table td pre {vertical-align: top; overflow: hidden; overflow-x: auto; margin: 0px;}
.__VENC_TABLE__
{width: 100%;
overflow: auto;}
.note,
.footnote
{border-left: 2px solid grey;
padding-left: 10px;
display: inline-block;
margin: 0px;
width: calc(100% - 12px);
float: none;
clear: both;}
.footnote
{height: 0px;
opacity: 0;
transition: 0.25s ease all;}
.footnote:target
{height: auto;
opacity: 1;}
/***************/
/* H E A D E R */
/***************/
......@@ -42,12 +67,16 @@ header
header ul
{margin: 0px;
display: inline-block;
list-style-type: none;
padding: 0px;}
header li
{display: inline-block;
margin: 1em;}
{display: inline-block;}
header li a
{margin: 1em;
display: inline-block;}
math
{display:block;}
......@@ -63,9 +92,6 @@ math
transition: 1s ease all;
overflow: hidden;}
.entry p
{margin: 0px;}
.entry img
{max-width: 100%;
display: inline-block;
......@@ -97,6 +123,17 @@ footer a
footer #pagesList li, #previous, #next
{display: inline-block;}
@media (max-width: 360px) {
@media (max-width: 480px) {
header li
{display: block;}
header ul
{margin: 0px;
padding: 0px;
display: block;}
#archives, #categoriesHeader {display: none;}
.__VENC_PYGMENTIZE_WRAPPER__ table .linenos {width: 7%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table .code {width: 90%; display: inline-block;vertical-align: top;}
}
......@@ -11,6 +11,7 @@
<script type="text/javascript">
window.onload = VENC_INFINITE_SCROLL_ON_LOAD;
</script>
.:GetStyleSheets:.
<link rel="alternate" type="application/rss+xml" title=".:GetBlogName:." href="feed.xml" />
<link rel="stylesheet" href=".:GetRelativeOrigin:.style.css" type="text/css" />
.:IfInThread::<link rel="stylesheet" href=".:GetRelativeOrigin:.styleThread.css" type="text/css" />::<link rel="stylesheet" href=".:GetRelativeOrigin:.styleEntry.css" type="text/css" />:.
......
......@@ -130,7 +130,7 @@ def include_file(argv):
else:
return include_string
def table(argv):
output = "<table class=\"__VENC_TABLE__\">"
output = "<div class=\"__VENC_TABLE__\"><table>"
tr = [[]]
append_td = tr[-1].append
append_tr = tr.append
......@@ -146,4 +146,4 @@ def table(argv):
for row in tr:
output += "<tr>"+join(row)+"</tr>"
return output + "</table>"
return output + "</table></div>"
Supports Markdown
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