Commits

Greg Slepak  committed d6365de

fixed up api css

  • Participants
  • Parent commits 1f2a83e

Comments (0)

Files changed (3)

File example-site/includes/css/screen.css

 
 
 	/* API Content */
-
-	#content blockquote {
+	
+	#api-browser {
 		font-size:11px;
-		line-height:15px;
-		margin-top:18px;
+	}
+	
+	#api-browser a {
+		color: rgb(55, 101, 144);
+		text-decoration: none;
 	}
 
-	#content blockquote h3 {
+	#api-browser blockquote, #api-browser p {
+		line-height:15px;
+		font-size: 11px;
+	}
+
+	#api-browser blockquote h3 {
 		font-size:18px;
 		font-weight:bold;
-		margin-top:18px;
 		margin-bottom:8px;
 	}
 
-	#content blockquote p {
-		font-size:11px;
-		font-weight:bold;
-		margin-top:18px;
+	#api-browser blockquote p {
 	}
 
-	#content blockquote tt {
-		font-size:11px;
-		font-weight:bold;
-		color:#00aeef;
-		margin-top:18px;
+	#api-browser blockquote tt {
+		font-family:Courier, mono;
 	}
-
+	
+	#api-browser pre {
+		font-family:Courier, mono;
+		margin-top:10px;
+		padding:10px;
+		font-size:10px;
+	}
 
 	/* Code Styling */
 
 		font-size:12px;
 	}
 
-	#content pre.code, #api-browser pre {
+	#content pre.code {
 		width:auto;
 		margin-top:10px;
 		padding:10px;

File example-site/views/dragonfly_ajax-api.html

 (let (path ($POST "path"))
 	; security check! make sure they ain't asking
 	; for something they shouldn't be asking for!
+	(log-info "path: " path)
+	(log-info "our path: " (real-path))
 	(if (and (find "../api-docs/" path) (ends-with path ".html"))
 		(include path)
 		(die "bad path: " path)

File example-site/views/dragonfly_api.html

 			<p><% (title "| Dragonfly web framework") %><p>
 		</div>
 		
-		<div class="apicontent">
-			<% (api-browser) %>
-		</div>
+		<!-- This inserts a div with id #api-browser -->
+		<% (api-browser) %>
 		
 		<div class="line-dotted"></div>