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


iC@fe

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

  • ผู้เริ่มหัวข้อ ผู้เริ่มหัวข้อ iC@fe 
  • วันที่เริ่มต้น วันที่เริ่มต้น

iC@fe 

Administrator

สมาชิกทีมงาน
Admin
เข้าร่วม
21 พฤษภาคม 2009
ข้อความ
1,677
คะแนนปฏิกิริยา
238
คะแนน
63
Would you like to have thread status icons on the left side before thread title?

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

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.png



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



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


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.png
    chrome_2019-02-08_22-09-59-png.png
    2.3 กิโลไบต์ · จำนวนการดู: 391
  • chrome_2019-02-08_21-59-34-png.png
    chrome_2019-02-08_21-59-34-png.png
    2.4 กิโลไบต์ · จำนวนการดู: 345
  • chrome_2019-02-08_22-01-38-png.png
    chrome_2019-02-08_22-01-38-png.png
    2.4 กิโลไบต์ · จำนวนการดู: 354
  • chrome_2019-02-08_22-02-26-png.png
    chrome_2019-02-08_22-02-26-png.png
    2.4 กิโลไบต์ · จำนวนการดู: 351

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

ตอบกลับ
1
จำนวนการดู
491
ตอบกลับ
1
จำนวนการดู
796
TemelReyizz
ตอบกลับ
0
จำนวนการดู
4พัน
ตอบกลับ
0
จำนวนการดู
5พัน

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