ผู้ใช้:Bebiezaza/iScript/iScript.css

จากวิกิพีเดีย สารานุกรมเสรี

หมายเหตุ: หลังเผยแพร่ คุณอาจต้องล้างแคชเว็บเบราว์เซอร์ของคุณเพื่อดูการเปลี่ยนแปลง

  • ไฟร์ฟอกซ์ / ซาฟารี: กด Shift ค้างขณะคลิก Reload หรือกด Ctrl-F5 หรือ Ctrl-R (⌘-R บนแมค)
  • กูเกิล โครม: กด Ctrl-Shift-R (⌘-Shift-R บนแมค)
  • อินเทอร์เน็ตเอกซ์พลอเรอร์ และ Edge: กด Ctrl ค้างขณะคลิก Refresh หรือกด Ctrl-F5
  • โอเปร่า: กด Ctrl-F5
/* ---------- Version Checker ---------- */
.iScript-version {
    clear: right;
    width: 256px;
    float: right;
    margin: -1px 0 0.5em 1em;
    text-align: center;
    border: 1px solid #87CEEB;
    padding: 6px;
}

.iScript-version-small {
    width: 234px;
}

.iScript-version-latest {
    background-color:#f0fff0;
    color:#008000;
}

.iScript-version-old {
    background-color:#FFF8DC;
    color:#8B4513;
}

/* ---------- create monobook dropdown list ---------- */
/* make the menu similar to others */
.iScript-monobook-menu-dropdown {
    color: #002bb8;
    padding-left: 0.8em !important;
    padding-right: 0.8em !important;
    margin: 0 0.5em 0 0 !important;
    cursor: pointer;
}

/* ===== show the dropdown ===== */
.iScript-monobook-menu-dropdown:hover {
    position: relative;
    background-color: #f8fcff;
    z-index: 3;
}

.iScript-monobook-menu-dropdown:hover ul {
    display: block;
}

/* make the dropdown properly shows */
.iScript-monobook-menu-content-list {
    position: absolute;
	display: none;
	left: -1px;
	top: 1.5em;
	margin: 0;
	padding: 0;
	z-index: 3;
}

/* make it stack on each other */
.iScript-monobook-menu-content-list li {
	border-bottom: 1px #aaaaaa solid !important;
	margin: 0 !important;
	padding: 0 !important;
	float: left;
    z-index: 3;
    /* expand the width of every box equally to fit every text */
    width: -webkit-fill-available; /* for chromium-based */
    width: -moz-available; /* for firefox */
}

/* fix bottom border & breathing space */
.iScript-monobook-menu-content-list a {
	display: block; /* bottom border */
	padding-right: 3em !important; /* breathing space */
}

/* ---------- height limit ---------- */
.iScript-monobook-menu-dropdown-limit-height {
    overflow-y: auto;
    max-height: 211.9px; /* 21.19px * 10 */
}

.iScript-vector-menu-dropdown-limit-height {
    overflow-y: auto;
    max-height: 322.5px; /* 32.25px * 10 */
}

.iScript-vector2022-menu-limit-height {
    overflow-y: auto;
    max-height: 312px; /* 31.2px * 10 */
}

/* only for firefox as default would eat space whereas chromium-based doesn't */
@-moz-document url-prefix() {
    .iScript-monobook-menu-dropdown-limit-height {
        overflow-y: auto;
        max-height: 212px; /* 21.2px * 10 */
    }

    .iScript-vector-menu-dropdown-limit-height {
        overflow-y: scroll;
        max-height: 322.667px; /* 32.2667px * 10 */
    }
    
    .iScript-vector2022-menu-limit-height {
        overflow-y: auto;
        max-height: 296px; /* 29.6px * 10 */
    }
}

/* ---------- revert ---------- */
/* ===== revert status ===== */
.revert_status_status {
    color: #4682B4;
}

.revert_status_confirm {
    color: #228B22;
}

.revert_status_warn {
    color: #FF4500;
}
/* ---------- Other thingy ---------- */