Skip to content
Browse files

Add YARD link and notice for nojs users

  • Loading branch information...
1 parent addf414 commit 6fbf028283eb8ebececfe1c0902b4ba712bb5172 @lsegal lsegal committed
Showing with 16 additions and 4 deletions.
  1. +3 −3 public/css/projects.css
  2. +13 −1 templates/layout.erb
View
6 public/css/projects.css
@@ -15,7 +15,7 @@ h2 { font-size: 1.6em; }
#logo a { text-decoration: none; color: #58b; }
#logo a:hover { color: #8cf; border-bottom: 8px solid #8cf; }
-#top_nav { padding: 0; list-style: none; position: absolute; right: 10px; top: 3px;}
+#top_nav { padding: 0; list-style: none; position: absolute; right: 120px; top: 3px; z-index: 9999; }
#top_nav li { float: left; margin-right: 10px; }
#top_nav a { display: block; padding: 5px 8px; background: #58a; text-decoration: none;
color: #eee;
@@ -29,7 +29,7 @@ h2 { font-size: 1.6em; }
font-size: 1.1em;
line-height: 1.4em;
display: none; position: absolute; width: 350px; padding: 10px 20px; top: 55px;
- right: 30px; background: #fff; z-index: 10000; border: 1px solid #aaa;
+ right: 120px; background: #fff; z-index: 10000; border: 1px solid #aaa;
-webkit-box-shadow: 0px 2px 15px #aaa; -moz-box-shadow: 0px 2px 15px #aaa;
}
#info a { color: #05a; }
@@ -55,7 +55,7 @@ h2 { font-size: 1.6em; }
display: none;
position: absolute;
top: 42px;
- right: 55px;
+ right: 175px;
height: 120px;
padding: 8px 18px;
margin: 12px;
View
14 templates/layout.erb
@@ -75,7 +75,19 @@
</style>
</head>
<body>
- <!--<a id="learn_yard" href="http://yardoc.org" title="Learn More About YARD"><img src="/images/learn.png" /></a>-->
+ <a id="learn_yard" href="http://yardoc.org" title="Learn More About YARD"><img src="/images/learn.png" /></a>
+ <noscript>
+ <style type="text/css" media="screen">
+ body { margin: 0; padding: 0;}
+ #logo, #content { padding: 0 20px; }
+ #notice { margin-left: 20px; }
+ #noscript { background: #111; color: #fff; padding: 10px 20px; }
+ #top_nav { top: 48px; }
+ </style>
+ <div id="noscript"><strong>It seems you've disabled Javascript.</strong>
+ That's okay, but you might run into some problems. We try to make things work without script support
+ as much as possible, but sometimes it needs to be used. We apologize for any inconvenience and hope you understand.</div>
+ </noscript>
<div id="logo">
<h1><a href="/"><%= options.name %></a> <small>YARD Documentation Server</small></h1>
</div>

0 comments on commit 6fbf028

Please sign in to comment.
Something went wrong with that request. Please try again.