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

[UI] Make menu styles like on design #153

Merged
merged 16 commits into from
Nov 13, 2024
Merged
6 changes: 3 additions & 3 deletions test/desktop_site_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def test_blog_index
click_on "Blog"
end

assert_matches_screenshot "blog/index"
assert_matches_screenshot "blog/index", skip_area: [".blog-post"]
end

def test_blog_index_pagination
visit "/blog/"

scroll_to find("#pagination")

assert_matches_screenshot "blog/index/_pagination", wait: 3, stability_time_limit: 0.25
assert_matches_screenshot "blog/index/_pagination", skip_area: [".blog-post"], wait: 3, stability_time_limit: 0.25
end

def test_visit_blog_post
Expand Down Expand Up @@ -177,7 +177,7 @@ def test_not_found
private

def within_top_bar
within "nav" do
within ".navigation" do
yield
end
end
Expand Down
Binary file modified test/fixtures/screenshots/macos/mobile/nav/hamburger_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions test/mobile_site_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ def test_homepage
def test_blog_index
visit "/blog/"

assert_matches_screenshot "blog/index"
assert_matches_screenshot "blog/index", skip_area: [".blog-post"]
pftg marked this conversation as resolved.
Show resolved Hide resolved
end

def test_blog_index_pagination
visit "/blog/"

scroll_to find("#pagination")

assert_matches_screenshot "blog/index/_pagination", wait: 3, stability_time_limit: 0.25
assert_matches_screenshot "blog/index/_pagination", skip_area: [".blog-post"], wait: 3, stability_time_limit: 0.25
end

def test_visit_blog_post
Expand Down
27 changes: 22 additions & 5 deletions themes/beaver/assets/css/navigation.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.btn,
.btn:hover {
padding: 10px 18px;
padding: 11px 18px;
font-size: 16px;
line-height: 24px;
font-weight: 700;
Expand Down Expand Up @@ -90,8 +90,8 @@

.menu-close {
display: none;
width: 25px;
height: 25px;
width: 30px;
height: 30px;
position: absolute;
top: 24px;
left: 16px;
Expand Down Expand Up @@ -181,7 +181,7 @@
transition: .3s;
}

.navigation .-active .link {
.navigation .-active .link {
color: #1a8cff;
}

Expand Down Expand Up @@ -337,7 +337,7 @@
background-color: #121212;
color: #fff;
border-radius: 6px;
margin-top: 10px;
margin-top: 15px;
}

.navigation .item {
Expand Down Expand Up @@ -402,6 +402,17 @@

.navigation .item .arrow {
top: 25px;
right: 15px;
}

.navigation .item .arrow:before {
content: '';
position: absolute;
left: -15px;
right: -15px;
top: -15px;
bottom: -15px;
cursor: pointer;
}

.navigation .item.-open .arrow {
Expand All @@ -411,8 +422,14 @@
.navigation .item:hover .arrow {
border-color: inherit;
}

.navigation .item:hover .link,
.navigation .sub-item:hover .sub-name {
color: inherit;
}

.navigation .link {
font-size: 18px;
padding-right: 15px;
}
}
Loading