ਫਰਮਾ:Standard Main Page/styles.css
ਦਿੱਖ
/*--------------------------------------WIKIPEDIA TOP BANNER----------------------------------------*/
#topBanner {
position: relative;
}
#topHeader {
border: 1px;
display: flex;
flex-direction: column;
border-radius: 1em;
align-items: center;
padding: 1em;
box-shadow: 0 5px 20px #ddd, 0 0 1px #ccc;
}
#heading {
font-size: 2.5em;
text-align:center;
margin-top:-0.5em;
}
#statement {
text-align:center;
margin-top: -1.5em;
}
.line {
border-top: 1px solid rgb(116, 158, 220);
min-width: 80%;
}
#statement1 {
text-align: center;
}
/*----------------------------WIKIPEDIA CARDS----------------------------------------*/
.cards {
width: auto;
padding: 0.5em;
line-height: 1.75;
border-radius: 1em;
border: 1px;
margin-bottom: 1em;
box-shadow: 0 5px 20px #ddd, 0 0 1px #ccc;
}
.cardTitle {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items:center;
gap: 0.2em;
border: 1px solid #a3b0bf;
border-radius: 0.625em;
padding-left: 0.5em;
margin-bottom: 0.5em;
}
.mw-heading3 {
color: white;
}
.potdCard {
width: auto;
padding: 0.5em;
line-height: 1.75;
border:1px;
border-radius:10px;
box-shadow: 0 5px 20px #ddd, 0 0 1px #ccc;
}
#cardHeader {
margin-top: 1em;
}
#essayTitle {
background-color:#06671c;
}
#history .cardTitle {
background-color: #2a54a9;
}
#doyouknow .cardTitle {
background-color: #714ea7;
}
#news .cardTitle {
background-color: #814c1a;
}
#potd .cardTitle {
background-color: #6d5153;
}
#otherlang .cardTitle {
background-color: #b0142c;
}
#otherproject .cardTitle {
background-color: #753900;
}
#otherlang, #otherproject {
border: 1px;
border-radius: 1em;
box-shadow: 0 5px 20px #ddd, 0 0 1px #ccc;
margin-top:1em;
padding:0.5em;
}
@media only screen and (min-width: 720px) {
#cardHeader{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1em;
width: auto;
}
#doyouknow, #news {
margin-top:-1em;
}
}
/* forced night mode */
@media screen {
html.skin-theme-clientpref-night #topHeader,
html.skin-theme-clientpref-night .cards,
html.skin-theme-clientpref-night .potdCard,
html.skin-theme-clientpref-night #otherlang,
html.skin-theme-clientpref-night #otherproject {
box-shadow:none;
border:1px solid;
}
}
/* automatic mode */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os #topHeader,
html.skin-theme-clientpref-os .cards,
html.skin-theme-clientpref-os .potdCard,
html.skin-theme-clientpref-os #otherlang,
html.skin-theme-clientpref-os #otherproject {
box-shadow:none;
border:1px solid;
}
}