From bbda270a4a920ea11487559c0178ca07314da8f4 Mon Sep 17 00:00:00 2001 From: str4d Date: Sun, 31 May 2015 02:54:31 +0000 Subject: [PATCH] RTL style fixes --- i2p2www/pages/global/layout.html | 1 + i2p2www/static/styles/duck/default.rtl.css | 14 ++++++++++- i2p2www/static/styles/duck/desktop.rtl.css | 24 ++++++++++++++++++- i2p2www/static/styles/duck/widescreen.rtl.css | 11 +++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 i2p2www/static/styles/duck/widescreen.rtl.css diff --git a/i2p2www/pages/global/layout.html b/i2p2www/pages/global/layout.html index 0e716466..ac32f318 100644 --- a/i2p2www/pages/global/layout.html +++ b/i2p2www/pages/global/layout.html @@ -23,6 +23,7 @@ {% if is_rtl() -%} + {%- endif %} {%- endif %} diff --git a/i2p2www/static/styles/duck/default.rtl.css b/i2p2www/static/styles/duck/default.rtl.css index dc80ef1c..d10f5d1b 100644 --- a/i2p2www/static/styles/duck/default.rtl.css +++ b/i2p2www/static/styles/duck/default.rtl.css @@ -8,4 +8,16 @@ div#topbar #logo { div#content .feed-icon { float: left -} \ No newline at end of file +} + +/** Content **/ + +div#content .sidebar nav ol { + padding-left: 0; + padding-right: 1em; +} + +div#content .sidebar nav ul { + padding-left: 0; + padding-right: 0.5em; +} diff --git a/i2p2www/static/styles/duck/desktop.rtl.css b/i2p2www/static/styles/duck/desktop.rtl.css index 757ede8e..5f78aa73 100644 --- a/i2p2www/static/styles/duck/desktop.rtl.css +++ b/i2p2www/static/styles/duck/desktop.rtl.css @@ -57,6 +57,28 @@ div#content .main { -o-transform: rotate(5deg); } +/** Content **/ + +div#content .inner .fluid { + border-left: none; + border-right: 2px solid #abcc71; + margin-left: 0; + margin-right: 0.625rem; +} + +div#content .inner .sidebar { + border-radius: 0 0 0 10px; + border-left: 2px solid #abcc71; + border-right: none; + float: right; +} + +div#content .content-inner { + margin-left: 0; + margin-right: 252px; +} + + /** Downloads list **/ .package .os { @@ -73,4 +95,4 @@ div#content .main { .details .hash { float: left -} \ No newline at end of file +} diff --git a/i2p2www/static/styles/duck/widescreen.rtl.css b/i2p2www/static/styles/duck/widescreen.rtl.css new file mode 100644 index 00000000..d7883d45 --- /dev/null +++ b/i2p2www/static/styles/duck/widescreen.rtl.css @@ -0,0 +1,11 @@ +div#content .inner .fluid { + border-left: 2px solid #abcc71; + margin-left: 30%; +} + +div#content .inner .meta { + position: absolute; + left: 2%; + right: 72%; + text-align: right; +}