Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7a2514e7
Commit
7a2514e7
authored
Nov 17, 2003
by
Dries Buytaert
Browse files
- Small improvement to the default style emitted by theme_form_element().
parent
fff2f548
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/theme.inc
View file @
7a2514e7
...
...
@@ -156,7 +156,7 @@ function _theme_table_cell($cell, $header = 0) {
**/
function
theme_form_element
(
$title
,
$value
,
$description
=
0
)
{
return
"<div class=
\"
form-item
\"
>"
.
(
$title
?
"<label>
$title
:</label>"
:
""
)
.
$value
.
(
$description
?
"<div class=
\"
description
\"
>
$description
</div>"
:
""
)
.
"</div>
\n
"
;
return
"<div class=
\"
form-item
\"
>"
.
(
$title
?
"<label>
$title
:</label>
<br />
"
:
""
)
.
$value
.
(
$description
?
"<div class=
\"
description
\"
>
$description
</div>"
:
""
)
.
"</div>
\n
"
;
}
/**
...
...
misc/drupal.css
View file @
7a2514e7
...
...
@@ -110,13 +110,14 @@ fieldset {
.container-inline
.form-submit
{
margin
:
0
;
}
.form-item
{
margin-bottom
:
1em
;
}
.form-item
.description
{
font-size
:
0.85em
;
}
.form-item
label
{
font-weight
:
bold
;
margin-top
:
1.1em
;
margin-bottom
:
1px
;
}
.form-submit
{
margin
:
0.5em
0
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment