Commit 05fec1b6 authored by Curtis Adam's avatar Curtis Adam

Place a label in front of the login buttons saying "Log in:" on the welcome page

parent 050211b0
......@@ -120,6 +120,8 @@ $themes: (
$navbar_logout_text: map-get($map, "navbar_logout_text");
$navbar_logout_text_hover: map-get($map, "navbar_logout_text_hover");
//welcome page colors
$welcome_page_login_label: map-get($map, "welcome_page_login_label");
$welcome_page_login_label_shadow: map-get($map, "welcome_page_login_label_shadow");
$footer_background: map-get($map, "footer_background");
$footer_info_navigation_text: map-get($map, "footer_info_navigation_text");
$footer_info_navigation_text_hover: map-get($map, "footer_info_navigation_text_hover");
......@@ -1602,6 +1604,11 @@ $themes: (
}
}
#login .loginLabel {
color: $welcome_page_login_label !important;
text-shadow: 1px 1px $welcome_page_login_label_shadow !important;
}
#learnBoxDisabled {
background-color: $warning_background !important;
color: $warning_text !important;
......
......@@ -141,6 +141,8 @@
"navbar_logout_text": white,
"navbar_logout_text_hover": black,
//welcome page colors
"welcome_page_login_label": white,
"welcome_page_login_label_shadow": black,
"footer_background":$thm_green,
"footer_info_navigation_text": white,
"footer_info_navigation_text_hover": white,
......
......@@ -143,6 +143,8 @@
"navbar_logout_text": white,
"navbar_logout_text_hover": white,
//welcome page colors
"welcome_page_login_label": white,
"welcome_page_login_label_shadow": black,
"footer_background": $thm_gray,
"footer_info_navigation_text": white,
"footer_info_navigation_text_hover": white,
......
......@@ -1339,5 +1339,8 @@
"standard": "Standard User (Zugang über Facebook, Twitter, Google+)",
"blocked": "Blockierter User",
"firstLogin": "Erstanmeldung"
},
"login": {
"label": "Log in"
}
}
......@@ -1373,5 +1373,8 @@
"standard": "Standard User",
"blocked": "Blocked User",
"firstLogin": "First Login"
},
"login": {
"label": "Log in"
}
}
......@@ -26,6 +26,8 @@ $size_navbar_alldecks_border: 3px;
//welcome page
$size_footer_height: 40px;
$font_size_login_label: 16px;
$font_weight_login_label: bold;
//info page
$font_size_info_h1: 20px;
......@@ -625,6 +627,18 @@ th {
font-size: 16px;
}
#login .loginLabel {
font-size: $font-size_login_label !important;
font-weight: $font-weight_login_label !important;
}
#login .loginLabel:first-child {
@media (max-width: 767px) {
width: 100%;
}
}
.footer {
position: absolute;
left: 0;
......
......@@ -157,7 +157,7 @@ Template.welcome.events({
Template.welcome.helpers({
getLoginButtons: function () {
let loginButtons = "";
let loginButtons = "<label class='loginLabel' for='loginButtonRow'>" + TAPi18n.__('login.label') + ":&nbsp;</label><span id='loginButtonRow'>";
if (Meteor.settings.public.displayLoginButtons.displayCas) {
loginButtons += '<a id="cas" href=""><img src="img/gruen_eckig_Doktorhut.png" alt="use CAS for login"/></a>';
}
......@@ -184,7 +184,7 @@ Template.welcome.helpers({
let firstLogin = TAPi18n.__("backdoor.firstLogin");
loginButtons += '<a id="BackdoorLogin" href=""><img src="img/backdoor-login.png" alt="use backdoor for' +
' login"/></a>';
loginButtons += '<span class="btn-group backdoorLogin"><label id="backdoor-label">' + title + ':</label><br><select class="btn btn-secondary btn-raised" id="TestingBackdoorUsername" aria-labelledby="backdoor-label">' +
loginButtons += '<span class="btn-group backdoorLogin"><label id="backdoor-label" class="loginLabel">' + title + ':</label><br><select class="btn btn-secondary btn-raised" id="TestingBackdoorUsername" aria-labelledby="backdoor-label">' +
'<option id="superAdminLogin" value="admin">' + superAdmin + '</option>' +
'<option id="adminLogin" value="editor">' + admin + '</option>' +
'<option id="proLogin" value="pro">' + pro + '</option>' +
......@@ -195,6 +195,7 @@ Template.welcome.helpers({
'<option id="firstLogin" value="firstLogin">' + firstLogin + '</option>' +
'</select></span>';
}
loginButtons += "</span>";
return loginButtons;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment