Guest User

Untitled

a guest
Feb 21st, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. From dc22a2b9e634938279da237fa9f88ee8ed418d25 Mon Sep 17 00:00:00 2001
  2. From: Yossef Mendelssohn <ymendel@pobox.com>
  3. Date: Wed, 19 Nov 2008 12:23:58 -0600
  4. Subject: [PATCH] Fixing placement of menu links with conditional IE-only CSS
  5.  
  6. ---
  7. app/views/layouts/application.html.haml | 2 ++
  8. public/stylesheets/ie.css | 3 +++
  9. 2 files changed, 5 insertions(+), 0 deletions(-)
  10. create mode 100644 public/stylesheets/ie.css
  11.  
  12. diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
  13. index bc32f23..44b4f7e 100644
  14. --- a/app/views/layouts/application.html.haml
  15. +++ b/app/views/layouts/application.html.haml
  16. @@ -7,6 +7,8 @@
  17. :javascript
  18. jQuery.noConflict();
  19. = stylesheet_link_tag 'application'
  20. + /[if IE]
  21. + = stylesheet_link_tag 'ie'
  22. %body{ :class => "#{controller.controller_name}_#{controller.action_name} #{controller.controller_name} #{controller.styling_name}" }
  23. #container
  24. %table#layout_table
  25. diff --git a/public/stylesheets/ie.css b/public/stylesheets/ie.css
  26. new file mode 100644
  27. index 0000000..705929e
  28. --- /dev/null
  29. +++ b/public/stylesheets/ie.css
  30. @@ -0,0 +1,3 @@
  31. +div#menu {
  32. + margin-top: 50px;
  33. +}
  34. --
  35. 1.6.0.4+GitX
Add Comment
Please, Sign In to add comment