Displaying 20 results from an estimated 699 matches for "stylesheet".
2006 Aug 11
6
css - location of files.
Hi all.
I have the following scenario.
http://myapp/site1 is using <%= stylesheet_link_tag ''myapp_standard'' %>
to define the stylesheet for layout, I have myapp_standard.css in
/public/stylesheets and it works fine.
However, in the stylesheet I define a image to use for my site
background. eg:
html, body{
background-image: url(mysite_background.jpg);...
2006 Jun 22
4
stylesheet linking and layouts
In my layout, I have something like (shortened for clarity):
<html>
<head>
<%= stylesheet_link_tag "index", :media => "all" %>
</head>
<body>
<div id="site-container">
... <cut for space>
<%= @content_for_layout %>
... <cut for space>
</div>
</body>
A view action has another stylesheet defined in the...
2006 Feb 16
3
Retrieve a property defined in a css
Hi all,
I have a property, defined in an external stylesheet:
.my_class {
background-color: #FF0000;
}
I want to retrieve the value of this background-color of the class my_class.
How can I do that with prototype/scriptaculous ?
Thanks in advance,
Nicolas Terray
2007 Jan 24
2
A spec where interaction-based testing breaks down... (at least for now)
Here are the specs:
context "Finding all the stylesheets available to a company" do
setup do
@mock_company = mock("company")
@mock_company.stub!(:to_param).and_return "1"
Stylesheet.stub!(:find)
end
def do_find
Stylesheet.find_available_to @mock_company
end
specify "should convert the company int...
2006 Jan 03
1
RequireResourceHelper for JS and CSS
...was posted on my blog at http://blog.inquirylabs.com.
A friend of mine recently expressed interest in this code snippet, so
I thought I''d send it out to anyone else who''s interested. This
module makes it a lot easier to ''require'' javascript and cascading
stylesheet dependencies inside your views or controllers. By
''convention'', the code will automatically include any javascript or
CSS files whose name matches the current controller''s name. In
addition, any file named like ''controller_name_action_name.css'' w...
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...es-8.swf.trace | 232 ++++++-
test/trace/text-field-values.as | 4
22 files changed, 1427 insertions(+), 803 deletions(-)
New commits:
commit c0b160945097511980bbfaa1ecee8d3bc75588a6
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Tue Oct 23 17:36:38 2007 +0300
Add styleSheet and mouseWheelEnabled on v6 also after all, just don't use them
diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c
index fd55ef5..516e270 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -1647,10 +1647,14 @@ swfde...
2008 Mar 18
5
stylesheet link causing routing error
Hi - I think this is a simple 2.0 conversion issue. In my application
layout, I have a simple stylesheet link tag:
<%= stylesheet_link_tag ''application'' %>
In my public/stylesheets directory, I have application.css
When my pages are rendered, I get:
<h1>Routing Error</h1>
27<p><pre>No route matches "/stylesheets/application.css"
with {...
2006 Aug 18
2
Including CSS from a stylesheet file in a an e-mail
How can I include the contents of the file /public/stylesheets/print.css in an
RHTML page for ActionMailer? Because there is no controller or session, none
of the usual tricks work.
Do you have to use basic file IO or there some convenience method I haven''t
seen?
Thanks
Ashley
--
"If you do it the stupid way, you will have to do it again...
2007 Dec 09
5
Browserized Styles Plugin
...identifier to the end.
=== Installation ===
script/plugin install http://svn.intridea.com/svn/public/browserized_styles
=== Example ===
Let''s say I have some complex CSS code that looks bad in some
browsers, but works in others. Let''s also say that i''ve put it into a
stylesheet in stylesheets/complex.css.
My stylesheet link tag looks something like this:
<%= stylesheet_link_tag ''complex'' %>
Now all I have to do to target a browser is create a new CSS file with
the browser''s identifier appended to it with an underscore (e.g.
"comple...
2006 Mar 18
3
Weird stylesheet_link_tag issue after moving servers
Dear experts,
I am in the process of switching servers for my application.
Before the move everything was working properly.
After the move
<%= stylesheet_link_tag ''/stylesheets/styles.css'' %>
generates
<link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" />
Before the move it was generating the right code:
<link href="/styl...
2005 Dec 27
8
XML Not Working in Explorer 6
I''m playing with XML using Builder but seem to be having some trouble in
Explorer 6. My sample code:
xml = Builder::XmlMarkup.new
xml.instruct!
xml.instruct! ''xml-stylesheet'', :href=>''/stylesheets/style-xml.css'',
:type=>''text/css''
xml.declare! ''DOCTYPE'', :html,
:PUBLIC,
"-//W3C//DTD XHTML 1.0 Transitional//EN",
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
xml....
2006 Mar 07
1
Relative stylesheet reference
Problem: The HREF generated by the stylesheet_link_tag is an absolute path.
Details:
The layout for my view has the following line
<%= stylesheet_link_tag ''scaffold'' %>
At runtime, this gets translated to
<link href="/stylesheets/scaffold.css" ... />
This does not get resolved correctly. The...
2006 Jun 01
10
Stylesheets not being recognized
I am a newbie, but have worked through 4 or 5 tutorials. I am using
InstantRails. The problem is that I cannot determine how the style is
being included. I have modified the stylesheet from
/public/stylesheets/, even removed it. All to no avail. The inline
<style>...</style> code is still being included from somwhere. Where?
What am I missing?
thanks,
steve
--
Posted via http://www.ruby-forum.com/.
2006 Feb 28
7
multi-page printing moving on
I have some nice forms done using stylesheets. I currently have them
displaying on screen and the user could simply just print.
This works when there is only one form (facility) to be viewed/printed.
I have created the looping code necessary to print for all facilities
but that doesn''t work for me because each page uses stylesheets...
2006 May 23
6
Accessing file in public directory
How do i access a file in the public directory of rails application? I
have several html files in there and i want to link them from the rhtml
file. Basically to display a popup. Here is the code in foo.rhtml:
<a href="javascript:popUp(''/summary.html'')" class="normal">Learn
more</a>
It doesn''t work. Any idea why?
Thanks,
Lantis.
--
2006 Apr 24
9
A Stylesheet for a database app
Hi to all, I''m a new subscriber of this list and a new user of RoR.
I''m looking for a stylesheet to make a simple database app nicer, a css to
start working with.
I have to do some simple apps and I want them to be the more uniform on the
presentation side.
I know I can do it for myself, but a nice stylesheet is not so easy to perform
for a non-grafic geek like me, and so if I can find a...
2006 May 11
2
pages in /public cant find CSS
...oject that I''ve been serving via WebBrick at work,
and its been working fine (low traffic). For the last few days I''ve
been trying to deploy it under Apache which already serves our groups
static and PHP pages. I have the dynamic rails part working now, but
am having problems with stylesheet references in static pages. My URL
using WebBrick was (and still is for development):
http://myhost.com/
and now in Apache its below root since docroot has lots of existing
stuff:
http://myhost.com/auto/
which in apache-land points to my rails public directory. The problem
is in the stati...
2006 Dec 16
5
trying to add another app
...ate
AddOutputFilterByType DEFLATE text/html text/plain text/xml
application/xml application/xhtml+xml text/javascript text/css
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
ProxyPass /images !
ProxyPass /stylesheets !
ProxyPass /javascripts !
#continue with other static files that should be served by apache
Alias /images /home/patcito/testapp/public/images
Alias /stylesheets /home/patcito/testapp/public/stylesheets
Alias /javascripts /home/patcito/testapp/public/javascripts
those two files for app2 are sim...
2013 May 23
1
rake assets:precompile issue with JS and stylesheets files with similar name
Hi,
I''ve got following two files with same names under javascripts and
stylesheets directories as:
- app/assets/javascripts/test_vendor.js
- app/assets/stylesheets/test_vendor.scss
Essentially a JS and an stylesheet files with same name.
--------------------------------------------------------------
I want these files to be precompiled and served from public directory.
Thus I...
2006 Jun 07
0
theme stylesheets not being found by typo trunk
Hi all,
I have setup an install of trunk typo using trunk/edge rails.
It''s all working swimmingly, except that the theme css is not being
found and I am hoping someone has an idea (or two).
so, the url is /stylesheets/theme/azure.css, the relevant entry in routes.rb is:
map.connect ''stylesheets/theme/:filename'',
:controller => ''theme'', :action => ''stylesheets''
but it looks like the theme controller is never called. I get a 404 in
my browser, th...