Main Page.css: Difference between revisions
Appearance
m Fen moved page User:Main Page.css to Main Page.css without leaving a redirect: had it on the wrong mainspace |
No edit summary |
||
| Line 6: | Line 6: | ||
.header-box p { | .header-box p { | ||
font-size: inherit; | font-size: inherit; | ||
margin: 0.25em 0; | |||
} | } | ||
.header-box { | .header-box { | ||
background: # | background: #f7f9fc; | ||
border: 1px solid # | border: 1px solid #d7dde6; | ||
border-left: 4px solid #004080; | |||
border-radius: 8px; | border-radius: 8px; | ||
padding: 0. | padding: 0.75em 1em; | ||
color: # | color: #111; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Line 20: | Line 22: | ||
background: #004080; | background: #004080; | ||
color: #fff; | color: #fff; | ||
padding: 0. | padding: 0.45em 0.9em; | ||
border-radius: | border-radius: 6px; | ||
font-weight: bold; | font-weight: bold; | ||
text-decoration: none; | text-decoration: none; | ||
display: inline-block; | display: inline-block; | ||
} | |||
.crw-button:hover, | |||
.crw-button:focus { | |||
background: #0b5aa5; | |||
outline: none; | |||
} | } | ||
.crw-button.secondary { | .crw-button.secondary { | ||
background: # | background: #eef2f7; | ||
color: # | color: #111; | ||
border: 1px solid #d7dde6; | |||
} | |||
.crw-button.secondary:hover, | |||
.crw-button.secondary:focus { | |||
background: #e6edf6; | |||
outline: none; | |||
} | } | ||
| Line 50: | Line 65: | ||
font-size: 1.5em; | font-size: 1.5em; | ||
font-weight: bold; | font-weight: bold; | ||
color: # | color: #0f2e4d; | ||
border-bottom: 2px solid | border-bottom: 2px solid rgba(0, 64, 128, 0.22); | ||
padding-bottom: 0. | padding-bottom: 0.25em; | ||
margin-bottom: 0. | margin-bottom: 0.6em; | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
} | } | ||
.content-section { | .content-section { | ||
background: # | background: #ffffff; | ||
border: 1px solid # | border: 1px solid #d7dde6; | ||
border-radius: | border-radius: 8px; | ||
padding: 1em; | padding: 1em; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; | overflow: hidden; | ||
min-width: 0; | min-width: 0; | ||
color: #111; | |||
} | } | ||
| Line 74: | Line 90: | ||
font-size: 1.5em; | font-size: 1.5em; | ||
font-weight: bold; | font-weight: bold; | ||
color: # | color: #0f2e4d; | ||
border-bottom: 2px solid | border-bottom: 2px solid rgba(0, 64, 128, 0.22); | ||
padding-bottom: 0. | padding-bottom: 0.25em; | ||
margin-top: | margin-top: 0.25em; | ||
} | } | ||
| Line 83: | Line 99: | ||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .header-box { | html.skin-theme-clientpref-night .header-box { | ||
background: # | background: #121c32; | ||
border-color: # | border-color: #273244; | ||
color: # | border-left-color: #004080; | ||
color: #e5e7eb; | |||
} | } | ||
html.skin-theme-clientpref-night .content-section { | html.skin-theme-clientpref-night .content-section { | ||
background: # | background: #121c32; | ||
border-color: # | border-color: #273244; | ||
color: # | color: #e5e7eb; | ||
} | } | ||
html.skin-theme-clientpref-night .crw-button { | html.skin-theme-clientpref-night .crw-button { | ||
background: # | background: #004080; | ||
color: #fff; | color: #fff; | ||
} | |||
html.skin-theme-clientpref-night .crw-button:hover, | |||
html.skin-theme-clientpref-night .crw-button:focus { | |||
background: #0b5aa5; | |||
outline: none; | |||
} | } | ||
html.skin-theme-clientpref-night .crw-button.secondary { | html.skin-theme-clientpref-night .crw-button.secondary { | ||
background: | background: transparent; | ||
color: # | color: #e5e7eb; | ||
border: 1px solid rgba(229, 231, 235, 0.22); | |||
} | |||
html.skin-theme-clientpref-night .crw-button.secondary:hover, | |||
html.skin-theme-clientpref-night .crw-button.secondary:focus { | |||
background: rgba(229, 231, 235, 0.08); | |||
outline: none; | |||
} | } | ||
html.skin-theme-clientpref-night .content-section > div:first-child { | html.skin-theme-clientpref-night .content-section > div:first-child { | ||
color: # | color: #eaf2ff; | ||
border-color: # | border-color: rgba(0, 64, 128, 0.35); | ||
} | |||
html.skin-theme-clientpref-night .content-header { | |||
color: #eaf2ff; | |||
border-bottom-color: rgba(0, 64, 128, 0.35); | |||
} | } | ||
html.skin-theme-clientpref-os .content-header { | html.skin-theme-clientpref-os .content-header { | ||
color: # | color: #eaf2ff; | ||
border-bottom-color: | border-bottom-color: rgba(0, 64, 128, 0.35); | ||
} | } | ||
} | } | ||
| Line 119: | Line 153: | ||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
html.skin-theme-clientpref-os .header-box { | html.skin-theme-clientpref-os .header-box { | ||
background: # | background: #121c32; | ||
border-color: # | border-color: #273244; | ||
color: # | border-left-color: #004080; | ||
color: #e5e7eb; | |||
} | } | ||
html.skin-theme-clientpref-os .content-section { | html.skin-theme-clientpref-os .content-section { | ||
background: # | background: #121c32; | ||
border-color: # | border-color: #273244; | ||
color: # | color: #e5e7eb; | ||
} | } | ||
html.skin-theme-clientpref-os .crw-button { | html.skin-theme-clientpref-os .crw-button { | ||
background: # | background: #004080; | ||
color: #fff; | color: #fff; | ||
} | |||
html.skin-theme-clientpref-os .crw-button:hover, | |||
html.skin-theme-clientpref-os .crw-button:focus { | |||
background: #0b5aa5; | |||
outline: none; | |||
} | } | ||
html.skin-theme-clientpref-os .crw-button.secondary { | html.skin-theme-clientpref-os .crw-button.secondary { | ||
background: | background: transparent; | ||
color: # | color: #e5e7eb; | ||
border: 1px solid rgba(229, 231, 235, 0.22); | |||
} | |||
html.skin-theme-clientpref-os .crw-button.secondary:hover, | |||
html.skin-theme-clientpref-os .crw-button.secondary:focus { | |||
background: rgba(229, 231, 235, 0.08); | |||
outline: none; | |||
} | } | ||
html.skin-theme-clientpref-os .content-section > div:first-child { | html.skin-theme-clientpref-os .content-section > div:first-child { | ||
color: # | color: #eaf2ff; | ||
border-color: | border-color: rgba(0, 64, 128, 0.35); | ||
} | } | ||
html.skin-theme-clientpref-os .content-header { | html.skin-theme-clientpref-os .content-header { | ||
color: # | color: #eaf2ff; | ||
border-bottom-color: | border-bottom-color: rgba(0, 64, 128, 0.35); | ||
} | } | ||
} | } | ||
Revision as of 15:48, 26 January 2026
/* Light mode styles */
.header-box a.external {
background-image: none;
}
.header-box p {
font-size: inherit;
margin: 0.25em 0;
}
.header-box {
background: #f7f9fc;
border: 1px solid #d7dde6;
border-left: 4px solid #004080;
border-radius: 8px;
padding: 0.75em 1em;
color: #111;
text-align: center;
}
.crw-button {
background: #004080;
color: #fff;
padding: 0.45em 0.9em;
border-radius: 6px;
font-weight: bold;
text-decoration: none;
display: inline-block;
}
.crw-button:hover,
.crw-button:focus {
background: #0b5aa5;
outline: none;
}
.crw-button.secondary {
background: #eef2f7;
color: #111;
border: 1px solid #d7dde6;
}
.crw-button.secondary:hover,
.crw-button.secondary:focus {
background: #e6edf6;
outline: none;
}
.content-grid {
display: grid;
gap: 1rem;
grid-template-columns: 1fr;
margin-top: 1em;
overflow: hidden;
min-width: 0;
}
@media screen and (min-width: 720px) {
.content-grid {
grid-template-columns: 1fr 1fr;
}
}
.content-header {
font-size: 1.5em;
font-weight: bold;
color: #0f2e4d;
border-bottom: 2px solid rgba(0, 64, 128, 0.22);
padding-bottom: 0.25em;
margin-bottom: 0.6em;
margin-top: 0 !important;
}
.content-section {
background: #ffffff;
border: 1px solid #d7dde6;
border-radius: 8px;
padding: 1em;
box-sizing: border-box;
overflow: hidden;
min-width: 0;
color: #111;
}
.content-section.wide {
grid-column: 1 / -1;
}
.content-section > div:first-child {
font-size: 1.5em;
font-weight: bold;
color: #0f2e4d;
border-bottom: 2px solid rgba(0, 64, 128, 0.22);
padding-bottom: 0.25em;
margin-top: 0.25em;
}
/* Forced dark mode */
@media screen {
html.skin-theme-clientpref-night .header-box {
background: #121c32;
border-color: #273244;
border-left-color: #004080;
color: #e5e7eb;
}
html.skin-theme-clientpref-night .content-section {
background: #121c32;
border-color: #273244;
color: #e5e7eb;
}
html.skin-theme-clientpref-night .crw-button {
background: #004080;
color: #fff;
}
html.skin-theme-clientpref-night .crw-button:hover,
html.skin-theme-clientpref-night .crw-button:focus {
background: #0b5aa5;
outline: none;
}
html.skin-theme-clientpref-night .crw-button.secondary {
background: transparent;
color: #e5e7eb;
border: 1px solid rgba(229, 231, 235, 0.22);
}
html.skin-theme-clientpref-night .crw-button.secondary:hover,
html.skin-theme-clientpref-night .crw-button.secondary:focus {
background: rgba(229, 231, 235, 0.08);
outline: none;
}
html.skin-theme-clientpref-night .content-section > div:first-child {
color: #eaf2ff;
border-color: rgba(0, 64, 128, 0.35);
}
html.skin-theme-clientpref-night .content-header {
color: #eaf2ff;
border-bottom-color: rgba(0, 64, 128, 0.35);
}
html.skin-theme-clientpref-os .content-header {
color: #eaf2ff;
border-bottom-color: rgba(0, 64, 128, 0.35);
}
}
/* OS dark mode */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .header-box {
background: #121c32;
border-color: #273244;
border-left-color: #004080;
color: #e5e7eb;
}
html.skin-theme-clientpref-os .content-section {
background: #121c32;
border-color: #273244;
color: #e5e7eb;
}
html.skin-theme-clientpref-os .crw-button {
background: #004080;
color: #fff;
}
html.skin-theme-clientpref-os .crw-button:hover,
html.skin-theme-clientpref-os .crw-button:focus {
background: #0b5aa5;
outline: none;
}
html.skin-theme-clientpref-os .crw-button.secondary {
background: transparent;
color: #e5e7eb;
border: 1px solid rgba(229, 231, 235, 0.22);
}
html.skin-theme-clientpref-os .crw-button.secondary:hover,
html.skin-theme-clientpref-os .crw-button.secondary:focus {
background: rgba(229, 231, 235, 0.08);
outline: none;
}
html.skin-theme-clientpref-os .content-section > div:first-child {
color: #eaf2ff;
border-color: rgba(0, 64, 128, 0.35);
}
html.skin-theme-clientpref-os .content-header {
color: #eaf2ff;
border-bottom-color: rgba(0, 64, 128, 0.35);
}
}