From 3baf7acfb52a4a2d241e3fed519e3b2f6d47001d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 6 Nov 2013 16:29:47 +0100 Subject: [PATCH] new layout --- .../person.scssc | Bin 0 -> 3379 bytes Resources/assets/css/config.rb | 33 ++++++++++++ Resources/assets/css/sass/person.scss | 41 ++++++++++++++ Resources/public/css/person.css | 6 +++ Resources/views/layout.html.twig | 50 ++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 Resources/assets/css/.sass-cache/5423e640e54bbdf4d80063fe9dc2028bb970d84c/person.scssc create mode 100644 Resources/assets/css/config.rb create mode 100644 Resources/assets/css/sass/person.scss create mode 100644 Resources/public/css/person.css create mode 100644 Resources/views/layout.html.twig diff --git a/Resources/assets/css/.sass-cache/5423e640e54bbdf4d80063fe9dc2028bb970d84c/person.scssc b/Resources/assets/css/.sass-cache/5423e640e54bbdf4d80063fe9dc2028bb970d84c/person.scssc new file mode 100644 index 0000000000000000000000000000000000000000..c7bf636ca4ac7cc6c1eaed5e749fc4b24879581b GIT binary patch literal 3379 zcmbVOTTdHD6ox2T?8O8VQ)sv(TT?a3188v}z|6}^Q7Z9}Dyn(o0gZRYW}5ZRc6S|! z5K@0s|3;<$q@J1C>)4pIwuFa0-+X({H|H`xAM_3md(NAWjB?_9B=P6BcJG+E!{d_^ zdPI7sbnuR`6W=9=XFbxR1L7W?`t0a*cuMT24S`5%3=+P8o_i6A6GpG( zmPDYges7-z%uhv((0ef+lRo=n!a|=l(26%^;{h620^oiTXwzgp zrwzO&Md=uV04?rt3$J?}2rrooeuvOqxfGMwm!dTKEVbZm*Ce^VTgbu1uLV)yr50{T z_O_IK#6lL6KzfXAzJQknZZ(u9_?gxQuj=S=yQ#g(BgD^LAa3CGJQDm}=69>gsvzD^ zc*Dh;0)KDe7s@f%2M=?jbt#=~z#)U@S9#`KKxiULxd@ZHh0^hAu27Z|9wh(Y|JDru zbKR@t9S%qjnPKRMxzV~@Hgf$_EFzWbTD#RTiAOx#Per7XWZC;df(a`&_5GMfDMI}; z=HaM;ch9@cV>h~0U?_#J5ksq-LeB9aXEEOP_T{mmH7|k}T_s<`l-#05$ZoKfbVWi+ z>DCUQn)ZDWra&>`heOuCDie2FnJNPjQx@l{ z;9Y@Vs@OLUqgy8t0jJI$JCek5Hw$%5hnkbxH=L%|3SaQq?~XDt@obKc z;+0NrUDTCZqK_AeC2(FOIb7Aq#)G1O#S^9ve0Uw2RU+kEVuII(`vQE?Qm&dI*2 z6WP89gdvPQf+?&WoGq@d8+lk}ey`9JkzopB_dkq+C0famy&^{h+BVz9r-V(Yu+h4w zdX%4X|4MZ;+m{VR_W`?b05v^mlybfRtGD=<*-Wyhg}Gii)&5q>+jUTPj=VogdDRO| zX_lxymU;8BR{9#Q3g>kpiWve}yv4uah1sIk5tsFxsHa-nb>#Q(>`V`Y2YT3>dY;Vg zBbrP0633k*%G*qo*IB-RyRC9*WlOl#qzvv$B!yeelYgE}-{qV;+kubzQ@M6zj|>`ebb#IjWQ6iuJy-E&_6BIz^$nDsp5at?rlfs$0%BWnQbsXKpLI8*)@bGXa&Z zg+RA}ngG>}kfRz<)%H+Oy4g&HmX$7YWVL<+51nGrxdHN)#Zu*wB9%uVF}et<7=4mi PGTz&^DiC?`)}7&BYB>^? literal 0 HcmV?d00001 diff --git a/Resources/assets/css/config.rb b/Resources/assets/css/config.rb new file mode 100644 index 000000000..39e93a077 --- /dev/null +++ b/Resources/assets/css/config.rb @@ -0,0 +1,33 @@ +# Require any additional compass plugins here. + +# Tell compass where to find local extensions +# If you followed directions and ran 'gem install modular-scale' comment the next two lines out: +#extensions_dir = "bower_components/gumby/sass/extensions" + +#Compass::Frameworks.register('modular-scale', :path => File.expand_path("#{extensions_dir}/modular-scale")) + +# Uncomment these to use regular Ruby gems. +require 'modular-scale' +require 'sassy-math' + +# Set this to the root of your project when deployed: +http_path = "/" +css_dir = "./../../public/css" +sass_dir = "sass" +images_dir = "img" + +# You can select your preferred output style here (can be overridden via the command line) :nested or :expanded or :compact or :compressed: +output_style = :compact + +# To enable relative paths to assets via compass helper functions. Uncomment: +# relative_assets = true + +# To disable debugging comments that display the original location of your selectors. Uncomment: +line_comments = false + + +# If you prefer the indented syntax, you might want to regenerate this +# project again passing --syntax sass, or you can uncomment this: +# preferred_syntax = :sass +# and then run: +# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass diff --git a/Resources/assets/css/sass/person.scss b/Resources/assets/css/sass/person.scss new file mode 100644 index 000000000..7f301c95e --- /dev/null +++ b/Resources/assets/css/sass/person.scss @@ -0,0 +1,41 @@ +div#person_wrapper { + + div#general { + + } + + div#person_details { + margin-top: 50px; + + + .tab-content { + border-top: 1px solid #e5e5e5; + + width: 640px; + } + + dl { + padding: 0.5em; + } + + dt { + float: left; + clear: left; + width: 190px; + text-align: right; + font-weight: bold; + color: green; + } + + dt:after { + content: " :"; + } + + dd { + margin: 0 0 0 199px; + padding: 0 0 0.5em 0; + } + } + +} + diff --git a/Resources/public/css/person.css b/Resources/public/css/person.css new file mode 100644 index 000000000..930ea6bad --- /dev/null +++ b/Resources/public/css/person.css @@ -0,0 +1,6 @@ +div#person_wrapper div#person_details { margin-top: 50px; } +div#person_wrapper div#person_details .tab-content { border-top: 1px solid #e5e5e5; width: 640px; } +div#person_wrapper div#person_details dl { padding: 0.5em; } +div#person_wrapper div#person_details dt { float: left; clear: left; width: 190px; text-align: right; font-weight: bold; color: green; } +div#person_wrapper div#person_details dt:after { content: " :"; } +div#person_wrapper div#person_details dd { margin: 0 0 0 199px; padding: 0 0 0.5em 0; } diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig new file mode 100644 index 000000000..bc10bbbdf --- /dev/null +++ b/Resources/views/layout.html.twig @@ -0,0 +1,50 @@ +{% extends "CLChillMainBundle::layout.html.twig" %} + +{% block css %} + + {% stylesheets output="css/all.css" filter="cssrewrite" + "bundles/clchillperson/css/person.css" + %} + + {% endstylesheets %} + + +{% endblock %} + +{% block content %} + +
+
+

+ {{ person.surname }} + {{ person.name }} +

+ +

{% transchoice person.genreNumeric + with {'%date%' : person.dateOfBirth.format('d-m-Y')} %}views.layout.born{% endtranschoice %}

+ {% if person.nationality is not null %} +

{{ person.nationality.label }}

+ {% else %} +

{% trans %}views.layout.without_nationality{% endtrans %}

+ {% endif %} +
+
+ + +
+ + {{ include("CLChillPersonBundle::menu.html.twig", + {'person': person, 'menu_composer' : menu_composer, 'route_active': 'chill_person_view' }) }} + +
+ + {% block personcontent %}{%endblock%} + +
+
+
+ +
+ + + {% endblock %}