Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
project
drupal
Commits
3506918a
Commit
3506918a
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#539724
by Gábor Hojtsy, Bohjan: make Seven legends look like on the mocks.
parent
36e082ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/simpletest/simpletest.test
+1
-1
1 addition, 1 deletion
modules/simpletest/simpletest.test
themes/seven/style.css
+22
-1
22 additions, 1 deletion
themes/seven/style.css
themes/seven/template.php
+23
-0
23 additions, 0 deletions
themes/seven/template.php
with
46 additions
and
2 deletions
modules/simpletest/simpletest.test
+
1
−
1
View file @
3506918a
...
...
@@ -232,7 +232,7 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
$fieldsets
=
$this
->
xpath
(
'//fieldset'
);
$info
=
$this
->
getInfo
();
foreach
(
$fieldsets
as
$fieldset
)
{
if
(
$fieldset
->
legend
==
$info
[
'name'
])
{
if
(
$this
->
asText
(
$fieldset
->
legend
)
==
$info
[
'name'
])
{
return
$fieldset
;
}
}
...
...
This diff is collapsed.
Click to expand it.
themes/seven/style.css
+
22
−
1
View file @
3506918a
...
...
@@ -443,14 +443,35 @@ table tr.selected td {
/* Fieldsets & Form items */
fieldset
{
border
:
1px
solid
#ccc
;
padding
:
9
px
;
padding
:
30px
13px
13px
14
px
;
margin
:
0
0
10px
;
}
fieldset
legend
span
,
fieldset
legend
a
{
position
:
absolute
;
margin-top
:
9px
;
}
fieldset
legend
a
span
{
position
:
relative
;
margin-top
:
0
;
}
fieldset
.collapsed
{
background
:
transparent
;
}
html
.js
fieldset
.collapsed
legend
,
html
.js
fieldset
.collapsed
legend
*
{
display
:
block
;
}
html
.js
fieldset
.collapsed
{
border-width
:
1px
;
margin-bottom
:
10px
;
padding
:
13px
;
}
fieldset
fieldset
{
background
:
#fff
;
}
...
...
This diff is collapsed.
Click to expand it.
themes/seven/template.php
+
23
−
0
View file @
3506918a
...
...
@@ -65,3 +65,26 @@ function seven_tablesort_indicator($style) {
return
theme
(
'image'
,
$theme_path
.
'/images/arrow-desc.png'
,
t
(
'sort icon'
),
t
(
'sort descending'
));
}
}
/**
* Override of theme_fieldset().
*
* Add span to legend tag, so we can style it to be inside the fieldset.
*/
function
seven_fieldset
(
$element
)
{
if
(
!
empty
(
$element
[
'#collapsible'
]))
{
drupal_add_js
(
'misc/collapse.js'
);
if
(
!
isset
(
$element
[
'#attributes'
][
'class'
]))
{
$element
[
'#attributes'
][
'class'
]
=
''
;
}
$element
[
'#attributes'
][
'class'
]
.
=
' collapsible'
;
if
(
!
empty
(
$element
[
'#collapsed'
]))
{
$element
[
'#attributes'
][
'class'
]
.
=
' collapsed'
;
}
}
$element
[
'#attributes'
][
'id'
]
=
$element
[
'#id'
];
return
'<fieldset'
.
drupal_attributes
(
$element
[
'#attributes'
])
.
'>'
.
(
$element
[
'#title'
]
?
'<legend><span>'
.
$element
[
'#title'
]
.
'</span></legend>'
:
''
)
.
(
isset
(
$element
[
'#description'
])
&&
$element
[
'#description'
]
?
'<div class="fieldset-description">'
.
$element
[
'#description'
]
.
'</div>'
:
''
)
.
(
!
empty
(
$element
[
'#children'
])
?
$element
[
'#children'
]
:
''
)
.
(
isset
(
$element
[
'#value'
])
?
$element
[
'#value'
]
:
''
)
.
"</fieldset>
\n
"
;
}
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