-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a1584d
commit 632cf8a
Showing
3 changed files
with
84 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|