From ee7c34077d3f5ba609e0a475210320b1df2b62be Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 19 Aug 2015 21:11:08 +0800 Subject: [PATCH] Fix clear both problem again --- site/templates/demos.html | 2 +- static/style.css | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/templates/demos.html b/site/templates/demos.html index 8e68551344..6f344dece5 100644 --- a/site/templates/demos.html +++ b/site/templates/demos.html @@ -8,7 +8,7 @@ {%- endif %} -
+
{%- set items = resource.pages|find_demo_in_component(post.meta.directory) %} {%- if post.meta.cols == 1 %}
diff --git a/static/style.css b/static/style.css index d4770fd8c1..31bf38f547 100644 --- a/static/style.css +++ b/static/style.css @@ -495,7 +495,6 @@ footer ul li > a { animation: xRightMatrix .5s ease-out; background: #fff; min-height: 500px; - overflow: hidden; } .main-container-center { @@ -1677,8 +1676,9 @@ footer ul li > a { } .code-boxes-col-2-1 { - width: 50%; - float: left; + width: 49%; + display: inline-block; + vertical-align: top; padding-right: 15px; }