add transparent overlay to feedback popup
This commit is contained in:
parent
583922d11f
commit
3417095768
|
@ -7,6 +7,7 @@ $logo-red: #dc4136
|
||||||
|
|
||||||
$topbar-bg: $blue-grey
|
$topbar-bg: $blue-grey
|
||||||
$topbar-bg-darker: #31363d
|
$topbar-bg-darker: #31363d
|
||||||
|
$topbar-height: 55px
|
||||||
|
|
||||||
$main-repo-link-color: #50555b
|
$main-repo-link-color: #50555b
|
||||||
$main-repo-hover-color: #607a84
|
$main-repo-hover-color: #607a84
|
||||||
|
@ -17,6 +18,7 @@ $travis-lint-bg: #fafafa
|
||||||
$left-bg: $light-gray
|
$left-bg: $light-gray
|
||||||
$right-bg: $light-gray
|
$right-bg: $light-gray
|
||||||
|
|
||||||
|
|
||||||
// dashboard
|
// dashboard
|
||||||
$pass-color: #3ba85d
|
$pass-color: #3ba85d
|
||||||
$fail-color: #d04729
|
$fail-color: #d04729
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
color: #a2afb3
|
color: #a2afb3
|
||||||
text-transform: uppercase
|
text-transform: uppercase
|
||||||
box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.15)
|
box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.15)
|
||||||
z-index: 999
|
z-index: 89
|
||||||
&.hidden
|
&.hidden
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
.feedback-button:hover
|
.feedback-button:hover
|
||||||
// transform: rotate(90deg) translateY(-130%)
|
// transform: rotate(90deg) translateY(-130%)
|
||||||
transform: translateY(0)
|
transform: translateY(5%)
|
||||||
|
|
||||||
.feedback-popup
|
.feedback-popup
|
||||||
position: fixed
|
position: fixed
|
||||||
|
@ -41,13 +41,13 @@
|
||||||
padding: 1em 1.3em
|
padding: 1em 1.3em
|
||||||
background-color: #ffffff
|
background-color: #ffffff
|
||||||
border-radius: 5px
|
border-radius: 5px
|
||||||
z-index: 999
|
z-index: 85
|
||||||
box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.15)
|
box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.15)
|
||||||
h1
|
h1
|
||||||
margin: 0 0 .4em
|
margin: 0 0 .4em
|
||||||
padding-left: .4em
|
padding-left: .4em
|
||||||
color: #347389
|
color: #347389
|
||||||
font-size: 20px
|
font-size: 22px
|
||||||
textarea
|
textarea
|
||||||
box-sizing: border-box
|
box-sizing: border-box
|
||||||
display: block
|
display: block
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
padding: .5em .6em
|
padding: .5em .6em
|
||||||
resize: vertical
|
resize: vertical
|
||||||
background-color: #f4f3eb
|
background-color: #f4f3eb
|
||||||
font-size: 15px
|
font-size: 16px
|
||||||
color: #7d7e80
|
color: #7d7e80
|
||||||
border: none
|
border: none
|
||||||
font-family: $font-family-sans-serif
|
font-family: $font-family-sans-serif
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
padding: .3em .7em
|
padding: .3em .7em
|
||||||
background-color: #37a766
|
background-color: #37a766
|
||||||
color: $white
|
color: $white
|
||||||
font-size: 15px
|
font-size: 16px
|
||||||
border: none
|
border: none
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
font-family: $font-family-sans-serif
|
font-family: $font-family-sans-serif
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
margin: 0.3em 0 0
|
margin: 0.3em 0 0
|
||||||
a
|
a
|
||||||
color: #7d7e80
|
color: #7d7e80
|
||||||
font-size: 15px
|
font-size: 16px
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
a:hover
|
a:hover
|
||||||
text-decoration: underline
|
text-decoration: underline
|
||||||
|
@ -84,6 +84,21 @@
|
||||||
.closed &
|
.closed &
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
.feedback-overlay
|
||||||
|
display: block
|
||||||
|
position: fixed
|
||||||
|
top: 0
|
||||||
|
right: 0
|
||||||
|
bottom: 0
|
||||||
|
left: 0
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
background-color: rgba(#D5D5CE, 0.7)
|
||||||
|
z-index: 84
|
||||||
|
.closed &
|
||||||
|
display: none
|
||||||
|
|
||||||
|
|
||||||
#CHARM_FORM_TARGET
|
#CHARM_FORM_TARGET
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
|
||||||
#top
|
#top
|
||||||
|
position: relative
|
||||||
|
z-index: 999
|
||||||
font-size: $font-size-normal
|
font-size: $font-size-normal
|
||||||
background : $topbar-bg
|
background : $topbar-bg
|
||||||
|
|
||||||
|
@ -7,7 +9,7 @@
|
||||||
position: relative
|
position: relative
|
||||||
float : left
|
float : left
|
||||||
width : 123px
|
width : 123px
|
||||||
height : 55px
|
height : $topbar-height
|
||||||
margin-right : 14px
|
margin-right : 14px
|
||||||
z-index: 999
|
z-index: 999
|
||||||
text-indent : -9999px
|
text-indent : -9999px
|
||||||
|
@ -51,13 +53,13 @@
|
||||||
|
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
overflow: visible
|
overflow: visible
|
||||||
height: 55px
|
height: $topbar-height
|
||||||
|
|
||||||
#navigation
|
#navigation
|
||||||
height: auto
|
height: auto
|
||||||
overflow: visible
|
overflow: visible
|
||||||
ul
|
ul
|
||||||
line-height: 55px
|
line-height: $topbar-height
|
||||||
position: relative
|
position: relative
|
||||||
li
|
li
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
@ -69,7 +71,7 @@
|
||||||
|
|
||||||
.nav-burger
|
.nav-burger
|
||||||
overflow: auto
|
overflow: auto
|
||||||
height: 55px
|
height: $topbar-height
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
@ -206,7 +208,7 @@
|
||||||
// #user ul li ul
|
// #user ul li ul
|
||||||
// padding : 0
|
// padding : 0
|
||||||
// position : absolute
|
// position : absolute
|
||||||
// top : 55px
|
// top : $topbar-height
|
||||||
// right : 0
|
// right : 0
|
||||||
// width : 150px
|
// width : 150px
|
||||||
// display : none
|
// display : none
|
||||||
|
|
9
vendor/charmscout.js
vendored
9
vendor/charmscout.js
vendored
|
@ -15,7 +15,8 @@ window.bootstrapCharm = function(){
|
||||||
'<input id="CHARM_SUBMIT" type="submit" class="submit" value="Send Feedback">' +
|
'<input id="CHARM_SUBMIT" type="submit" class="submit" value="Send Feedback">' +
|
||||||
'<a href="#" title="" id="CHARM_CANCEL">cancel</a>' +
|
'<a href="#" title="" id="CHARM_CANCEL">cancel</a>' +
|
||||||
'</form>' +
|
'</form>' +
|
||||||
'</div>',
|
'</div>' +
|
||||||
|
'<div class="feedback-overlay"></div>',
|
||||||
DEFAULTS = {
|
DEFAULTS = {
|
||||||
text: '',
|
text: '',
|
||||||
submit: 'Send feedback',
|
submit: 'Send feedback',
|
||||||
|
@ -95,7 +96,7 @@ window.bootstrapCharm = function(){
|
||||||
if(!box) {
|
if(!box) {
|
||||||
box = document.createElement('div');
|
box = document.createElement('div');
|
||||||
box.id = "CHARM_BOX";
|
box.id = "CHARM_BOX";
|
||||||
box.className = 'feedback-popup';
|
//box.className = 'feedback-popup';
|
||||||
box.innerHTML = BOX;
|
box.innerHTML = BOX;
|
||||||
document.body.appendChild(box);
|
document.body.appendChild(box);
|
||||||
|
|
||||||
|
@ -137,7 +138,7 @@ window.bootstrapCharm = function(){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
var scrollTop = document.body.scrollTop;
|
var scrollTop = document.body.scrollTop;
|
||||||
|
|
||||||
box.className = 'feedback-popup open' + ($('CHARM_YOUR_EMAIL') ? ' with-email' : '');
|
box.className = 'open' + ($('CHARM_YOUR_EMAIL') ? ' with-email' : '');
|
||||||
$('CHARM_FORM').onsubmit = function(){
|
$('CHARM_FORM').onsubmit = function(){
|
||||||
var ok = !($('CHARM_COMMENT').value.replace(/^\s+/, '').replace(/\s+$/, '') == "");
|
var ok = !($('CHARM_COMMENT').value.replace(/^\s+/, '').replace(/\s+$/, '') == "");
|
||||||
if(ok){
|
if(ok){
|
||||||
|
@ -161,7 +162,7 @@ window.bootstrapCharm = function(){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
box.offsetLeft;
|
box.offsetLeft;
|
||||||
box.className = 'feedback-popup open' + ($('CHARM_YOUR_EMAIL') ? ' with-email' : '');
|
box.className = 'open' + ($('CHARM_YOUR_EMAIL') ? ' with-email' : '');
|
||||||
if($('CHARM_EMAIL'))
|
if($('CHARM_EMAIL'))
|
||||||
$('CHARM_EMAIL').focus();
|
$('CHARM_EMAIL').focus();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user