Skip to content

Commit

Permalink
panel design tweaks, print panel auto width
Browse files Browse the repository at this point in the history
  • Loading branch information
insanj committed Dec 28, 2020
1 parent 0de478d commit 219dfcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 8 additions & 6 deletions public/sammy.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ input:focus, textarea:focus, select:focus{
background: none;

height: 26px;
width: 150px;
width: 200px;

margin-bottom: 100px;
display: inline-block;
Expand Down Expand Up @@ -374,7 +374,7 @@ input:focus, textarea:focus, select:focus{

#mc-embedded-subscribe {
display: inline-block;
width: 142px !important;
width: 190px !important;
}

.panel-print .save-button:hover {
Expand Down Expand Up @@ -419,16 +419,18 @@ input:focus, textarea:focus, select:focus{

.panel-early-access {
position: absolute;
top: 20px;
right: 20px;
top: 16px;
right: 16px;

padding: 2px;
padding: 4px;

font-weight: 200;

border: 1px solid #ffacac;
color: #ffacac;
border-radius: 8px;
border-radius: 6px;

opacity: 0.6;

line-height: 1;
}
4 changes: 3 additions & 1 deletion public/sammy_panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ function toggleModal(shouldShow) {
const printDiv = document.getElementsByClassName("panel-print")[0];
printDiv.style.display = 'block';

sammyPanel.style.width = 'calc(100% - 40px)';
sammyPanel.style.width = 'auto';
sammyPanel.style.height = 'auto';

sammyPanel.className += "printing";
}

Expand All @@ -34,6 +35,7 @@ function toggleModal(shouldShow) {

sammyPanel.style.width = '192px';
sammyPanel.style.height = '246px';

sammyPanel.className = sammyPanel.className.replace("printing", "");
}

Expand Down

0 comments on commit 219dfcd

Please sign in to comment.