Skip to content

Commit 42e52ba

Browse files
committed
styling/Roughly center menu buttons
1 parent aab74ae commit 42e52ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/assets/stylesheets/_sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
.menu-button {
1818
&--wrapper {
1919
display: flex;
20-
width: 180px;
2120
}
2221

2322
&--icon {
@@ -38,6 +37,7 @@
3837
font-size: 15px;
3938
padding:8px;
4039
text-decoration: none;
40+
padding-left: 50px;
4141

4242
&:hover {
4343
cursor: pointer;

app/views/shared/_sidebar.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
<div class="horizontal-line--large"></div>
99
<div class="menu-button--wrapper">
1010
<%= link_to root_path, class: request.fullpath == root_path ? 'menu-button--item-active' : 'menu-button--item' do %>
11-
<img class="menu-button--icon" src="/icons/icons8-home.svg" width="22">
11+
<img src="/icons/icons8-home.svg" width="22">
1212
<span class="menu-button--name">Home</span>
1313
<% end %>
1414
</div>
1515
<div class="menu-button--wrapper">
1616
<%= link_to folders_path, class: request.fullpath == folders_path ? 'menu-button--item-active' : 'menu-button--item' do %>
17-
<img class="menu-button--icon" src="/icons/icons8-folder.svg" width="22">
17+
<img src="/icons/icons8-folder.svg" width="22">
1818
<span class="menu-button--name">Folders</span>
1919
<% end %>
2020
</div>
2121
<div class="menu-button--wrapper">
2222
<%= link_to snippets_path, class: request.fullpath == snippets_path ? 'menu-button--item-active' : 'menu-button--item' do %>
23-
<img class="menu-button--icon" src="/icons/icons8-file.svg" width="22">
23+
<img src="/icons/icons8-file.svg" width="22">
2424
<span class="menu-button--name">Snippets</span>
2525
<% end %>
2626
</div>

0 commit comments

Comments
 (0)