Oracle APEX Universal Theme - Simple Floating Button

Inspired from Material APEX theme to have Floating button in my application. But, I also do not want to migrate from Universal Theme. So, following is a simple tweak - which will convert your existing button into a floating button within Universal Theme.

Add following CSS into page header or in theme roller - which ever is your preference to use it.

.float{
  z-index:100;
  position:fixed;
  width:60px;
  height:60px;
  bottom:40px;
  right:40px;
  background-color: rgba(55, 76, 139, 0.81);
  color:#FFF;
  border-radius:50px;
  text-align:center;
  box-shadow: 2px 2px 3px #999;
}
.my-float{
  margin-top:22px;
}

Open your existing button and make following changes

  • Set CSS Classes as "float my-float"
  • Change Button Template to "Icon"
  • Set Icon as "fa-plus"
That's it, start using Floating Buttons in your applications. :-)


Working Demo

Hope this helps!

Regards,
Jaydip Bosamiya
jbosamiya@gmail.com

Comments

  1. Thanks for the article. How to show different options when hovered on the button similar to Material APEX demo page?

    ReplyDelete
    Replies
    1. Yes, it is possible and I have done that. I should shortly write blog for same. Stay tuned. Thanks.

      Delete
    2. Here is post about how to create Floating Action Button.

      Delete
    3. Thanks Jaydip. You are awesome.

      Delete

Post a Comment

My photo
Jaydip Bosamiya
I am Oracle APEX Consultant, Blogger and Integrator. All-rounder in building small, medium and enterprise applications. Extensive knowledge in various area of web-driven applications in Back-end (PL/SQL, SQL, Java), Front-end (Oracle APEX, HTML, JavaScript, CSS, jQuery, OracleJET, ReactJS), RESTful APIs, Third-party library integrations (Apex Office Print (AOP), Payment Gateways, Syncfusion, HighCharts) and APEX Plugins (HighChart, StarRating)

Popular posts from this blog

Oracle APEX - Interactive Report - Scrollbars on Top

How to create your own customized nested report regions using jQuery

Oracle APEX - Build Your Own Enhanced Nested Report