MediaWiki:Common.css

From The Seven Sages of Rome
Revision as of 08:15, 14 January 2026 by Noeth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
@import url('/index.php?title=MediaWiki:BentoGrid.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Navbar.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Breadcrumb.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:LandingPage.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:WikiTable.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:MotifBadges.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CustomFiltered.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CustomDatatable.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:InfoBox.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CollapsibleTree.css&action=raw&ctype=text/css');

@font-face {
    font-family: 'Inter', sans-serif;
    src: url('/images/f/f1/Inter.ttf') format('ttf'),
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Inter', sans-serif;
    src: url("/images/9/94/Inter-Italic.ttf") format('ttf'),
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Prata', serif;
    src: url('/images/3/36/Prata-Regular.ttf') format('ttf'),
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FCFCFA;
}

ul ul,
ul ol,
ol ul,
ol ol {
  padding-left: 1.5rem; /* or 2rem, whatever looks right */
  list-style-type: disc; /* or circle/square as you prefer */
}

.smw-datatable {
	font-family: 'Inter', sans-serif !important;
}

@media (max-width: 768px) {
	.mw-body.content {
		padding: 0 !important;
	}
}

.grid-container {
    display: block; /* Change from grid to block display */
    padding: 20px; /* Keep the padding */
}

.grid-container .wikitable {
    margin-bottom: 20px; /* Add space between tables */
    width: 100%; /* Make tables full width */
}

.card {
	height: 250px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	border-radius: 0.75rem;
}

.card:hover {
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.card-block {
	display: grid;
	align-content: space-between;
	height: 100%;
}

.primary-btn {
  margin-right: auto;
  margin-left: auto;
  background-color: #222;
  border-radius: 4px;
  border-style: none;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font-family: "Farfetch Basis","Helvetica Neue",Arial,sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  max-width: none;
  min-height: 44px;
  min-width: 10px;
  outline: none;
  overflow: hidden;
  padding: 9px 20px 8px;
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
}

.primary-btn:hover,
.primary-btn:focus {
	opacity: .75;
}

.smw-datatable select {
	background: #fff;
}

.smw-datatable th a {
	color: black;
}

#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea {
	max-width: 98%;
}

#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > input,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .select2,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .pf-select2-container,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .oo-ui-comboBoxInputWidget {
	width: 100% !important;
}

/* WIP banner */
.wip-alert {
    position: fixed;
    display: none;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 999;
}

/* Version test */
/* Reset default list styling */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.maps-map {
	border-radius: 0.5rem;
	filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}

.dtfh-floatingparent {
	top: 48px !important;
}

.alert-info {
	background: rgba(64, 112, 255, 0.1) !important;
	backdrop-filter: blur(10px) saturate(100%) contrast(45%) brightness(140%) !important;
	-webkit-backdrop-filter: blur(10px) saturate(100%) contrast(45%) brightness(140%) !important;
	border: none !important;
}

.oo-ui-windowManager-modal > .oo-ui-dialog {
	z-index: 999 !important;
}

.oo-ui-popupToolGroup-tools.oo-ui-popupToolGroup-active-tools .oo-ui-iconElement-icon {
	position: static !important;
}

.oo-ui-menuSelectWidget {
	z-index: 999 !important;
}

#catlinks {
	border-radius: 0.75rem;
	background-color: white;
	padding: 0.5rem 1rem 0.5rem 1rem;
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.srf-tagcloud-wordcloud {
	width: unset !important;
	
	a {
	  font-family: "Inter", sans-serif !important;
	  font-weight: 500 !important;
	  letter-spacing: -1px;
    }
    
	a:hover {
		text-decoration: underline !important;
	}
}

.editor-view {
	display: none;
}

#firstHeading {
	font-family: 'Prata', 'serif';
}


/* Modern Light Search Bar Styling */
#p-search.p-search {
  margin: 0;
}

#searchform.mw-search {
  width: 100%;
  max-width: 400px;
}

#searchform .input-group {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.03);
  transition: box-shadow 0.15s ease-in-out;
}

#searchform .input-group:focus-within {
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.05);
}

#searchInput.form-control {
  border: 1px solid hsl(240 5.9% 93%);
  background: hsl(0 0% 100%);
  color: hsl(240 10% 3.9%);
  font-size: 14px;
  padding: 0.625rem 1rem;
  height: auto;
  border-radius: 0.5rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  transition: all 0.15s ease-in-out;
}

#searchInput.form-control:focus {
  outline: none;
  background: hsl(0 0% 100%);
  border-color: hsl(240 5.9% 90%);
  box-shadow: none;
}

#searchInput.form-control::placeholder {
  color: hsl(240 4% 60%);
}

.input-group-append {
  margin-left: 0 !important;
}

#searchGoButton.search-btn {
  background: hsl(0 0% 98%);
  border: 1px solid hsl(240 5.9% 93%);
  border-left: none;
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  border-radius: 0.5rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  position: relative;
  width: 44px;
}

#searchGoButton.search-btn:hover {
  background: hsl(0 0% 96%);
}

#searchGoButton.search-btn:active {
  background: hsl(0 0% 94%);
}

/* Add search icon using CSS */
#searchGoButton.search-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/** Overview Styling **/
.overview-description {
	font-size: larger;
}

.description {
	font-size: larger;
}

/** Version Tree Branches **/
/* Container positioning */
.version-tree-wrapper {
    position: relative;
    padding-top: 20px;
}

/* The vertical line coming down from 'Version branches' */
.version-root-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px; /* Space for the lines */
}

.version-root-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 2px;
    height: 20px;
    background-color: #000; /* Change line color here */
}

/* The horizontal connector and the two drops */
.tree-branch-row {
    position: relative;
}

/* Horizontal line */
.tree-branch-row::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: #000;
}

/* Vertical lines dropping to the column headers */
.branch-column::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #000;
}

/* shadcn-style input */
#tree-filter {
    display: flex;
    width: 100%;
    max-width: 600px;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: #111827;
    transition: all 0.15s ease;
    outline: none;
    box-sizing: border-box;
}

#tree-filter::placeholder {
    color: #9ca3af;
}

#tree-filter:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#tree-filter:hover:not(:focus) {
    border-color: #9ca3af;
}

#tree-filter:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #f9fafb;
}

/** Custom Manuscript Test **/
/* Manuscript Modern View Styles */
.manuscript-modern-view {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fafafa;
  padding: 2rem 0;
}

/* Header Section */
.manuscript-header {
  margin-bottom: 3rem;
}

.badge-manuscript,
.badge-illustrated {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2rem;
  margin-right: 0.5rem;
}

.badge-manuscript {
  background: rgba(64, 64, 64, 0.08);
  color: #404040;
  border: 1px solid rgba(64, 64, 64, 0.2);
}

.badge-illustrated {
  background: rgba(100, 100, 100, 0.1);
  color: #505050;
}

.manuscript-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 1rem 0 0.5rem 0;
  color: #1a1a1a;
}

.manuscript-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #666;
  margin: 0.5rem 0;
}

.manuscript-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin-top: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}

.meta-icon {
  width: 1rem;
  height: 1rem;
  color: #404040;
}

.meta-value {
  font-weight: 500;
  color: #1a1a1a;
}

.ref-badge {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: #404040;
  border: 1px solid rgba(64, 64, 64, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

/* Separator */
.manuscript-separator {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 3rem 0;
}

/* Section Styles */
.manuscript-section {
  margin-bottom: 3rem;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(64, 64, 64, 0.6);
}

/* Detail Cards */
.detail-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1rem;
  height: 100%;
  transition: all 0.2s ease;
}

.detail-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(64, 64, 64, 0.2);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-icon {
  width: 1rem;
  height: 1rem;
}

.detail-value {
  font-weight: 500;
  color: #1a1a1a;
  font-size: 0.95rem;
}

/* Sources Section */
.sources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.source-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1rem;
}

.source-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.5rem;
}

.source-content {
  font-size: 0.9rem;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Sidebar Styles */
.sidebar-sticky {
  position: sticky;
  top: 2rem;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.sidebar-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #404040;
}

/* Date Rows */
.date-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-label {
  font-size: 0.875rem;
  color: #666;
}

.date-value {
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
}

.date-separator {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 0;
}

/* Origin Section */
.origin-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.origin-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.origin-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
}

.origin-icon {
  width: 1rem;
  height: 1rem;
  color: #404040;
}

/* Digital Access */
.digital-description {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.digital-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.digital-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(100, 100, 100, 0.05);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.digital-links a:hover {
  background: rgba(100, 100, 100, 0.1);
  border-color: #e5e5e5;
}

.no-digital {
  background: rgba(100, 100, 100, 0.05);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .manuscript-title {
    font-size: 2.25rem;
  }

  .sidebar-sticky {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .manuscript-title {
    font-size: 1.75rem;
  }

  .manuscript-meta-row {
    flex-direction: column;
    gap: 1rem;
  }
}