MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After saving, 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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/*
* MediaWiki:Common.css - UVU Wiki Book Platform Styles
* Import into: https://bou.de/u/wiki/MediaWiki:Common.css
*/
/* ============================================================
Books Landing Page
============================================================ */
.books-header {
background: linear-gradient(135deg, #1a3a5c 0%, #2d6da3 60%, #4a9fd4 100%);
color: #fff;
padding: 30px 25px;
border-radius: 8px;
margin-bottom: 25px;
text-align: center;
}
.books-header h1,
.books-header .mw-headline {
color: #fff !important;
border-bottom: none !important;
margin-bottom: 10px;
}
.books-header-content {
max-width: 700px;
margin: 0 auto;
font-size: 1.05em;
line-height: 1.6;
}
/* Book Cards Grid */
.books-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
margin: 20px 0;
}
.book-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
transition: box-shadow 0.2s, transform 0.2s;
}
.book-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
}
.book-card-cover {
height: 120px;
display: flex;
align-items: center;
justify-content: center;
}
.book-card-icon {
font-size: 3em;
opacity: 0.9;
}
.book-card-body {
padding: 20px;
}
.book-card-title {
font-size: 1.3em;
font-weight: bold;
color: #1a1a1a;
margin-bottom: 5px;
}
.book-card-title a {
color: #1a1a1a;
text-decoration: none;
}
.book-card-title a:hover {
color: #0645ad;
}
.book-card-subtitle {
font-style: italic;
color: #555;
margin-bottom: 8px;
font-size: 0.95em;
}
.book-card-author {
color: #333;
font-weight: 500;
margin-bottom: 3px;
}
.book-card-publisher {
color: #777;
font-size: 0.9em;
margin-bottom: 10px;
}
.book-card-stats {
color: #666;
font-size: 0.85em;
margin-bottom: 10px;
}
.book-card-stats .stat {
white-space: nowrap;
}
.book-card-description {
color: #444;
font-size: 0.92em;
line-height: 1.55;
margin: 12px 0;
}
.book-card-actions {
margin-top: 15px;
display: flex;
gap: 10px;
flex-wrap: wrap;
}
/* ============================================================
Buttons (inline span styling for wiki links)
============================================================ */
.btn-wiki,
.btn-download {
display: inline-block;
padding: 8px 18px;
border-radius: 5px;
font-size: 0.9em;
font-weight: 500;
text-decoration: none;
cursor: pointer;
transition: background 0.2s;
}
.btn-wiki {
background: #0645ad;
color: #fff !important;
}
.btn-wiki:hover {
background: #0b3d91;
}
.btn-download {
background: #28a745;
color: #fff !important;
}
.btn-download:hover {
background: #218838;
}
/* Fix link colors inside buttons */
.book-card-actions a {
text-decoration: none;
}
/* ============================================================
Status Badges
============================================================ */
.status-badge {
display: inline-block;
padding: 3px 12px;
border-radius: 12px;
font-size: 0.8em;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-active {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.status-review {
background: #fff3cd;
color: #856404;
border: 1px solid #ffeeba;
}
.status-complete {
background: #cce5ff;
color: #004085;
border: 1px solid #b8daff;
}
.status-planned {
background: #e2e3e5;
color: #383d41;
border: 1px solid #d6d8db;
}
.status-draft {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* ============================================================
CTA (Call to Action) Box
============================================================ */
.cta-box {
background: linear-gradient(135deg, #eaf3ff 0%, #d5e8ff 100%);
border: 2px solid #a7d0f2;
border-radius: 8px;
padding: 25px;
margin: 25px 0;
}
.cta-box-content {
max-width: 700px;
}
.cta-title {
font-size: 1.3em;
font-weight: bold;
color: #1a3a5c;
margin-bottom: 12px;
}
.cta-text {
color: #333;
line-height: 1.6;
}
.cta-text ul {
margin: 10px 0;
}
/* ============================================================
Info Box
============================================================ */
.info-box {
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 6px;
padding: 20px;
margin: 20px 0;
}
.info-title {
font-size: 1.15em;
font-weight: bold;
color: #333;
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 1px solid #ddd;
}
/* ============================================================
Book Navigation Template
============================================================ */
.book-nav {
display: flex;
justify-content: space-between;
align-items: center;
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 6px;
padding: 10px 15px;
margin: 15px 0;
font-size: 0.9em;
}
.book-nav-prev,
.book-nav-next {
flex: 0 0 auto;
max-width: 35%;
}
.book-nav-prev {
text-align: left;
}
.book-nav-next {
text-align: right;
}
.book-nav-center {
flex: 1;
text-align: center;
font-weight: bold;
}
.book-nav-center a {
color: #333;
}
.book-nav-label {
display: block;
font-size: 0.8em;
color: #888;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* ============================================================
Review Status Template
============================================================ */
.review-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 4px;
font-size: 0.85em;
}
.review-status-icon {
font-size: 1.1em;
}
.review-draft {
background: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
}
.review-in-progress {
background: #fff3cd;
border: 1px solid #ffeeba;
color: #856404;
}
.review-under-review {
background: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
}
.review-approved {
background: #cce5ff;
border: 1px solid #b8daff;
color: #004085;
}
.review-published {
background: #d1ecf1;
border: 1px solid #bee5eb;
color: #0c5460;
}
/* ============================================================
Chapter-level Styles
============================================================ */
/* Blockquotes in book chapters */
.book-card-body blockquote,
#mw-content-text blockquote {
border-left: 4px solid #0645ad;
background: #f8f9fa;
padding: 12px 20px;
margin: 15px 0;
font-style: italic;
color: #333;
}
/* Reference list styling */
.references {
font-size: 0.9em;
line-height: 1.5;
}
/* ============================================================
Responsive Design
============================================================ */
@media (max-width: 768px) {
.books-grid {
grid-template-columns: 1fr;
}
.book-nav {
flex-direction: column;
gap: 8px;
}
.book-nav-prev,
.book-nav-next {
max-width: 100%;
text-align: center;
}
.book-card-actions {
flex-direction: column;
}
.btn-wiki,
.btn-download {
text-align: center;
width: 100%;
box-sizing: border-box;
}
}