MediaWiki:InfoBox.css: Difference between revisions

From The Seven Sages of Rome
No edit summary
No edit summary
Line 4: Line 4:
   color: #374151; /* gray-700 */
   color: #374151; /* gray-700 */
   border-radius: 0.75rem; /* rounded-xl */
   border-radius: 0.75rem; /* rounded-xl */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* subtle shadow */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
   margin: 1.5rem 0;
   margin: 1.5rem 0;
   transition: box-shadow 0.3s ease;
   transition: box-shadow 0.3s ease;
Line 20: Line 20:
   font-size: 1rem;
   font-size: 1rem;
   padding: 0.75rem 1rem;
   padding: 0.75rem 1rem;
   border-bottom: 1px solid #e5e7eb; /* gray-200 */
   border-bottom: 1px solid #e5e7eb;
   border-radius: 0.75rem 0.75rem 0 0;
   border-radius: 0.75rem 0.75rem 0 0;
}
}


.mw-custom-note .note-icon {
.mw-custom-note .note-icon {
   font-size: 1.25rem; /* text-lg */
   font-size: 1.25rem;
   color: #3b82f6; /* Tailwind blue-500 */
   color: #3b82f6; /* blue-500 */
   display: inline-block;
   display: inline-block;
}
}
Line 46: Line 46:


.mw-custom-note a {
.mw-custom-note a {
   color: #2563eb;
   color: #2563eb; /* blue-600 */
   text-decoration: underline;
   text-decoration: underline;
}
}


.mw-custom-note a:hover {
.mw-custom-note a:hover {
   color: #1d4ed8;
   color: #1d4ed8; /* blue-700 */
}
}

Revision as of 17:21, 12 March 2025

.mw-custom-note {
  border: 1px solid #e5e7eb; /* gray-200 */
  background-color: #ffffff;
  color: #374151; /* gray-700 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 1.5rem 0;
  transition: box-shadow 0.3s ease;
}

.mw-custom-note:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.mw-custom-note .card-header {
  display: flex;
  align-items: center;
  background-color: #f3f4f6; /* gray-100 */
  color: #111827; /* gray-900 */
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0.75rem 0.75rem 0 0;
}

.mw-custom-note .note-icon {
  font-size: 1.25rem;
  color: #3b82f6; /* blue-500 */
  display: inline-block;
}

.mw-custom-note .note-title {
  font-size: 1rem;
  font-weight: 600;
}

.mw-custom-note .card-body {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.mw-custom-note p {
  margin: 0;
}

.mw-custom-note a {
  color: #2563eb; /* blue-600 */
  text-decoration: underline;
}

.mw-custom-note a:hover {
  color: #1d4ed8; /* blue-700 */
}