Skip to content

Commit

Permalink
Some visual styling on the modal and its tab buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBeville committed May 11, 2024
1 parent 96497b5 commit 6c5da58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Binary file added img/modal_background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
],
"web_accessible_resources": [
"data/*.json",
"marginalia/*.png"
"marginalia/*.png",
"img/modal_background.jpg"
],
"icons": {
"48": "img/icon.png",
Expand Down
10 changes: 7 additions & 3 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Its class is wordInfoModalPopup.
└─────────────────────────────*/

.wordInfoModalPopup {
background-color: #dddddd;
/* background-color: #dddddd; */
background: linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.4)),
url(../img/modal_background.jpg);
color: black;
border: 1px solid #ccc;
padding: 10px;
Expand Down Expand Up @@ -53,11 +55,12 @@ Its class is wordInfoModalPopup.

.wordInfoTabButtonContainer {
overflow-x: auto; /* Enable horizontal scrolling */
overflow-y: hidden;
white-space: nowrap;
display: block;
height: 25px;
height: 22px;
z-index: 5;
background-color:lightgray;
border-bottom: 1px solid #777575;
flex-shrink: 0;
-ms-overflow-style: none; /* For Internet Explorer and Edge */
scrollbar-width: none; /* For Firefox */
Expand All @@ -72,6 +75,7 @@ Its class is wordInfoModalPopup.
border: 1px solid gray;
border-radius: 5px;
white-space: nowrap;
background: linear-gradient(rgb(210, 189, 164), rgb(189, 157, 114));
flex-grow: 1;
color: black; /* font colour */
background-color: #ccc;
Expand Down

0 comments on commit 6c5da58

Please sign in to comment.