Advanced CSS Overrides
Last updated
Was this helpful?
Last updated
Was this helpful?
Whilst we surface as many practical styling settings as possible in App Settings, there are instances where you might want to change the design of more intricate components in your Experience.
Navigate to App Settings → Styles → Advanced → CSS override block and insert the following CSS:
Hit Save Changes at the bottom of the screen. You now have a class named "specialPoll" which is applied to any Elements you assign "specialPoll" in your Project.
Inside your class there's another class called "fk-element-title" which is a FanKit class (see more FanKit classes in the FanKit Storybook). We've then given it the font size of 26 pixels.
Hit Save Changes at the bottom of the screen. Any Elements with "specialPoll" applied will now have a 26 pixel title font!
Let's also give all "specialPoll" Elements some extra visual candy by making them indented with rounded corners and a drop shadow. In your CSS override block add the following beneath our previous CSS additions:
This will first target the FanKit class "element-layout" which applies to all Elements. Then it looks inside those Elements to see if our "specialPoll" class is applied. Each individual line of styling afterwards is applied to all applicable Elements.
Hit Save Changes at the bottom of the screen. Any Elements with "specialPoll" applied will now have a drop shadow, rounded corners and a slight indent!
To find which component you wish to customise you can use Storybook or your browser's "inspect" tools. For this example we'll change the "Sign in" button, which has the class name fk-profile-button
Navigate to App Settings → Styles → Advanced → CSS override block and insert the following CSS:
The class selector targets the FanKit class "fk-profile-button" in the first line. Inside the braces { }
we have changed the border-radius property to 32 pixels, which will round the corners of this component.
Hit Save Changes at the bottom of the screen. If you have turned on the "Sign in" button on your Experience, you'll see it now has rounded corners!