Skip to content

Commit

Permalink
add ecard recipient list styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelT372 committed Apr 2, 2024
1 parent 9f9fcd2 commit b91ef24
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 9 deletions.
46 changes: 44 additions & 2 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, March 12, 2024 @ 21:30:46 ET
* By: fernando
* Date: Tuesday, April 2, 2024 @ 11:21:26 ET
* By: michael
* ENGrid styles: v0.17.19
* ENGrid scripts: v0.17.20
*
Expand Down Expand Up @@ -8799,6 +8799,48 @@ body[data-engrid-debug]:before{
position:static;
width:auto;
}
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__list{
background-color:var(--engrid__body-main_background-color);
}
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__list:has(>.en__ecardrecipients__recipient):before{
content:"Recipients:";
}
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient{
align-items:center;
background-color:var(--engrid__body-main_background-color);
padding:10px 0;
}
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient input.ecardrecipient__email,[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient input.ecardrecipient__name{
background-color:var(--engrid__body-main_background-color);
}
@media screen and (min-width:600px){
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient input.ecardrecipient__email,[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient input.ecardrecipient__name{
width:47.5% !important;
}
}
[data-engrid-theme=engrid-ran3] .ecardrecipient__remove button{
background:var(--error__color);
color:#fff;
margin:0;
}
[data-engrid-theme=engrid-ran3] .ecardrecipient__remove button:hover{
color:#fff;
}
@media screen and (max-width:600px){
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient{
align-items:flex-start;
flex-direction:column;
position:relative;
}
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient input{
width:calc(100% - 50px) !important;
}
[data-engrid-theme=engrid-ran3] .en__ecardrecipients__recipient .ecardrecipient__remove{
position:absolute;
right:15px;
top:calc(50% - 15px);
}
}
[data-engrid-theme=engrid-ran3] .engrid-welcome-back{
margin-bottom:-50px;
position:relative;
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, March 12, 2024 @ 21:30:46 ET
* By: fernando
* Date: Tuesday, April 2, 2024 @ 11:21:26 ET
* By: michael
* ENGrid styles: v0.17.19
* ENGrid scripts: v0.17.20
*
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.

51 changes: 51 additions & 0 deletions src/sass/themes/ran3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,57 @@
padding: 12px !important;
}

.en__ecardrecipients__list {
background-color: var(--engrid__body-main_background-color);
}

.en__ecardrecipients__list:has(> .en__ecardrecipients__recipient):before {
content: "Recipients:";
}

.en__ecardrecipients__recipient {
align-items: center;
padding: 10px 0px;
background-color: var(--engrid__body-main_background-color);

input.ecardrecipient__name,
input.ecardrecipient__email {
background-color: var(--engrid__body-main_background-color);
@media screen and (min-width: 600px) {
width: 47.5% !important;
}
}
}

.ecardrecipient__remove button {
margin: 0;

background: var(--error__color);
color: white;

&:hover {
color: white;
}
}

@media screen and (max-width: 600px) {
.en__ecardrecipients__recipient {
position: relative;
flex-direction: column;
align-items: flex-start;

input {
width: calc(100% - 50px) !important;
}

.ecardrecipient__remove {
position: absolute;
right: 15px;
top: calc(50% - 15px);
}
}
}

.engrid-welcome-back {
margin-bottom: -50px;
position: relative;
Expand Down

0 comments on commit b91ef24

Please sign in to comment.