Skip to content

Commit

Permalink
mobile responsive fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 13, 2024
1 parent 2467d12 commit 26e8018
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
{#if firstEoseReceived}
<div id="header">
<span class="sitetitle">nostrpul.se</span>
<span class="credit">by nostr.watch</span>
<!-- <a class="info"
href="#"
on:click={() => { showGenericModal("info");} }
Expand Down Expand Up @@ -463,6 +464,12 @@ button.active{
color:rgba(0,0,0,0.3);
}
#header .credit {
color:rgba(0,0,0,0.2);
font-size: clamp(2rem, 1vw, 2em);
}
#header .byline {
color:rgba(0,0,0,0.1);
float:right;
Expand Down Expand Up @@ -556,5 +563,54 @@ button.active{
width: 100%;
margin-bottom: 20px;
}
#header {
position:relative;
top:0px;
left:0px;
right:0px;
font-size: clamp(2rem, 2vw, 2em);
z-index:10;
padding:10px 50px;
z-index:0;
}
#header .sitetitle {
position: fixed;
top:0px;
transform: translateX(-50%);
left:50%;
color:rgba(0,0,0,0.3);
}
#header .credit {
position: fixed;
top:40px;
transform: translateX(-50%);
left:50%;
color:rgba(0,0,0,0.2);
font-size: clamp(1rem, 1vw, 2em);
}
#header .byline {
color:rgba(0,0,0,0.1);
float:none;
position: fixed;
bottom:0px;
left:0px;
right:0px;
display:block;
width:100%;
text-align:center;
}
#header .info {
color:rgba(0,0,0,0.3);
cursor:pointer;
display:inline-block;
font-weight:bolder
}
}
</style>
11 changes: 11 additions & 0 deletions src/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,15 @@
:global(.main::-webkit-scrollbar-thumb) {
color: #fff
}
@media (max-width: 600px) {
dialog {
max-width: 32em;
border-radius: 0.2em;
border: none;
padding: 0;
color:black;
background: rgba(255,255,255, 0.9);
}
}
</style>

0 comments on commit 26e8018

Please sign in to comment.