กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


thxf.org

วิธีการทํา Move thread status icons

  • ผู้เริ่มหัวข้อ ผู้เริ่มหัวข้อ thxf.org 
  • วันที่เริ่มต้น วันที่เริ่มต้น

thxf.org 

Administrator
สมาชิกทีมงาน
Admin
Would you like to have thread status icons on the left side before thread title?

chrome_2019-02-08_22-09-59-png.webp

Add this to your extra.less template:
Less:
/* Move thread status icons */
@media (min-width: @xf-responsiveMedium) {
[data-template="forum_view"], &[data-template="whats_new"], &[data-template="whats_new_posts"] {
    .structItem-statuses {
        float: none;
        &>li {
            margin-left: 0;
            padding-right: 5px;
            padding-top: 1px;
        }
    }
}
}
/*****/
*this will work on thread list, what's new and new posts page, on mobile view there will be no difference


Would you like to move only some of the thread status icons?

Examples:


chrome_2019-02-08_21-59-34-png.webp



chrome_2019-02-08_22-01-38-png.webp



chrome_2019-02-08_22-02-26-png.webp


Add this to your extra.less template:
Less:
/* Move thread status icons */
@media (min-width: @xf-responsiveMedium) {
[data-template="forum_view"], &[data-template="whats_new"], &[data-template="whats_new_posts"] {
    .structItem-statuses {
        float: none;
        >li {
            float: none;
            margin-left: 0px;
            .structItem-status--sticky {
                float: left;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--watched {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--poll {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--locked {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--deleted {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--moderated {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
        }
    }
}
}
/*****/
To change the icon side edit float class for each icon and choose left or right.

Note: make sure you always have these combinations: if you have float: left, make sure you have padding-right OR if you have float: right, make sure you have padding-left.

*this will work on thread list, what's new and new posts page, on mobile view there will be no difference
 

ไฟล์แนบ

  • chrome_2019-02-08_22-09-59-png.webp
    chrome_2019-02-08_22-09-59-png.webp
    2.4 กิโลไบต์ · จำนวนการดู: 401
  • chrome_2019-02-08_21-59-34-png.webp
    chrome_2019-02-08_21-59-34-png.webp
    2.5 กิโลไบต์ · จำนวนการดู: 360
  • chrome_2019-02-08_22-01-38-png.webp
    chrome_2019-02-08_22-01-38-png.webp
    2.5 กิโลไบต์ · จำนวนการดู: 370
  • chrome_2019-02-08_22-02-26-png.webp
    chrome_2019-02-08_22-02-26-png.webp
    2.7 กิโลไบต์ · จำนวนการดู: 364


กระทู้ที่คล้ายกัน

thxf.org submitted a new resource: Xenforo 2.3 Font Awesome Icons (Default Theme) - Xenforo 2.3 Font Awesome Icons (Default Theme) add this less to extra.less Read more about this resource...
ตอบกลับ
1
จำนวนการดู
608
ตอบกลับ
1
จำนวนการดู
873
Summary: this small edit will allow for you to have read & unread post icons (indicators) to the left of the xenforo subforum grid titles.This enhancement is for xf v1.2 and above. Install: Upload...
ตอบกลับ
0
จำนวนการดู
4พัน
  • บทความ บทความ
This latest update of vBulletin 5 Connect includes well over 440 bug fixes and enhancements to the product. Most of these fixes and updates focused on: Performance Optimization – incremental...
ตอบกลับ
0
จำนวนการดู
5พัน

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see

กลับ
ยอดนิยม ด้านล่าง