Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Dropdown Item #414

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 51 additions & 2 deletions css/skeleton.css
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,58 @@ hr {
.u-cf {
content: "";
display: table;
clear: both; }
clear: both;
}

.dropdown{
display: grid;
margin: auto;
width: 50%;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
}

.dropdown-menu{
display: none;
/* display: grid; */
border: 1px solid #bbb;
border-radius: 2px;
margin-right: 2px;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
}

.dropdown:hover .dropdown-menu{
display: grid;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
}

.dropdown-button{
margin-bottom:0px;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
}

.dropdown-item{
display: inline-block;
height: 38px;
padding: 0 30px;
color: #555;
text-align: center;
font-size: 11px;
font-weight: 600;
line-height: 38px;
letter-spacing: .1rem;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
background-color: transparent;
cursor: pointer;
box-sizing: border-box;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
}

/* Media Queries
–––––––––––––––––––––––––––––––––––––––––––––––––– */
Expand All @@ -401,7 +451,6 @@ on small devices, paste the mobile query code up in the buttons section and styl
there.
*/


/* Larger than mobile */
@media (min-width: 400px) {}

Expand Down
15 changes: 14 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">

<!-- Favicon
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="icon" type="image/png" href="images/favicon.png">
Expand All @@ -37,6 +37,19 @@
<h4>Basic Page</h4>
<p>This index.html page is a placeholder with the CSS, font and favicon. It's just waiting for you to add some content! If you need some help hit up the <a href="http://www.getskeleton.com">Skeleton documentation</a>.</p>
</div>
<div class="one-half column" style="margin-top: 25%">
<div class="dropdown">
<button class="dropdown-button">
Click
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Option 1</a>
<a class="dropdown-item" href="#">Option 2</a>
<a class="dropdown-item" href="#">Option 3</a>
<a class="dropdown-item" href="#">Option 4</a>
</div>
</div>
</div>
</div>
</div>

Expand Down