Styling
The look and feel of the pages served from the Spektrix system can be tailored to fit seamlessly with almost any website. The use of tables has been minimised and a comprehensive set of CSS classes have been included in each page to allow as much freedom as possible to web designers.
CSS Classes and ID Values
Most of the content from Spektrix comes with CSS classes defined on the html elements. You will notice, however, that many of the html elements also have id values. We do not recommend referencing elements using the id properties for styling purposes as these are auto-generated and may change in future releases of the system.
Setting the stylesheet
To apply styles to the Spektrix pages, first upload stylesheets and any accompanying resources (e.g. images) to our servers using the Website Admin interface. The default stylesheet can then be set at domain level using the Domain Specific Config.
The system allows multiple stylesheets to be uploaded in resources and a stylesheet can also be applied to an individual iframe using the ‘Stylesheet’ query string parameter in the source of the iframe. For example:
https://system.spektrix.com/clientname/website/eventlist.aspx?stylesheet=alternate-stylesheet.css
This functionality can also be used to address accessibility concerns, for example, by allowing a large font stylesheet could be uploaded as well as the standard one. This would allow for a toggle on the parent site to opt for which css to use.
How to Approach Styling the Spektrix IFrames
Please note that the Express Checkout uses a more up-to-date CSS Architecture, more details of which can be found in our guide on Styling the Express Checkout.
The easiest way to begin a Spektrix integration is to embed the iframes and make sure that all the basic linking functionality works as you want it to, as covered in the Quick Start guide. When that is working, move on to the styling.
We advise beginning the styling process by inspecting the source code within each iframe. This will show you which style classes are being used and where.
Using the standard booking flows of the iframes is a good way to structure the work of building out your stylesheet. You may find it easier to start with a more straight forward customer journey, such as the donation or membership flow, for your first pass.
Many of the styles you apply in these more simple flows will then cascade into more complicated flows such as the ticket purchase path, allowing your focus to shift naturally to the more involved styling required for unique features such as seating plans.
As you work through each flow and become more familiar with the way the iframes work, it should be clear how to approach making the iframes blend in with the website.