ZeroNetX / ZeroNet

ZeroNetX - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.dev
Other
225 stars 32 forks source link

Make notification's close button bigger in small screens #106

Closed zolagonano closed 2 years ago

zolagonano commented 2 years ago

Fixes #105

screenshots

canewsin commented 2 years ago

@zolagonano Always push pr to py3-internal branch

zolagonano commented 2 years ago

Always push pr to py3-internal branch

@canewsin Done!

canewsin commented 2 years ago

@zolagonano to me, it's better make the close mark, size of notification banner or provide an extra button for mobile devices to close notification.

zolagonano commented 2 years ago

@canewsin Like this? screenshot

canewsin commented 2 years ago

@canewsin Like this? screenshot

Yes

zolagonano commented 2 years ago

@canewsin Done!

canewsin commented 2 years ago

@zolagonano Made some modifications, any suggessions ?

image

I think we can roll this to all screen sizes.

.notification .close:hover { color: white }
.notification .close:active, .notification .close:focus { color: white }
.notification .close {
    margin: 10px; padding: 0px; display: block; width: 30px; height: 30px;
    text-align: center; background-color: tomato; line-height: 25px; vertical-align: bottom; font-size: 30px; color: white;
}
zolagonano commented 2 years ago

@zolagonano Made some modifications, any suggessions ?

image

I think we can roll this to all screen sizes.

.notification .close:hover { color: white }
.notification .close:active, .notification .close:focus { color: white }
.notification .close {
    margin: 10px; padding: 0px; display: block; width: 30px; height: 30px;
    text-align: center; background-color: tomato; line-height: 25px; vertical-align: bottom; font-size: 30px; color: white;
}

Great, i'll implement it for all screen sizes :)

canewsin commented 2 years ago

@zolagonano Also note that there is slight alignment issue for active and inactive button, try to fix that.

@zolagonano Made some modifications, any suggessions ?

image

zolagonano commented 2 years ago

@canewsin I have also added 20px to the width of notifications

canewsin commented 2 years ago

@canewsin I have also added 20px to the width of notifications

Provide a visual change(screenshot) as before.

zolagonano commented 2 years ago

Provide a visual change(screenshot) as before.

Also i have changed the margin-top in select class. before:

screenshot before

after: screenshot after


small screens: screenshot smaller

bigger screens: screenshot bigger

styromaniac commented 2 years ago

How are you targeting mobile devices? What media queries?

zolagonano commented 2 years ago

How are you targeting mobile devices? What media queries?

@styromaniac First, I made that button bigger for screens smaller than 600px, but caneswin suggested implementing it for all screen sizes. Now it's bigger in all screen sizes.

styromaniac commented 2 years ago

How are you targeting mobile devices? What media queries?

@styromaniac First, I made that button bigger for screens smaller than 600px, but caneswin suggested implementing it for all screen sizes. Now it's bigger in all screen sizes.

Okay. If it had to be for touch devices, for future reference, it's (pointer:coarse).

zolagonano commented 2 years ago

How are you targeting mobile devices? What media queries?

@styromaniac First, I made that button bigger for screens smaller than 600px, but caneswin suggested implementing it for all screen sizes. Now it's bigger in all screen sizes.

Okay. If it had to be for touch devices, for future reference, it's (pointer:coarse).

I didn't know that, thanks :)