MediaWiki:Mobile.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
.home-button-container-url { | .home-button-container-url { | ||
margin: 20px auto; | margin: 20px auto; | ||
width: | width: 22em; | ||
} | } | ||
Revision as of 12:50, 1 April 2021
/* All CSS here will be loaded for users of the mobile site */
/* ============================== general interface =============================== */
/* top bar cleanup */
#mw-mf-main-menu-button { display:none; }
.header .branding-box { width:auto; }
.minerva-user-notifications { display:none; }
.minerva-user-menu { display:none; }
.minerva-user-navigation { min-width: 0; }
.minerva__tab-container { display:none; }
.page-actions-menu { display:none; }
/* left-hand menu cleanup */
#p-interaction { display:none; }
/* bottom area cleanup */
.talk { display:none; }
.last-modified-bar { display:none; }
footer .hlist li::after, .mw-footer .hlist li::after {
color: #202122;
}
a:link {
color: black;
text-decoration: underline;
}
a:visited {
color: #4c4c4c;
}
a.external {
color: black;
text-decoration: underline;
}
a.external:visited {
color: #4c4c4c;
}
.img-comfy {
margin: 30px;
}
.custom-desktop-only { display: none; }
/* ============================== home =============================== */
.p-home {
margin-left: -1.5em;
margin-right: -1.5em;
}
.home-button-container-page {
margin: 20px auto;
width: 9em;
}
.home-button-container-page a:link,
.home-button-container-page a:visited,
.home-button-container-page a:active {
text-decoration: none;
}
.home-button-container-url {
margin: 20px auto;
width: 22em;
}
.home-button-container-url a:link,
.home-button-container-url a:visited,
.home-button-container-url a:active {
text-decoration: none;
}
.home-button {
padding: 8px;
text-align: center;
text-decoration: none;
background-color: white;
border: 1px solid #4c4c4c;
border-radius: 2em;
transition: .5s;
}
.custom-video-container {
margin: 30px -76px 30px -76px;
}
.custom-video {
display: block;
margin: 0 auto;
width:100%;
}
/* ============================== templates =============================== */
.home-header-container {
background-color: #4c4c4c;
color: #fbf0a4;
padding: 20px;
margin: -40px -76px 20px -76px;
}
.home-header-container a,
.home-header-container a:visited,
.home-header-container a:active {
color: #fbf0a4;
text-decoration: none;
}
.home-header-img {
display: block;
width: 60px;
margin-bottom: 1em;
}
.home-header-title {
font-size: 225%;
font-family: 'Linux Libertine','Georgia','Times',serif;
}
.home-picture-box {
height: 120px;
margin: 20px -76px 10px -76px;
background-color: #4c4c4c;
background-image: url('https://www.wittgensteinproject.org/w/images/9/99/Skjolden_from_the_other_shore_of_the_small_eidsvatnet_lake_Nicol%C3%A1s_Boullosa_CC_BY.jpg');
background-position: center bottom;
background-repeat: no-repeat;
background-size: 100%;
}
.home-picture-box-2 {
height: 120px;
margin: 20px -76px 10px -76px;
background-color: #4c4c4c;
background-image: url('https://www.wittgensteinproject.org/w/images/a/a0/Wittgensteinhaus_%28bw_crop%29_by_Aldo_Ernstbrunner_CC_BY-SA.jpg');
background-position: center bottom;
background-repeat: no-repeat;
background-size: 100%;
}
/* Template:Header */
.header-title {
font-size: 220%;
text-align: center;
font-family: 'Linux Libertine','Georgia','Times',serif;
margin-top: 30px;
}
.header-whitespace { display:none; }
/* Template:Title */
.tl-title {
font-family: 'Linux Libertine','Georgia','Times',serif;
font-size: 1.7em;
text-align: center;
margin-top: 30px;
margin-bottom: 30px;
}
.tl-check { display:none; }
/* Template: TOCitem*/
.toc-item {
display:inline-block;
width: 3em;
margin: 3px;
}
.custom-toc {
width: 85%;
margin:20px auto 20px auto;
}
/* Template:Top */
.top-arrow {
position: fixed;
bottom: 20%;
right: 20px;
}
/* Template:Nowrap */
.nowrap {
white-space: nowrap;
}
/* Template:Person */
.person-container-left {
background-color: #f0f0f0;
padding: 20px;
}
.person-container-right {
background-color: #ffffff;
padding: 20px;
}
/* Template:Notes toggle */
.switch {
position: relative;
display: block;
width: 30px;
height: 17px;
margin: 0 auto;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 13px;
width: 13px;
left: 2px;
bottom: 2px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #4c4c4c;
}
input:focus + .slider {
box-shadow: 0 0 1px #4c4c4c;
}
input:checked + .slider:before {
-webkit-transform: translateX(13px);
-ms-transform: translateX(13px);
transform: translateX(13px);
}
/* Rounded sliders */
.slider.round {
border-radius: 17px;
}
.slider.round:before {
border-radius: 50%;
}