Commits

Greg Slepak committed d6365de

fixed up api css

Comments (0)

Files changed (3)

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;

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)

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>
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.