Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
James Hare (talk | contribs) (Adding bold) |
SuperHamster (talk | contribs) (Adding max-height to full-width-image on desktop) |
||
(47 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | @import url(//wikimediadc.org/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css); |
||
− | /* CSS placed here will be applied to all skins */ |
||
+ | div#content a[href ^="https://craignewmarkphilanthropies.org/"].external { |
||
− | @import url(http://fonts.googleapis.com/css?family=Roboto:400,600,700); |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | /* Toggle mobile and non-mobile content based on resolution */ |
||
− | /* Typography */ |
||
⚫ | |||
− | /* Makes site-wide what has been implemented on a page-by-page basis */ |
||
+ | .onlymobile { |
||
− | |||
+ | display: none; |
||
− | .firstHeading { |
||
⚫ | |||
⚫ | |||
+ | .nomobile { |
||
⚫ | |||
+ | display: block; |
||
− | margin-bottom:10px; |
||
+ | } |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | font-size: 2.4em !important; |
||
+ | } |
||
⚫ | |||
⚫ | |||
− | margin:auto; |
||
+ | object-fit: none; |
||
− | border-collapse:collapse; |
||
+ | object-position: center; |
||
− | vertical-align:top; |
||
− | + | width: 100%; |
|
+ | } |
||
+ | } |
||
⚫ | |||
+ | .onlymobile { |
||
+ | display: block; |
||
+ | } |
||
+ | .nomobile { |
||
+ | display: none; |
||
+ | } |
||
+ | .full-width-image img { |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | } |
||
} |
} |
||
+ | /* Allow to have a full width image (banner) */ |
||
− | body { |
||
+ | .full-width-image { |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
+ | /* CSS for 2023 Toronto pages coming up*/ |
||
⚫ | |||
+ | .banner_title { |
||
− | div#bodyContent { |
||
+ | position: absolute; |
||
− | font-size:1.05em; padding:0; |
||
+ | top:20px; left:20px; |
||
− | } |
||
+ | color:white; |
||
− | p { |
||
+ | font-size:200%; |
||
− | margin-bottom:1em; |
||
⚫ | |||
− | } |
||
+ | background-color:rgb(0, 0, 0); /* The fallback color */ |
||
+ | background-color:rgba(0, 0, 0, 0.5); |
||
+ | font-family:'Linux Libertine',serif; |
||
} |
} |
||
+ | .banner_subtitle { |
||
− | /* Main Page Banner */ |
||
+ | font-size:60%; |
||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | margin-bottom: .6em; |
||
− | text-align: center; |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | width: 100%; |
||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
+ | /* For 2023 Toronto event: Hide the first-level heading on the pages. */ |
||
− | .page-2015_Main_Page #firstHeading, .page-2015_Main_Page #yearline { |
||
− | display: none; |
+ | h1.firstHeading { display: none !important; } |
⚫ |
Latest revision as of 19:48, 23 June 2023
@import url(//wikimediadc.org/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css);
div#content a[href ^="https://craignewmarkphilanthropies.org/"].external {
background:none !important;
padding: 0px !important;
}
/* Toggle mobile and non-mobile content based on resolution */
@media (min-width: 851px) {
.onlymobile {
display: none;
}
.nomobile {
display: block;
}
.full-width-image {
max-height: 300px;
}
.full-width-image img {
object-fit: none;
object-position: center;
width: 100%;
}
}
@media (max-width: 850px) {
.onlymobile {
display: block;
}
.nomobile {
display: none;
}
.full-width-image img {
max-width: 100%;
height: auto;
width: auto;
}
}
/* Allow to have a full width image (banner) */
.full-width-image {
position: relative;
overflow: hidden;
max-width: 1800px;
height: auto;
margin-bottom: .6em;
}
/* CSS for 2023 Toronto pages coming up*/
.banner_title {
position: absolute;
top:20px; left:20px;
color:white;
font-size:200%;
padding:20px;
background-color:rgb(0, 0, 0); /* The fallback color */
background-color:rgba(0, 0, 0, 0.5);
font-family:'Linux Libertine',serif;
}
.banner_subtitle {
font-size:60%;
font-family:'Montserrat','Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight:normal;
}
/* For 2023 Toronto event: Hide the first-level heading on the pages. */
h1.firstHeading { display: none !important; }