MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* HONOUR-COLLEGE-START */
/* College profile pages: header, facts card, form helpers */
body:has(.college-header) .firstHeading,
body:has(.college-header) .mw-first-heading { display: none; }
.college-header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
padding: 20px; margin: 0 0 20px; border: 1px solid #e2e6ef; border-radius: 12px; background: #fff; }
.college-logo { flex: 0 0 112px; width: 112px; height: 112px; box-sizing: border-box; padding: 8px;
display: flex; align-items: center; justify-content: center; overflow: hidden;
border: 1px solid #e2e6ef; border-radius: 12px; background: #fff; }
.college-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.college-logo-placeholder { font-size: 48px; opacity: .45; }
.college-identity { flex: 1 1 280px; min-width: 0; }
.college-name { font-size: 1.8em; font-weight: 700; line-height: 1.25; margin-bottom: 8px; color: #202122; }
.college-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.college-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85em; font-weight: 600;
background: #eef2fb; color: #2a3b66; }
.college-status-active { background: #e6f6ec; color: #1b6b3a; }
.college-status-inactive { background: #f0f0f0; color: #666; }
.college-status-pending { background: #fff4e0; color: #8a5a00; }
.college-location-line { color: #54595d; }
.college-edit { margin-left: auto; }
.college-facts { float: right; clear: right; width: 300px; margin: 0 0 16px 24px; padding: 14px 16px;
border: 1px solid #e2e6ef; border-radius: 12px; background: #fafbfd; font-size: .92em; }
.college-facts-title { font-weight: 700; margin-bottom: 6px; }
.cf-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start;
padding: 7px 0; border-top: 1px solid #eceff5; }
.college-facts-title + .cf-row { border-top: 0; }
.cf-label { color: #72777d; }
.cf-value { color: #202122; overflow-wrap: anywhere; }
.college-map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.college-map-links a.external { padding: 6px 12px; border: 1px solid #ccd6ee; border-radius: 8px; background: #fff;
font-weight: 600; text-decoration: none; background-image: none !important; }
.college-map-links a.external:hover { background: #eef3ff; }
@media (max-width: 720px) {
.college-facts { float: none; width: auto; margin: 0 0 16px; }
.college-edit { margin-left: 0; }
}
/* Form: logo drop zone + location hint */
.college-drop { max-width: 420px; padding: 18px; text-align: center; cursor: pointer; color: #444;
border: 2px dashed #b8c4e0; border-radius: 12px; background: #f8faff; }
.college-drop.is-over { border-color: #3366cc; background: #eef3ff; }
.college-drop img { display: block; max-width: 120px; max-height: 120px; margin: 0 auto 8px; }
.college-drop-icon { font-size: 26px; color: #3366cc; }
.college-drop-note { font-size: .85em; color: #777; margin-top: 4px; }
.college-drop-msg { margin-top: 8px; font-weight: 600; color: #333; }
.college-drop-remove { display: inline-block; margin-top: 6px; font-size: .85em; }
.college-coords-hint { max-width: 560px; margin-top: 4px; font-size: .85em; color: #555; }
.college-coords-hint.is-ok { color: #1b6b3a; }
.college-coords-hint.is-error { color: #b32424; }
/* HONOUR-COLLEGE-END */