Skip to content

Commit

Permalink
fix: mobile SubscriptionButton styles (#66)
Browse files Browse the repository at this point in the history
* fix: mobile SubscriptionButton styles

* fix: mobile SubscriptionButton styles
  • Loading branch information
rafaucau authored Oct 20, 2023
1 parent 304a6f7 commit 88ef714
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ indent_size = 4
[*.md]
indent_size = 2
trim_trailing_whitespace = false
[*.less]
indent_size = 2
48 changes: 20 additions & 28 deletions resources/less/forum.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,34 @@
display: inline-block; // to make it sit alongside other elements

&--follow {
.Button--color(#de8e00, #fff2ae);
.Button--color(#de8e00, #fff2ae);
}

&--lurk {
color: #de8e00;
background: #fff2ae;
color: #de8e00;
background: #fff2ae;
}

// ... any other subscription state styles similar to the dropdown
}

.IndexPage-nav .item-subscription {
.SubscriptionButton {
width: 100%; // to match the dropdown's width
}
}

// Existing media query for mobile
@media @phone {
.IndexPage-nav .item-subscription .Dropdown {
width: auto;
right: 40px;

> .Button--icon .icon:before {
content: '';
}
}

// New media query styles for SubscriptionStateButton
.IndexPage-nav .item-subscription .SubscriptionButton {
width: auto;
right: 40px;

&.Button--icon .icon:before {
content: '';
}
.IndexPage-nav .SubscriptionButton {
background: transparent;
width: auto;
height: var(--header-height-phone, 46px);
right: 50px;

.Button-icon {
font-size: 20px;
margin-right: 0;
}

.Button-label {
display: none;
}
}
}

Expand Down Expand Up @@ -84,10 +76,10 @@
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px; // Added margin for spacing between each item
margin-bottom: 10px; // Added margin for spacing between each item

&:last-child {
margin-bottom: 0; // Ensure the last item doesn't have extra margin
margin-bottom: 0; // Ensure the last item doesn't have extra margin
}

&:hover {
Expand All @@ -96,7 +88,7 @@

&.selected {
background-color: @alert-bg;
color: @alert-color;
color: @alert-color;
}

.SubscriptionOption-icon {
Expand Down

0 comments on commit 88ef714

Please sign in to comment.