From 2ffdec53869f5bfec63842272f60af73468b57ae Mon Sep 17 00:00:00 2001
From: psychobunny
Date: Tue, 21 Apr 2015 15:43:55 -0400
Subject: [PATCH] styled active clas
---
public/src/installer/install.js | 14 ++++++++++
src/views/install/index.tpl | 46 ++++++++++++++++++++++++++++-----
2 files changed, 53 insertions(+), 7 deletions(-)
create mode 100644 public/src/installer/install.js
diff --git a/public/src/installer/install.js b/public/src/installer/install.js
new file mode 100644
index 0000000000..48464808ff
--- /dev/null
+++ b/public/src/installer/install.js
@@ -0,0 +1,14 @@
+"use strict";
+
+$('document').ready(function() {
+ setupInputs();
+
+
+
+ function setupInputs() {
+ $('.form-control').on('focus', function() {
+ $('.input-row.active').removeClass('active');
+ $(this).parents('.input-row').addClass('active');
+ });
+ }
+});
\ No newline at end of file
diff --git a/src/views/install/index.tpl b/src/views/install/index.tpl
index c422c302f5..b5d932efa2 100644
--- a/src/views/install/index.tpl
+++ b/src/views/install/index.tpl
@@ -21,6 +21,23 @@
.btn, .form-control, .navbar { border-radius: 0; }
.container { font-size: 18px; }
body, small, p, div { font-family: "Roboto", sans-serif; }
+ .input-row {
+ margin-bottom: 20px;
+ }
+ .input-row.active .input-field {
+ border-right: 5px solid #BF3E11;
+ padding-right: 20px;
+ }
+ .input-row.active .help-text {
+ display: block;
+ }
+
+ .help-text {
+ line-height: 20px;
+ color: #888;
+ font-size: 85%;
+ display: none;
+ }
@@ -52,15 +69,30 @@
Welcome to the NodeBB Installer!
You are just a few steps away from launching your own NodeBB forum
-
- Administrator
-
-
-
-
-
+
+
+