How can we help you today?

How to Customize the Look of the Events Design Element using Custom CSS

Currently, the Events Design Element has two design styles:


default events style


But with Custom CSS, you can use an additional design style. This article demonstrates how to use Custom CSS to modify the appearance of the Events Design Element.


new events style


TABLE OF CONTENTS


Prerequisites

  • You must have the latest version of ShortPoint SPFx installed on your SharePoint environment.
  • You must be a ShortPoint Designer with an active license.
  • You must already have an Events Design Element on your page.
  • You must use [1] Style 1 as the main design style, have [2] Enable Color by Category turned on, and have [3] Group by day disabled.


properties


Interactive Tutorial

Start the interactive tutorial to learn how to modify the Events Design Element:

Below is the code used in the tutorial:


 .shortpoint-event-item {
    padding: 10px 0 0 !important;
    padding-bottom: 10px !important;
}
.shortpoint-event-time {
    position: relative !important;
    padding: 10px 0 !important;
}
.shortpoint-event-day {
    position: relative !important;
    margin-bottom: 10px !important;
    font-size: 30px !important;
    font-weight: bold !important;
    color: #f4f4f8 !important;
}
.shortpoint-event-month {
    position: relative !important;
    font-size: 14px !important;
    color: #f4f4f8 !important;
}
.shortpoint-event-title {
    position: relative !important;
    font-size: 20px !important;    
    font-weight: bold !important;
    color: #4c4b4b !important;
}
.shortpoint-event-description {
    font-size: 16px !important;
    color: #adadac !important;
}
.shortpoint-event-colorbar {
    right: 0 !important;
    background-color: currentColor !important;
    border-radius: 4px !important;
    border-width: 0 !important;
}
.shortpoint-event-content {
    padding-left: 30px !important;
}
NOTEYou are free to modify the values inside the code block according to your preferences. You can change the padding, font-size, color, and many more.

Step-by-step Tutorial

Follow the steps below to learn how to customize the Events Design Element:


Step 1: Edit the ShortPoint Web Part

  • Go to the SharePoint page you want to use and click Edit:


Edit


  • Close the Toolbox:


close icon


  • Click the Edit properties icon:


Edit properties icon


Step 2: Edit the Events Design Element


NOTEBefore proceeding, make sure you already have an Events Design Element on your page. You must also have [1] Style 1 as the main design style, have [2] Enable Color by Category turned on, and have [3] Group by day disabled. 

properties


  • Click the Events tag:


Events tag


  • Select the cogwheel icon:


Cogwheel icon


Step 3: Copy the Code

  • Copy the Custom CSS Code:


 .shortpoint-event-item {
    padding: 10px 0 0 !important;
    padding-bottom: 10px !important;
}
.shortpoint-event-time {
    position: relative !important;
    padding: 10px 0 !important;
}
.shortpoint-event-day {
    position: relative !important;
    margin-bottom: 10px !important;
    font-size: 30px !important;
    font-weight: bold !important;
    color: #f4f4f8 !important;
}
.shortpoint-event-month {
    position: relative !important;
    font-size: 14px !important;
    color: #f4f4f8 !important;
}
.shortpoint-event-title {
    position: relative !important;
    font-size: 20px !important;    
    font-weight: bold !important;
    color: #4c4b4b !important;
}
.shortpoint-event-description {
    font-size: 16px !important;
    color: #adadac !important;
}
.shortpoint-event-colorbar {
    right: 0 !important;
    background-color: currentColor !important;
    border-radius: 4px !important;
    border-width: 0 !important;
}
.shortpoint-event-content {
    padding-left: 30px !important;
}

NOTEYou are free to modify the values inside the code block according to your preferences. You can change the padding, font-size, color, and many more.


Step 4: Paste the Code

  • Click the next icon:


next icon


  • Go to the Custom CSS tab.
  • Paste the code in the field provided.

Step 5: (Optional) Customize Block Colors


NOTEThis step is only applicable for static Events Design Element. If you’re using a connected Events Design Element, you may proceed to step 6.


  • Click the back icon:


back icon


  • Go to the Items tab.
  • Click the cogwheel icon of the item you want to modify:


Cogwheel icon


  • Go to the Design tab.
  • Select the color you want to use by adding a [1] HEX code, using the [2] drop-down, or using the [3] color picker.


Color


  • Click the back icon and repeat step 5 for all the items you want to modify:


back icon


Step 6: Save

  • Click the green check mark to apply your changes.
  • Click the eye icon to see your page in real-time:


eye icon


  • Save your changes:


Save


  • Publish your page:


Publish


Congratulations! You now have an additional design style you can use for the Events Design Element:


new design

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 13 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more