Fixed login button clicking, minor css
This commit is contained in:
parent
8299918ea7
commit
93e1eff12f
@ -153,10 +153,6 @@ p.text {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-button {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#github {
|
#github {
|
||||||
font-size: 3vh;
|
font-size: 3vh;
|
||||||
color: #000 !important;
|
color: #000 !important;
|
||||||
|
|||||||
@ -195,6 +195,7 @@ input, textarea {
|
|||||||
height: 5.5vh;
|
height: 5.5vh;
|
||||||
float: right;
|
float: right;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
-webkit-transition: background-color 0.5s ease;
|
-webkit-transition: background-color 0.5s ease;
|
||||||
-moz-transition: background-color 0.5s ease;
|
-moz-transition: background-color 0.5s ease;
|
||||||
|
|||||||
@ -220,7 +220,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div style="background-color:{{divColor 'dropdown'}}">
|
<div style="background-color:{{divColor 'dropdown'}}">
|
||||||
<div id="myprofile" class="userFunction" onclick='document.getElementById("login-buttons-logout").click();'>
|
<div id="myprofile" class="userFunction" onclick="document.getElementById('login-buttons-logout').click();">
|
||||||
<i class="fa fa-sign-out" aria-hidden="true"></i>
|
<i class="fa fa-sign-out" aria-hidden="true"></i>
|
||||||
<p>Sign out</p>
|
<p>Sign out</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -50,6 +50,18 @@ Session.set("classDispHover", null); // Stores current hovered filter.
|
|||||||
Session.set("refetchEvents", null); // Stores whether to get calendar events again.
|
Session.set("refetchEvents", null); // Stores whether to get calendar events again.
|
||||||
Session.set("commentRestrict", ""); // Stores text for comment character restriction.
|
Session.set("commentRestrict", ""); // Stores text for comment character restriction.
|
||||||
|
|
||||||
|
Template.login.rendered = function() {
|
||||||
|
Accounts._loginButtonsSession.set('dropdownVisible', true);
|
||||||
|
};
|
||||||
|
|
||||||
|
Template.main.rendered = function() {
|
||||||
|
Accounts._loginButtonsSession.set('dropdownVisible', true);
|
||||||
|
};
|
||||||
|
|
||||||
|
Template.profile.rendered = function() {
|
||||||
|
Accounts._loginButtonsSession.set('dropdownVisible', true);
|
||||||
|
};
|
||||||
|
|
||||||
Template.registerHelper('userProfile', () => {
|
Template.registerHelper('userProfile', () => {
|
||||||
if(Meteor.user() === undefined || Meteor.user() === null) return;
|
if(Meteor.user() === undefined || Meteor.user() === null) return;
|
||||||
Session.set("user", Meteor.user().profile);
|
Session.set("user", Meteor.user().profile);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user