mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 02:37:05 +00:00
Remove unnecessary div wrapper on overflow menu
Unordered lists can be absolute positioned down to IE 7. Outdated selector `.vectorMenu ul` remains for a release cycle until HTML cache is renewed. Bug: T209558 Change-Id: Id18ca9a8d705572b1f7e17920ef52b80e9aec373
This commit is contained in:
parent
8d7fa67747
commit
da6d4eb280
|
@ -162,15 +162,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.vectorMenu .menu {
|
.vectorMenu .menu {
|
||||||
|
list-style: none none;
|
||||||
|
background-color: @body-background-color;
|
||||||
|
clear: both;
|
||||||
// Match the width of the dropdown "heading" (the tab)
|
// Match the width of the dropdown "heading" (the tab)
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2.5em;
|
top: 2.5em;
|
||||||
left: -1px;
|
left: -1px;
|
||||||
background-color: @body-background-color;
|
margin: 0;
|
||||||
border: 1px solid #a2a9b1;
|
border: 1px solid #a2a9b1;
|
||||||
border-top-width: 0;
|
border-top-width: 0;
|
||||||
clear: both;
|
padding: 0;
|
||||||
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
|
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
|
||||||
text-align: left;
|
text-align: left;
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -187,6 +190,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: `.vectorMenu ul` can be removed with purged HTML cache
|
||||||
.vectorMenu ul {
|
.vectorMenu ul {
|
||||||
list-style: none none;
|
list-style: none none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
|
@ -357,8 +357,7 @@ class VectorTemplate extends BaseTemplate {
|
||||||
<h3 id="p-variants-label">
|
<h3 id="p-variants-label">
|
||||||
<span><?php echo htmlspecialchars( $variantLabel ) ?></span>
|
<span><?php echo htmlspecialchars( $variantLabel ) ?></span>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="menu">
|
<ul class="menu">
|
||||||
<ul>
|
|
||||||
<?php
|
<?php
|
||||||
foreach ( $this->data['variant_urls'] as $key => $item ) {
|
foreach ( $this->data['variant_urls'] as $key => $item ) {
|
||||||
echo $this->makeListItem( $key, $item );
|
echo $this->makeListItem( $key, $item );
|
||||||
|
@ -366,7 +365,6 @@ class VectorTemplate extends BaseTemplate {
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'VIEWS':
|
case 'VIEWS':
|
||||||
|
@ -401,8 +399,7 @@ class VectorTemplate extends BaseTemplate {
|
||||||
<h3 id="p-cactions-label"><span><?php
|
<h3 id="p-cactions-label"><span><?php
|
||||||
$this->msg( 'vector-more-actions' )
|
$this->msg( 'vector-more-actions' )
|
||||||
?></span></h3>
|
?></span></h3>
|
||||||
<div class="menu">
|
<ul class="menu"<?php $this->html( 'userlangattributes' ) ?>>
|
||||||
<ul<?php $this->html( 'userlangattributes' ) ?>>
|
|
||||||
<?php
|
<?php
|
||||||
foreach ( $this->data['action_urls'] as $key => $item ) {
|
foreach ( $this->data['action_urls'] as $key => $item ) {
|
||||||
echo $this->makeListItem( $key, $item );
|
echo $this->makeListItem( $key, $item );
|
||||||
|
@ -410,7 +407,6 @@ class VectorTemplate extends BaseTemplate {
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'PERSONAL':
|
case 'PERSONAL':
|
||||||
|
|
Loading…
Reference in a new issue