Skip to content

Commit 26e8018

Browse files
committed
mobile responsive fixes
1 parent 2467d12 commit 26e8018

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

src/App.svelte

+56
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@
304304
{#if firstEoseReceived}
305305
<div id="header">
306306
<span class="sitetitle">nostrpul.se</span>
307+
<span class="credit">by nostr.watch</span>
307308
<!-- <a class="info"
308309
href="#"
309310
on:click={() => { showGenericModal("info");} }
@@ -463,6 +464,12 @@ button.active{
463464
color:rgba(0,0,0,0.3);
464465
}
465466
467+
#header .credit {
468+
color:rgba(0,0,0,0.2);
469+
font-size: clamp(2rem, 1vw, 2em);
470+
}
471+
472+
466473
#header .byline {
467474
color:rgba(0,0,0,0.1);
468475
float:right;
@@ -556,5 +563,54 @@ button.active{
556563
width: 100%;
557564
margin-bottom: 20px;
558565
}
566+
567+
#header {
568+
position:relative;
569+
top:0px;
570+
left:0px;
571+
right:0px;
572+
font-size: clamp(2rem, 2vw, 2em);
573+
z-index:10;
574+
padding:10px 50px;
575+
z-index:0;
576+
577+
}
578+
579+
#header .sitetitle {
580+
position: fixed;
581+
top:0px;
582+
transform: translateX(-50%);
583+
left:50%;
584+
color:rgba(0,0,0,0.3);
585+
}
586+
587+
#header .credit {
588+
position: fixed;
589+
top:40px;
590+
transform: translateX(-50%);
591+
left:50%;
592+
color:rgba(0,0,0,0.2);
593+
font-size: clamp(1rem, 1vw, 2em);
594+
}
595+
596+
597+
#header .byline {
598+
color:rgba(0,0,0,0.1);
599+
float:none;
600+
position: fixed;
601+
bottom:0px;
602+
left:0px;
603+
right:0px;
604+
display:block;
605+
width:100%;
606+
text-align:center;
607+
}
608+
609+
#header .info {
610+
color:rgba(0,0,0,0.3);
611+
cursor:pointer;
612+
display:inline-block;
613+
font-weight:bolder
614+
}
559615
}
560616
</style>

src/Modal.svelte

+11
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,15 @@
8585
:global(.main::-webkit-scrollbar-thumb) {
8686
color: #fff
8787
}
88+
89+
@media (max-width: 600px) {
90+
dialog {
91+
max-width: 32em;
92+
border-radius: 0.2em;
93+
border: none;
94+
padding: 0;
95+
color:black;
96+
background: rgba(255,255,255, 0.9);
97+
}
98+
}
8899
</style>

0 commit comments

Comments
 (0)