Added RTL CSS

This commit is contained in:
str4d
2014-03-05 00:21:13 +00:00
parent 3eef34be76
commit 49f7037997
3 changed files with 67 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{%- from "global/macros" import change_lang with context -%}
<!DOCTYPE html>
<html lang="{{ g.lang }}"{% if is_rtl(g.lang) %} dir="rtl"{% endif %}>
<html lang="{{ g.lang }}"{% if is_rtl() %} dir="rtl"{% endif %}>
<head>
<meta charset="UTF-8">
<title>{% block title_outer %}{% block title %}{% endblock %} - I2P{% endblock %}</title>
@@ -19,6 +19,10 @@
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/desktop.css') }}" title="{{ g.theme }}" media="all" />
<![endif]-->
{% if is_rtl() -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/default.rtl.css') }}" media="screen, handheld, print, projection" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/desktop.rtl.css') }}" title="{{ g.theme }}" media="screen and (min-device-width:768px) and (min-width:768px), print, projection" />
{%- endif %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/' + g.theme + '/syntax.css') }}" media="screen, handheld, print, projection" />
{%- endif %}
<link rel="shortcut icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}" />