CSS built-in Bootstrap classes

From Lianjapedia
Jump to: navigation, search

See Also

Using CSS to style your Apps

QT Style Sheets Reference

QT Style Sheets Syntax

W3Schools CSS

Overview

Lianja CSS has built-in support for common bootstrap classes and much more, e.g. btn, btn-success, btn-warning, btn-danger. The full list is defined below.

Using these classes provides you with the ability to standardise on colors and the general UI appearance in your Apps.

Usage

Use the CSS Style Attribute in the Page Builder Assistant or in the advanced level Attributes to specify the CSS classes.

You can combine classes by separating them with a space, e.g.

btn btn-success

You can override individual attributes like this:

btn btn-success;background-color:lightgreen;...

You can programatically assign CSS to UI controls using the "css" (or "stylesheet") property:

obtn1 = createObject("commandbutton") 
obtn1.resize(60, 50) 
obtn1.flat = 1 
obtn1.fixedheight = 50 
obtn1.caption = "Click me" 
obtn1.css = "btn btn-success"

Classes

The following Boostrap classes are built into Lianja Desktop, Web and Mobile:

Class
alert
alert-danger
alert-dark
alert-info
alert-light
alert-primary
alert-secondary
alert-success
alert-warning
badge
badge-danger
badge-dark
badge-info
badge-light
badge-pill
badge-primary
badge-secondary
badge-success
badge-warning
bg-black
bg-blue
bg-cyan
bg-danger
bg-dark
bg-gray
bg-gray-dark
bg-green
bg-indigo
bg-info
bg-light
bg-orange
bg-pink
bg-primary
bg-purple
bg-red
bg-secondary
bg-success
bg-teal
bg-transparent
bg-warning
bg-white
bg-yellow
border
border-0
border-bottom-0
border-danger
border-dark
border-info
border-left-0
border-light
border-primary
border-right-0
border-secondary
border-success
border-top-0
border-warning
boxshadow
btn
btn-danger
btn-dark
btn-default
btn-info
btn-lg
btn-light
btn-link
btn-md
btn-primary
btn-secondary
btn-sm
btn-success
btn-warning
btn-xs
dropshadow
dropshadowleft
dropshadowright
flatbtn
flatbtnlast
font-italic
font-weight-bold
font-weight-light
font-weight-normal
h1
h2
h3
h4
h5
h6
label
label-big
label-danger
label-default
label-info
label-medium
label-primary
label-success
label-warning
mdc-textfield
noborder
rounded
rounded-0
rounded-big
rounded-bottom
rounded-bottom-big
rounded-bottom-medium
rounded-circle
rounded-left
rounded-left-big
rounded-left-medium
rounded-medium
rounded-right
rounded-right-big
rounded-right-medium
rounded-top
rounded-top-big
rounded-top-medium
shadow
text-blue
text-center
text-cyan
text-danger
text-dark
text-gray
text-gray-dark
text-green
text-indigo
text-info
text-left
text-light
text-orange
text-pink
text-primary
text-purple
text-red
text-right
text-secondary
text-success
text-teal
text-warning
text-white
text-yellow
well
well-lg
well-sm