Skip to content

Commit

Permalink
Fix overlapping items in options
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencrader committed Aug 18, 2024
1 parent dbd10ca commit 6a0a5ff
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 22 deletions.
20 changes: 9 additions & 11 deletions src/pages/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<body id="options">
<h1>RantStats Extension Options</h1>

<nav class="pages">
<div class="nav-link" id="open-rants">View Cached Rants</div>
</nav>

<div class="options">
<div class="option">
<div class="option-info">
Expand Down Expand Up @@ -80,23 +84,17 @@ <h1>RantStats Extension Options</h1>
</div>
</div>

<div class="save">
<p class="description">
<span id="save-status"></span>
<button id="save">Save</button>
</p>
</div>

<div class="pages">
<h2 id="open-rants">View Cached Rants</h2>
</div>

<footer>
<div class="row clear-section">
<p class="description">
<button id="clear">Clear all saved data</button>
<span id="clear-status"></span>
</p>

<p class="description save">
<span id="save-status"></span>
<button id="save">Save</button>
</p>
</div>

<div class="row">
Expand Down
40 changes: 29 additions & 11 deletions src/pages/options/options.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
align-items: unset;
}

&:nth-child(odd) {
&:nth-child(even) {
background: var(--light-accent2);
}

Expand Down Expand Up @@ -88,20 +88,25 @@
}
}

.save {
text-align: right;
margin-right: 10px;
//padding: 5px;
}

.pages {
text-align: center;

h2 {
font-size: 1.5em;
font-size: 1.25em;
font-weight: bold;
padding: 10px;
margin-bottom: 5px;
background: var(--light-accent2);
border-bottom: 1px inset var(--border);

.nav-link {
display: inline;
padding: 5px;
border-radius: 10px;
width: auto;
background: var(--light-accent);

&:hover {
cursor: pointer;
text-decoration: underline;
}
}
}
Expand All @@ -115,15 +120,28 @@
button {
font-size: 1em;
}

.save {
font-size: 15px;
margin-left: auto;
}
}
}
}

.theme-dark {
#options {
.pages {
background: var(--dark-accent);

.nav-link {
background: var(--dark-accent2);
}
}

.options {
.option {
&:nth-child(odd) {
&:nth-child(even) {
background: var(--dark-accent);
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/pages/pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ html.rantstats {
justify-self: flex-end;
position: sticky;
bottom: 0;
background: var(--light-accent2);

.row {
display: flex;
Expand All @@ -77,6 +78,10 @@ html.rantstats {

body {
background: var(--dark-accent2);

footer {
background: var(--dark-accent2);
}
}

h1,
Expand Down

0 comments on commit 6a0a5ff

Please sign in to comment.