Skip to content

Commit

Permalink
Update structure panel styles
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 11, 2025
1 parent 70a4d9a commit 8f158c4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def _render(self):
self.widget.configuration_box.selected_index = 2 # select the Cell tab

self.atom_coordinates_table = TableWidget()
self.atom_coordinates_table.add_class("atom-coordinates-table")

self._generate_table(structure.get_ase())

structure_info = self._get_structure_info(structure)
Expand Down
2 changes: 2 additions & 0 deletions src/aiidalab_qe/app/static/styles/results.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
display: flex;
margin: 10px auto;
}

.results-step-toggles div {
display: flex;
column-gap: 8px;
}

.results-step-toggles i {
margin-left: 4px;
}
35 changes: 35 additions & 0 deletions src/aiidalab_qe/app/static/styles/structure.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* Structure manager */

.structure-viewer .view-box {
justify-content: center !important;
}

/* Structure coordinates table */

.atom-coordinates-table > div {
width: fit-content;
max-height: 300px;
overflow: auto;
}

.atom-coordinates-table table {
width: 100% !important;
}

.atom-coordinates-table table tr:first-child {
background-color: #ccc !important;
}

.atom-coordinates-table table tr:not(:first-child):hover {
background-color: #ddd !important;
}

.atom-coordinates-table table tr:not(:first-child):active {
background-color: #ccc !important;
}

.atom-coordinates-table table th,
.atom-coordinates-table table td {
text-align: center !important;
padding: 0.5em 1em !important;
}

0 comments on commit 8f158c4

Please sign in to comment.