MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
(14 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
} | } | ||
.stub-box { | .stub-box { | ||
display: inline-flex; | |||
display: flex; | |||
align-items: center; | align-items: center; | ||
justify-content: flex-start; | |||
background-color: #e9e9e9; | background-color: #e9e9e9; | ||
border-left: 4px solid #09bb62; | border-left: 4px solid #09bb62; | ||
Line 23: | Line 22: | ||
border-radius: 8px; | border-radius: 8px; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
box-shadow: 0 0 4px rgba(0,0,0,0.2); | box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); | ||
margin: 1em auto; /* center horizontally */ | |||
max-width: 100%; /* never overflow container */ | |||
white-space: normal; /* allow multi-line text */ | |||
gap: 10px; /* spacing between icon and text */ | |||
} | } | ||
.stub- | |||
.stub-text { | |||
text-align: left; | |||
line-height: 1.4em; | |||
} | } | ||
.stub-image img { | .stub-image img { | ||
display: block; | display: block; | ||
max-height: 32px; | |||
width: auto; | |||
} | |||
.stub-word { | |||
color: #4f504c; | |||
} | } | ||
. | |||
.alert-box { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: flex-start; | |||
background-color: #e9e9e9; | |||
padding: 10px 15px; | |||
border-radius: 8px; | |||
font-size: 0.95em; | |||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); | |||
margin: 1em auto; /* center horizontally */ | |||
max-width: 100%; /* never overflow container */ | |||
white-space: normal; /* allow multi-line text */ | |||
gap: 10px; /* spacing between icon and text */ | |||
} | |||
.alert-text { | |||
text-align: left; | text-align: left; | ||
line-height: 1.4em; | line-height: 1.4em; | ||
} | } | ||
. | |||
.alert-image img { | |||
display: block; | |||
max-height: 32px; | |||
width: auto; | |||
} | } | ||
/* Main page stuff */ | /* Main page stuff */ | ||
Line 97: | Line 127: | ||
/* Drop table background colors */ | /* Drop table background colors */ | ||
.table-bg-always, | .vector-body .table-bg-always, | ||
.table-bg-blue { | .table-bg-blue { | ||
background: color-mix(in srgb, #3288bd, transparent | background-color: color-mix(in srgb, #3288bd, transparent 80%) !important; | ||
color: #3288bd !important; | |||
} | } | ||
.table-bg-common, | .vector-body .table-bg-common, | ||
.table-bg-green { | .table-bg-green { | ||
background: color-mix(in srgb, #abdda4, transparent | background-color: color-mix(in srgb, #abdda4, transparent 80%) !important; | ||
color: #abdda4 !important; | |||
} | } | ||
.table-bg-uncommon, | .vector-body .table-bg-uncommon, | ||
.table-bg-yellow { | .table-bg-yellow { | ||
background: color-mix(in srgb, #fee08b, transparent | background-color: color-mix(in srgb, #fee08b, transparent 80%) !important; | ||
color: #fee08b !important; | |||
} | } | ||
.table-bg-rare, | .vector-body .table-bg-rare, | ||
.table-bg-orange { | .table-bg-orange { | ||
background: color-mix(in srgb, #f46d43, transparent | background-color: color-mix(in srgb, #f46d43, transparent 80%) !important; | ||
color: #f46d43 !important; | |||
} | } | ||
.table-bg-veryrare, | .vector-body .table-bg-veryrare, | ||
.table-bg-red { | .table-bg-red { | ||
background: color-mix(in srgb, #d53e4f, transparent | background-color: color-mix(in srgb, #d53e4f, transparent 80%) !important; | ||
color: #d53e4f !important; | |||
} | } | ||
.table-bg-ultrarare, | .vector-body .table-bg-ultrarare, | ||
.table-bg-purple { | .table-bg-purple { | ||
background: color-mix(in srgb, #9b91af, transparent | background-color: color-mix(in srgb, #9b91af, transparent 80%) !important; | ||
color: #9b91af !important; | |||
} | } | ||
.table-bg-random, | .vector-body .table-bg-random, | ||
.table-bg-pink { | .table-bg-pink { | ||
background: color-mix(in srgb, #5e4fa2, transparent | background-color: color-mix(in srgb, #5e4fa2, transparent 80%) !important; | ||
color: # | color: #5e4fa2 !important; | ||
} | } | ||
.table-bg-gray, | .vector-body .table-bg-gray, | ||
.table-bg-grey { | .table-bg-grey { | ||
background:#5d6773 !important; | background:#5d6773 !important; | ||
color: #5d6773 !important; | |||
} | } | ||
.table-bg-fade { | .vector-body .table-bg-fade { | ||
opacity:0.6 !important; | opacity:0.6 !important; | ||
background:rgba(0,0,0,0.1) !important; | background:rgba(0,0,0,0.1) !important; |