Skip to content

Commit

Permalink
Cleaner Search UI
Browse files Browse the repository at this point in the history
  • Loading branch information
FirePheonix committed Jan 15, 2025
1 parent ea748ae commit 9292ed0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions css/activities.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
position: absolute;
background-color: white;
background-repeat: no-repeat;
padding: 4.5px 10px 4.5px 20px;
padding: 6px 10px 6px 20px;
-webkit-transition: width 0.4s ease-in-out;
transition: width 0.4s ease-in-out;
font-size: 24px;
Expand All @@ -65,7 +65,7 @@
}

#search:focus {
border: 2px solid #87cefa;
border: 0px solid #87cefa;
}

#search.open {
Expand Down
7 changes: 5 additions & 2 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2408,7 +2408,10 @@ class Activity {
this.showSearchWidget = () => {
// Bring widget to top.
this.searchWidget.style.zIndex = 1001;
this.searchWidget.style.border = "2px solid lightblue";
this.searchWidget.style.borderTop = "0px solid #0cafff";
this.searchWidget.style.borderRight = "0px solid #0cafff";
this.searchWidget.style.borderLeft = "0px solid #0cafff";
this.searchWidget.style.borderBottom = "1px solid #0cafff";
if (this.helpfulSearchDiv) {
this._hideHelpfulSearchWidget();
}
Expand All @@ -2423,7 +2426,7 @@ class Activity {
this.searchWidget.value = null;
this.searchWidget.style.visibility = "visible";
this.searchWidget.style.left =
this.palettes.getSearchPos()[0] * this.turtleBlocksScale * 1.5 + "px";
this.palettes.getSearchPos()[0] * this.turtleBlocksScale * 1.2857142 + "px";
this.searchWidget.style.top =
this.palettes.getSearchPos()[1] * this.turtleBlocksScale * 0.95 + "px";

Expand Down

0 comments on commit 9292ed0

Please sign in to comment.