Skip to content

Commit 91c4e22

Browse files
author
RobynKhan
committed
Improved Documentation and Code Comments
1 parent 56cce62 commit 91c4e22

7 files changed

Lines changed: 2340 additions & 1993 deletions

File tree

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1+
/* Reading progress indicator: fixed thin bar at top of viewport showing read progress */
12
#tdf-reading-progress {
2-
position: fixed;
3-
top: 0;
4-
left: 0;
5-
width: 0;
6-
height: 4px;
7-
z-index: 100000;
8-
transition: width 0.08s linear;
3+
position: fixed; /* fixed to viewport */
4+
top: 0; /* sits at very top unless admin bar present */
5+
left: 0; /* starts at left edge */
6+
width: 0; /* updated via JS to indicate progress */
7+
height: 4px; /* thin visible bar */
8+
z-index: 100000; /* ensure above most content */
9+
transition: width 0.08s linear; /* smooth width animation */
910
}
1011

1112
.admin-bar #tdf-reading-progress {
13+
/* shift down when WP admin bar is visible */
1214
top: 32px;
1315
}
1416

1517
@media screen and (max-width: 782px) {
1618
.admin-bar #tdf-reading-progress {
19+
/* taller admin bar on small screens */
1720
top: 46px;
1821
}
1922
}

wp-content/themes/the-digital-front-child/acf-json/group_opinion_fields.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@
77
"label": "Author Bio",
88
"name": "author_bio",
99
"type": "textarea",
10-
"required": 0
10+
"required": 0,
11+
"instructions": "Short author bio shown on opinion posts (keeps to ~50 words)"
1112
},
1213
{
1314
"key": "field_pull_quote",
1415
"label": "Pull Quote",
1516
"name": "pull_quote",
1617
"type": "textarea",
17-
"required": 0
18+
"required": 0,
19+
"instructions": "Optional short pull quote used in opinion listings and cards"
1820
},
1921
{
2022
"key": "field_related_article",
2123
"label": "Related Article",
2224
"name": "related_article",
2325
"type": "relationship",
2426
"post_type": ["article"],
25-
"required": 0
27+
"required": 0,
28+
"instructions": "Select an `article` to link this opinion to for context"
2629
}
2730
],
2831
"location": [

0 commit comments

Comments
 (0)