Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q4 2024 cycle work #169

Open
wants to merge 30 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1781666
Initial basic styling to match PMPro v3.1
kimcoleman Nov 3, 2024
3798a28
Removing unnecessary query data
dparker1005 Nov 14, 2024
f149f42
Return early when no results, clean up whitespace
dparker1005 Nov 14, 2024
aa8a5f6
Weaving together logic for different layouts
dparker1005 Nov 14, 2024
2b43e98
Fixing div formatting
dparker1005 Nov 14, 2024
5165f66
Merge remote-tracking branch 'upstream/dev' into refactor-directory-t…
dparker1005 Nov 14, 2024
e54f32f
Whitespace and WPCS
dparker1005 Nov 14, 2024
6d93fa9
Merge pull request #164 from dparker1005/remove-unnecessary-directory…
kimcoleman Nov 15, 2024
5ae8788
Improve plugin file structure and organization
kimcoleman Nov 15, 2024
f7e0727
Initial work toward the improved profile shortcode and functions to g…
kimcoleman Nov 17, 2024
144208e
Fixing avatar size logic and removing a filter that we do not need
kimcoleman Nov 17, 2024
65aaaa6
Merge branch 'q4-2024-cycle' into refactor-directory-template
kimcoleman Nov 17, 2024
db46cb2
Fixing lost heading
kimcoleman Nov 17, 2024
56466f3
Merge pull request #165 from dparker1005/refactor-directory-template
kimcoleman Nov 17, 2024
97ec7cd
Merge branch 'q4-2024-cycle' into new-logic-for-profile-and-deprecations
kimcoleman Nov 17, 2024
3573c88
Fixing search form not to wrap in pmpro class unless used as standalo…
kimcoleman Nov 17, 2024
2276a8e
Do not filter the_title if we are in the admin
kimcoleman Nov 17, 2024
e599377
Verifying there is a permalink structure before adding a rewrite rule
kimcoleman Nov 17, 2024
d9f67d7
Cleaning up line breaks in the fields array that the block editor ver…
kimcoleman Nov 17, 2024
7489a2f
Deprecating the pmpro_member_directory_fields filter
kimcoleman Nov 17, 2024
a1bef51
Adding a location parameter to format values differently based on if …
kimcoleman Nov 17, 2024
54f2adf
Directory template using the same logic as the profile now
kimcoleman Nov 17, 2024
654db0e
Removing location parameter lets just filter some things for display …
kimcoleman Nov 17, 2024
8b8f843
Start of styling individual profile; support for shipping or billing …
kimcoleman Nov 18, 2024
47ebb8f
Flex wrap
kimcoleman Nov 18, 2024
2c87b46
Styling a bit on directory, page numbers
kimcoleman Nov 19, 2024
9ebc0ac
Styling for videos, audios
kimcoleman Nov 26, 2024
3d92688
Logic to handle only showing info about selected levels when showing …
kimcoleman Dec 1, 2024
9c3514f
Merge pull request #167 from kimcoleman/new-logic-for-profile-and-dep…
kimcoleman Dec 1, 2024
e554a9f
Wrapping the content displayed before and after hte directory for sty…
kimcoleman Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
206 changes: 180 additions & 26 deletions css/pmpro-member-directory.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
/* CSS Document */
form.pmpro_member_directory_search {
align-items: center;
display: flex;
flex-direction: row;
gap: var(--pmpro--base--spacing--small);
justify-content: flex-end;

h2#pmpro_member_directory_subheading {clear: none; margin-top: 0; }
form.pmpro_member_directory_search {float: right; margin-bottom: 1rem; clear: both; }
form.pmpro_member_directory_search input[type=text] { }
form.pmpro_member_directory_search input[type=submit] {background: none; border: none; padding: 0; position: absolute; text-indent: -9999em; }
.pmpro_form_submit {
margin: 0;
}
}

.pmpro_member_directory {clear: both; }
.pmpro_pagination {margin: 1em 0;}
Expand All @@ -24,51 +30,199 @@ div.pmpro_member_profile strong {display: block; }
.pmpro_member_directory.pmpro_member_directory-2col,
.pmpro_member_directory.pmpro_member_directory-3col,
.pmpro_member_directory.pmpro_member_directory-4col {
display: grid;
grid-column-gap: 2.9rem;
grid-row-gap: 5.8rem;
text-align: center;
display: grid;
grid-column-gap: 2.9rem;
grid-row-gap: 2.9rem;

.pmpro_card {
margin: 0;

.pmpro_card_content {
display: flex;
flex-direction: column;
gap: var(--pmpro--base--spacing--small);
margin-top: var(--pmpro--base--spacing--medium);

.pmpro_member_profile_field_label {
font-weight: 700;
}

.pmpro_member_profile_field-display_name {

h2 {
font-weight: 700;
margin: 0;
}
}
}

.pmpro_card_actions {
margin-top: auto;
}
}
}
.pmpro_member_directory.pmpro_member_directory-2col {
grid-template-columns: 1fr 1fr;
grid-template-columns: 1fr 1fr;
}
.pmpro_member_directory.pmpro_member_directory-3col {
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr;
}
.pmpro_member_directory.pmpro_member_directory-4col {
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* single directory item in list */
.pmpro_member_directory .pmpro_member_directory-item,
.pmpro_member_directory .pmpro_member_directory_row {
word-break: break-word;
}
.pmpro_member_directory_link {
word-break: normal;
.pmpro_member_directory {
.pmpro_member_directory-item {
word-break: break-word;
}

.pmpro_member_directory_row {
word-break: break-word;
}

.pmpro_member_directory_link {
word-break: normal;
}
}

/* single profile item */
.pmpro_member_profile { }
.pmpro_member_profile {

.pmpro_card_content {
display: flex;
flex-wrap: wrap;
gap: var(--pmpro--base--spacing--medium);
margin-top: var(--pmpro--base--spacing--medium);

.pmpro_member_profile_field {
box-sizing: border-box;
flex: 1 1 calc(50% - var(--pmpro--base--spacing--medium));

&:has(iframe) {
flex-basis: 100%;
height: 0;
overflow: hidden;
padding-bottom: 56.25%;
position: relative;
width: 100%;

iframe {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
}

&:has(audio) {
flex-basis: 100%;

audio {
width: 100%;
}
}

&:has(video) {
flex-basis: 100%;

video {
width: 100%;
}
}

}

.pmpro_member_profile_field_label {
font-weight: 700;
}

/* Full width profile items */
.pmpro_member_profile_field-display_name,
.pmpro_member_profile_field-description {
flex: 1 1 100%;
}

.pmpro_member_profile_field-display_name h2 {
margin: 0;
}
}
}

.pmpro_member_profile .pmpromd_filename {
display: block;
display: block;
}

@media only screen and (max-width: 767px) {
.pmpro_member_directory.pmpro_member_directory-2col,
.pmpro_member_directory.pmpro_member_directory-3col,
.pmpro_member_directory.pmpro_member_directory-4col {
grid-template-columns: 1fr;
}
.pmpro_member_directory.pmpro_member_directory-2col,
.pmpro_member_directory.pmpro_member_directory-3col,
.pmpro_member_directory.pmpro_member_directory-4col {
grid-template-columns: 1fr;
}
}

/**
* Special user field formatting.
*/
.pmpro_member_profile_field_data:has([class*="pmpro_form_field-file-subtype_"]) {

a {
align-items: center;
display: flex;
gap: var(--pmpro--base--spacing--small);

img {
max-height: 40px;
width: auto;
}
}
}

/**
* Pagination/page numbers
*/
.pmpro_member_directory_pagination {
display: flex;
justify-content: center;
align-items: center;
gap: var(--pmpro--base--spacing--small);
margin: var(--pmpro--base--spacing--medium) 0;

a {
background-color: var(--pmpro--color--base);
border: 1px solid var(--pmpro--color--border--variation);
border-radius: var(--pmpro--base--border-radius);
color: var(--pmpro--color--contrast);
padding: 2px var(--pmpro--base--spacing--small);
text-decoration: none;
transition: background-color 0.2s, border-color 0.2s, color 0.2s;

&:hover {
background-color: var(--pmpro--color--accent--variation);
border-color: var(--pmpro--color--accent--variation);
color: var(--pmpro--color--base);
}

&.pmpro_member_directory_pagination-current {
background-color: var(--pmpro--color--accent);
color: var(--pmpro--color--base);
cursor: default;
font-weight: 700;
}

&.pmpro_member_directory_pagination-previous {
margin-right: 0;
}
}

}

/* This is legacy pagination styling we can leave in here until we remove templating. */
.pmpro_page_numbers a {
padding: 6px;
padding: 6px;
}

.pmpro_page_numbers a.pmpro_page_active {
font-weight: bold;
font-weight: bold;
}
Loading