MediaWiki:Common.css

From COMP15212 Wiki
Revision as of 10:37, 28 August 2019 by gravatar W81054ch [userbureaucratinterface-adminsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* From main.css*/
.scrollybox>ul {
  background-color: #ddd;
  max-height: 500px;
  overflow-y: auto;
}

blockquote {
  margin: 5px 0px;
  background-color: #ddd;
  border-radius: 0px 10px 10px 0px;
  padding: 5px 30px;
  border-left: 5px solid #aaa;
}

blockquote>p {
  margin: 0;
}

li>p {
  margin-bottom: 0;
}

a>exdl {
  font-size: 18pt;
  text-align: center;
}

td {
  padding: 3px
}

th {
  padding: 3px;
  text-align: center;
}

thead>tr:first-child {
  background-color: #666 !important;
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #aaa;
}

tbody>tr:nth-child(even) {
  background-color: #ddd
}

tbody>tr:nth-child(odd) {
  background-color: #eee
}

.category {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2px;
  border: 1px solid #666;
  background-color: #ccc;
}

.category .title {
  font-weight: bold;
  color: white;
  padding: 2px;
  border: 1px dashed #666;
  background-color: #44b;
}

.category .title a {
  color: rgb(192, 233, 252);
}
.pathtable {
  text-align: center;
  margin-bottom: 5px;
  border: 1px solid #666;
  background-color: #ccc;
  width: 100%;
}

.pathtable th {
  font-weight: bold;
  text-align: center;
  padding: 2px;
  background-color: #dfd;
  width: 10em;
}

.dependstable {
  text-align: center;
  margin-bottom: 5px;
  border: 1px solid #666;
  background-color: #ccc;
  width: 100%;
}

.dependstable th {
  font-weight: bold;
  padding: 2px;
  background-color: #ddf;
  width: 10em;
}

.dependstable th a {
  color: rgb(192, 233, 252);
}

#scorebox {
  width: 100%;
  text-align: center;
  font-size: 18pt;
}

#groupTitle {
  color: rgb(192, 233, 252);
}

.yellow {
  background-color: #ffe62b !important;
}

.clickable {
  cursor: pointer;
}

.table-light * {
  background-color: #fff !important;
}

.table-light-header * {
  color: #000;
  border-top: 0 !important;
}

.table-half-height, .table-small {
  display: -moz-groupbox;
  position: relative;
}

.table-half-height {
  height: 50%;
}

.table-small {
  height: 500px;
}

.table-half-height tr, .table-small tr {
  width: 100%;
  display: inline-table;
  table-layout: fixed;
}

.table-half-height > tbody, .table-small > tbody {
  overflow-y: auto;
  max-height: 90%;
  width: 100%;
  position: absolute;
}

.smooth-transitions {
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.text-faded {
  color: #8e8e8e;
}

.text-right {
  text-align: right;
}

.satisfied {
  color: #000 !important;
}

.unsatisfied {
  color: #a9a9a9 !important;
}

.width-100{
  width: 100%;
}

.top-buffer-25 {
  margin-top: 25px !important;
}

.left-buffer-25 {
  margin-left: 25px !important;
}

.right-buffer-10 {
 margin-right: 10px !important; 
}

.left-buffer-10 {
  margin-left: 10px !important;
}

.centered {
  margin: auto !important;
}

.centered-horizontal {
  margin-left: auto !important;
  margin-right: auto !important;
}

.centered-vertical {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.padding-sm {
  padding: 5px;
}

img, canvas {
	max-width: 100%;
	width:  auto;
	height: auto;
}

/* From kbarticle.css*/
.card-body {
  padding: 20px;
}

.redirectBtn {
  position: absolute;
  max-width: 100%;
  margin: 10px;
  top: 0px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.accordion {
  margin: 30px 0;
}

#dependentAccordion, associationsAccordion > .card {
  width: 100%;
}

.card-header {
  min-height: 40px;
  cursor: pointer;
}

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

/* Fix buttons and remove gradient*/
.btn-primary {
    color: #fff;
    background: #0275d8;
    border-color: #0275d8;
}
.btn-primary:hover {
    color: #fff;
    background: #025aa5;
    border-color: #01549b;
}
.btn-secondary {
    color: #292b2c;
    background: #fff;
    border-color: #ccc;
}
.btn-secondary:hover {
    color: #292b2c;
    background: #e6e6e6;
    border-color: #adadad;
}
.btn-warning {
    color: #fff;
    background: #f0ad4e;
    border-color: #f0ad4e;
}
.btn-warning:hover {
	color: #fff;
    background: #ec971f;
    border-color: #eb9316
}
.btn-success {
    color: #fff;
    background: #5cb85c;
    border-color: #5cb85c;
}
.btn-success:hover {
    color: #fff;
    background: #449d44;
    border-color: #419641;
}
.btn-danger {
    color: #fff;
    background: #d9534f;
    border-color: #d9534f;
}
.btn-danger:hover {
    color: #fff;
    background: #c9302c;
    border-color: #c12e2a;
}
.btn-info {
    color: #fff;
    background: #5bc0de;
    border-color: #5bc0de;
}
.btn-info:hover {
    color: #fff;
    background: #31b0d5;
    border-color: #2aabd2;
}
.dropdown-item:active {
	background: #5cb85c;
}