Skip to content

Commit 6723b72

Browse files
authored
Merge pull request #73 from PayButton/fix/unlocked-content-indicator-mobile-view
Fix 'Unlocked Content Indicator' for Mobile View
2 parents 8e83fff + 466cf34 commit 6723b72

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

assets/css/paywall-styles.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,33 @@
44
margin: 2rem 0;
55
color: var(--pb-unlocked-indicator-color); /* Line + text color */
66
font-family: inherit;
7-
font-weight: 800; /* Strong text */
87
font-size: 1rem;
8+
text-align:center;
9+
}
10+
11+
/* Mobile override rule */
12+
@media (max-width: 600px) {
13+
.unlocked-indicator {
14+
font-size: 9px;
15+
}
916
}
1017

1118
.unlocked-indicator::before,
1219
.unlocked-indicator::after {
1320
content: "";
14-
flex: 1;
21+
flex: 1 1 auto;
22+
min-width: 20px;
1523
height: 1px;
1624
background: currentColor; /* Uses the same color as the text */
1725
}
1826

1927
.unlocked-indicator span {
28+
display: inline-block;
2029
padding: 0 1rem; /* Space between text and lines */
30+
word-break: break-word;
2131
}
2232

23-
/* Show Unlock Count on Front-end */
33+
/* Show Unlock Count on the Front-end */
2434
.pb-frontend-unlock-count {
2535
color: var(--pb-frontend-unlock-color, #0074C2);
2636
margin-bottom: 1em;

0 commit comments

Comments
 (0)