Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dismissible notification boxes
03-13-2018, 10:50 PM,
#34
RE: Dismissible notification boxes
Thanks Tim and Paul.

I have tried inline-block and centering the messages, but they still look crap on mobile, so have reverted to 100% width. This can be revisited if and when a responsive theme is implemented.

I believe I have fixed the display style issue.
I had not appreciated that appendChild has moving the whole AlertContainerFoot div into AlertContainerHead, rather than just its child elements.
So trying to control the display of AlertContainerHead was not having the desired effect.

Setting AlertContainerFoot to display: none in CSS, and then display: block in JS, after the appending, seems to work.

I'll apply the new CSS to the other themes later today, and raise a PR.

Andy.
https://www.linkedin.com/in/andrewcouling
Reply


Messages In This Thread
Dismissible notification boxes - by afcouling - 02-20-2018, 01:10 AM
RE: Dismissible notification boxes - by afcouling - 02-20-2018, 01:58 AM
RE: Dismissible notification boxes - by TurboPT - 02-20-2018, 02:39 AM
RE: Dismissible notification boxes - by afcouling - 02-20-2018, 02:44 AM
RE: Dismissible notification boxes - by afcouling - 02-20-2018, 03:42 AM
RE: Dismissible notification boxes - by TurboPT - 02-20-2018, 04:00 AM
RE: Dismissible notification boxes - by afcouling - 02-21-2018, 12:02 AM
RE: Dismissible notification boxes - by afcouling - 02-21-2018, 01:08 AM
RE: Dismissible notification boxes - by afcouling - 02-21-2018, 02:24 AM
RE: Dismissible notification boxes - by afcouling - 02-22-2018, 12:56 AM
RE: Dismissible notification boxes - by afcouling - 02-22-2018, 01:47 AM
RE: Dismissible notification boxes - by afcouling - 02-22-2018, 03:34 AM
RE: Dismissible notification boxes - by afcouling - 03-07-2018, 06:53 AM
RE: Dismissible notification boxes - by TurboPT - 03-07-2018, 09:02 AM
RE: Dismissible notification boxes - by afcouling - 03-09-2018, 09:09 PM
RE: Dismissible notification boxes - by afcouling - 03-09-2018, 09:59 PM
RE: Dismissible notification boxes - by afcouling - 03-12-2018, 10:35 AM
RE: Dismissible notification boxes - by afcouling - 03-13-2018, 09:41 AM
RE: Dismissible notification boxes - by afcouling - 03-12-2018, 09:46 PM
RE: Dismissible notification boxes - by TurboPT - 03-13-2018, 12:39 PM
RE: Dismissible notification boxes - by afcouling - 03-13-2018, 10:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)