瀏覽代碼

Added alphanumeric to tab icons

causefx 7 年之前
父節點
當前提交
24007a561c
共有 4 個文件被更改,包括 156 次插入3 次删除
  1. 1 0
      css/organizr.css
  2. 0 0
      css/organizr.min.css
  3. 6 3
      js/functions.js
  4. 149 0
      js/icons.json

+ 1 - 0
css/organizr.css

@@ -93,6 +93,7 @@ body.stop-scrolling {
     font-size: 35px;
     text-align: center !important;
     width: 35px !important;
+    font-style: normal;
 }
 
 .tabEditorIcon img {

文件差異過大導致無法顯示
+ 0 - 0
css/organizr.min.css


+ 6 - 3
js/functions.js

@@ -180,12 +180,15 @@ function iconPrefix(source){
 		"fontawesome":"fa fa-",
 		"themify":"ti-",
 		"simpleline":"icon-",
-		"weathericon":"wi wi-",
+        "weathericon":"wi wi-",
+        "alphanumeric":"fa-fw",
 	};
 	if(Array.isArray(tabIcon) && tabIcon.length === 2){
-		if(tabIcon[0] !== 'url'){
+		if(tabIcon[0] !== 'url' && tabIcon[0] !== 'alphanumeric'){
 			return '<i class="'+icons[tabIcon[0]]+tabIcon[1]+' fa-fw"></i>';
-		}else{
+		}else if(tabIcon[0] == 'alphanumeric'){
+            return '<i class="fa-fw">'+tabIcon[1]+'</i>';
+        }else{
 			return '<img class="fa-fw" src="'+tabIcon[1]+'" alt="tabIcon" />';
 		}
 	}else{

+ 149 - 0
js/icons.json

@@ -1,4 +1,153 @@
 [
+  {
+    "text": "AlphaNumeric",
+    "children": [
+      {
+        "id": "alphanumeric::A",
+        "text": "A"
+      },
+      {
+        "id": "alphanumeric::B",
+        "text": "B"
+      },
+      {
+        "id": "alphanumeric::C",
+        "text": "C"
+      },
+      {
+        "id": "alphanumeric::D",
+        "text": "D"
+      },
+      {
+        "id": "alphanumeric::E",
+        "text": "E"
+      },
+      {
+        "id": "alphanumeric::F",
+        "text": "F"
+      },
+      {
+        "id": "alphanumeric::G",
+        "text": "G"
+      },
+      {
+        "id": "alphanumeric::H",
+        "text": "H"
+      },
+      {
+        "id": "alphanumeric::I",
+        "text": "I"
+      },
+      {
+        "id": "alphanumeric::J",
+        "text": "J"
+      },
+      {
+        "id": "alphanumeric::K",
+        "text": "K"
+      },
+      {
+        "id": "alphanumeric::L",
+        "text": "L"
+      },
+      {
+        "id": "alphanumeric::M",
+        "text": "M"
+      },
+      {
+        "id": "alphanumeric::N",
+        "text": "N"
+      },
+      {
+        "id": "alphanumeric::O",
+        "text": "O"
+      },
+      {
+        "id": "alphanumeric::P",
+        "text": "P"
+      },
+      {
+        "id": "alphanumeric::Q",
+        "text": "Q"
+      },
+      {
+        "id": "alphanumeric::R",
+        "text": "R"
+      },
+      {
+        "id": "alphanumeric::S",
+        "text": "S"
+      },
+      {
+        "id": "alphanumeric::T",
+        "text": "T"
+      },
+      {
+        "id": "alphanumeric::U",
+        "text": "U"
+      },
+      {
+        "id": "alphanumeric::V",
+        "text": "V"
+      },
+      {
+        "id": "alphanumeric::W",
+        "text": "W"
+      },
+      {
+        "id": "alphanumeric::X",
+        "text": "X"
+      },
+      {
+        "id": "alphanumeric::Y",
+        "text": "Y"
+      },
+      {
+        "id": "alphanumeric::Z",
+        "text": "Z"
+      },
+      {
+        "id": "alphanumeric::Z",
+        "text": "Z"
+      },
+      {
+        "id": "alphanumeric::1",
+        "text": "1"
+      },
+      {
+        "id": "alphanumeric::2",
+        "text": "2"
+      },
+      {
+        "id": "alphanumeric::3",
+        "text": "3"
+      },
+      {
+        "id": "alphanumeric::4",
+        "text": "4"
+      },
+      {
+        "id": "alphanumeric::5",
+        "text": "5"
+      },
+      {
+        "id": "alphanumeric::6",
+        "text": "6"
+      },
+      {
+        "id": "alphanumeric::7",
+        "text": "7"
+      },
+      {
+        "id": "alphanumeric::8",
+        "text": "8"
+      },
+      {
+        "id": "alphanumeric::9",
+        "text": "9"
+      }
+    ]
+  },
   {
     "text": "Font Awesome",
     "children": [

部分文件因文件數量過多而無法顯示