Code Monkey home page Code Monkey logo

Comments (4)

aberezkin avatar aberezkin commented on August 10, 2024

There is no such feature yet, but I definitely want it to be implemented. I just need to figure out how to give the user the opportunity to do custom styles (user defined CSS variables or something different) and keep angular style encapsulation.

If you have some suggestions on how to do it, I would like to hear from you!

from ng2-image-upload.

flintcreativestudio avatar flintcreativestudio commented on August 10, 2024

In my case, I had no problems in overriding the styles in the application css file.

Certain styles required an !important attribute though.
ie.
.upload-button { float: none !important; display: block !important; text-align: center; }

from ng2-image-upload.

aberezkin avatar aberezkin commented on August 10, 2024

@flintcreativestudio

Did you manage to override for example .image-upload border styles?

from ng2-image-upload.

flintcreativestudio avatar flintcreativestudio commented on August 10, 2024

Yes .image-upload borders simply set a css style and it'd override without !important.
For reference, these were my customizations.

I removed the container border and background color, hid the drag box area, and turned the button into a block element so I could centralise it.

.image-upload {
border: 0;
}
.file-upload {
background: 0;
}
.drag-box-message {
display: none;
}
.upload-button {
float: none !important;
display: block !important;
text-align: center;
}

from ng2-image-upload.

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.