Skip to content

Commit

Permalink
add styling for embedded ecard
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelT372 committed Nov 12, 2024
1 parent 6764b85 commit 1597466
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 10 deletions.
20 changes: 17 additions & 3 deletions dist/engrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Tuesday, November 5, 2024 @ 21:19:26 ET
* By: fernando
* Date: Tuesday, November 12, 2024 @ 08:34:34 ET
* By: michael
* ENGrid styles: v0.19.15
* ENGrid scripts: v0.19.14
*
Expand Down Expand Up @@ -9020,8 +9020,22 @@ body[data-engrid-debug]:before{
margin-bottom:0 !important;
}
}
[data-engrid-theme=engrid-ran3] .en__field--NOT_TAGGED_60>label{
margin-top:20px;
}
[data-engrid-theme=engrid-ran3] .en__field--NOT_TAGGED_60>label,[data-engrid-theme=engrid-ran3][data-engrid-embedded-ecard=true] h2{
color:var(--h4_color);
font-family:var(--h4_font-family);
font-size:var(--h4_font-size);
font-weight:var(--h4_font-weight);
line-height:var(--h4_line-height);
text-transform:var(--h4_text-transform);
}
[data-engrid-theme=engrid-ran3][data-engrid-embedded-ecard=true] .en__ecardmessage__default,[data-engrid-theme=engrid-ran3][data-engrid-embedded-ecard=true] textarea{
border:var(--input_border-width) solid var(--input_border-color);
}

body[data-engrid-page-type=donation][data-engrid-payment-type=paypal]:not([data-engrid-currency-code=USD]) .en__submit,body[data-engrid-page-type=donation][data-engrid-payment-type=paypaltouch]:not([data-engrid-currency-code=USD]) .en__submit,body[data-engrid-page-type=premiumgift][data-engrid-payment-type=paypal]:not([data-engrid-currency-code=USD]) .en__submit,body[data-engrid-page-type=premiumgift][data-engrid-payment-type=paypaltouch]:not([data-engrid-currency-code=USD]) .en__submit,iframe[src*=fluidads]{
[data-engrid-theme=engrid-ran3][data-engrid-embedded-ecard=true] .en__ecarditems__showprev,body[data-engrid-page-type=donation][data-engrid-payment-type=paypal]:not([data-engrid-currency-code=USD]) .en__submit,body[data-engrid-page-type=donation][data-engrid-payment-type=paypaltouch]:not([data-engrid-currency-code=USD]) .en__submit,body[data-engrid-page-type=premiumgift][data-engrid-payment-type=paypal]:not([data-engrid-currency-code=USD]) .en__submit,body[data-engrid-page-type=premiumgift][data-engrid-payment-type=paypaltouch]:not([data-engrid-currency-code=USD]) .en__submit,iframe[src*=fluidads]{
display:none;
}
body{
Expand Down
4 changes: 2 additions & 2 deletions dist/engrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Tuesday, November 5, 2024 @ 21:19:26 ET
* By: fernando
* Date: Tuesday, November 12, 2024 @ 08:34:34 ET
* By: michael
* ENGrid styles: v0.19.15
* ENGrid scripts: v0.19.14
*
Expand Down
6 changes: 3 additions & 3 deletions dist/engrid.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/engrid.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions src/sass/themes/ran3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1670,4 +1670,34 @@
}
}
}

.en__field--NOT_TAGGED_60 > label {
margin-top: 20px;
color: var(--h4_color);
font-family: var(--h4_font-family);
font-size: var(--h4_font-size);
font-weight: var(--h4_font-weight);
line-height: var(--h4_line-height);
text-transform: var(--h4_text-transform);
}

&[data-engrid-embedded-ecard="true"] {
h2 {
color: var(--h4_color);
font-family: var(--h4_font-family);
font-size: var(--h4_font-size);
font-weight: var(--h4_font-weight);
line-height: var(--h4_line-height);
text-transform: var(--h4_text-transform);
}

textarea,
.en__ecardmessage__default {
border: var(--input_border-width) solid var(--input_border-color);
}

.en__ecarditems__showprev {
display: none;
}
}
}

0 comments on commit 1597466

Please sign in to comment.