瀏覽代碼

Fixes #1647: Changed the default CSS class of error block to be `error-block`

Qiang Xue 12 年之前
父節點
當前提交
f92502753f
共有 1 個文件被更改,包括 47 次插入15 次删除
  1. 47 15
      web/css/site.css

+ 47 - 15
web/css/site.css

@@ -26,27 +26,59 @@ body {
 
 /* add sorting icons to gridview sort links */
 a.asc:after, a.desc:after {
-    position: relative;
-    top: 1px;
-    display: inline-block;
-    font-family: 'Glyphicons Halflings';
-    font-style: normal;
-    font-weight: normal;
-    line-height: 1;
-    padding-left: 5px;
+	position: relative;
+	top: 1px;
+	display: inline-block;
+	font-family: 'Glyphicons Halflings';
+	font-style: normal;
+	font-weight: normal;
+	line-height: 1;
+	padding-left: 5px;
 }
 
-a.asc:after  { content: /*"\e113"*/"\e151"; }
-a.desc:after { content: /*"\e114"*/"\e152"; }
+a.asc:after {
+	content: /*"\e113"*/ "\e151";
+}
+
+a.desc:after {
+	content: /*"\e114"*/ "\e152";
+}
+
+.sort-numerical a.asc:after {
+	content: "\e153";
+}
+
+.sort-numerical a.desc:after {
+	content: "\e154";
+}
 
-.sort-numerical a.asc:after { content: "\e153"; }
-.sort-numerical a.desc:after { content: "\e154"; }
+.sort-ordinal a.asc:after {
+	content: "\e155";
+}
 
-.sort-ordinal a.asc:after { content: "\e155"; }
-.sort-ordinal a.desc:after { content: "\e156"; }
+.sort-ordinal a.desc:after {
+	content: "\e156";
+}
+
+.hint-block {
+	display: block;
+	margin-top: 5px;
+	color: #999;
+}
+
+.error-block {
+	display: none;
+	margin-top: 5px;
+	margin-bottom: 10px;
+	color: #a94442;
+}
+
+.has-error .error-block {
+	display: block;
+}
 
 .error-summary {
-	color: #b94a48;
+	color: #a94442;
 	background: #fdf7f7;
 	border-left: 3px solid #eed3d7;
 	padding: 10px 20px;