MediaWiki:Common.css: Difference between revisions

From davispedia
Jump to navigation Jump to search
No edit summary
Undid revision 46539 by J.Miller (talk)
 
(5 intermediate revisions by the same user not shown)
Line 190: Line 190:
   ========================================================================== */
   ========================================================================== */


/* 1. Base style setup for native admin system links (Recent Changes, History, Logs) */
/* ==========================================================================
  1. NATIVE CORE USERLINKS (Recent Changes, History, Logs, Talk Signatures)
  ========================================================================== */
.mw-userlink[data-user-group="sysop"],
.mw-userlink[data-user-group="sysop"],
.mw-userlink[data-user-group="sysop"] bdi {
.mw-userlink[data-user-group="sysop"] bdi {
     /* Official UC Davis Primary Gold */
     --admin-color: #FFBF00; /* Official UC Davis Primary Gold */
    --admin-color: #FFBF00;
      
      
     color: var(--admin-color) !important;
     color: var(--admin-color) !important;
Line 201: Line 202:
}
}


/* 2. Base style setup for signatures, talk pages, and custom wiki templates */
/* ==========================================================================
a[href*="User:J.Miller"], a[href*="User_talk:J.Miller"],
  2. TARGET SPECIFIC ACCOUNT USERNAMES ONLY (Strict Content Body & Top Right Toolbar)
a[href*="User:Josh"], a[href*="User_talk:Josh"],
  ========================================================================== */
a[href*="User:Newell"], a[href*="User_talk:Newell"],
/* Restricts targets exclusively to the main page content area and the top personal toolbar panel */
a[href*="User:Newera01"], a[href*="User_talk:Newera01"] {
#bodyContent a[href*="User:"], #pt-userpage a,
#bodyContent a[href*="User_talk:"] {
     --admin-color: #FFBF00;
     --admin-color: #FFBF00;
   
}
 
/* Apply colors exclusively to the four specific users inside those safe areas */
#bodyContent a[href*="User:J.Miller"], #bodyContent a[href*="User_talk:J.Miller"], #pt-userpage a[href*="J.Miller"],
#bodyContent a[href*="User:Josh"], #bodyContent a[href*="User_talk:Josh"], #pt-userpage a[href*="Josh"],
#bodyContent a[href*="User:Newell"], #bodyContent a[href*="User_talk:Newell"], #pt-userpage a[href*="Newell"],
#bodyContent a[href*="User:Newera01"], #bodyContent a[href*="User_talk:Newera01"], #pt-userpage a[href*="Newera01"] {
     color: var(--admin-color) !important;
     color: var(--admin-color) !important;
     font-weight: bold !important;
     font-weight: bold !important;
Line 213: Line 221:
}
}


/* Forces text isolation inner tags to safely inherit alignment options */
/* Inherit styling cleanly for modern bidirectional rendering tags */
a[href*="User:J.Miller"] bdi, a[href*="User:Josh"] bdi, a[href*="User:Newell"] bdi, a[href*="User_talk:Newera01"] bdi {
#bodyContent a[href*="User:J.Miller"] bdi, #bodyContent a[href*="User:Josh"] bdi,  
#bodyContent a[href*="User:Newell"] bdi, #bodyContent a[href*="User:Newera01"] bdi {
     color: inherit !important;
     color: inherit !important;
     text-shadow: inherit !important;
     text-shadow: inherit !important;
}
}


/* ==========================================================================
/* ==========================================================================
   3. INJECT ADMINISTRATIVE ROLE ICON (SVG Data URI)
   3. INTERFACE BLOCK (Guards all tabs, tools, headers, and sidebars permanently)
   ========================================================================== */
   ========================================================================== */
.mw-userlink[data-user-group="sysop"]::before,
#p-cactions a, .tabs a, #p-navigation a, .portlet a, #column-one a, h1, h2, .firstHeading {
a[href*="User:J.Miller"]::before,
     color: inherit !important;
a[href*="User:Josh"]::before,
     text-shadow: none !important;
a[href*="User:Newell"]::before,
     font-weight: normal !important; /* Returns tabs back to standard weights */
a[href*="User:Newera01"]::before {
     content: "";
     display: inline-block;
    width: 12px;
     height: 12px;
    margin-right: 5px;
    vertical-align: middle;
   
    /* Safely Encoded Aggie Gold Shield Matrix */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='%23FFBF00'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
   
    /* Standard layout render parameters */
    opacity: 1 !important;
}
 
/* Prevents the talk links directly trailing user signatures from inheriting duplicate icons */
a[href*="User_talk:"]::before {
    display: none !important;
}
}

Latest revision as of 03:39, 10 November 2026

.davispedia-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	grid-auto-rows: 1fr;
	align-items: stretch;
	gap: 1rem;
	margin: 1.5rem 0;
	justify-content: start;
}

.davispedia-feature-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
    max-width: 450px;
	height: 100%;
	min-height: 160px;
	padding: 1.4rem 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.davispedia-feature-card h2 {
	margin: 0 0 0.65rem;
	padding: 0;
	border: 0;
	font-size: 1.35rem;
	line-height: 1.25;
}

.davispedia-feature-card h2 a {
	color: #202122;
	text-decoration: none;
}

.davispedia-feature-card h2 a:hover,
.davispedia-feature-card h2 a:focus {
	text-decoration: underline;
}

.davispedia-feature-card p {
	margin: 0;
	color: #363636;
	line-height: 1.5;
}

.davispedia-feature-red {
	min-width: 0;
	background: #f8d7da;
}

.davispedia-feature-green {
	background: #d8eedc;
}

.davispedia-feature-yellow {
	background: #fff1bf;
}

.davispedia-feature-blue {
	background: #d7e9f7;
}

.davispedia-feature-red .davispedia-potd-entry {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.davispedia-feature-red .davispedia-potd-caption {
	margin: 0 0 0.6rem;
	line-height: 1.45;
}

.davispedia-feature-red .davispedia-potd-credit {
	margin: 0 0 0.9rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #54595d;
}

.davispedia-feature-red .davispedia-potd-credit a {
	color: inherit;
}

.davispedia-feature-red .davispedia-potd-image {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 260px;
	min-height: 260px;
	margin: auto;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.34);
}

.davispedia-feature-red .davispedia-potd-image > a,
.davispedia-feature-red .davispedia-potd-image > span,
.davispedia-feature-red .davispedia-potd-image > p,
.davispedia-feature-red .davispedia-potd-image > figure {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
}

.davispedia-feature-red .davispedia-potd-image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
}

.davispedia-feature-red .davispedia-potd-image img,
.davispedia-feature-red .davispedia-potd-image .mw-file-element {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
	border: 0;
	border-radius: 7px;
}

.davispedia-feature-red .davispedia-potd-image .thumb,
.davispedia-feature-red .davispedia-potd-image .thumbinner,
.davispedia-feature-red .davispedia-potd-image .mw-file-description {
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.davispedia-potd-error {
	box-sizing: border-box;
	margin-top: 0.5rem;
	padding: 0.75rem;
	border: 1px solid rgba(120, 0, 0, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.35);
	color: #6b0000;
}

@media screen and (max-width: 700px) {
	.davispedia-feature-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.davispedia-feature-card {
		height: auto;
		padding: 1.2rem;
	}

	.davispedia-feature-red .davispedia-potd-image {
		height: 220px;
		min-height: 220px;
	}
}

.davispedia-potd-credit {
display: none !important;
}


/* ==========================================================================
   DAVISPEDIA - ADMIN USERNAME CUSTOMIZATION
   ========================================================================== */

/* ==========================================================================
   1. NATIVE CORE USERLINKS (Recent Changes, History, Logs, Talk Signatures)
   ========================================================================== */
.mw-userlink[data-user-group="sysop"],
.mw-userlink[data-user-group="sysop"] bdi {
    --admin-color: #FFBF00; /* Official UC Davis Primary Gold */
    
    color: var(--admin-color) !important;
    font-weight: bold !important;
    text-shadow: 0 0 3px rgba(255, 191, 0, 0.35) !important;
}

/* ==========================================================================
   2. TARGET SPECIFIC ACCOUNT USERNAMES ONLY (Strict Content Body & Top Right Toolbar)
   ========================================================================== */
/* Restricts targets exclusively to the main page content area and the top personal toolbar panel */
#bodyContent a[href*="User:"], #pt-userpage a,
#bodyContent a[href*="User_talk:"] {
    --admin-color: #FFBF00;
}

/* Apply colors exclusively to the four specific users inside those safe areas */
#bodyContent a[href*="User:J.Miller"], #bodyContent a[href*="User_talk:J.Miller"], #pt-userpage a[href*="J.Miller"],
#bodyContent a[href*="User:Josh"], #bodyContent a[href*="User_talk:Josh"], #pt-userpage a[href*="Josh"],
#bodyContent a[href*="User:Newell"], #bodyContent a[href*="User_talk:Newell"], #pt-userpage a[href*="Newell"],
#bodyContent a[href*="User:Newera01"], #bodyContent a[href*="User_talk:Newera01"], #pt-userpage a[href*="Newera01"] {
    color: var(--admin-color) !important;
    font-weight: bold !important;
    text-shadow: 0 0 3px rgba(255, 191, 0, 0.35) !important;
}

/* Inherit styling cleanly for modern bidirectional rendering tags */
#bodyContent a[href*="User:J.Miller"] bdi, #bodyContent a[href*="User:Josh"] bdi, 
#bodyContent a[href*="User:Newell"] bdi, #bodyContent a[href*="User:Newera01"] bdi {
    color: inherit !important;
    text-shadow: inherit !important;
}

/* ==========================================================================
   3. INTERFACE BLOCK (Guards all tabs, tools, headers, and sidebars permanently)
   ========================================================================== */
#p-cactions a, .tabs a, #p-navigation a, .portlet a, #column-one a, h1, h2, .firstHeading {
    color: inherit !important;
    text-shadow: none !important;
    font-weight: normal !important; /* Returns tabs back to standard weights */
}