MediaWiki:Mobile.css

From Akvopedia
Revision as of 08:50, 12 August 2014 by Andreas Jonsson (talk | contribs)

Jump to: navigation, 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: 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.
/* CSS placed here will affect users of the mobile site */

.RSSReader-head h3 {
  font-size: 100%;
}

/* Link colors */

div#mw-panel div.portal div.body ul li a, div#mw-panel div.portal div.body ul li a:visited {
  color: #434343;
}

div#content a {
  color: #BE499B;
  font-weight: bold;
}

div#content a:visited {
  color: #995e8c;
}

div#bodyContent a {
  color: #BE499B;
  font-weight: bold;
}

div#bodyContent a.new, div#bodyContent a.new:visited {
  color: #ba0000;
}

/* Hide table of contents */
.toc, #toc { display: none; }

/* Reduce size of title. */
#firstHeading {
  font-size: 130%;
  font-weight: bold;
}

/* Akvopedia portal pages */

.akvo-portal {
  display: table;
  text-align: center;
  width: 100%;
  table-layout:fixed;
}

.akvo-portal-group-title {
  width:100%;
  font-size: 0.8em;
  font-weight: bold;
  min-height: 3.5em;
  word-wrap: break-word;
}

.akvo-portal-body {
  display: table-row;
}

.akvo-portal-group {
  width:20%;
  overflow:hidden;
  display:table-cell;
}

.akvo-portal-group:nth-child(2n+1) {
  background-color:#efefef;
}

.akvo-portal-entry-icon img {
  width: 60px;
  height: 60px;
}

.akvo-portal-entry {
  width: 100%;
}

.akvo-portal-entry-caption {
  width: 100%;
  font-size: 0.7em;
}

.akvo-portal-entry-caption-text {
  width:100%;
  min-height: 4.5em;
  word-wrap:break-word;
}