diff --git a/client/app.js b/client/app.js index 68c0e5445..2a8ed4176 100644 --- a/client/app.js +++ b/client/app.js @@ -132,7 +132,15 @@ $.fn.exists = function () { currentUserIsAdmin = function(){ return Session.get('currentUserIsAdmin'); } - + +getSetting = function(setting){ + var settings=Settings.find().fetch()[0]; + if(settings){ + return settings[setting]; + } + return ''; +} + EpicEditorOptions={ container: 'editor', basePath: '/editor', diff --git a/client/css/screen.css b/client/css/screen.css index 99f596b85..c667540cf 100644 --- a/client/css/screen.css +++ b/client/css/screen.css @@ -140,6 +140,49 @@ body { width: 100%; z-index: 50; } +/* line 33, ../sass/partials/_main.scss */ +#tlkio { + position: fixed; + top: 0px; + right: -280px; + -webkit-transition: ease-out right 300ms; + -webkit-transition-delay: 0ms; + -moz-transition: ease-out right 300ms 0ms; + -o-transition: ease-out right 300ms 0ms; + transition: ease-out right 300ms 0ms; + z-index: 1000; + background: #333; } + /* line 40, ../sass/partials/_main.scss */ + #tlkio.open { + right: 0px; + -webkit-box-shadow: -1px 0px 5px rgba(0, 0, 0, 0.15); + -moz-box-shadow: -1px 0px 5px rgba(0, 0, 0, 0.15); + box-shadow: -1px 0px 5px rgba(0, 0, 0, 0.15); } + /* line 44, ../sass/partials/_main.scss */ + #tlkio .open-chat { + display: block; + background: #7ac0e4; + -webkit-border-radius: 3px 3px 0px 0px; + -moz-border-radius: 3px 3px 0px 0px; + -ms-border-radius: 3px 3px 0px 0px; + -o-border-radius: 3px 3px 0px 0px; + border-radius: 3px 3px 0px 0px; + position: absolute; + top: 50%; + right: 264px; + text-transform: uppercase; + color: white; + padding: 3px 10px; + -webkit-transform: rotate(270deg); + -moz-transform: rotate(270deg); + -ms-transform: rotate(270deg); + -o-transform: rotate(270deg); + transform: rotate(270deg); + -webkit-box-shadow: -1px 0px 1px rgba(0, 0, 0, 0.15); + -moz-box-shadow: -1px 0px 1px rgba(0, 0, 0, 0.15); + box-shadow: -1px 0px 1px rgba(0, 0, 0, 0.15); + z-index: 1001; } + /* line 1, ../sass/partials/_typography.scss */ body, textarea, input, button, input[type="submit"], input[type="button"] { font-family: "Proxima Nova Soft", "proxima-nova-soft", "PT SANS", "Helvetica Neue", Helvetica, sans-serif; diff --git a/client/sass/partials/_main.scss b/client/sass/partials/_main.scss index e7cc31422..f78277e5f 100644 --- a/client/sass/partials/_main.scss +++ b/client/sass/partials/_main.scss @@ -29,4 +29,30 @@ body{ height:100%; width:100%; z-index:50; +} +#tlkio{ + position:fixed; + top:0px; + right:-280px; + @include single-transition(ease-out, right, 300ms, 0ms); + z-index:1000; + background:#333; + &.open{ + right:0px; + @include box-shadow(-1px 0px 5px black(0.15)); + } + .open-chat{ + display:block; + background:$blue; + @include border-radius(3px 3px 0px 0px); + position:absolute; + top:50%; + right:264px; + text-transform:uppercase; + color:white; + padding:3px 10px; + @include rotate(270deg); + @include box-shadow(-1px 0px 1px black(0.15)); + z-index:1001; + } } \ No newline at end of file diff --git a/client/templates/footer.html b/client/templates/footer.html index 847da9356..5ca3f0a38 100644 --- a/client/templates/footer.html +++ b/client/templates/footer.html @@ -1,4 +1,10 @@