Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ---- GAR: auto-updating grids of links (platforms, countries, cities, people, cases) ---- */
/* ===========================================================
  GAR — MediaWiki:Common.css
  Every button Common.js builds carries .gar-btn, and every
  input/textarea carries .gar-field. So a new widget is styled
  the moment it exists — no selector list to keep in sync.
  =========================================================== */
 
/* ---- Buttons ---- */
.gar-btn {
padding: 6px 16px;
border: 0;
border-radius: 6px;
background: #0b3d6b;
color: #fff;
font-size: 1em;
cursor: pointer;
}
.gar-btn:hover {
background: #14387f;
}
.gar-btn:disabled {
opacity: 0.6;
cursor: default;
}
 
/* ---- Text inputs and textareas ---- */
.gar-field {
box-sizing: border-box;
width: 100%;
margin-bottom: 6px;
}
.gar-field[type="file"] {
width: auto;
}
 
/* ---- Status text beside a button ---- */
.gar-instant-status {
margin-left: 8px;
color: #555;
font-style: italic;
}
 
/* ---- Grids of links (platforms, countries, cities, people, cases) ---- */
.gar-auto-grid {
.gar-auto-grid {
display: flex;
display: flex;
Line 21: Line 63:
}
}


/* ---- GAR: A-Z letters. GREEN = not created yet (click to add). BLUE = already exists. ---- */
/* ---- A-Z letters. GREEN = not created yet. BLUE = exists. ---- */
.gar-instant-letter,
.gar-instant-letter,
.gar-letter-new {
.gar-letter-new {
Line 41: Line 83:
text-decoration: underline;
text-decoration: underline;
}
}
css
 
table.wikitable.gar-azgrid-center {
/* ---- A-Z grid, centred by its flex wrapper ---- */
margin: 1em auto !important;
.gar-azgrid-wrap {
width: 90%;
display: flex;
justify-content: center;
width: 100%;
margin: 1em 0;
}
}
/* ---- GAR: type-and-go boxes, the create-case button, photo + details editors ---- */
.gar-azgrid-wrap > table {
.gar-instant-create input, .gar-instant-create textarea,
float: none !important;
.gar-create-case input, .gar-create-case textarea,
.gar-set-photo input, .gar-add-image input, .gar-add-evidence input, .gar-editable textarea {
box-sizing: border-box;
}
}
.gar-instant-create button, .gar-create-case button,
 
.gar-set-photo button, .gar-add-image button, .gar-add-evidence button, .gar-editable button {
/* ---- Notice bars: shared frame, one colour each ---- */
padding: 6px 16px;
.gar-approve-bar,
border: 0;
.gar-pending-bar,
.gar-review-bar {
border: 2px solid;
border-left-width: 6px;
padding: 10px 14px;
border-radius: 6px;
border-radius: 6px;
background: #0b3d6b;
margin: 0 0 14px 0;
color: #fff;
}
font-size: 1em;
.gar-approve-bar,
cursor: pointer;
.gar-review-bar {
border-color: #ffa100;
background: #fef6e7;
color: #5c3b00;
}
}
.gar-instant-create button:hover, .gar-create-case button:hover,
.gar-approve-bar {
.gar-set-photo button:hover, .gar-add-image button:hover, .gar-add-evidence button:hover, .gar-editable button:hover {
font-weight: bold;
background: #14387f;
}
}
.gar-instant-status {
.gar-pending-bar {
margin-left: 8px;
border-color: #2a4b8d;
color: #555;
background: #eaf3ff;
font-style: italic;
color: #17335c;
}
}
/* ---- GAR: reviewer's approve bar on a case awaiting review ---- */
.gar-approve-bar div:first-child,
.gar-approve-bar {
.gar-pending-bar div:first-child {
border: 2px solid #ffa100;
border-left-width: 6px;
background: #fef6e7;
color: #5c3b00;
padding: 10px 14px;
border-radius: 6px;
margin: 0 0 14px 0;
font-weight: bold;
font-weight: bold;
margin-bottom: 6px;
}
}
.gar-approve-bar div:first-child {
.gar-pending-sub {
margin-bottom: 8px;
font-size: 0.92em;
font-weight: normal;
}
}
.gar-approve-bar button {
.gar-review-bar a {
padding: 6px 16px;
color: #0b3d6b;
border: 0;
}
border-radius: 6px;
/* The approve button is the one green button on the site. */
.gar-approve-bar .gar-btn {
background: #14866d;
background: #14866d;
color: #fff;
font-size: 1em;
cursor: pointer;
}
}
.gar-approve-bar button:hover {
.gar-approve-bar .gar-btn:hover {
background: #106e59;
background: #106e59;
}
}


/* ---- GAR: the reported person's photo, shown on their own page ---- */
/* ---- Reported person's photo ---- */
.gar-photo {
.gar-photo {
text-align: center;
text-align: center;
Line 116: Line 157:
}
}


/* ---- GAR: "saved, waiting for review" bar shown to the contributor ---- */
/* ---- GAR:Main branch sections: title + link share one centre line ---- */
.gar-pending-bar {
.gar-branch {
border: 2px solid #2a4b8d;
display: flex;
border-left-width: 6px;
flex-direction: column;
background: #eaf3ff;
align-items: center;
color: #17335c;
gap: 0.4em;
padding: 10px 14px;
margin: 1.6em 0;
border-radius: 6px;
margin: 0 0 14px 0;
}
}
.gar-pending-bar div:first-child {
.gar-branch-title {
font-size: 1.5em;
font-weight: bold;
font-weight: bold;
margin-bottom: 6px;
line-height: 1.2;
}
.gar-pending-sub {
font-size: 0.92em;
}
}

Latest revision as of 21:40, 26 July 2026

/* ===========================================================
   GAR — MediaWiki:Common.css
   Every button Common.js builds carries .gar-btn, and every
   input/textarea carries .gar-field. So a new widget is styled
   the moment it exists — no selector list to keep in sync.
   =========================================================== */

/* ---- Buttons ---- */
.gar-btn {
	padding: 6px 16px;
	border: 0;
	border-radius: 6px;
	background: #0b3d6b;
	color: #fff;
	font-size: 1em;
	cursor: pointer;
}
.gar-btn:hover {
	background: #14387f;
}
.gar-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* ---- Text inputs and textareas ---- */
.gar-field {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 6px;
}
.gar-field[type="file"] {
	width: auto;
}

/* ---- Status text beside a button ---- */
.gar-instant-status {
	margin-left: 8px;
	color: #555;
	font-style: italic;
}

/* ---- Grids of links (platforms, countries, cities, people, cases) ---- */
.gar-auto-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 10px 0;
}
.gar-auto-grid a {
	display: inline-block;
	padding: 18px 24px;
	border: 1px solid #c8d2dc;
	border-radius: 8px;
	background: #f4f7fa;
	text-decoration: none;
	font-size: 1.2em;
	color: #0b3d6b;
}
.gar-auto-grid a:hover {
	background: #e6eef7;
}

/* ---- A-Z letters. GREEN = not created yet. BLUE = exists. ---- */
.gar-instant-letter,
.gar-letter-new {
	color: #1a7f37;
	cursor: pointer;
	text-decoration: underline;
	font-weight: bold;
}
.gar-instant-letter:hover,
.gar-letter-new:hover {
	color: #0f5c27;
}
.gar-letter-exists {
	color: #0b3d6b;
	text-decoration: none;
	font-weight: bold;
}
.gar-letter-exists:hover {
	text-decoration: underline;
}

/* ---- A-Z grid, centred by its flex wrapper ---- */
.gar-azgrid-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 1em 0;
}
.gar-azgrid-wrap > table {
	float: none !important;
}

/* ---- Notice bars: shared frame, one colour each ---- */
.gar-approve-bar,
.gar-pending-bar,
.gar-review-bar {
	border: 2px solid;
	border-left-width: 6px;
	padding: 10px 14px;
	border-radius: 6px;
	margin: 0 0 14px 0;
}
.gar-approve-bar,
.gar-review-bar {
	border-color: #ffa100;
	background: #fef6e7;
	color: #5c3b00;
}
.gar-approve-bar {
	font-weight: bold;
}
.gar-pending-bar {
	border-color: #2a4b8d;
	background: #eaf3ff;
	color: #17335c;
}
.gar-approve-bar div:first-child,
.gar-pending-bar div:first-child {
	font-weight: bold;
	margin-bottom: 6px;
}
.gar-pending-sub {
	font-size: 0.92em;
	font-weight: normal;
}
.gar-review-bar a {
	color: #0b3d6b;
}
/* The approve button is the one green button on the site. */
.gar-approve-bar .gar-btn {
	background: #14866d;
}
.gar-approve-bar .gar-btn:hover {
	background: #106e59;
}

/* ---- Reported person's photo ---- */
.gar-photo {
	text-align: center;
	margin: 6px 0 14px 0;
}
.gar-photo img {
	border: 1px solid #c8d2dc;
	border-radius: 8px;
}
.gar-photo-empty {
	display: inline-block;
	padding: 40px 60px;
	border: 2px dashed #c8d2dc;
	border-radius: 8px;
	color: #8a97a4;
	background: #f7f9fb;
}

/* ---- GAR:Main branch sections: title + link share one centre line ---- */
.gar-branch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
	margin: 1.6em 0;
}
.gar-branch-title {
	font-size: 1.5em;
	font-weight: bold;
	line-height: 1.2;
}