Skip to content

Commit

Permalink
Dark colors for search popout
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Mar 23, 2023
1 parent 07aa808 commit fc84b04
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### 1.2.4rc2: 2023-03-23
### 1.2.4: 2023-03-23

* Embed styles
* Make outside embeds more modern looking
* Dark colors for search popout
* Full width search popout on mobile

### 1.2.3: 2023-03-23

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mastodon-bird-ui",
"version": "1.2.3",
"version": "1.2.4",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
30 changes: 29 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @[email protected]
1.2.4rc2 */
1.2.4 */

/* CSS variables */
:root {
Expand Down Expand Up @@ -74,6 +74,19 @@
.layout-single-column::-webkit-scrollbar {
display: none;
}

/* Full width search popout on mobile */
.layout-single-column div:has(.search-popout) {

/* It's inlined so we have to use !important */
/* stylelint-disable-next-line */
max-width: calc(100% - 30px) !important;
transform: translateX(15px);

/* It's inlined so we have to use !important */
/* stylelint-disable-next-line */
width: calc(100% - 30px) !important;
}
}

body.embed,
Expand Down Expand Up @@ -314,6 +327,7 @@ a.status-card.compact .status-card__host {
}

/* More subtle box-shadow for dropdown-menu */
.layout-single-column .search-popout,
.layout-single-column .dropdown-menu {
box-shadow: 2px 4px 16px rgb(0 0 0 / .01);
}
Expand Down Expand Up @@ -468,6 +482,7 @@ body.embed .status__content a,
}

/* Things like notification status update text that should be dim */
.layout-single-column .search-popout > h4,
.layout-single-column .status-check-box__status .detailed-status__display-name,
.layout-single-column .report-dialog-modal .poll__option.dialog-option > .poll__option__text,
.layout-single-column .status-card .status-card__description,
Expand Down Expand Up @@ -771,6 +786,17 @@ body.embed .detailed-status,
color: var(--color-dim);
}

/* Search panel that opens when focusing Saerch or paste URL field */
.layout-single-column .search-popout {
background-color: var(--color-dark);
border-color: var(--color-dark);
color: var(--color-dim);
}

.layout-single-column .search-popout em {
color: var(--color-light-text);
}

/* URL preview card box */
/* stylelint-disable-next-line */
.layout-single-column a.status-card .status-card__content,
Expand Down Expand Up @@ -1420,6 +1446,8 @@ body.embed .detailed-status__meta .detailed-status__link .fa-retweet,
text-transform: unset;
}

.layout-single-column h4,
.layout-single-column .search-popout h4,
.layout-single-column .server-banner h4 {
text-transform: unset;
}
Expand Down

0 comments on commit fc84b04

Please sign in to comment.