MediaWiki:Common.css: Difference between revisions
From Love and Deepspace Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 121:
.card table tr:last-of-type th {
border: none;
}
/** Item Card CSS **/
.item-card {
max-width: 350px;
background: linear-gradient(145deg, rgba(204,204,204,1) 0%, rgba(238,238,238,1) 25%, rgba(238,238,238,1) 100%);
padding: 1em;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
font-size: 0.9em;
}
.item-card-header-img {
height: 100px;
width: 100px;
background: #eee;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid white;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.2);
}
.item-card-header {
display: flex;
gap: 0.5em;
font-size: 1.1em;
}
.item-card-header-tags {
margin-top: 0.5em;
display: flex;
flex-wrap: wrap;
gap: 3px;
}
.item-card-description {
border-bottom: 1px solid #ccc;
}
/** Skill Card CSS **/
.skill-card {
background: #46455f;
color: white;
padding: 1em;
font-size: 0.9em;
}
.skill-card-header-img {
height: 44px;
width: 44px;
display: flex;
justify-content: center;
align-items: center;
}
.skill-card-header {
display: flex;
gap: 0.5em;
font-size: 1.1em;
}
.skill-card-header-tags {
margin-top: 0.5em;
display: flex;
flex-wrap: wrap;
gap: 3px;
}
Line 272 ⟶ 340:
/* Copied from front page card */
.navbox {
width: 100%;
box-sizing: border-box;
}
/* Copied from front page card title */
.navbox-title {
background:
font-weight: bold;
padding: 0.25em;
Line 292 ⟶ 359:
/* Copied from front page "new content" subheader */
.navbox-abovebelow {
background:
}
Line 748 ⟶ 815:
/* Flex Container */
.flex-container,
.flex-table-container {
display: flex;
flex-wrap: wrap;
gap: 1em;
}
.grid-8-card-container {
display: grid;
grid-template-columns: repeat(8,1fr);
grid-gap: 1em;
}
.grid-6-card-container {
display: grid;
grid-template-columns: repeat(6,1fr);
grid-gap: 1em;
}
Line 766 ⟶ 846:
}
.grid-2-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
@media only screen and (max-width: 992px) {
.grid-4-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
.grid-6-card-container {
display: grid;
grid-template-columns: repeat(4,1fr);
grid-gap: 1em;
}
.grid-8-card-container {
display: grid;
grid-template-columns: repeat(6,1fr);
grid-gap: 1em;
}
}
@media only screen and (max-width: 768px) {
.grid-2-card-container {
display: grid;
grid-template-columns: 1fr;
Line 773 ⟶ 879:
}
.grid-
display: grid;
grid-template-columns: 1fr;
grid-gap: 1em;
}
}
@media only screen and (max-width:
.grid-4-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
.grid-6-card-container {
display: grid;
grid-template-columns: repeat(2,1fr);
grid-gap: 1em;
}
.grid-8-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
|
Latest revision as of 23:38, 19 February 2024
/* CSS placed here will be applied to all skins */
body {
background: #fff;
}
#p-logo-text a.long {
font-size: 1.4em !important;
padding: 0 0.5em !important;
}
#mw-content-container {
background-image: url(https://static.miraheze.org/loveanddeepspacewiki/1/1f/Background.jpg) !important;
background-position: center center !important;
background-attachment: fixed !important;
background-repeat: no-repeat !important;
background-size: cover !important;
border-bottom: solid 4px #ffffff4a !important;
}
#mw-content {
background: white;
background: rgba(255,255,255,0.9) !important;
}
#mw-footer-container {
background: #152942;
}
.color-middle,
.color-right,
.color-left {
background: #9f91d1;
}
.mw-body h1.firstHeading {
border-bottom: solid 4px #9f91d1;
}
.tools-inline li.selected {
border-bottom-color: #9f91d1;
}
.sidebar-chunk {
background: white;
background: rgba(248, 250, 255, 0.9) !important;
}
.grid-container {
display: grid;
grid-auto-columns: 1fr;
}
.filter-button-selected,
.filter-button-selected:hover {
background:#ccc;
}
/** Spoiler CSS **/
.spoiler-text {
filter: blur(5px);
transition-property: -webkit-filter;
transition-duration: .4s;
}
.spoiler-text:hover, .spoiler-text:focus {
filter: blur(0px);
}
.spoiler-img {
filter: blur(15px);
transition-property: -webkit-filter;
transition-duration: .4s;
}
.spoiler-img:hover, .spoiler-img:focus {
filter: blur(0px);
}
/** Card CSS **/
.card {
background: #eee;
border: 1px solid #ddd;
border-radius: 3px;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
}
.card img {
overflow: hidden;
}
.card-header {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 0.5em;
background: linear-gradient(45deg, #b9ecff, transparent);
padding: 0.25em .5em;
}
.card table {
width: 100%;
border: none;
}
.card table th {
text-align: left;
border: none;
border-bottom: 1px solid #ccc;
}
.card table td {
text-align: right;
border: none;
border-bottom: 1px solid #ccc;
}
table.half th,
table.half td {
width: 50%;
}
.card table tr:last-of-type td,
.card table tr:last-of-type th {
border: none;
}
/** Item Card CSS **/
.item-card {
max-width: 350px;
background: linear-gradient(145deg, rgba(204,204,204,1) 0%, rgba(238,238,238,1) 25%, rgba(238,238,238,1) 100%);
padding: 1em;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1);
font-size: 0.9em;
}
.item-card-header-img {
height: 100px;
width: 100px;
background: #eee;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid white;
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.2);
}
.item-card-header {
display: flex;
gap: 0.5em;
font-size: 1.1em;
}
.item-card-header-tags {
margin-top: 0.5em;
display: flex;
flex-wrap: wrap;
gap: 3px;
}
.item-card-description {
border-bottom: 1px solid #ccc;
}
/** Skill Card CSS **/
.skill-card {
background: #46455f;
color: white;
padding: 1em;
font-size: 0.9em;
}
.skill-card-header-img {
height: 44px;
width: 44px;
display: flex;
justify-content: center;
align-items: center;
}
.skill-card-header {
display: flex;
gap: 0.5em;
font-size: 1.1em;
}
.skill-card-header-tags {
margin-top: 0.5em;
display: flex;
flex-wrap: wrap;
gap: 3px;
}
/** Responsive Image **/
.res-img img {
width: 100%;
height: auto;
}
/** Unit icon CSS **/
.icon-template {
display: inline-block;
text-align: center;
padding: 3px;
}
/** Cargo Tables **/
.cargoTable thead tr {
background: #e2f2ff !important;
border: 1px solid #d4d4d4;
}
/** Notice Templates **/
.page-notice {
padding: 0.25em 1em;
background: #eee;
margin:auto;
max-width: 600px;
border: 1px solid lightgray;
border-left: 8px solid gray;
}
/** Template:Page header **/
#page-header {
background-color: #b9ecff;
border: 1px solid skyblue;
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 1em;
}
#page-header-left {
grid-row: 1;
text-align: left;
align-self: center;
}
#page-header-right {
grid-row: 1;
text-align: right;
align-self: center;
}
#page-header-center {
grid-row: 1;
text-align: center;
font-weight: bold;
font-size: 1.4em;
}
#page-subheader-center {
font-size: 0.7em;
}
/** Template:Info grid **/
.info-grid {
display: grid;
grid-auto-columns: 1fr;
grid-gap: 0.5em;
}
.info-grid-image {
grid-row: 1;
grid-column-start: 1;
grid-column-end: 8;
text-align: center;
padding: 1em;
margin: auto;
}
.info-grid-image img {
width: 100%;
height: auto;
}
.info-grid-general {
grid-row: 1;
text-align: center;
grid-column-start: 8;
grid-column-end: 13;
padding: 1em;
}
.info-grid-general .wikitable {
width: 100%;
}
@media screen and (max-width: 768px) {
.info-grid-image {
grid-row: 1;
grid-column-start: 1;
grid-column-end: 13;
}
.info-grid-general {
grid-row: 2;
grid-column-start: 1;
grid-column-end: 13;
}
}
/* One-sided navigation menu */
/* One-sided navigation menu */
@media (min-width: 1340px) {
#mw-content-block {
display: grid;
grid-template-rows: max-content;
}
#mw-content,
#content-bottom-stuff {
margin-left: 14em;
}
#mw-content-wrapper {
grid-row-start: 1;
grid-row-end: 99;
grid-column: 1;
order: unset;
}
#mw-site-navigation {
grid-row: 1;
grid-column: 1;
order: unset;
}
#mw-related-navigation {
grid-row: 2;
grid-column: 1;
width: 14em;
padding: 0 1em 0 0;
order: unset;
}
div.color-middle {
margin-right: 0;
}
}
/* Re-aligning bottom logos */
#footer { padding-right: 1em; }
/* Attempting to implement flex-based navboxes. Credit to user Lakelimbo at wikirby if it works, fault to Harmonea here if it doesn't */
/* Copied from front page card */
.navbox {
padding: 0.5em;
width: 100%;
box-sizing: border-box;
border: 1px solid #eee;
}
/* Copied from front page card title */
.navbox-title {
background: #c9c9f1;
font-weight: bold;
padding: 0.25em;
}
.navbox-title, .navbox-abovebelow {
padding-left: 1em;
padding-right: 1em;
text-align: center;
}
/* Copied from front page "new content" subheader */
.navbox-abovebelow {
background: lavender;
}
.navbox-group {
background: #f8f9fa;
font-size: 1rem;
padding-left: 0.5em;
}
.navbox-list {
padding: 0em 0.25em;
border-left: 2px solid;
font-size: 0.95rem;
}
.navbox-even {
background: rgba(255, 255, 255, 0.5) none repeat scroll 0% 0%;
}
.navbox-odd {
background: rgba(223, 223, 223, 0.5) none repeat scroll 0% 0%;
}
/* negative margin to compensate for 2px margin on rowrowrow below */
.navbox-subgroup {
margin-top: -5px;
}
.row {
display:flex;
flex-wrap:wrap;
margin-top: 0.5em;
}
.row > * {
box-sizing:border-box;
flex-shrink:0;
width:100%;
max-width:100%;
}
.row .row .row {
margin-top: 5px;
}
.col {
flex:1 0 0%
}
.col-sm {
flex:1 0 0%
}
.col-sm-1 {
flex:0 0 auto;
width:8.3333333333%
}
.col-sm-2 {
flex:0 0 auto;
width:16.6666666667%
}
.col-sm-3 {
flex:0 0 auto;
width:25%
}
.col-sm-4 {
flex:0 0 auto;
width:33.3333333333%
}
.col-sm-5 {
flex:0 0 auto;
width:41.6666666667%
}
.col-sm-6 {
flex:0 0 auto;
width:50%
}
.col-sm-7 {
flex:0 0 auto;
width:58.3333333333%
}
.col-sm-8 {
flex:0 0 auto;
width:66.6666666667%
}
.col-sm-9 {
flex:0 0 auto;
width:75%
}
.col-sm-10 {
flex:0 0 auto;
width:83.3333333333%
}
.col-sm-11 {
flex:0 0 auto;
width:91.6666666667%
}
.col-sm-12 {
flex:0 0 auto;
width:100%
}
.float-sm-left {
float:left!important
}
.float-sm-right {
float:right!important
}
.float-sm-none {
float:none!important
}
@media (min-width:768px) {
.col-md {
flex:1 0 0%
}
.col-md-auto {
flex:0 0 auto;
width:auto
}
.col-md-1 {
flex:0 0 auto;
width:8.3333333333%
}
.col-md-2 {
flex:0 0 auto;
width:16.6666666667%
}
.col-md-3 {
flex:0 0 auto;
width:25%
}
.col-md-4 {
flex:0 0 auto;
width:33.3333333333%
}
.col-md-5 {
flex:0 0 auto;
width:41.6666666667%
}
.col-md-6 {
flex:0 0 auto;
width:50%
}
.col-md-7 {
flex:0 0 auto;
width:58.3333333333%
}
.col-md-8 {
flex:0 0 auto;
width:66.6666666667%
}
.col-md-9 {
flex:0 0 auto;
width:75%
}
.col-md-10 {
flex:0 0 auto;
width:83.3333333333%
}
.col-md-11 {
flex:0 0 auto;
width:91.6666666667%
}
.col-md-12 {
flex:0 0 auto;
width:100%
}
.float-md-left {
float:left !important
}
.float-md-right {
float:right !important
}
.float-md-none {
float:none !important
}
}
@media (min-width:992px) {
.col-lg {
flex:1 0 0%
}
.col-lg-auto {
flex:0 0 auto;
width:auto
}
.col-lg-1 {
flex:0 0 auto;
width:8.3333333333%
}
.col-lg-2 {
flex:0 0 auto;
width:16.6666666667%
}
.col-lg-3 {
flex:0 0 auto;
width:25%
}
.col-lg-4 {
flex:0 0 auto;
width:33.3333333333%
}
.col-lg-5 {
flex:0 0 auto;
width:41.6666666667%
}
.col-lg-6 {
flex:0 0 auto;
width:50%
}
.col-lg-7 {
flex:0 0 auto;
width:58.3333333333%
}
.col-lg-8 {
flex:0 0 auto;
width:66.6666666667%
}
.col-lg-9 {
flex:0 0 auto;
width:75%
}
.col-lg-10 {
flex:0 0 auto;
width:83.3333333333%
}
.col-lg-11 {
flex:0 0 auto;
width:91.6666666667%
}
.col-lg-12 {
flex:0 0 auto;
width:100%
}
.float-lg-left {
float:left !important
}
.float-lg-right {
float:right !important
}
.float-lg-none {
float:none !important
}
}
/* Attempting to implement hover tooltip styling. Credit to DragaliaLost wiki */
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted #aaa;
line-height: 1.3;
}
.tooltiptext {
visibility: hidden;
min-width: 150px;
padding: 12px 14px;
text-align: center;
position: absolute;
left: 50%;
bottom: calc(20px + 100%);
z-index: 99999;
background: #fff;
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.15);
border: 1px solid #a2a9b1;
border-radius: 2px;
font-weight: normal;
color: black;
text-shadow: none;
}
.tooltiptext-long {
min-width: 350px;
}
.tooltiptext:after,
.tooltiptext:before {
content: '';
position: absolute;
left: 50%;
border-style: solid;
}
.tooltiptext:after {
top: 100%;
bottom: auto;
width: 20px;
height: 20px;
background: #fff;
margin-top: -10px;
margin-left: -10px;
box-shadow: 1px 1px 0px #a2a9b1;
transform: rotate(45deg);
border-width: 0;
}
.tooltiptext:before {
top: 100%;
bottom: auto;
border-width: 18px;
margin-left: -18px;
border-color: rgba(0, 0, 0, 0.15) transparent transparent transparent;
pointer-events: none;
}
.tooltip .tooltip .tooltiptext {
bottom: auto;
top: 195%;
}
.tooltip .tooltip .tooltiptext:after {
top: auto;
bottom: 100%;
border-width: 15px;
margin-left: -15px;
border-color: transparent transparent white transparent;
width: 0;
height: 0;
box-shadow: none;
background: none;
transform: none;
}
.tooltip .tooltip .tooltiptext:before {
top: auto;
bottom: 100%;
border-width: 16px;
margin-left: -16px;
border-color: transparent transparent #888 transparent;
transform: translate(-50%,0);
}
.tooltiptext hr {
margin: 10px 0 12px;
position: relative;
background: none;
}
.tooltiptext hr:after {
content: '';
display: block;
width: 100%;
height: 1px !important;
position: absolute;
left: -14px;
background: #a2a9b1;
padding: 0 14px;
}
.tooltip:hover>.tooltiptext {
visibility: visible;
}
.tooltiptext {
opacity: 0;
transition: opacity 200ms ease, visibility 0s ease 200ms, transform 200ms ease;
transform: translate(-50%,8px);
}
.tooltip .tooltip .tooltiptext {
transform: translateY(-8px);
}
.tooltip:hover>.tooltiptext {
opacity: 1;
transition-delay: 0s;
transform: translate(-50%,0);
}
/* Ambox */
.ambox {
background-color: #f8f9fa;
border-bottom-color: #383838;
border-right-color: #383838;
border-top-color: #383838;
border-collapse: collapse;
margin: 0 auto 6px auto;
width: 80%;
}
@media screen and (max-width: 600px) {
.ambox:not(.ambox-tiny) {
width: 95%;
}
}
.ambox tr {
border: 1px solid #a2a9b1;
}
.ambox-gray {
border-left-color: #383838;
}
.ambox.ambox-tiny {
font-size: 90%;
margin: 2px 0;
width: auto;
}
.ambox+.ambox {
margin-top: -2px;
}
.ambox-text-title {
font-weight: 700;
}
.ambox-text {
padding: 0.25em 1em;
}
.ambox-image {
padding: 0;
text-align: center;
width: 80px;
}
.ambox-tiny .ambox-image {
padding: 2px 0.5em;
text-align: left;
width: auto;
}
/* Ambox colors */
.ambox-blue {
border-left: 10px solid #1e90ff;
}
.ambox-red {
border-left: 10px solid #b22222;
}
.ambox-orange {
border-left: 10px solid #f28500;
}
.ambox-yellow {
border-left: 10px solid #f4c430;
}
.ambox-purple {
border-left: 10px solid #9932cc;
}
.ambox-gray {
border-left: 10px solid #bba;
}
.ambox-green {
border-left: 10px solid #228b22;
}
/* Ambox small text */
.amsmalltext {
font-size: smaller;
margin-top: 0.5em;
}
/* Flex Container */
.flex-container,
.flex-table-container {
display: flex;
flex-wrap: wrap;
gap: 1em;
}
.grid-8-card-container {
display: grid;
grid-template-columns: repeat(8,1fr);
grid-gap: 1em;
}
.grid-6-card-container {
display: grid;
grid-template-columns: repeat(6,1fr);
grid-gap: 1em;
}
.grid-4-card-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-gap: 1em;
}
.grid-3-card-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 1em;
}
.grid-2-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
@media only screen and (max-width: 992px) {
.grid-4-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
.grid-6-card-container {
display: grid;
grid-template-columns: repeat(4,1fr);
grid-gap: 1em;
}
.grid-8-card-container {
display: grid;
grid-template-columns: repeat(6,1fr);
grid-gap: 1em;
}
}
@media only screen and (max-width: 768px) {
.grid-2-card-container {
display: grid;
grid-template-columns: 1fr;
grid-gap: 1em;
}
.grid-3-card-container {
display: grid;
grid-template-columns: 1fr;
grid-gap: 1em;
}
}
@media only screen and (max-width: 576px) {
.grid-4-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
.grid-6-card-container {
display: grid;
grid-template-columns: repeat(2,1fr);
grid-gap: 1em;
}
.grid-8-card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
}