Skip to content

Commit 18c1f79

Browse files
author
Joe Crick
committed
(master): Namespace dropdown-content. Fix styling.
1 parent d460c7e commit 18c1f79

File tree

6 files changed

+33
-34
lines changed

6 files changed

+33
-34
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div tabindex="0" class="menu-link pcssc-dropdown">
2525
<span></span>
2626
</div>
27-
<ul class="dropdown-content pure-menu-list pure-menu">
27+
<ul class="pcssc-dropdown-content pure-menu-list pure-menu">
2828
<li class="pure-menu-item">
2929
<a href="#installation" class="pure-menu-link">Installation</a>
3030
</li>
@@ -524,8 +524,8 @@ <h3>Toggling Button Label Collapse</h3>
524524
<a name="dropdown"></a>
525525
<h2 class="content-subhead">Dropdown</h2>
526526

527-
<div tabindex="0" class="pure-button pcssc-dropdown">Dropdown Button</div>
528-
<ul class="dropdown-content">
527+
<div tabindex="0" class="pcssc-dropdown pure-button">Dropdown Button</div>
528+
<ul class="pcssc-dropdown-content">
529529
<li class="dropdown-menu-item">
530530
<button class="dropdown-action-item">Edit</button>
531531
</li>
@@ -536,8 +536,8 @@ <h2 class="content-subhead">Dropdown</h2>
536536

537537
<div style="background: #ffffff; margin-top: 50px; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><pre
538538
style="margin: 0; line-height: 125%">
539-
&lt;div tabindex=<span style="color: #a31515">&quot;0&quot;</span> class=<span style="color: #a31515">&quot;pure-button pcssc-dropdown&quot;</span>&gt;Dropdown Button&lt;/div&gt;
540-
&lt;ul class=<span style="color: #a31515">&quot;dropdown-content&quot;</span>&gt;
539+
&lt;div tabindex=<span style="color: #a31515">&quot;0&quot;</span> class=<span style="color: #a31515">&quot;pcssc-dropdown pure-button&quot;</span>&gt;Dropdown Button&lt;/div&gt;
540+
&lt;ul class=<span style="color: #a31515">&quot;pcssc-dropdown-content&quot;</span>&gt;
541541
&lt;li class=<span style="color: #a31515">&quot;dropdown-menu-item&quot;</span>&gt;
542542
&lt;button class=<span style="color: #a31515">&quot;dropdown-action-item&quot;</span>&gt;Edit&lt;/button&gt;
543543
&lt;/li&gt;

main.css

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/dropdown.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
pointer-events: none;
1010
outline: none;
1111

12-
& + .dropdown-content {
12+
& + .pcssc-dropdown-content {
1313
opacity: 1;
1414
visibility: visible;
1515
pointer-events: auto;
@@ -18,7 +18,7 @@
1818
}
1919
}
2020

21-
.dropdown-content {
21+
.pcssc-dropdown-content {
2222
position: absolute;
2323
z-index: 1;
2424
visibility: hidden;

src/components/menu.less

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
display: block;
3131
}
3232

33-
.dropdown-content {
33+
.pcssc-dropdown-content {
3434
visibility: visible;
3535
}
3636

@@ -40,11 +40,9 @@
4040
left: 0;
4141
}
4242

43-
.dropdown-content {
43+
.pcssc-dropdown-content {
4444
top: 38px;
4545
left: -1px;
46-
border-radius: 0;
47-
4846
}
4947

5048
}

src/layout.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ body {
105105
.pcssc-collapsing-menu {
106106
background: @black;
107107

108-
.dropdown:focus + .dropdown-content {
108+
.dropdown:focus + .pcssc-dropdown-content {
109109
transition: all 0.2s ease-out;
110110
}
111111

@@ -115,7 +115,7 @@ body {
115115

116116
}
117117

118-
.dropdown-content {
118+
.pcssc-dropdown-content {
119119
z-index: 1;
120120
transition: visibility 0.5s;
121121
background-color: @white;
@@ -130,6 +130,7 @@ body {
130130
padding: 0;
131131
width: 160px;
132132
border: 0;
133+
border-radius: 0;
133134

134135
@media @medium-device {
135136
top: 38px;
@@ -180,7 +181,7 @@ body {
180181

181182
}
182183

183-
.popover {
184+
.pcssc-popover {
184185
background-color: @white;
185186
border: 1px solid rgba(0, 0, 0, 0.2);
186187
border-radius: 0.3rem;

0 commit comments

Comments
 (0)