Code Monkey home page Code Monkey logo

Comments (28)

haexperts2020 avatar haexperts2020 commented on August 16, 2024 5

I am surprised this has gone on so long. Well here is my solution:

https://jsfiddle.net/qct52djv/

Basically took the stock css file and remove everything related to body, html, etc classes. Only thing I kept was the button classes for the "x" on the notification. Hope this helps someone as this was frustrating for me also.

Just remove @notifyCss and add your custom css style sheet.

from laravel-notify.

MarouanAfkir avatar MarouanAfkir commented on August 16, 2024 4

I think putting the @notifyCss before any other css links would solve your problem

from laravel-notify.

boritopalito avatar boritopalito commented on August 16, 2024 3

I am surprised this has gone on so long. Well here is my solution:

https://jsfiddle.net/qct52djv/

Basically took the stock css file and remove everything related to body, html, etc classes. Only thing I kept was the button classes for the "x" on the notification. Hope this helps someone as this was frustrating for me also.

Just remove @notifyCss and add your custom css style sheet.

Thank you very much. This is a working solution for me.

from laravel-notify.

haexperts2020 avatar haexperts2020 commented on August 16, 2024 2

Just remove the stock CSS and copy and paste this one:

#38 (comment)

from laravel-notify.

MarJose123 avatar MarJose123 commented on August 16, 2024 2

I created a similar repo and did a refactor to use Boostrap.

https://github.com/whoami213/laravel-bootstrap-notify

from laravel-notify.

JoJo-Bear avatar JoJo-Bear commented on August 16, 2024 1

Our project was affected by this too. It appeared to be the Tailwinds Preflight option. I've submitted this PR #93 which should prevent the styling issues

from laravel-notify.

mbia1378 avatar mbia1378 commented on August 16, 2024 1

Add this in your custom styles file

.inset-0 {
z-index: 9999;
margin-left: 950px;
margin-top: 65px;
}

@media only screen and (max-width: 600px) {
.inset-0 {
z-index: 9999;
}
}

from laravel-notify.

ashari0831 avatar ashari0831 commented on August 16, 2024 1

I put the @notifyCss before other links in my head tag. that works for me.

from laravel-notify.

mckenziearts avatar mckenziearts commented on August 16, 2024

Hi which version did you use currently?

from laravel-notify.

donchoborisov avatar donchoborisov commented on August 16, 2024

not sure i just follow the instructions. everything else works fine. I think is the last verison 2.0

from laravel-notify.

larsvg avatar larsvg commented on August 16, 2024

Same problem on my end. I updated to v2.0 because v1.* broke the laravel 8 update. But now Tailwind takes over my Bootstrap application. h1 tags, links etc. are all normalized.

Is it possible to have a laravel 8 compatible version of the v1 branch?

from laravel-notify.

donchoborisov avatar donchoborisov commented on August 16, 2024

I manage to solve the problem with custom css directly in the elements but that shouldn't be the case...

from laravel-notify.

ramonpego avatar ramonpego commented on August 16, 2024

the same happened here, i had to make changes in almost all my projects.
Sometimes my project's css break the notification, sometimes the notification css break my site style

from laravel-notify.

kgp43 avatar kgp43 commented on August 16, 2024

Same here

Using a basic Bootstrap4 template and it changes my h1 tags (removes the styling completely).

I can use the Dark Theme, but it will not position bottom-right and it does not auto-close (i need to manually close by clicking the cross).

Using latest version (as of today) - followed the installation guide.

from laravel-notify.

donchoborisov avatar donchoborisov commented on August 16, 2024

Is anyone come up with any solution ?

from laravel-notify.

matthbon avatar matthbon commented on August 16, 2024

Is there already a solution for this? I also have the same problem that is changes my own styles

from laravel-notify.

Spillo17 avatar Spillo17 commented on August 16, 2024

+1 same here! still no solution?

from laravel-notify.

bigint avatar bigint commented on August 16, 2024

Waiting for the solution 🙇🏻

from laravel-notify.

muhsinzyne avatar muhsinzyne commented on August 16, 2024

any solution. i am using laravel 7 with ubold theme purchased

from laravel-notify.

colinbarstow avatar colinbarstow commented on August 16, 2024

I am also experiencing the same issues, has anyone found a work around that doesn't involve completely modifying my existing css files?

from laravel-notify.

VinceGee avatar VinceGee commented on August 16, 2024

Waiting for solution...which CSS files are you modifying for it to work?

from laravel-notify.

mwamodo avatar mwamodo commented on August 16, 2024

I think this affects bootstrap. If this happens with tailwind you could just remove the notifyCss directive and it would still work. A solution would be to prefix notifycss class names.

from laravel-notify.

zainiafzan avatar zainiafzan commented on August 16, 2024

Hi have this issues too.. I use tailwind.
after I remove line 3 on notify.css in vendor publish
it works..

from laravel-notify.

MarJose123 avatar MarJose123 commented on August 16, 2024

any solution? or workaround? I have the same issues but for me, it goes behind my form or navbar.

I'm using bootstrap 4 with argon.

from laravel-notify.

p1xel007 avatar p1xel007 commented on August 16, 2024

The issue is because this package used "tailwindcss" for some or most of the css styles, and the styles are overriding the other css styles.

You can just add ".notify" before all the css classes that's conflicting with your styles in "vendor\mckenziearts\laravel-notify\css\notify.css"

from laravel-notify.

kgnfth avatar kgnfth commented on August 16, 2024

still no fix
Time to run composer remove mckenziearts/laravel-notify

from laravel-notify.

damms005 avatar damms005 commented on August 16, 2024

I created a fork that fixes collision with Alpine JS and all other possible style issues.

I also updated the readme to make it easier to use this package, so that you won't have Javascript/CSS conflicts anymore.

For now, you simply use the fork by updating the repositories section of your composer.json file like so (or add it):

{
   "repositories": {
       ...
        "laravel-notify": {
            "type": "vcs",
            "url": "https://github.com/damms005/laravel-notify"
        }
    }
}

Hopefully, @mckenziearts will approve that I submit it as PR or effect my changes into this original package. Else, if people keep having these issues I may just make the new fork into its own new separate package and continue to try and maintain it and make friendlier to use, because IMHO, this package is too awesome to have such a poor DX.

The authors have done an outstanding job and kudos to them!

from laravel-notify.

hen8y avatar hen8y commented on August 16, 2024

Put the @notifyCss before every other css tags and you're good to go

from laravel-notify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.