Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephen Judkins
haddock
Commits
03836297
Commit
03836297
authored
14 years ago
by
Mark Lentczner
Browse files
Options
Downloads
Patches
Plain Diff
fields are def lists, tweak css for style menu, mini pages, arguments
parent
a597daf4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
html/nhaddock.css
+25
-14
25 additions, 14 deletions
html/nhaddock.css
src/Haddock/Backends/Xhtml/Layout.hs
+1
-4
1 addition, 4 deletions
src/Haddock/Backends/Xhtml/Layout.hs
with
26 additions
and
18 deletions
html/nhaddock.css
+
25
−
14
View file @
03836297
...
...
@@ -177,23 +177,19 @@ div#style-menu-holder {
position
:
absolute
;
z-index
:
1
;
overflow
:
visible
;
background
:
rgb
(
41
,
56
,
69
);
/* background-color: #eaeaea; */
background
:
#374c5e
;
margin
:
0
;
width
:
6em
;
text-align
:
center
;
right
:
0
;
padding
:
0
2px
1px
;
border-left
:
1px
solid
#919191
;
border-right
:
1px
solid
#919191
;
border-bottom
:
1px
solid
#919191
;
padding
:
0
;
top
:
1.25em
;
}
#style-menu
li
{
display
:
list-item
;
border-style
:
none
;
margin
:
0
;
padding
:
3px
;
padding
:
0
;
color
:
#000
;
list-style-type
:
none
;
}
...
...
@@ -202,6 +198,12 @@ div#style-menu-holder {
border-top
:
1px
solid
#919191
;
}
#style-menu
a
{
width
:
6em
;
padding
:
3px
;
display
:
block
;
}
#footer
{
margin
:
1em
0
0
0
;
background
:
#ddd
;
...
...
@@ -220,7 +222,7 @@ div#style-menu-holder {
clear
:
right
;
background
:
rgb
(
239
,
238
,
209
);
border
:
1px
solid
rgba
(
196
,
69
,
29
,
0.2
);
font-size
:
75
%
;
font-size
:
80
%
;
padding
:
0.5em
1em
;
position
:
relative
;
top
:
0em
;
/* use -5em to pull up into title area */
...
...
@@ -254,7 +256,7 @@ div#style-menu-holder {
height
:
80%
;
top
:
5em
;
padding
:
0
;
background-color
:
#f
cfcb0
;
background-color
:
#f
ff2b2
;
}
#synopsis
:hover
{
...
...
@@ -265,7 +267,7 @@ div#style-menu-holder {
#synopsis
.caption
,
#synopsis
ul
,
#synopsis
ul
li
.src
{
background-color
:
#f
cfcb0
;
background-color
:
#f
ff2b2
;
white-space
:
nowrap
;
}
...
...
@@ -326,8 +328,8 @@ div#style-menu-holder {
float
:
right
;
width
:
90%
;
display
:
block
;
margin
:
1px
0
;
padding-left
:
0.5em
;
margin-bottom
:
0.5em
;
}
#interface
dd
p
{
...
...
@@ -358,6 +360,15 @@ div.top .subs, div.top .doc {
*/
/* @end */
.arguments
{
margin-top
:
-0.4em
;
}
.arguments
.caption
{
display
:
none
;
}
.fields
{
padding-left
:
1em
;
}
.fields
.caption
{
display
:
none
;
}
.fields
p
{
margin
:
0
0
;
}
...
...
@@ -369,14 +380,14 @@ div.top .subs, div.top .doc {
}
*/
.fields
{
padding-left
:
1em
;
}
/* @end */
/* @group Auxillary Pages */
#mini
{
font-size
:
75%
;
margin
:
0
auto
;
padding
:
0
1em
;
}
#mini
#module-header
.caption
{
...
...
This diff is collapsed.
Click to expand it.
src/Haddock/Backends/Xhtml/Layout.hs
+
1
−
4
View file @
03836297
...
...
@@ -109,8 +109,6 @@ divSubDecls cssClass captionName = maybe noHtml wrap
subSection
=
thediv
!
[
theclass
$
unwords
[
"subs"
,
cssClass
]]
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
[]
=
Nothing
...
...
@@ -125,7 +123,6 @@ subDlist decls = Just $ dlist << map subEntry decls +++ clearDiv
ma
`
with
`
bs
=
ma
+++
bs
clearDiv
=
thediv
!
[
theclass
"clear"
]
<<
noHtml
-}
subTable
::
[
SubDecl
]
->
Maybe
Html
...
...
@@ -157,7 +154,7 @@ subConstructors = divSubDecls "constructors" "Constructors" . subTable
subFields
::
[
SubDecl
]
->
Html
subFields
=
divSubDecls
"fields"
"Fields"
.
sub
Table
subFields
=
divSubDecls
"fields"
"Fields"
.
sub
Dlist
subInstances
::
String
->
[
SubDecl
]
->
Html
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment