מדיה ויקי:Common.css: הבדלים בין גרסאות בדף

מתוך פרדס חנה - כרכור
קפיצה אל:ניווט, חיפוש
אין תקציר עריכה
תגית: שוחזרה
אין תקציר עריכה
 
(4 גרסאות ביניים של 2 משתמשים אינן מוצגות)
שורה 1: שורה 1:
/* הסגנונות הנכתבים כאן ישפיעו על כל העיצובים */
/* הסגנונות הנכתבים כאן ישפיעו על כל העיצובים */
.dropup .dropdown-menu.show {
/* ===== מפת שכונות לחיצה + תיקוני תצוגה =====
    transform: none !important;
  להדבקה ב'מדיה ויקי:Common.css' (לבוט אין הרשאת editinterface).
    bottom: 0 !important;
  מחליף את common-mobile-fix.css הישן וכולל אותו. */
    top: auto !important;
 
/* --- 1. תמונות מתכווצות לרוחב המסך ---
  קריטי למפת השכונות: המפה היא 1000px קבוע, ואזורי הלחיצה ממוקמים באחוזים
  ביחס למכל. בלי הכלל הזה, במסך צר מ-1000px התמונה חורגת מהמכל, האחוזים
  מתייחסים לרוחב אחר מזה של התמונה, וכל אזורי הלחיצה זזים. זו הסיבה
  שהלחיצה "לפעמים עובדת ולפעמים לא" — זה תלוי ברוחב החלון. */
.mw-parser-output img,
.mw-parser-output .mw-file-element {
max-width: 100%;
height: auto;
}
}
.navbar-tools.navbar-nav .dropdown .p-personal-tools.dropdown-menu.show {
.mw-parser-output iframe {
    right: auto;
max-width: 100%;
    left: 0 !important;
}
 
/* --- 2. אזורי הלחיצה במפת השכונות --- */
.hoodmap {
touch-action: manipulation;
}
 
/* כל אזור גזור ב-clip-path לצורת השכונה, כך שהצביעה ממלאת בדיוק את השכונה */
.hoodmap .hood {
transition: background-color 0.12s ease-in;
cursor: pointer;
}
.hoodmap .hood:hover {
background-color: rgba(255, 235, 59, 0.55);  /* צהוב חזק, נראה מעל כל צבעי המפה */
}
.hoodmap .hood-nolink:hover {
background-color: rgba(150, 150, 150, 0.45);  /* אפור: מסומן אך אין ערך */
cursor: default;
}
 
/* שם השכונה מופיע במרכז האזור בזמן ריחוף.
  הערה: clip-path גוזר גם את התווית, כך שבשכונות בצורת L היא עלולה
  להיחתך. במקרה כזה עדיין יש tooltip של הדפדפן על התג title. */
.hoodmap .hood::after {
content: attr(data-hood);
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
padding: 3px 10px;
background: rgba(0, 0, 0, 0.78);
color: #fff;
font-size: 15px;
line-height: 1.4;
font-weight: bold;
white-space: nowrap;
border-radius: 4px;
opacity: 0;
transition: opacity 0.12s ease-in;
pointer-events: none;                          /* שלא יחסום את הלחיצה */
}
.hoodmap .hood:hover::after {
opacity: 1;
}
 
/* --- 3. תצוגה בטלפון: מניעת גלילה אופקית (RTL) --- */
@media (max-width: 800px) {
/* טבלאות פריסה (עמוד ראשי) — עמודה אחת מתחת לשנייה.
  :not(.infobox) חשוב! בלעדיו הכלל משטח את תבנית "מידע שכונה"
  של חוה ומפרק אותה לשורות נפרדות בטלפון. */
.mw-parser-output > table:not(.wikitable):not(.infobox),
.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody,
.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody > tr,
.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody > tr > td {
display: block !important;
width: auto !important;
}
.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody > tr > td {
margin-bottom: 10px;
}
 
/* טבלאות נתונים — גלילה בתוך הטבלה, לא בכל הדף */
.mw-parser-output .wikitable {
display: block;
overflow-x: auto;
max-width: 100%;
}
 
/* תיבת מידע ברוחב מלא בטלפון במקום 260px צפים */
.mw-parser-output table.infobox {
float: none !important;
width: 100% !important;
margin: 0 0 1em !important;
}
 
/* התווית קטנה מדי במסך קטן */
.hoodmap .hood::after {
font-size: 13px;
}
}
 
/* ===== כפתור "העתק קישור" שמתחת לכותרת הערך =====
  מלווה את הסקריפט ב'מדיה ויקי:Common.js'. הכפתור נועד להיות שם
  כשמחפשים אותו ולא למשוך תשומת לב כשקוראים, ולכן הוא קטן, בצבעי
  הטקסט המשני, ומקבל צבע רק במעבר עכבר. */
.pp-copy-link-wrap {
margin: -2px 0 10px;
}
 
#pp-copy-link {
font: inherit;
font-size: 85%;
line-height: 1.6;
color: #666;
background: #f8f8f8;
border: 1px solid #ddd;
border-radius: 999px;
padding: 2px 12px;
cursor: pointer;
transition: background .15s, border-color .15s, color .15s;
}
 
#pp-copy-link:hover:not(:disabled) {
background: #f0ece3;
border-color: #b08968;
color: #7a5c3e;
}
 
#pp-copy-link:disabled {
cursor: default;
color: #3d7a3d;
border-color: #b6d7b6;
background: #f1f8f1;
}
 
/* במסך צר הכתובת עצמה עלולה להופיע בכפתור (אם ההעתקה נכשלה),
  ואז עדיף שתישבר ולא תדחוף את הדף הצידה. */
#pp-copy-link {
max-width: 100%;
overflow-wrap: anywhere;
text-align: start;
}
}
.rtl .nav-item.dropdown .dropdown-menu{ right: auto; }

גרסה אחרונה מ־11:27, 6 בספטמבר 2026

/* הסגנונות הנכתבים כאן ישפיעו על כל העיצובים */
/* ===== מפת שכונות לחיצה + תיקוני תצוגה =====
   להדבקה ב'מדיה ויקי:Common.css' (לבוט אין הרשאת editinterface).
   מחליף את common-mobile-fix.css הישן וכולל אותו. */

/* --- 1. תמונות מתכווצות לרוחב המסך ---
   קריטי למפת השכונות: המפה היא 1000px קבוע, ואזורי הלחיצה ממוקמים באחוזים
   ביחס למכל. בלי הכלל הזה, במסך צר מ-1000px התמונה חורגת מהמכל, האחוזים
   מתייחסים לרוחב אחר מזה של התמונה, וכל אזורי הלחיצה זזים. זו הסיבה
   שהלחיצה "לפעמים עובדת ולפעמים לא" — זה תלוי ברוחב החלון. */
.mw-parser-output img,
.mw-parser-output .mw-file-element {
	max-width: 100%;
	height: auto;
}
.mw-parser-output iframe {
	max-width: 100%;
}

/* --- 2. אזורי הלחיצה במפת השכונות --- */
.hoodmap {
	touch-action: manipulation;
}

/* כל אזור גזור ב-clip-path לצורת השכונה, כך שהצביעה ממלאת בדיוק את השכונה */
.hoodmap .hood {
	transition: background-color 0.12s ease-in;
	cursor: pointer;
}
.hoodmap .hood:hover {
	background-color: rgba(255, 235, 59, 0.55);   /* צהוב חזק, נראה מעל כל צבעי המפה */
}
.hoodmap .hood-nolink:hover {
	background-color: rgba(150, 150, 150, 0.45);  /* אפור: מסומן אך אין ערך */
	cursor: default;
}

/* שם השכונה מופיע במרכז האזור בזמן ריחוף.
   הערה: clip-path גוזר גם את התווית, כך שבשכונות בצורת L היא עלולה
   להיחתך. במקרה כזה עדיין יש tooltip של הדפדפן על התג title. */
.hoodmap .hood::after {
	content: attr(data-hood);
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 3px 10px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	font-weight: bold;
	white-space: nowrap;
	border-radius: 4px;
	opacity: 0;
	transition: opacity 0.12s ease-in;
	pointer-events: none;                          /* שלא יחסום את הלחיצה */
}
.hoodmap .hood:hover::after {
	opacity: 1;
}

/* --- 3. תצוגה בטלפון: מניעת גלילה אופקית (RTL) --- */
@media (max-width: 800px) {
	/* טבלאות פריסה (עמוד ראשי) — עמודה אחת מתחת לשנייה.
	   :not(.infobox) חשוב! בלעדיו הכלל משטח את תבנית "מידע שכונה"
	   של חוה ומפרק אותה לשורות נפרדות בטלפון. */
	.mw-parser-output > table:not(.wikitable):not(.infobox),
	.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody,
	.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody > tr,
	.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody > tr > td {
		display: block !important;
		width: auto !important;
	}
	.mw-parser-output > table:not(.wikitable):not(.infobox) > tbody > tr > td {
		margin-bottom: 10px;
	}

	/* טבלאות נתונים — גלילה בתוך הטבלה, לא בכל הדף */
	.mw-parser-output .wikitable {
		display: block;
		overflow-x: auto;
		max-width: 100%;
	}

	/* תיבת מידע ברוחב מלא בטלפון במקום 260px צפים */
	.mw-parser-output table.infobox {
		float: none !important;
		width: 100% !important;
		margin: 0 0 1em !important;
	}

	/* התווית קטנה מדי במסך קטן */
	.hoodmap .hood::after {
		font-size: 13px;
	}
}

/* ===== כפתור "העתק קישור" שמתחת לכותרת הערך =====
   מלווה את הסקריפט ב'מדיה ויקי:Common.js'. הכפתור נועד להיות שם
   כשמחפשים אותו ולא למשוך תשומת לב כשקוראים, ולכן הוא קטן, בצבעי
   הטקסט המשני, ומקבל צבע רק במעבר עכבר. */
.pp-copy-link-wrap {
	margin: -2px 0 10px;
}

#pp-copy-link {
	font: inherit;
	font-size: 85%;
	line-height: 1.6;
	color: #666;
	background: #f8f8f8;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 2px 12px;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}

#pp-copy-link:hover:not(:disabled) {
	background: #f0ece3;
	border-color: #b08968;
	color: #7a5c3e;
}

#pp-copy-link:disabled {
	cursor: default;
	color: #3d7a3d;
	border-color: #b6d7b6;
	background: #f1f8f1;
}

/* במסך צר הכתובת עצמה עלולה להופיע בכפתור (אם ההעתקה נכשלה),
   ואז עדיף שתישבר ולא תדחוף את הדף הצידה. */
#pp-copy-link {
	max-width: 100%;
	overflow-wrap: anywhere;
	text-align: start;
}