From f74749e06dbaec86019662a4f959a75dd7d83981 Mon Sep 17 00:00:00 2001 From: Fabio Teixeira Date: Sun, 9 Aug 2015 12:51:05 -0300 Subject: [PATCH] Make lefttopright only use CSS --- public/designs/templates/lefttopright/javascripts/template.js | 6 ------ public/designs/templates/lefttopright/stylesheets/style.css | 47 ++++++++++++++++++++--------------------------- 2 files changed, 20 insertions(+), 33 deletions(-) delete mode 100644 public/designs/templates/lefttopright/javascripts/template.js diff --git a/public/designs/templates/lefttopright/javascripts/template.js b/public/designs/templates/lefttopright/javascripts/template.js deleted file mode 100644 index 52090e5..0000000 --- a/public/designs/templates/lefttopright/javascripts/template.js +++ /dev/null @@ -1,6 +0,0 @@ -$(document).ready(function() { - var box_4_height = $(".box-4").height(); - - // Make box-2(the most left one) stay align with box-4 - $(".box-2").css("margin-top", "-"+box_4_height+"px"); -}); diff --git a/public/designs/templates/lefttopright/stylesheets/style.css b/public/designs/templates/lefttopright/stylesheets/style.css index a7f5976..8ba934b 100644 --- a/public/designs/templates/lefttopright/stylesheets/style.css +++ b/public/designs/templates/lefttopright/stylesheets/style.css @@ -1,42 +1,35 @@ #boxes { - display: table; width: 100%; + height: 100%; } -.box-1 { - width: 58%; - float: left; - margin: 1% 1% 0% 1%; +.box-4 { + position: relative; + float: right; + width: 78.5%; + max-height: 400px; + overflow: hidden; + margin-left: 1%; } - -.box-2 { +.box-3 { + width: 20.5%; + height: 100%; + min-height: 410px; position: relative; float: left; - width: 20%; } -.box-3 { +.box-2 { position: relative; float: right; - width: 20%; + width: 20.5%; margin-top: 1%; } -.box-4 { - float: left; - width: 79%; - margin-left: 21%; -} - -#profile-activity ul, -#profile-network ul, -#profile-wall ul { - width: 460px; -} -#profile-activity ul.comment-replies, -#profile-network ul.comment-replies, -#profile-wall ul.comment-replies { - width: auto; -} - +.box-1 { + position: relative; + float: right; + width: 57%; + margin: 1% 1% 0% 1%; +} \ No newline at end of file -- libgit2 0.21.2