-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APPS-1198 Add a terms of use reminder modal (#107)
* Add changes to new branch to test rails issue * test cookies[:sinai_authenticated_3day] * check set_modal cookie * check set_modal cookie * check set_modal cookie * check set_modal cookie * check set_modal cookie * check set_modal cookie * check set_modal cookie * check set_modal cookie * check set_modal cookie * working cookie * add Cypress tests * update style names
- Loading branch information
1 parent
a409f12
commit 91bbe8e
Showing
7 changed files
with
165 additions
and
10 deletions.
There are no files selected for viewing
92 changes: 92 additions & 0 deletions
92
app/assets/stylesheets/theme_sinai/components/_si-terms-of-use-modal.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,92 @@ | ||
// Terms of Use Modal - appears every 90 days | ||
|
||
/* The Modal (background) */ | ||
.si-terms-of-use-modal-block { | ||
position: absolute; /* Stay in place */ | ||
top: 15%; | ||
left: 25%; | ||
display: none; /* Hidden by default */ | ||
align-self: center; | ||
overflow: auto; /* Enable scroll if needed */ | ||
max-width: 600px; | ||
height: 100%; /* Full height */ | ||
z-index: 5; /* Sit on top */ | ||
|
||
@media (max-width: 767px) { | ||
top: 0; | ||
left: 0; | ||
} | ||
} | ||
|
||
/* Modal Content/Box */ | ||
.si-terms-of-use-modal-group { | ||
margin: 4% auto; | ||
padding: 1.25rem; | ||
width: 92%; | ||
background-color: $white; | ||
border: 1px solid $sinai-primary-dk; | ||
} | ||
|
||
.si-terms-of-use-modal-title { | ||
margin-bottom: 5px; | ||
font-size: $text-24; | ||
font-family: 'Dosis', sans-serif; | ||
line-height: 1.25; | ||
align-self: flex-start; | ||
color: $sinai-primary-dk; | ||
text-transform: uppercase; | ||
|
||
@media (max-width: 800px) { | ||
font-size: $text-20; | ||
} | ||
} | ||
|
||
.si-terms-of-use-modal-content { | ||
margin-bottom: 20px; | ||
padding: 5px; | ||
font-size: $text-14; | ||
} | ||
|
||
/* The Close Button */ | ||
.si-terms-of-use-modal-button { | ||
display: flex; | ||
align-self: center; | ||
justify-content: center; | ||
align-content: center; | ||
cursor: pointer; | ||
margin: auto 25%; | ||
padding: 5px; | ||
width: 50%; | ||
text-align: center; | ||
color: $sinai-primary-dk; | ||
background: $sinai-secondary; | ||
border-style: none; | ||
text-shadow: 0 0 0 0; | ||
|
||
@media (max-width: 767px) { | ||
margin: 0; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.close { | ||
display: flex; | ||
align-self: center; | ||
padding: 5px; | ||
font-size: 16px; | ||
font-family: 'Dosis', sans-serif; | ||
font-weight: 500; | ||
text-align: center; | ||
color: $sinai-primary-dk; | ||
background: $sinai-secondary; | ||
border: 1px solid $sinai-secondary; | ||
opacity: unset; | ||
text-shadow: 0 0 0 0; | ||
cursor: pointer; | ||
} | ||
|
||
.close:hover { | ||
font-size: 16px; | ||
color: $sinai-black; | ||
opacity: unset; | ||
} |
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