Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.




Overcome a LibCal shortcoming of relying on users being able to distinguish certain colour combinations to convey different states of room availability 
The CSS below can be added via LibCal Look & Feel settings As instructed under Code Customizations, do not forget to wrap style tags, ie <style>... all this good stuff ...</style>
The default colors are available via Reset to System Defaults
  available: #14951F;
  available-hover: #095212;
  yourbooking: #F59F16;
  unavailablepadding: #C91908;
:root {
  /* The following colours provide a little more contrast than the defaults, and for stripes defines a colour, angle and background size */
  --available: #43BF43;
  --available-hover: #14951F;
  --yourbooking: #F9BE4F;
  --yourbookingalt: #AA8A60; /* for CSS stripes */
  --stripeAngle: 45deg;
  --backgroundSize: 100%;
  --stripeThickness: 1%; /* CSS stripe thickness */
  --unavailablepadding: #7A0814; /* darker hues may be more semantic */

/* Add stripes to Your booking with and */
.s-lc-eq-pending, .label-eq-pending, .s-lc-eq-period-pending {
  border-color: var(--yourbooking) !important;
			var(--stripeAngle, 45deg), 
			var(--yourbooking, #F9BE4F) 0 var(--stripeThickness, 1%), 
			var(--yourbookingalt, #AA8A60) 0 calc(2 * var(--stripeThickness, 1%))
		background-size: var(--backgroundSize, 100%);
/* Zero the left and right borders for stripes to cover the maximum width of the cell  */
.fc-timeline-event {
  border-width: 1px 0;

/* Tweak the solid colour for unavailable / padding */
.s-lc-eq-checkout, .label-eq-unavailable, .s-lc-eq-period-booked {
    background-color: var(--unavailablepadding) !important;
    border-color: var(--unavailablepadding) !important;

/* Tweak the solid colour for available */
.s-lc-eq-avail, .label-eq-avail, .s-lc-eq-period-available {
    background-color: var(--available) !important;
    border-color: var(--available) !important;
/* Tweak the solid colour for hover on available */
.s-lc-eq-avail:hover, .s-lc-eq-period-available:hover {
    background-color: var(--available-hover) !important;
    border-color: var(--available-hover) !important;