Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add support for themes #1

Open
boess opened this issue Jan 18, 2017 · 4 comments
Open

Request to add support for themes #1

boess opened this issue Jan 18, 2017 · 4 comments

Comments

@boess
Copy link

boess commented Jan 18, 2017

I'm a big fan of the module, but not a big fan of the default styling used by noty.

Noty does have support for several themes (http://ned.im/noty/themes.html), I did some tests with it and the current used version supports the defaultTheme, relax and bootstrapTheme. The metroui theme seems to be added in a later version, if updating the noty version is possible this could be included.

The theme can easily be set by passing it in the constructor, just like layout and type are now passed.
It could be handled like the layout and type settings now (with enum values).

I tried to do it myself, and changed the Notification widget and was able to test it. But I do not understand how I should change the related Appronto-Notification-Module and if that is possible.

Hopefully you can add the support for themes.

@pimvdnoll
Copy link
Contributor

Hi Boess thanks for the feedback! will check it out.

in the meantime try this in your css file (code snippet of other project):

ul#noty_topCenter_layout_container {
	width: 50% !important;
	top: 13px !important;
}
ul#noty_topCenter_layout_container li {
  background: #fff !important;
  border: 0 !important;
  width: 100% !important;
  -webkit-border-radius: 0 !important;
  border-radius: 		 0 !important;
  -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px !important;
  box-shadow: 		  rgba(0, 0, 0, 0.4) 0px 2px 4px !important;
}

.noty_bar {
  color: #363636;
  border-radius: 		 0;
  -webkit-border-radius: 0;
  border: 1px solid #9e9e9e;
  border-bottom: 6px solid #9e9e9e;
}
.noty_message {
	padding: 10px !important;
}
.noty_text {
    font: 18px/24px ProximaNova_Bold, Arial, Helvetica, sans-serif;
}
.noty_type_success {
	background-color: rgba(140,190,32,0.25);
	border-color: #8CBE20;
}
.noty_type_error {
  	background-color: rgba(230,34,36,0.25);
    border-color: #E62224;
}
.noty_type_warning {
  	background-color: rgba(234,170,55,0.25);
    border-color: #EAAA37;
}
.noty_type_alert {
	background-color: rgba(158,158,158,0.25);
    border-color: #9e9e9e;
}
.noty_type_info {
  	background-color: rgba(0,143,211,0.25);
    border-color: #008FD3;
}

/* Errors below */
ul#noty_bottomCenter_layout_container
{
	bottom: 9px !important;
	width: 50% !important;
}

ul#noty_bottomCenter_layout_container li
{
  background: #fff !important;
  border: 0 !important;
  width: 100% !important;
  border-radius: 		 0 !important;
  -webkit-border-radius: 0 !important;
  -webkit-box-shadow: rgba(0, 0, 0, 0.55) 0px 0px 17px 0px !important;
  box-shadow: 		  rgba(0, 0, 0, 0.55) 0px 0px 17px 0px !important;
}

@boess
Copy link
Author

boess commented Jan 24, 2017 via email

@pimvdnoll
Copy link
Contributor

mooi! had je getest door het widget aan te passen met de nieuwe versie van noty of gewoon ff buiten Mendix app testje gedaan?
als ik de nieuwe noty wil gebruiken bokt mijn widget over Jquery ellende

@boess
Copy link
Author

boess commented Jan 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants