Skip to content

Commit

Permalink
(#597) Managed animated button UI
Browse files Browse the repository at this point in the history
  • Loading branch information
vapvarun committed Jan 5, 2024
1 parent 016983a commit becdbef
Show file tree
Hide file tree
Showing 12 changed files with 311 additions and 259 deletions.
22 changes: 22 additions & 0 deletions assets/css/bbpress.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,12 @@ a.bbp-topic-permalink {
}

@media only screen and (max-width: 767px) {

ul li.bbp-forum-info,
ul li.bbp-topic-title {
width: 75%
}

.bbp-header ul li.bbp-forum-freshness,
.bbp-body ul li.bbp-forum-freshness,
.bbp-header ul li.bbp-topic-freshness,
Expand All @@ -174,24 +176,29 @@ a.bbp-topic-permalink {
.bbp-body ul li.bbp-topic-voice-count {
display: none
}

.bbp-header ul li.bbp-topic-reply-count,
.bbp-body ul li.bbp-topic-reply-count,
.bbp-header ul li.bbp-forum-topic-count,
.bbp-body ul li.bbp-forum-topic-count {
border: none
}

.bbp-header ul li.bbp-forum-topic-count,
.bbp-body ul li.bbp-forum-topic-count,
.bbp-header ul li.bbp-topic-reply-count,
.bbp-body ul li.bbp-topic-reply-count {
width: 25%
}

#bbpress-forums div.bbp-search-form {
float: none;
}

#bbpress-forums #bbp-search-form #bbp_search {
width: 100%;
}

#bbpress-forums div.bbp-search-form input,
#bbpress-forums div.bbp-search-form button {
font-size: inherit;
Expand All @@ -200,10 +207,12 @@ a.bbp-topic-permalink {
}

@media only screen and (max-width: 320px) {

#bbpress-forums li.bbp-header li.bbp-forum-info,
#bbpress-forums li.bbp-header li.bbp-topic-title {
text-align: left;
}

#bbpress-forums li.bbp-header li.bbp-forum-info,
#bbpress-forums li.bbp-body li.bbp-forum-info,
#bbpress-forums li.bbp-header li.bbp-topic-title,
Expand All @@ -212,6 +221,19 @@ a.bbp-topic-permalink {
}
}

.bbp-reply-form {
background: #fff;
border: 1px solid var(--global-border-color);
padding: 15px;
border-radius: var(--global-border-radius);
}

.bbp-reply-form fieldset.bbp-form {
background: transparent !important;
border: 0!important;
margin: 0!important;
padding: 0!important;
}

/*--------------------------------------------------------------
# Activity Page
Expand Down
2 changes: 1 addition & 1 deletion assets/css/bbpress.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion assets/css/buddypress.css
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ li.load-more a.loading::after {
animation: spin 1s infinite linear;
}

.buddypress .buddypress-wrap .generic-button .loading::after {
.buddypress .buddypress-wrap .generic-button .loading:not(.bp-tooltip):after {
content: "\f110";
font-family: "FontAwesome";
font-size: 18px;
Expand All @@ -1734,6 +1734,10 @@ li.load-more a.loading::after {
animation: spin 1s infinite linear;
}

.buddypress .buddypress-wrap .generic-button .loading {
animation: none;
}

@-ms-keyframes spin {
from {
-ms-transform: rotate(0deg);
Expand Down Expand Up @@ -3626,6 +3630,7 @@ button#bp-delete-avatar {
position: absolute;
white-space: nowrap;
z-index: 10;
animation: none !important;
}

[data-bp-tooltip][data-bp-tooltip-pos="right"]:after {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/buddypress.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit becdbef

Please sign in to comment.