Skip to content

Commit

Permalink
add stylesheets for navbar component
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiasAurel committed Feb 23, 2024
1 parent 387d30c commit e6de675
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/components/design-system/textarea.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.textarea {
background: #ffffff;
border: 2px solid var(--fg-muted);
padding: 8px 12px;
display: block;
font-size: 0.9rem;
font-family: inherit;
outline: none;
width: 100%;
line-height: 1.2;
}

.textarea:focus {
border-color: var(--bg-btn-inactive);
}

.textarea::placeholder {
color: var(--fg-muted);
user-select: none;
}
37 changes: 37 additions & 0 deletions src/components/navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@
width: 24px;
}

.stuckBtn {
background-color: rgb(255, 66, 66);
}

/* Transparency! */
.transparent {
background: transparent;
Expand All @@ -172,6 +176,39 @@
color: var(--fg-muted);
}

/* Nav popup */
.stuckPopup {
background: var(--accent-dark);
color: #ffffff;
z-index: 9;
position: absolute;
top: 48px;
right: 25vw;
padding: 8px;
box-shadow: 0 4px 8px 0 #0000005e;
min-width: 160px;
}

.stuckPopup form {
display: flex;
flex-direction: column;
justify-content: space-evenly;
}

.stuckPopup .divider {
height: 2px;
background: var(--accent);
margin: 8px 0;
}

.stuckPopup ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}

/* Nav popup */
.navPopup {
background: var(--accent-dark);
Expand Down
17 changes: 17 additions & 0 deletions src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,20 @@ a:hover {
.grecaptcha-badge {
visibility: hidden;
}

select {
line-height: 1.2;
background: var(--bg-btn-inactive);
background: white;
color: var(--bg-btn-inactive);
border: 2px solid var(--bg-btn-inactive);
padding: 8px 12px;
padding-right: 20px;
appearance: none;
display: block;
font-size: 0.9rem;
font-family: inherit;
outline: none;
width: 100%;
user-select: none;
}

0 comments on commit e6de675

Please sign in to comment.