Moon Admin
Tổng số bài gửi : 80 Join date : 01/06/2010
| Tiêu đề: Tạo module theo ý thích Fri Jun 04, 2010 3:31 am | |
| Theme này không phải dành cho toàn blog mà chỉ dành cho các module cột nhỏ thôi.... Các thành phần khác sẽ được hướng dẫn trong các entry tiếp theo. Module cột nhỏBao gồm 4 phần (theo cách thiết kế của mình, của người khác có khi tới 8 phần hoặc chỉ có 3 phần) - Phần trên cùng (Top) - Phần Tiêu đề (Head) - Phần nội dung (Body) - Phần dưới cùng (Bottom) Định nghĩa tên module trong code CSS .col-150 = Áp dụng cho những module nằm trong cột nhỏ. #article_new = Bài Mới Nhất #search_module = Tìm #calendar = Lịch #folder = Thư Mục Riêng #update_date = Cập Nhật Ngày #statistic = Thống Kê #friendlist_module = Danh Sách Bạn Bè #comment_new = Bình Luận Mới Nhất #rss_output = RSS #feature_mb = Bảng Tin Nhắn #user_mod_10001 = Module tự tạo 1 #user_mod_10002 = Module tự tạo 2 #user_mod_10003 = Module tự tạo 3#user_mod_1000x = Module tự tạo xÁp dụng Bạn cần lưu ý những điều sau trước khi áp dụng. - Bỏ những code mà bạn đang sử dụng cho các module cột nhỏ. - Đừng thay đổi gì trong code ... chỉ thay link ... copy và paste vào CSS - Thay Link Hình bằng những link của phần Top, Head, Body, Bottom nào bạn thích (list bên dưới) - Sau khi thay link xong, Copy đoạn code dán vào phần CSS (Thiết Kế) của blog. - Phần Body và Bottom, bạn nên sử dụng 1 cặp giống nhau. Code của phần giữa (body).col-150 .rc_bd, #friendlist_module .rc_bd , #statistic .rc_bd, #update_date .rc_bd , #folder .rc_bd , #calendar .rc_bd , #search_module .rc_bd , #article_new .rc_bd , #subscribe_highlight .rc_bd , #comment_new .rc_bd {background:transparent url(Link Hình) repeat-y top center;}Các mẫu BODY để bạn lựa chọn : (copy và thay vào phần Link Hình) http://files.myopera.com/yennhi1985/files/module/th_body1.pnghttp://files.myopera.com/yennhi1985/files/module/th_body10.pnghttp://files.myopera.com/yennhi1985/files/module/th_body11.pnghttp://files.myopera.com/yennhi1985/files/module/th_body12.pnghttp://files.myopera.com/yennhi1985/files/module/th_body13.pnghttp://files.myopera.com/yennhi1985/files/module/th_body14.pnghttp://files.myopera.com/yennhi1985/files/module/th_body15.pnghttp://files.myopera.com/yennhi1985/files/module/th_body16.pnghttp://files.myopera.com/yennhi1985/files/module/th_body17.pnghttp://files.myopera.com/yennhi1985/files/module/th_body2.pnghttp://files.myopera.com/yennhi1985/files/module/th_body3.pnghttp://files.myopera.com/yennhi1985/files/module/th_body4.pnghttp://files.myopera.com/yennhi1985/files/module/th_body5.pnghttp://files.myopera.com/yennhi1985/files/module/th_body6.pnghttp://files.myopera.com/yennhi1985/files/module/th_body7.pnghttp://files.myopera.com/yennhi1985/files/module/th_body8.pnghttp://files.myopera.com/yennhi1985/files/module/th_body9.pngCode của phần dưới (bottom).col-150 .rc_ft, #friendlist_module .rc_ft , #statistic .rc_ft, #update_date .rc_ft , #folder .rc_ft , #calendar .rc_ft , #search_module .rc_ft , #article_new .rc_ft , #subscribe_highlight .rc_ft , #comment_new .rc_ft {background:transparent url(Link Hình) no-repeat center top;height:17px;}Các mẫu BOTTOM để bạn lựa chọn : (copy và thay vào phần Link Hình) (bạn nên chọn phần body và phần bottom giống màu nhau) http://files.myopera.com/yennhi1985/files/module/th_bottom1.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom10.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom11.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom12.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom13.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom14.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom15.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom16.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom17.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom2.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom3.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom4.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom5.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom6.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom7.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom8.pnghttp://files.myopera.com/yennhi1985/files/module/th_bottom9.pngCode của phần Head (Tên tiêu đề)
.col-150 .rc_bd .rc_bc .hd .titlebar .hd , #friendlist_module .hd .titlebar .hd , #statistic .hd .titlebar .hd , #update_date .hd .titlebar .hd , #folder .hd .titlebar .hd , #calendar .hd .titlebar, #search_module .hd .titlebar .hd , #article_new .hd .titlebar .hd , #subscribe_highlight .hd .titlebar .hd {background:transparent url(Link Hình Head Nhỏ);} /* Head Lớn (Bình Luận Mới Nhất) */ #comment_new .hd .titlebar .hd {background:transparent url(Link Hình Head Lớn);}Các mẫu HEAD để bạn lựa chọn : (copy và thay vào phần Link Hình) - Bởi vì Head và phần Top phải tương ứng với nhau nên trước mắt mình chỉ có 1 mẫu Head. Bạn thay link vào head lớn và head nhỏ. Head lớn dành cho các module nào có tên dài đến 2 hàng. Code của phần TOP (Phần Trên Cùng).col-150 .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #article_new .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #search_module .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #calendar .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #folder .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #update_date .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #statistic .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #friendlist_module .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #comment_new .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #subscribe_highlight .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;} #user_mod_10001 .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;}Code áp dụng chung (lấy phần này hoặc lấy phần trên, không được lấy cả 2).col-150 .rc, #article_new .rc , #search_module .rc , #calendar .rc, #folder .rc , #update_date .rc, #statistic .rc , #friendlist_module .rc , #comment_new .rc , #subscribe_highlight .rc , #user_mod_10001 .rc {background:transparent url(Link Hình) no-repeat center bottom;height:59px;}Các mẫu TOP để bạn lựa chọn : (copy và thay vào phần Link Hình) - Các bạn có thể chọn bất cứ mẫu TOP nào mình thích, miễn sao nó hợp lý là được. - Ở phần code dùng chung, chỉ cần sử dụng 1 link duy nhất, tất cả các module trong cột nhỏ đều được áp dụng. http://files.myopera.com/yennhi1985/files/module/th_search1.png http://files.myopera.com/yennhi1985/files/module/th_search2.png http://files.myopera.com/yennhi1985/files/module/th_search3.png http://files.myopera.com/yennhi1985/files/module/th_search4.png http://files.myopera.com/yennhi1985/files/module/th_statistic.png http://files.myopera.com/yennhi1985/files/module/th_statistic3.png http://files.myopera.com/yennhi1985/files/module/th_statistic4.png http://files.myopera.com/yennhi1985/files/module/th_statistic5.png http://files.myopera.com/yennhi1985/files/module/th_thongtin.png http://files.myopera.com/yennhi1985/files/module/th_time.png http://files.myopera.com/yennhi1985/files/module/th_update_date2.png http://files.myopera.com/yennhi1985/files/module/th_calendar2.png http://files.myopera.com/yennhi1985/files/module/th_calendar3.png http://files.myopera.com/yennhi1985/files/module/th_calendar4.png http://files.myopera.com/yennhi1985/files/module/th_calendar5.png http://files.myopera.com/yennhi1985/files/module/th_camera.png http://files.myopera.com/yennhi1985/files/module/th_camera2.png http://files.myopera.com/yennhi1985/files/module/th_carlendar1.png http://files.myopera.com/yennhi1985/files/module/th_comment_new2.png http://files.myopera.com/yennhi1985/files/module/th_comment_new3.png http://files.myopera.com/yennhi1985/files/module/th_comment_new4.png http://files.myopera.com/yennhi1985/files/module/th_comment_new_top.png http://files.myopera.com/yennhi1985/files/module/th_commpass.png http://files.myopera.com/yennhi1985/files/module/th_download_browser_top.png http://files.myopera.com/yennhi1985/files/module/th_favorite.png http://files.myopera.com/yennhi1985/files/module/th_favorite2.png http://files.myopera.com/yennhi1985/files/module/th_favorite3.png http://files.myopera.com/yennhi1985/files/module/th_folder.png http://files.myopera.com/yennhi1985/files/module/th_folder2.png http://files.myopera.com/yennhi1985/files/module/th_folder3.png http://files.myopera.com/yennhi1985/files/module/th_folder4.png http://files.myopera.com/yennhi1985/files/module/th_folder5.png http://files.myopera.com/yennhi1985/files/module/th_photo.png Code chỉnh sửa
- Phần code này bắt buộc phải có - Code này sẽ làm cho các module ở cột nhỏ phù hợp với cách thiết kế hiện tại - Bạn đừng thay đổi bất cứ cái gì trong phần này, chỉ việc copy và Paste .col-150 .rc_bd div.rc_bc, .col-150 .rc_ft div, .col-150 .hd .titlebar, .col-150 .rc div, .col-150 .rc_bd .rc_bc .bd {background:transparent;}
#comment_new .rc_bd div.rc_bc, #comment_new .rc_ft div, #comment_new .hd .titlebar, #comment_new .rc div, #comment_new .rc_bd .rc_bc .bd {background:transparent;}
#subscribe_highlight .rc_bd div.rc_bc, #subscribe_highlight .rc_ft div, #subscribe_highlight .hd .titlebar, #subscribe_highlight .rc div, #subscribe_highlight .rc_bd .rc_bc .bd {background:transparent;} #subscribe_highlight .hd .titlebar .hd {height:27px;}
#article_new .rc_bd div.rc_bc, #article_new .rc_ft div, #article_new .hd .titlebar, #article_new .rc div, #article_new .rc_bd .rc_bc .bd {background:transparent;}
#search_module .rc_bd div.rc_bc, #search_module .rc_ft div, #search_module .hd .titlebar, #search_module .rc div, #search_module .rc_bd .rc_bc .bd {background:transparent;}
#calendar .rc_bd div.rc_bc, #calendar .rc_ft div, #calendar .rc div, #calendar .hd .titlebar .hd , #calendar .rc_bd .rc_bc .bd {background:transparent;}
#folder .rc_bd div.rc_bc, #folder .rc_ft div, #folder .hd .titlebar, #folder .rc div, #folder .rc_bd .rc_bc .bd {background:transparent;}
#update_date .rc_bd div.rc_bc, #update_date .rc_ft div, #update_date .hd .titlebar, #update_date .rc div, #update_date .rc_bd .rc_bc .bd {background:transparent;}
#statistic .rc_bd div.rc_bc, #statistic .rc_ft div, #statistic .hd .titlebar, #statistic .rc div, #statistic .rc_bd .rc_bc .bd {background:transparent;}
#friendlist_module .rc_bd div.rc_bc, #friendlist_module .rc_ft div, #friendlist_module .hd .titlebar, #friendlist_module .rc div, #friendlist_module .rc_bd .rc_bc .bd {background:transparent;}
#user_mod_10003 .rc_bd div.rc_bc, #user_mod_10003 .rc_ft div, #user_mod_10003 .hd .titlebar, #user_mod_10003 .rc div, #user_mod_10003 .rc_bd .rc_bc .bd {background:transparent;}
#user_mod_10002 .rc_bd div.rc_bc, #user_mod_10002 .rc_ft div, #user_mod_10002 .hd .titlebar, #user_mod_10002 .rc div, #user_mod_10002 .rc_bd .rc_bc .bd {background:transparent;}
#user_mod_10001 .rc_bd div.rc_bc, #user_mod_10001 .rc_ft div, #user_mod_10001 .hd .titlebar, #user_mod_10001 .rc div, #user_mod_10001 .rc_bd .rc_bc .bd {background:transparent;}
#calendar .hd .titlebar .hd h2 {font-size:15px;color:#FFFFFF;} #calendar .bd table {height:118px;background:transparent;} #calendar .titlebar, #calendar .titlebar .bd a:hover{color:#FFFFD0;} #calendar .hd, #calendar .titlebar .bd a {background:transparent;font-weight:bold;font-size:12px;color:#FF0000;}Xong .... Bạn có thể download mẫu CSS tại đây (mở ra, copy và paste ... xem trước coi nó ra sao) | |
|