Progress Bar Block

Learning WordPress

Is awesome100%

My Favorite CSS Book

90%

CSSIgniter Client Project

61%

JavaScript

is a mess. But it’s cool.45%

Settings

This section will help you set up the block. Let’s check out the available options.

  1. Percentage: Set the “completed” percentage on the bar.
  2. Display percentage: Show a numeric representation of the percentage value on the bar.
  3. Title Bottom Margin: Control the spacing between the bar and its title.
  4. Title Font Size: Control the font size of the title text either via a drop down of preset values or by setting an exact pixel value in the input.
  5. Bar Text Font Size: Control the font size of the bar’s text either via a drop down of preset values or by setting an exact pixel value in the input.

Notice that the Font Size and Alignment options have three icons next to the label. These are the Desktop, Tablet and Mobile icons. By clicking each icon you can separately modify the control’s values for each device.


Block Appearance

Under the block appearance tab you can control how the block looks. Let’s check out the options.

  1. Title Text Color: This option allows you to set the color for the title text.
  2. Bar Text Color: This option controls the color of the text on the bar.
  3. Progress Background Color: This option controls the background color of the “completed” section of the bar.
  4. Bar Background Color: This option controls the background color of the rest of the bar.
  5. Block Background Color: This option controls the background color of the entire block.
  6. Border: This option allows you to select the border style via the drop down and then select the border color and width.
  7. Border Radius: This option allows you to round the block’s corners.
  8. Box Shadow: This option allows you to apply an inset/outset box shadow, its color, spread, blur radius and offset.
  9. Padding: With this option you can individually control the padding on each side of the block.
  10. Margin: With this option you can individually control the margin on each side of the block.

Notice that the Padding and Margin options have three icons next to their label. These are the Desktop, Tablet and Mobile icons. By clicking each icon you can separately modify the values of padding/margin for each device.


Visibility Settings

Via the Visibility Settings you can hide the block for certain type of device or user.

The Viewport visibility toggles allow you to hide the block on desktops, tablets and mobiles. You can choose to hide it on more than one device type.

The Authentication visibility toggles allow you to display the block only to logged in or logged out users.