Styling Page Steps

Code

Filename: gw-styling-page-steps.css

/**
 * Gravity Wiz // Gravity Forms // Styling Page Steps
 * https://gravitywiz.com/
 */
.gform_wrapper.gravity-theme form .gf_page_steps {
	display: flex;
	justify-content: space-between;
	border-bottom: 0;
	position: relative;
	margin-left: -20px;
	margin-right: -20px;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gform_wrapper.gravity-theme form .gf_page_steps:after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% - (5px / 2));
	background-color: #cfd3d9;
	height: 5px;
	z-index: 1;
}

.gform_wrapper.gravity-theme form .gf_step {
	margin: 0;
	border: 20px solid #fff;
	background-color: #fff;
	z-index: 2;
}

.gform_wrapper.gravity-theme form .gf_step_number {
	background-color: #fff;
	position: relative;
}

.gform_wrapper.gravity-theme form .gf_step_label {
	display: none;
}

@media (max-width: 560px) {
	.gform_wrapper.gravity-theme form .gf_page_steps {
		margin-left: 0;
		margin-right: 0;
	}

	.gform_wrapper.gravity-theme form .gf_page_steps:after {
		content: none;
	}

	.gform_wrapper.gravity-theme form .gf_step {
		border: 0;
	}
}

@media (max-width: 340px) {
	.gform_wrapper.gravity-theme form .gf_page_steps {
		justify-content: start;
	}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.