Simple - Add Something

by Kevin Pliester

HTML

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<body>
    <div class="switch-it">
        <ul>
            <li><a href="javascript:void(0);"><i class="fa fa-folder-o"></i>Folder</a>

            </li>
            <li><a href="javascript:void(0);"><i class="fa fa-folder-o"></i>Folder</a>

            </li>
            <li><a href="javascript:void(0);"><i class="fa fa-folder-o"></i>Folder</a>

            </li>
            <li> <a href="javascript:void(0);" id="add_folder">Add Folder</a>

                <input type="text" id="new_folder" placeholder="New Folder..." />
            </li>
        </ul>
    </div>
</body>

CSS

html, body {
    margin: 0;
    padding: 0;
}
body {
    font-family: arial;
    font-size: 14px;
    height: 100%;
}
.switch-it {
    height: 100%;
    position: fixed;
    border-right: 1px solid #e5e5e5;
    padding: 20px;
    width: 250px;
}
.switch-it ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.switch-it ul li {
    padding: 10px 0;
}
.switch-it a {
    text-decoration: none;
    color: #333;
    display: block;
}
.switch-it a i {
    margin-right: 10px;
}

#new_folder {
    display: none;
    border: 1px solid #a5a5a5;
    color: #858585;
    background: none;
    padding: 5px;
}
.show_new_folder {
    display: block !important;
}

#add_folder {
    color: #858585;
    text-align: center;
    font-size: 12px;
}
.hide_add_folder {
    display: none !important;
}

JavaScript

$('#add_folder').on('click', function () {
    $('#new_folder').toggleClass('show_new_folder');
    $('#add_folder').toggleClass('hide_add_folder');
});