Skip to content

Commit f34fbfd

Browse files
authored
gw-styling-page-steps.css: Added new snippet with some sample CSS for styling page steps.
1 parent 451c100 commit f34fbfd

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
* Gravity Wiz // Gravity Forms // Styling Page Steps
3+
* https://gravitywiz.com/
4+
*/
5+
.gform_wrapper.gravity-theme form .gf_page_steps {
6+
display: flex;
7+
justify-content: space-between;
8+
border-bottom: 0;
9+
position: relative;
10+
margin-left: -20px;
11+
margin-right: -20px;
12+
flex-wrap: wrap;
13+
gap: 0.5rem;
14+
}
15+
16+
.gform_wrapper.gravity-theme form .gf_page_steps:after {
17+
content: '';
18+
position: absolute;
19+
left: 0;
20+
right: 0;
21+
top: calc( 50% - ( 5px / 2 ) );
22+
background-color: #cfd3d9;
23+
height: 5px;
24+
z-index: 1;
25+
}
26+
27+
.gform_wrapper.gravity-theme form .gf_step {
28+
margin: 0;
29+
border: 20px solid #fff;
30+
background-color: #fff;
31+
z-index: 2;
32+
}
33+
34+
.gform_wrapper.gravity-theme form .gf_step_number {
35+
background-color: #fff;
36+
position: relative;
37+
}
38+
39+
.gform_wrapper.gravity-theme form .gf_step_label {
40+
display: none;
41+
}
42+
43+
@media (max-width: 560px) {
44+
.gform_wrapper.gravity-theme form .gf_page_steps {
45+
margin-left: 0;
46+
margin-right: 0;
47+
}
48+
.gform_wrapper.gravity-theme form .gf_page_steps:after {
49+
content: none;
50+
}
51+
.gform_wrapper.gravity-theme form .gf_step {
52+
border: 0;
53+
}
54+
}
55+
56+
@media (max-width: 340px) {
57+
.gform_wrapper.gravity-theme form .gf_page_steps {
58+
justify-content: start;
59+
}
60+
}

0 commit comments

Comments
 (0)