Commit graph

167 commits

Author SHA1 Message Date
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
Kelly Dwan 3ebc219416
Remove build files (#19)
* Remove build CSS files

* Ignore built files

* Remove call to RTL styles
2019-10-07 15:59:38 -04:00
Ian Dunn 883ed29374
Theme: Align header text left on mobile. 2019-10-05 09:48:26 -07:00
Kelly Dwan 7a355b8314
Theme: Fix interior page layout (#18)
Fixes #4
2019-10-04 11:32:57 -04:00
Kelly Dwan e20a834cb0
Use columns block for the parallelogram style (#16)
This avoids the complex mutliply-nested blocks and makes the block style less reliant on a custom class. On mid-sized screens, we switch to plain horizontally-overlapping rectangles, and on small screens we stack the columns, and vertically-overlap.

Also, remove the parallelogram styles from the editor display. The skew and positioning don't work well in the editor context.
2019-10-03 15:09:06 -04:00
Kelly Dwan f8558fe9c2
More blocks styles moved to the appropriate object/utilities folders
Simplifies pullquote and fixes the issues with editor styles; move color classes utilities.
2019-10-02 17:08:14 -04:00
Kelly Dwan e6b3fbd989
Move blocks and block styles to the correct places in the CSS structure
There should be no visual changes
2019-10-02 15:54:45 -04:00
Kelly Dwan ef8c78f4f3
Update and document CSS structure
Looking at ITCSS, it appears the last level should be `utilities`. Since that's a name that has no negative connotations, let's use that instead. Also add a README documenting each folder's use.
2019-10-02 10:57:31 -04:00
Kelly Dwan c8211bf6a0
Update packages to latest
Removes es6-promise, which is not necessary for local development (we're all on a modern version of node).
Moves the sass file generation to a separate function, the current IIFE method is not clear.
Update autoprefixer's browserlist to use the core WordPress configuration
Add a default task, and map grunt in npm scripts
2019-10-01 16:51:52 -04:00
Kelly Dwan ec4afa649d
Check that register_block_style exists
This function is not in core WordPress yet, so we should check for it in case Gutenberg is deactivated.
2019-10-01 13:45:31 -04:00
Kelly Dwan 30b7c0786e
Fix phpcs errors 2019-10-01 13:44:45 -04:00
Ian Dunn 1db9ec9203
Theme: Add editor styles. 2019-09-26 15:38:53 -07:00
Ian Dunn a197adc6e2
Theme: Add WIP styles for About page. 2019-09-26 15:38:53 -07:00
Ian Dunn 7b45a8c1c1
Theme: Move above pub/ folder to avoid clutter from sync commits. 2019-09-24 16:49:35 -07:00
Ian Dunn de191e098b
Theme: Initial commit.
This was forked from `pub/wporg-main` and `pub/wporg-plugins`, and then customized.
2019-09-24 16:23:39 -07:00