Skip to content
Snippets Groups Projects
Commit 03836297 authored by Mark Lentczner's avatar Mark Lentczner
Browse files

fields are def lists, tweak css for style menu, mini pages, arguments

parent a597daf4
No related branches found
No related tags found
No related merge requests found
...@@ -177,23 +177,19 @@ div#style-menu-holder { ...@@ -177,23 +177,19 @@ div#style-menu-holder {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
overflow: visible; overflow: visible;
background: rgb(41,56,69); background: #374c5e;
/* background-color: #eaeaea; */
margin: 0; margin: 0;
width: 6em;
text-align: center; text-align: center;
right: 0; right: 0;
padding: 0 2px 1px; padding: 0;
border-left: 1px solid #919191; top: 1.25em;
border-right: 1px solid #919191;
border-bottom: 1px solid #919191;
} }
#style-menu li { #style-menu li {
display: list-item; display: list-item;
border-style: none; border-style: none;
margin: 0; margin: 0;
padding: 3px; padding: 0;
color: #000; color: #000;
list-style-type: none; list-style-type: none;
} }
...@@ -202,6 +198,12 @@ div#style-menu-holder { ...@@ -202,6 +198,12 @@ div#style-menu-holder {
border-top: 1px solid #919191; border-top: 1px solid #919191;
} }
#style-menu a {
width: 6em;
padding: 3px;
display: block;
}
#footer { #footer {
margin: 1em 0 0 0; margin: 1em 0 0 0;
background: #ddd; background: #ddd;
...@@ -220,7 +222,7 @@ div#style-menu-holder { ...@@ -220,7 +222,7 @@ div#style-menu-holder {
clear: right; clear: right;
background: rgb(239,238,209); background: rgb(239,238,209);
border: 1px solid rgba(196,69,29,0.2); border: 1px solid rgba(196,69,29,0.2);
font-size: 75%; font-size: 80%;
padding: 0.5em 1em; padding: 0.5em 1em;
position: relative; position: relative;
top: 0em; /* use -5em to pull up into title area */ top: 0em; /* use -5em to pull up into title area */
...@@ -254,7 +256,7 @@ div#style-menu-holder { ...@@ -254,7 +256,7 @@ div#style-menu-holder {
height: 80%; height: 80%;
top: 5em; top: 5em;
padding: 0; padding: 0;
background-color: #fcfcb0; background-color: #fff2b2;
} }
#synopsis:hover { #synopsis:hover {
...@@ -265,7 +267,7 @@ div#style-menu-holder { ...@@ -265,7 +267,7 @@ div#style-menu-holder {
#synopsis .caption, #synopsis .caption,
#synopsis ul, #synopsis ul,
#synopsis ul li.src { #synopsis ul li.src {
background-color: #fcfcb0; background-color: #fff2b2;
white-space: nowrap; white-space: nowrap;
} }
...@@ -326,8 +328,8 @@ div#style-menu-holder { ...@@ -326,8 +328,8 @@ div#style-menu-holder {
float: right; float: right;
width: 90%; width: 90%;
display: block; display: block;
margin: 1px 0;
padding-left: 0.5em; padding-left: 0.5em;
margin-bottom: 0.5em;
} }
#interface dd p { #interface dd p {
...@@ -358,6 +360,15 @@ div.top .subs, div.top .doc { ...@@ -358,6 +360,15 @@ div.top .subs, div.top .doc {
*/ */
/* @end */ /* @end */
.arguments {
margin-top: -0.4em;
}
.arguments .caption {
display: none;
}
.fields { padding-left: 1em; }
.fields .caption { display: none; } .fields .caption { display: none; }
.fields p { margin: 0 0; } .fields p { margin: 0 0; }
...@@ -369,14 +380,14 @@ div.top .subs, div.top .doc { ...@@ -369,14 +380,14 @@ div.top .subs, div.top .doc {
} }
*/ */
.fields { padding-left: 1em; }
/* @end */ /* @end */
/* @group Auxillary Pages */ /* @group Auxillary Pages */
#mini { #mini {
font-size: 75%; font-size: 75%;
margin: 0 auto;
padding: 0 1em;
} }
#mini #module-header .caption { #mini #module-header .caption {
......
...@@ -109,8 +109,6 @@ divSubDecls cssClass captionName = maybe noHtml wrap ...@@ -109,8 +109,6 @@ divSubDecls cssClass captionName = maybe noHtml wrap
subSection = thediv ! [theclass $ unwords ["subs", cssClass]] subSection = thediv ! [theclass $ unwords ["subs", cssClass]]
subCaption = paragraph ! [theclass "caption"] << captionName subCaption = paragraph ! [theclass "caption"] << captionName
{-
if we ever decide to style sub-declarations with dl lists, this code does it
subDlist :: [SubDecl] -> Maybe Html subDlist :: [SubDecl] -> Maybe Html
subDlist [] = Nothing subDlist [] = Nothing
...@@ -125,7 +123,6 @@ subDlist decls = Just $ dlist << map subEntry decls +++ clearDiv ...@@ -125,7 +123,6 @@ subDlist decls = Just $ dlist << map subEntry decls +++ clearDiv
ma `with` bs = ma +++ bs ma `with` bs = ma +++ bs
clearDiv = thediv ! [ theclass "clear" ] << noHtml clearDiv = thediv ! [ theclass "clear" ] << noHtml
-}
subTable :: [SubDecl] -> Maybe Html subTable :: [SubDecl] -> Maybe Html
...@@ -157,7 +154,7 @@ subConstructors = divSubDecls "constructors" "Constructors" . subTable ...@@ -157,7 +154,7 @@ subConstructors = divSubDecls "constructors" "Constructors" . subTable
subFields :: [SubDecl] -> Html subFields :: [SubDecl] -> Html
subFields = divSubDecls "fields" "Fields" . subTable subFields = divSubDecls "fields" "Fields" . subDlist
subInstances :: String -> [SubDecl] -> Html subInstances :: String -> [SubDecl] -> Html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment