MediaWiki:Common.css

From CoraTO Wiki - Official Wiki
Revision as of 02:40, 14 May 2025 by Mewsie (talk | contribs) (added for front page)
Jump to navigation Jump to search

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 */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.portal-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.portal-box h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
.wiki-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 2em auto;
  /* max-width: 1200px; */
}

.wiki-card {
  flex: 1 1 360px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.wiki-card h2 {
  margin-top: 0;
  font-size: 1.4em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

.wiki-card ul {
  padding-left: 1.2em;
  margin: 0;
}

.wiki-card li {
  margin-bottom: 6px;
}

}