Git Product home page Git Product logo

Comments (6)

 avatar commented on May 24, 2024

indeed, very needed!

from alertify.js.

fabien-d avatar fabien-d commented on May 24, 2024

I've split the core and theme CSS into separate files. For this one, I'm leaning towards simply adding a alertify.bootstrap.css file which would style the dialogs in a bootstrap look and feel.

from alertify.js.

nodrog avatar nodrog commented on May 24, 2024

if you are using bootstrap with less you can use the following:

.rgba-background-color(@hex, @alpha: 1) {
  background-color: @hex;
  background-color: hsla(hue(@hex), saturation(@hex), lightness(@hex), @alpha);
}
.rgba-box-shadow(@dimentions, @hex, @alpha: 1) {
   box-shadow: @dimentions hsla(hue(@hex), saturation(@hex), lightness(@hex), @alpha);
}

.rgba-border(@details, @hex, @alpha: 1) {
  border: @details @hex;
  border: @details hsla(hue(@hex), saturation(@hex), lightness(@hex), @alpha);
}

.alertify {
  background: @white;
  border-radius: 6px;
  .rgba-border(1px solid, @black, 0.3);
  .rgba-box-shadow(0 3px 7px, @black, 0.3);
  -webkit-background-clip: padding; 
  -moz-background-clip: padding; 
  background-clip: padding-box;
}

.alertify-text {
  border: 1px solid @textColor;
  padding: 10px;
  border-radius: 4px;
}

.alertify-button {
  .btn;
  &.alertify-button-cancel {
    .btn-danger;
  }
  &.alertify-button-ok {
    .btn-success;
  }

  &:hover, &:focus {
    color:@white;
    text-decoration:none;
    outline: none;
    box-shadow: none;
  }

}

.alertify-log {
  .alert;
  &.alertify-log-error {
     .alert-error;
  }
  &.alertify-log-success {
     .alert-success;
  }
}

its not perfect...

from alertify.js.

tracker1 avatar tracker1 commented on May 24, 2024

@fabien-d @nodrog nice... :-)

from alertify.js.

rufuscoder avatar rufuscoder commented on May 24, 2024

That would be cool but you can implement it already. I am making a code editor with bootstrap and I have implemented it.

from alertify.js.

fabien-d avatar fabien-d commented on May 24, 2024

New CSS file was created to support a bootstrap look and feel. Will be part of 0.3.0 release.

from alertify.js.

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.