Skip to content

Commit

Permalink
release 0.0.12 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 authored Mar 1, 2024
1 parent 8a1584d commit 632cf8a
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 32 deletions.
112 changes: 82 additions & 30 deletions js/widget.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,83 @@
.selectBox {
border: 1px solid #55aaff;
background-color: rgba(75, 160, 255, 0.3);
position: fixed;
}

#animation-controls {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background-color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
}

#animation-controls button {
margin: 0 5px;
padding: 5px 10px;
}

#timeline {
margin: 0 10px;
width: 50%;
}

#current-frame {
margin-left: 10px;
}
border: 1px solid #55aaff;
background-color: rgba(75, 160, 255, 0.3);
position: fixed;
}

#animation-controls {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background-color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
}

#animation-controls button {
margin: 0 5px;
padding: 5px 10px;
}

#timeline {
margin: 0 10px;
width: 50%;
}

#current-frame {
margin-left: 10px;
}

.search-overlay {
display: flex; /* Hidden by default */
flex-direction: column;
align-items: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #2c3e50;
color: white;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
border-radius: 4px;
z-index: 1000; /* Make sure it's above other content */
width: 300px;
}

.search-overlay input {
width: 90%;
margin: 5px; /* Ensures space between search box and results */
padding: 10px;
border: none;
background: none;
color: white;
font-size: 14px;
}

.search-overlay ul {
list-style: none;
margin: 0;
padding: 0;
font-size: 14px;
}

.search-overlay ul li {
padding: 5px;
cursor: pointer;
}

.search-overlay ul li:hover {
background: #34495e;
}

#search-box {
width: 90%; /* Full width inside the overlay, considering padding */
margin-bottom: 5px; /* Space between search box and results */
}

#search-results {
overflow-y: auto; /* Allow vertical scrolling */
max-height: 200px; /* Adjust based on the overlay height and search box */
}
2 changes: 1 addition & 1 deletion js/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// clone the weas repo and import the weas module
// import * as weas from "../../weas/src/index.js";
// if not, then use the release version from unpkg
import * as weas from "https://unpkg.com/weas/dist/weas.mjs";
import * as weas from "https://unpkg.com/weas@0.0.8/dist/weas.mjs";
import "./widget.css";


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "weas_widget"
version = "0.0.11"
version = "0.0.12"
description = "A widget to visualize and interact with atomistic structures in Jupyter Notebook."
authors = [{name = "Xing Wang", email = "[email protected]"}]
readme = "README.md"
Expand Down

0 comments on commit 632cf8a

Please sign in to comment.