|
BreezingForms 1.6.5 introduces the ability to select and customize themes for forms. This feature is only available in QuickMode. Tutorial introduction: ThemesCurrently, QuickMode provides 2 themes. Qmtheme, a clean, light-blue theme, and Default, which has no color scheme. Both themes can be easily customized via CSS. Themes can be found on the tab Advanced, under Other Options > Theme.
1. Creating ThemesThemes are located in components/com_facileforms/themes/quickmode of your BreezingForms installation. To create a new theme, simply copy the "default" theme folder and paste it in the same themes/quickmode directory. In the example below, the new theme folder has been renamed to "newtheme". Important: Back up your themes when updating or reinstalling BreezingForms.2. Styling themesStyling elements using CSSA basic knowledge of CSS in recommended in order to follow this step. If you're not familiar with CSS, take a time to learn about it here.Each QuickMode theme has an external style sheet called theme.css located in components/com_facileforms/themes/quickmode/theme_name/theme.css. With this file, you can control several aspects of a form design. In this example, a different color scheme will be used for "newtheme". The CSS selectors of the main form elements and their respective properties are represented below: FieldsetsThe box around the related form elements. .bfQuickMode fieldset {
padding: 10px 10px 0px 10px;
border: 1px solid #dfe5c1;
margin: 0px 0px 10px 0px;
width: auto;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
LegendsThe caption for the fieldset element. .bfQuickMode legend {
padding: 5px;
background: #bbdd98;
color: #fff;
font-size: 120%;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
Inline LegendsFor legends of fieldsets inside other fieldsets. .bfQuickMode fieldset fieldset legend {
background: #fff;
color: #bbdd98;
font-size: 110%;
}
Input fields and textareasInput types/elements affected: text, password, select and textarea. .bfQuickMode input[type=text], .bfQuickMode input[type=password], Form element backgrounds<p> and <span> tags are used to wrap groups of legend and input. .bfQuickMode p.bfElemWrap {
padding: 5px;
margin: 0px 0px 10px 0px;
background: #f1fed6;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.bfQuickMode span.bfElemWrap {
padding: 5px;
background: #f1fed6;
margin: 0px 10px 10px 0px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
ButtonsThis will change the appearance of any regular button in a form. .bfQuickMode input[type='submit'], .bfQuickMode input[type='reset'] {
padding: 2px 5px 2px 5px;
margin: 0px;
outline: none;
color: #fff;
font-weight: bold;
font-size: 100%;
background: #6c8b2e;
text-shadow:#000 0px 0px 2px;
border: 1px solid #394918;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
Error Messages.bfQuickMode .bfErrorMessage {
background: #ffeded;
font-weight: bold;
float: none;
display: block;
color: red;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
The new customized QuickMode theme.
Styling Elements in the BackendQuickMode allows the customization of certain form elements directly in the backend. To customize an element, simply select one in the tree and in Element properties make the necessary changes. The table below shows the types of element and their customizable attributes:
Example of customized element. Notice that the input Phone/Fax has had the attributes Value, Size and Max. length modified.
In qmtheme, form elements such as textfields and textareas have a 2px padding and 1px border by default. In the picture above, the width of Phone/Fax has been set to 110px. Therefore, the real width of Phone/Fax is 116px. Form EffectsTo enabled effects, go to the tab Advanced > Other Options and select the desired option. A browser with <video> support is required to watch the video examples below.Example of Fading effect on form entry. Example of Rollover effect (enabled by default) |


Important: Back up your themes when updating or reinstalling BreezingForms.
