From 7d6023315c4a6e821825346d3a4cdde8d0e2321e Mon Sep 17 00:00:00 2001 From: Raghavendra Kamath Date: Thu, 19 Apr 2018 12:35:36 +0530 Subject: [PATCH] Add media object style --- foundation/hooks.py | 2 +- foundation/public/css/style.css | 3 + foundation/templates/base.html | 92 +++++++++++------------ foundation/templates/includes/macros.html | 7 +- foundation/www/service-providers.html | 8 +- 5 files changed, 55 insertions(+), 57 deletions(-) create mode 100644 foundation/public/css/style.css diff --git a/foundation/hooks.py b/foundation/hooks.py index cf78bfc4..07d6433a 100644 --- a/foundation/hooks.py +++ b/foundation/hooks.py @@ -19,7 +19,7 @@ app_license = "MIT" # app_include_js = "/assets/foundation/js/foundation.js" # include js, css files in header of web template -# web_include_css = "/assets/foundation/css/style.css" +web_include_css = "/assets/foundation/css/style.css" # web_include_js = "/assets/foundation/js/foundation.js" # include js in page diff --git a/foundation/public/css/style.css b/foundation/public/css/style.css new file mode 100644 index 00000000..4ea1dc07 --- /dev/null +++ b/foundation/public/css/style.css @@ -0,0 +1,3 @@ +.media-img { + max-width: 200px; +} diff --git a/foundation/templates/base.html b/foundation/templates/base.html index f38fb7aa..b92583d2 100644 --- a/foundation/templates/base.html +++ b/foundation/templates/base.html @@ -6,63 +6,59 @@ {% block title %} {{ title | striptags }} {% endblock %} - {% block favicon %} + {% block favicon %} + href="{{ (favicon or "/assets/frappe/images/favicon.png") | abs_url }}" + type="image/x-icon"> - {% endblock %} + href="{{ (favicon or "/assets/frappe/images/favicon.png") | abs_url }}" + type="image/x-icon"> + {% endblock %} {%- block head -%} - {% block meta_block %}{% endblock %} - - {% if path != '' %} - - - - {% endif %} + {% block meta_block %}{% endblock %} + + {%- endblock -%} {%- block head_include %}{{ head_include or "" }}{% endblock -%} {%- block style %}{%- endblock -%} - + -
- {%- block navbar -%}{% include "templates/includes/navbar/navbar.html" %}{%- endblock -%} - {% block content %} - {{ content }} - {% endblock %} - {%- block footer -%}{% include "templates/includes/footer/footer.html" %}{%- endblock -%} -
- {% block base_scripts %} - - - +
+ {%- block navbar -%}{% include "templates/includes/navbar/navbar.html" %}{%- endblock -%} + {% block content %} + {{ content }} + {% endblock %} + {%- block footer -%}{% include "templates/includes/footer/footer.html" %}{%- endblock -%} +
+ {% block base_scripts %} + + + - {% endblock %} - {%- if js_globals is defined %} - - {% endif -%} - {%- for link in web_include_js %} - - {%- endfor -%} - {%- block script %}{%- endblock %} - - {%- block body_include %}{{ body_include or "" }}{% endblock -%} +{% endblock %} +{%- if js_globals is defined %} + +{% endif -%} +{%- for link in web_include_js %} + +{%- endfor -%} +{%- block script %}{%- endblock %} + +{%- block body_include %}{{ body_include or "" }}{% endblock -%} diff --git a/foundation/templates/includes/macros.html b/foundation/templates/includes/macros.html index 09b92c4f..f40caab8 100644 --- a/foundation/templates/includes/macros.html +++ b/foundation/templates/includes/macros.html @@ -1,11 +1,10 @@ {% macro media(title, content, image, link) %} -