소스 검색

[minor] added typeahead

version-14
Rushabh Mehta 11 년 전
부모
커밋
00247a7bcf
4개의 변경된 파일74개의 추가작업 그리고 0개의 파일을 삭제
  1. +63
    -0
      public/css/typeahead.css
  2. +7
    -0
      public/js/lib/typeahead.min.js
  3. +2
    -0
      webnotes/webutils.py
  4. +2
    -0
      website/templates/includes/login.js

+ 63
- 0
public/css/typeahead.css 파일 보기

@@ -0,0 +1,63 @@
.typeahead,
.tt-query,
.tt-hint {
width: 100%;
height: 46px;
padding: 8px 12px;
font-size: 24px;
line-height: 30px;
border: 2px solid #ccc;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
outline: none;
}

.typeahead {
background-color: #fff;
}

.typeahead:focus {
border: 2px solid #0097cf;
}

.tt-query {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
color: #999
}

.tt-dropdown-menu {
width: 422px;
margin-top: 12px;
padding: 8px 0;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.tt-suggestion {
padding: 3px 20px;
font-size: 18px;
line-height: 24px;
}

.tt-suggestion.tt-is-under-cursor {
color: #fff;
background-color: #0097cf;

}

.tt-suggestion p {
margin: 0;
}

+ 7
- 0
public/js/lib/typeahead.min.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 2
- 0
webnotes/webutils.py 파일 보기

@@ -5,6 +5,7 @@ from __future__ import unicode_literals

import conf
import webnotes
import json
from webnotes import _
import webnotes.utils

@@ -105,6 +106,7 @@ def build_page(page_name):

jenv = Environment(loader = FileSystemLoader(basepath))
jenv.filters["markdown"] = markdown
jenv.filters["json"] = json.dumps
context["base_template"] = jenv.get_template(webnotes.get_config().get("base_template"))
template_name = page_options['template']


+ 2
- 0
website/templates/includes/login.js 파일 보기

@@ -123,5 +123,7 @@ login.show_forgot_password = function() {
}

login.set_message = function(message, color) {
wn.msgprint(html);
return;
$('#login_message').html(message).toggle(true);
}

불러오는 중...
취소
저장