-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge github.com:impress-org/give into epic/events-GIVE-265
- Loading branch information
Showing
32 changed files
with
248 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
declare module '*.svg'; | ||
declare module '*.module.css'; | ||
declare module '*.module.scss'; | ||
declare module '*.png'; | ||
// this makes the wp or window.wp global variable available in the eyes of TypeScript | ||
declare var wp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/DonationForms/FormDesigns/TwoPanelStepsFormLayout/TwoPanelStepsFormLayout.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace Give\DonationForms\FormDesigns\TwoPanelStepsFormLayout; | ||
|
||
use Give\Framework\FormDesigns\FormDesign; | ||
|
||
/** | ||
* @unreleased | ||
*/ | ||
class TwoPanelStepsFormLayout extends FormDesign | ||
{ | ||
protected $isMultiStep = true; | ||
|
||
/** | ||
* @unreleased | ||
*/ | ||
public static function id(): string | ||
{ | ||
return 'two-panel-steps'; | ||
} | ||
|
||
/** | ||
* @unreleased | ||
*/ | ||
public static function name(): string | ||
{ | ||
return __('Two Panel (Steps)', 'give'); | ||
} | ||
|
||
/** | ||
* @unreleased | ||
*/ | ||
public function css(): string | ||
{ | ||
return GIVE_PLUGIN_URL . 'build/twoPanelStepsFormLayoutCss.css'; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/DonationForms/FormDesigns/TwoPanelStepsFormLayout/css/_container.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.givewp-donation-form { | ||
--two-panel-header-width: 42.5rem; | ||
|
||
align-items: flex-start; | ||
gap: var(--givewp-spacing-2); | ||
display: flex; | ||
flex-direction: row; | ||
margin: auto; | ||
max-width: calc(var(--two-panel-header-width) + 35.5rem); | ||
padding: 0; | ||
width: 100%; | ||
|
||
@media screen and (max-width: 71.5rem) { | ||
border: solid 1px var(--givewp-grey-25); | ||
border-radius: var(--givewp-rounded-8); | ||
box-shadow: var(--givewp-shadow-sm); | ||
flex-direction: column; | ||
gap: 0; | ||
max-width: 35rem; | ||
} | ||
|
||
@media screen and (max-width: 36rem) { | ||
margin: 0.5rem; | ||
max-width: calc(100% - 1rem); | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
src/DonationForms/FormDesigns/TwoPanelStepsFormLayout/css/_header.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.givewp-layouts { | ||
&-header { | ||
max-width: var(--two-panel-header-width); | ||
text-align: center; | ||
width: 100%; | ||
|
||
@media screen and (min-width: 71.5rem) { | ||
border: solid 1px var(--givewp-grey-25); | ||
border-radius: var(--givewp-rounded-8); | ||
box-shadow: var(--givewp-shadow-sm); | ||
} | ||
} | ||
|
||
&-headerTitle { | ||
margin-bottom: var(--givewp-spacing-3); | ||
} | ||
|
||
&-headerDescription { | ||
margin-bottom: var(--givewp-spacing-10); | ||
} | ||
|
||
.givewp-layouts-header__templates-ms { | ||
padding-bottom: 2rem; | ||
|
||
&--background { | ||
.givewp-layouts-header__content { | ||
position: static; | ||
margin-bottom: 0; | ||
} | ||
|
||
.givewp-layouts-headerImage { | ||
|
||
img { | ||
position: absolute; | ||
left: 0; | ||
bottom: 0; | ||
height: 100%; | ||
min-height: 100%; | ||
border-radius: var(--givewp-rounded-8); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
src/DonationForms/FormDesigns/TwoPanelStepsFormLayout/css/_sections.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.givewp-donation-form__steps { | ||
@media screen and (max-width: 71.5rem) { | ||
border-radius: 0; | ||
box-shadow: none; | ||
} | ||
} | ||
|
||
.givewp-layouts-section { | ||
margin-bottom: 0; | ||
|
||
&__fieldset { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--givewp-spacing-6); | ||
} | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
src/DonationForms/FormDesigns/TwoPanelStepsFormLayout/css/main.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@layer form-design { | ||
@import 'container'; | ||
@import 'sections'; | ||
@import 'header'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.