This information is for Developers/Designers who are writing CSS for the quickorder portal shop system. The template has been designed to allow for ease of styling and at the same time offering the CSS hooks and HTML wrappers required to achieve almost any design required.
Please see the FreeStyle Quick Start page to get started quickly, then come back here to learn about the template.
There are a few constants with regard to this template that directly affect how your CSS will render.
<h1> <p> <strong> <em> are all defined in the main CSS file. A style sheet (default.css) is provided if you prefer not to start from scratch.class and idThe first thing to do is understand how you will include your custom CSS files in the template:
style.css or script.js, you can also create files under the static folder if you want to organise your files eg. css/ie.cssIt is impossible to author CSS without getting to know the markup. This is broken up into 3 main sections.
It is useful to read these sections to get an idea of how the HTML is structured however you can skip right to a list of the various CSS hooks available to you here.
You can use one of the image button sets with FreeStyle or (ideally) use the Blank button set to get regular browser buttons. You can style these with CSS in all manner of ways. The following CSS will make a regular button use a background image and hide the standard text:
input.submit {
overflow: hidden;
width: 150px;
height: 33px;
text-indent: -999px; /* hides the regular text */
background: url(submit-button.png) no-repeat left top; /* replace 150x33 pixel area with image of button */
cursor: pointer; /* make the button appear clickable on hover */
}
/* you can swap out the background image on hover aswell to highlight it */
input.submit:hover {
background: url(submit-button-hover.png) no-repeat left top;
}