aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/linaro.css129
-rw-r--r--license_protected_downloads/render_text_files.py3
-rw-r--r--templates/dir_template.html2
-rw-r--r--templates/header.html2
4 files changed, 135 insertions, 1 deletions
diff --git a/css/linaro.css b/css/linaro.css
new file mode 100644
index 0000000..d54e9c5
--- /dev/null
+++ b/css/linaro.css
@@ -0,0 +1,129 @@
+/* Override jQuery UI css. */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget
+{
+ font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif;
+ font-size: 1.1em;
+}
+
+.ui-widget .ui-widget
+{
+ font-size: 1em;
+}
+
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button
+{
+ font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif;
+ font-size: 1em;
+}
+
+.ui-widget-content
+{
+ border: 1px solid #dddddd;
+ background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x;
+ color: #333333;
+}
+
+.ui-widget-content a
+{
+ color: #333333;
+}
+
+.ui-widget-header
+{
+ border: 0px;
+ background: #eeeeee;
+ color: #000000;
+ font-weight: bold;
+}
+
+.ui-widget-header a
+{
+ color: #ffffff;
+}
+
+/* Corner radius */
+.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl
+{
+ -moz-border-radius-topleft: 8px;
+ -webkit-border-top-left-radius: 8px;
+ -khtml-border-top-left-radius: 8px;
+ border-top-left-radius: 8px;
+}
+
+.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr
+{
+ -moz-border-radius-topright: 8px;
+ -webkit-border-top-right-radius: 8px;
+ -khtml-border-top-right-radius: 8px;
+ border-top-right-radius: 8px;
+}
+
+.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl
+{
+ -moz-border-radius-bottomleft: 8px;
+ -webkit-border-bottom-left-radius: 8px;
+ -khtml-border-bottom-left-radius: 8px;
+ border-bottom-left-radius: 8px;
+}
+
+.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br
+{
+ -moz-border-radius-bottomright: 8px;
+ -webkit-border-bottom-right-radius: 8px;
+ -khtml-border-bottom-right-radius: 8px;
+ border-bottom-right-radius: 8px;
+}
+
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default
+{
+ border: 1px solid #cccccc;
+ background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
+ font-weight: bold;
+ color: #333333;
+}
+
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited
+{
+ color: #333333;
+ text-decoration: none;
+}
+
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus
+{
+ border: 1px solid #28cb09;
+ background: #f6f6f6 url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x;
+ font-weight: bold;
+ color: #8cbd30;
+}
+
+.ui-state-hover a, .ui-state-hover a:hover
+{
+ color: #8cbd30;
+ text-decoration: none;
+}
+
+.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active
+{
+ border: 1px solid #28cb09;
+ background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
+ font-weight: bold;
+ color: #8cbd30;
+}
+
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited
+{
+ color: #8cbd30;
+ text-decoration: none;
+}
+
+.ui-widget :active
+{
+ outline: none;
+}
diff --git a/license_protected_downloads/render_text_files.py b/license_protected_downloads/render_text_files.py
index 44f27e4..125c432 100644
--- a/license_protected_downloads/render_text_files.py
+++ b/license_protected_downloads/render_text_files.py
@@ -19,6 +19,9 @@ class RenderTextFiles:
# this is ok, no tabs when none is returned.
return None
+ # TODO: Mocking files. Remove this when gesha is finished implementing
+ # find_relevant_files method.
+ filepaths = ['README', 'HACKING', 'INSTALL']
if filepaths:
for filepath in filepaths:
try:
diff --git a/templates/dir_template.html b/templates/dir_template.html
index b418d40..2e155a3 100644
--- a/templates/dir_template.html
+++ b/templates/dir_template.html
@@ -35,7 +35,7 @@
</table>
-
+<br/><br/>
{% if rendered_files != None %}
<div id="tabs">
<ul id="tabs-titles">
diff --git a/templates/header.html b/templates/header.html
index 9436724..bf876a8 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -14,6 +14,8 @@
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery-ui/jquery-ui-1.8.23.custom.css" />
+ <link rel="stylesheet" type="text/css" href="css/linaro.css" />
+
<style>
div#footer {