Commit graph

61 commits

Author SHA1 Message Date
Kelly Dwan 4ef41983af
Theme: Prevent button block styles from bleeding into pledge form
This fixes an issue where adding the button block classes to the pledge form was creating double-button styles. This also fixes a mistakenly removed class on the remove contributor button.

Follow up to 5d76b97557
2024-08-28 10:44:39 -04:00
Paul Kevan 7578f662ab
Badges: add core performance team badge. (#269)
Fixes #230.
2024-07-11 12:07:14 +01:00
Paul Kevan 554347ac52
Sync with base theme. (#264) 2024-06-27 15:01:03 +01:00
Paul Kevan 26e6def921
Add custom CSS for sustainability team badge. (#261)
Fixes #258.
2024-06-26 13:34:00 +01:00
Benjamin Zekavica 2ee6d9d767
Tweak CSS to preserve shape of circle (#231)
Previously, longer team names would cause it to be squished into more of an oval.
2023-10-18 16:45:42 -07:00
Paul Kevan 28c807b33c
Update _alignfull.scss (#232)
Reduce scope of alignfull class, due to use in global footer.

See: https://a8c.slack.com/archives/C0393K4ADM3/p1697642953336279?thread_ts=1697614571.486719&cid=C0393K4ADM3
2023-10-18 16:49:19 +01:00
Ian Dunn 94d979f8a4
Theme: Add gap between page-header-controls forms.
Fixes #175
2022-05-03 17:04:50 -07:00
Ian Dunn 71857b42eb
Theme: Merge page-header-controls styles for clarity. 2022-05-03 16:52:33 -07:00
Ian Dunn d86c93c67e
Theme: Add temporary badge for Photos to fill empty icon.
There isn't a badge for the Photos team yet -- see https://meta.trac.wordpress.org/ticket/5981 -- so for now I just used the `camera` dashicon that Luke Carbis suggested in https://meta.trac.wordpress.org/ticket/5988.

We can update it whenever the final badge icon/colors are decided.

Fixes #171
2022-03-28 15:12:45 -07:00
Ian Dunn c8a6ee5ddf
Theme: Specify home pullquote font on mobile for readability.
Fixes #165
2022-03-28 14:07:21 -07:00
Corey McKrill 174a0381d6
Theme: Add support for Openverse team, fix Themes Team badge
This syncs `r17406-dotorg` to the canonical Git repo.
2022-03-18 12:42:05 -07:00
Ian Dunn 145047cafa
Pledges: Tweak spacing & typography
Related: 7174ae2
2021-05-11 13:41:56 -07:00
Ian Dunn 7174ae2fb6
Single Pledge: Add intro message to pledges for clarity. 2021-05-04 08:52:23 -07:00
Kelly Dwan 7847fb546a
Theme: Sync change from wporg base theme 2020-06-11 11:36:55 -04:00
Steven Dufresne ba529d54f7
Overwrite Gutenberg link button hover/visited styles. 2020-04-24 09:51:52 -07:00
Kelly Dwan b1cbcdb01b
Theme: Fix text overlap in parallelograms when font is small
This uses pixels to set a padding because the positioning is done in pixels, so the overlap is static pixels, not related to the font size.

Fixes #73
2019-12-16 17:06:00 -05:00
Kelly Dwan a91c2733d2
Pledge Management: Add "request link" form to the manage pledge (#126)
When a pledge is selected but the auth token is missing/incorrect, show the email form. Like on the pledge page, submitting the correct email will trigger a new auth token + link to be emailed to the pledge manager. This makes for a clearer path for re-requesting a valid link.

Fixes #114
2019-12-11 16:12:23 -05:00
Kelly Dwan bdbf6d573e
Pledge Management: Allow pledge admins to remove the pledge (#123)
* Rename generic "frontend" file to dialog

* Add a "remove pledge" action

* Process pledge deactivation

* Trigger an email on user-initiated pledge deactivation

* Show an error when trying to manage a deactivated pledge

* Add a label for "deactivated" pledges
2019-12-10 14:07:48 -05:00
Kelly Dwan 619af97bd1
Forms: Use button class directly on buttons for consistent display
Adding the `button` mixin into `input[type="submit"] caused conflicts with the other button classes (`.button-primary`) due to specificity. The button classes should be used on all buttons instead. This also updates which button on the Manage Pledge form is the "primary" action, since it's easy to skip the Update button when it's not primary.
2019-12-09 11:15:39 -05:00
Kelly Dwan 80b88399ae
Manage Pledge: Allow pledge admins to change email (#113)
* Add the admin email field to the manage form
* Fix admin email processing: When the email is changed, the pledge needs to be set back to pending, until the email is re-confirmed
* Send confirmation emails for existing pledges to the "Manage Pledge" page
* Process the email confirmation & resending emails actions on both shortcodes
* Add a message for unconfirmed pledges
2019-11-26 15:37:19 -05:00
Kelly Dwan 544fe39199 Manage Pledge: Enable pledge admins to edit contributors from manage form (#108)
* Add contributor management to manage form
* Check `pledge_id` to prevent returning all contributors
* Return a plain text error string – this is used in an alert box, so it can't contain HTML
* Hide confirmation when pledge is a draft
* Only enqueue script if the user is authorized
2019-11-26 13:08:42 -05:00
Kelly Dwan a11e3c5fa5
Manage Pledge: Update email dialog to use JS submission (#104)
Use the proper dialog behavior for submitting an email to generate a manage link.

Fixes #98.
2019-11-21 15:31:29 -05:00
Kelly Dwan 72b5a159c9
Sync with pub/wporg r9248 2019-11-20 12:06:11 -05:00
Ian Dunn 7bcc82286c Theme: Display the Edit Pledge shortcode on individual pledges.
Fixes #5
2019-11-12 08:35:06 -08:00
Kelly Dwan 469e3437b1
Pledge List: Fix margin overflow when only 1 contributor on a pledge
Fixes #95
2019-11-08 17:20:45 -05:00
Kelly Dwan beb2db453e
My Pledges: Add border only when multiple pledge lists exist 2019-11-08 17:14:14 -05:00
Kelly Dwan 18cf186cc4
Update quote in quote block
Fixes #74
2019-11-01 11:30:59 -05:00
Kelly Dwan a5f96240f1
Pledge List: Fix alignment of contributors (again)
Fixes #66
2019-11-01 11:21:50 -05:00
Ian Dunn 27a8080424
Pledge List: Add vertical padding between rows of contributors. 2019-11-01 05:17:08 -05:00
Kelly Dwan 1fad6f0eaa
Pledge List: Fix alignment of contributors
Fixes #66
2019-10-30 14:48:59 -05:00
Kelly Dwan 0b26fad482
My Pledges: Update styles and format to match design
- Add a single-pledge view so we can separate out the pending from published
- Update layout and styles of my pledges list
- Adds link and danger button styles
2019-10-30 13:24:48 -05:00
Kelly Dwan 2b7fb6cd21
Theme: Rename file
SCSS files should use `-` as word separators
2019-10-30 13:13:03 -05:00
Ian Dunn 1c6d39cd2a
Theme: Add basic styles for My Pledges page.
There's more work to do here, but this gets us close enough to start beta testing.

See #56
2019-10-29 12:54:22 -07:00
Kelly Dwan bc867a344e
Pledge List: Style search results 2019-10-28 20:37:09 -04:00
Kelly Dwan aa8b1838cd
Pledge Form: Use agreement text as label content
This calls more attention to the agreement text, and correctly associates it with the input for screen reader users.
2019-10-28 20:09:38 -04:00
Kelly Dwan f49a938c1e
Theme Search: Fix search box alignment 2019-10-28 20:04:03 -04:00
Kelly Dwan c367a00071
Pledge List: Style pagination 2019-10-28 19:58:22 -04:00
Kelly Dwan 14ed8d4d6b
Pledge List Filters: Update style and add filter on-change functionality
- Style search box & filter dropdown
- Enable sort filter on select change
- Fix some PHP notices
2019-10-28 19:39:16 -04:00
Kelly Dwan 5b5a1d50ff
Pledge List: Fix grid layout for small screens 2019-10-28 18:21:59 -04:00
Kelly Dwan ac1027b550
Homepage: Fix contributor highlight section 2019-10-28 18:21:54 -04:00
Kelly Dwan c6c4baf62b
Theme: Fix heading level styles 2019-10-28 17:02:45 -04:00
Kelly Dwan 840ae50ac5
Theme: Tweak paralleogram styles 2019-10-28 16:58:39 -04:00
Corey McKrill dbdcf26bd9 Theme: Single pledge view (#43)
* Theme: Create template part for single pledge

* Plugin: Add functions for handling xprofile data

* Plugin: Add helper function for getting contributor user objects

* Theme: Display aggregated contributor data on single pledge view

* Theme: Add functions, markup, and styles to show team badges

* Theme: Add badge for Test team

* Theme: Add tentative URL for report a pledge link

* Theme: Add support for post thumbnails

* Theme: Add org logo to single pledge view

* Theme: Update `$content_width` to 960

This matches the width of the content in the global header and
the About page.

* Move pledge template to a file used by the template heirarchy

* Clean up some PHPCS errors

* Move pledge structure out to just the list items

* Create file for single pledge styles

* style badge grid into a grid.

* Add a custom image size for the logo

* Update styles

* Un-hide pledges with no confirmed contributors

* Fix content width
2019-10-28 13:38:49 -04:00
Kelly Dwan 553247cbf7
Pledge List: Display pledges in list with sort and search ability (#33)
* Use the post-type when choosing template partial
* Add pledge archive templates
* Style pledge list page
* Style individual pledge
* Use pledge featured image for the logo
* Fix aspect ratio of image
* Add real contributors to the pledges
* Enable sorting and searching of pledges
* Add pledge sorting markup
* Style the page header
* Restrict any pledges with no contributors from being shown on the frontend
* Update contributor count key name
2019-10-25 16:34:46 -04:00
Kelly Dwan 157b73e13f
Homepage: clean up item positioning
- Remove accidental drop-shadow (mistake in Figma)
- Use the correct fonts for callout text
- Switch to a fixed width of rems over percentages to make alignment easier
- Use rems to outdent quote so it lines up with the edge of the photo
- Overlap the blue box + photo on larger screens, and offset the quote down
- Remove unused selectors
- Fix quote display in the editor
2019-10-24 13:10:40 -04:00
Ian Dunn 78822c4323
Theme: Iterate on pullquotes and other hero areas.
See #2.
2019-10-18 14:29:26 -07:00
Ian Dunn 9c700e59cb
Theme: Iterate on About fonts and block styles. 2019-10-18 09:19:27 -07:00
Kelly Dwan fd40341aaa
Update color variables to match core 2019-10-09 14:39:48 -04:00
Kelly Dwan 0f675ae6c3
Create Pledge: Make form functional (#31)
This broadly enables & styles the pledge forms across the frontend and wp-admin.

- Switches field `readonly` control to a variable called `$readonly`
- Create `PledgeMeta\get_pledge_meta()` which will fetch data from `$_POST`, a pledge post, or defaults.
- Add Number of Employees field
- Update form content to match mockup:
  - fields now have help text
  - success message uses content from mockup
  - logo field is moved to the "org info" section
- Style form in theme, add some similar styles to the admin

Fixes #7, fixes #28
2019-10-08 18:29:35 -04:00
Kelly Dwan b08effbe8b
Move layout-related code to separate component files 2019-10-07 17:11:35 -04:00