ProleWiki:Main page/styles.css: Difference between revisions

From ProleWiki, the proletarian encyclopedia
(Created page with "→‎用于首页: →‎首页不显示红链: .new { color: inherit; } #column-feature-more .column-feature-more-header a { font-weight: bold; color: #474747; }...")
No edit summary
 
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/* 用于首页 */
.mainpage-body {
/* 首页不显示红链 */
margin:auto;
.new {
    color: inherit;
}
}


#column-feature-more .column-feature-more-header a {
#mainpage-banner span
    font-weight: bold;
{
    color: #474747;
display: inline-block;
width: 100%;
content: url(/pw-conf/img/mainpage/en.png);
border-radius:12px;
}
}
 
.mainpage-banner-overlay {
#column-feature-more {
position: absolute;
    margin-top: 1.2em;
top: 65px;
    clear: left;
width: 100%;
}
 
#column-feature-more ul {
    list-style: none;
    margin-left: 0;
}
 
#column-feature-more li {
    font-size: .9em;
    color: #474747;
}
 
.mp-2012-block-nav-footer {
    color: #666;
    font-size: .85em;
    clear: both;
    text-align: right;
}
 
#mp-2012-banner a {
    color: #17b;
}
 
#mp-2012-banner > div {
    line-height: 120px;
}
 
#mp-2012-banner > div > div {
    line-height: 1.5em;
    vertical-align: middle;
}
 
#mp-2012-banner-title {
    float: left;
    margin-left: 40px;
    width: 240px;
}
 
#mp-2012-banner-title > div {
    display: inline-block;
    font-family: sans-serif;
}
 
#mp-2012-banner-title h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
    line-height: 1.6em;
}
 
#mp-2012-banner-title p {
    margin: 0;
    padding: 0;
    font-size: 90%;
    color: #457;
}
 
#mp-2012-banner-intro > div {
    display: inline-block;
    text-align: center;
}
 
#mp-2012-banner-intro .number-of-articles a {
    color: #113C86;
    font-size: 120%;
    font-family: sans-serif;
    font-weight: bold;
}
}


#mp-2012-banner-intro p {
/*adding icons to new quick links*/
    margin: 0;
.mainpage-articles>:after{
    padding-bottom: .3em;
content:"";}
    letter-spacing: .1em;
.mainpage-library{
    font-weight: bold;
content:"";
    color: #457;
}
}
.mainpage-essays{
content:"";}
.mainpage-categories{
content:"";}


#mp-2012-banner-intro table {
.mainpage-header {
     width: 100%;
     display: flex;
margin: 2em 5em;
align-items:baseline;
}
}


#mp-2012-banner-intro td {
.header-intro {
     vertical-align: top;
     flex: 2;
    padding: 0 .5em;
}
}


#mp-2012 h1{
.header-intro h1 {
     font-weight: bold;
     font-size: 2.5em;
     border: none;
     border: none;
}
     margin: 0 0 .15em;
#mp-2012-links table {
     padding: .8em 1.6em;
    font-size: .95em;
    width: 96%;
    border: 1px solid #EEE;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    margin: 0 auto;
}
}


#mp-2012-links td {
.header-intro p {
     width: 33.33%;
     font-size: 1.1em;
     vertical-align: top;
     line-height: 1.7em;
}
}


#mp-2012-links h3 {
.header-stats {
     font-size: .98em;
     display: flex;
     font-weight: bold;
     align-items: center;
    color: #6B6B6B;
     margin:auto;
    padding-bottom: .2em;
    border-bottom: 1px solid #EEE;
     margin-bottom: .8em;
}
}
 
.header-stats ul {
#mp-2012-sisters {
        list-style: none;
    margin-top: 50px;
    clear:both;
    padding-top: 15px;
    border-top: 3px double #CCC;
    color: #222;
    line-height: 120%;
}
}
/* Scope your styles inside a media query. This means they will only apply on tablet or desktop.  */
/* 以下样式将不会在移动设备中应用  */
/* TODO: 表格可能需要转成<div> ,以适应移动设备 https://www.mediawiki.org/wiki/Mobile_Gateway/Mobile_homepage_formatting#MFSpecialCaseMainPage */


@media all and ( min-width: 720px ) {
@media screen and (max-width: 800px) {
/* For the new main page design */
.mainpage-header {
 
flex-direction: column;
#mp-2012-sisters > div {
margin:2em;
    background: white;
}
    width: 45px;
    margin: -40px auto 0;
}
#mp-2012-links {
    margin-bottom: .8em;
    /* Make it flow */
    overflow: hidden;
    clear: left;
}
}


#mp-2012 #column-uptrends {
.mainpage-frame {
    margin-left: 1.6em;
box-shadow: 0 0 .3em #999;
    color: #3B3B3B;
border-radius: 1em;
width:100%;
}
}
 
.mainpage-frame:after {
#mp-2012 #column-participate {
display: block;
    margin-left: 1.6em;
content: "";
    color: #3B3B3B;
clear: both;
}
}
 
.separator {
#mp-2012 #column-participate-button {
width:5%;
    text-align: center;
margin:1em auto;
    margin-top: 1.5em;
    white-space: nowrap;
    font-weight: bold;
}
}
 
.frame-header {
#mp-2012 #column-tips {
background-color:#b50014;
    margin-left: 1.6em;
border-radius: 1em 1em 0.25em 0.25em;
    color: #494949;
color: #fff;
padding: .4em .8em .5em;
font-weight: bold;
}
}
 
.frame-header:before {
#mp-2012-column-tips-header {
display: inline-block;
    font-weight: bold;
/* Add some content in order to get normal line height, then make it transparent */
    color: #444;
content: "x";
color: transparent;
width: 40px;
opacity: .7;
/*[[File:Hamsickwhite.svg]]*/
background-image: url(https://shared.prolewiki.org/uploads/3/3d/Hamsickwhite.svg);
background-size: contain;
background-repeat: no-repeat;
background-position: left center;
}
}
 
.frame-body {
/* For the new main page design */
padding: 1em;
#mp-2012,
#mp-2012-body {
    clear: both;
}
}


#mp-2012 h2 {
/*bringing some of the bootstrap framework*/
    font-weight: bold;
.frame-container{ /* ideally this should be the first <div> tag on the page and EVERYTHING is contained in it */
    border: none;
display:flex;
align-self:flex-start;
flex-flow:row wrap;
gap:15px;
margin-bottom:2rem;
}
}


#mp-2012 h2 {
.col-1{flex:0 0 auto;width:8%}
    font-size: 1.16em;
.col-2{flex:0 0 auto;width:15%}
    margin-bottom: .8em;
.col-3{flex:0 0 auto;width:24%}
    letter-spacing: .16em;
.col-4{flex:0 0 auto;width:32%}
}
.col-5{flex:0 0 auto;width:40%}
 
.col-6{flex:0 0 auto;width:49%}
#mp-2012-body {
.col-7{flex:0 0 auto;width:57%}
    min-width: 695px; /* 182 + 40 + 240 + 245 + 20 - 32 */
.col-8{flex:0 0 auto;width:65%}
}
.col-9{flex:0 0 auto;width:76%}
 
.col-10{flex:0 0 auto;width:84%}
#mp-2012-column-left {
.col-11{flex:0 0 auto;width:90%}
    float: left;
.col-12{flex:0 0 auto;width:100%}
    width: 64.9%;
}


#mp-2012-column-left > div {
@media only screen and (max-width:768px){
    margin-right: 1.5em;
.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12{
}
width:100%;
 
}
.mp-2012-column-left-block {
.frame-container{
    margin-top: .8em;
margin-bottom:15px; /* should be same as flex gap */
    padding: .8em 1.6em 1.8em;
}
    line-height: 1.5em;
.quick-links-table tbody tr td{
}
padding-right:10px;
 
}
.mp-2012-column-left-block + .mp-2012-column-left-block {
.quick-links-table tbody tr td:last-child{
    margin-top: .4em;
padding-right:0;
    border-top: 1px solid #EEE;
}
}
 
#mp-2012-column-right {
    float: right;
    width: 35%;
}
 
 
#mp-2012-column-left h2,
#mp-2012-column-left h2 a {
    color: #259;
}
 
#mp-2012-column-right h2,
#mp-2012-column-right h2 a {
    color: #5c5c5c;
}
 
#column-feature img, #mp-2012 #column-good img {
    margin: 0.4em 0.9em 0.3em 0;
}
 
#column-feature p img, #mp-2012 #column-good p img {
    margin: 0;
}
 
#column-feature p, #mp-2012 #column-good p {
    line-height: 1.6em;
    text-align: justify;
    text-justify: auto;
}
 
#column-dyk li {
    margin-bottom: 0.5em;
}
 
#mp-2012-column-left .mp-2012-text {
    color: #1A1A1A;
}
 
#mp-2012-column-right .mp-2012-text {
    font-size: .98em;
}
 
#mp-2012-column-right > div {
    margin-top: 1.6em;
}
 
.mp-2012-column-right-block {
    margin: 0 0 1.6em;
    padding: .8em 1.6em 1.6em;
}
 
#mp-2012-column-right-block-a {
    border: 1px solid #E8E8E8;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
    background: #FFF;
}
 
#mp-2012-column-right-block-b {
    border: 1px solid #CADEED;
    box-shadow: 0px 1px 3px #DDE6ED;
    background: #FFF;
    background: linear-gradient(#fff 65%,#EFF6FA 100%);
    clear: both;
}
 
#mp-2012-column-right-block-c {
    border: 1px solid transparent;
    margin-bottom: .4em;
    clear: both;
}
 
#column-itn li {
    margin-bottom: .8em;
}
 
#column-otd img {
    margin-left: .6em;
    margin-bottom: .6em;
}
 
#column-otd dl {
    padding-left: 1em;
}
 
#column-otd dt {
    float: left;
    width: 4.2em;
}
 
#column-otd dd {
    margin-bottom: .8em;
    margin-left: 4.5em;
}
 
#mp-2012-banner-logo {
    float: left;
    width: 182px;
    height: 119px;
    margin-bottom: 1px;
    background-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/8/80/Wikipedia-logo-v2.svg/300px-Wikipedia-logo-v2.svg.png");
    background-position: -118px 8px;
    background-repeat: no-repeat;
}
#mp-2012-banner {
    clear: both;
}
 
#mp-2012-banner {
    /* [[File:Zhwp blue banner.png]] */
    background-image: url("//upload.wikimedia.org/wikipedia/commons/0/0a/Zhwp_blue_banner.png");
    background-repeat: repeat-x;
    height: 120px;
    min-width: 727px; /* 182 + 40 + 240 + 245 + 20 */
}
 
#mp-2012-banner-intro {
    float: right;
    margin-right: 20px;
    width: 245px;
    text-align: right;
}
}
}

Latest revision as of 10:32, 13 April 2024

.mainpage-body {
	margin:auto;
}

#mainpage-banner span
{
	display: inline-block;
	width: 100%;
	content: url(/pw-conf/img/mainpage/en.png);
	border-radius:12px;
	
}
.mainpage-banner-overlay {
	position: absolute;
	top: 65px;
	width: 100%;
}

/*adding icons to new quick links*/
.mainpage-articles>:after{
	content:"";}
.mainpage-library{
	content:"";
}
.mainpage-essays{
	content:"";}
.mainpage-categories{
	content:"";}

.mainpage-header {
    display: flex;
	margin: 2em 5em;
	align-items:baseline;
}

.header-intro {
    flex: 2;
}

.header-intro h1 {
    font-size: 2.5em;
    border: none;
    margin: 0 0 .15em;
}

.header-intro p {
    font-size: 1.1em;
    line-height: 1.7em;
}

.header-stats {
    display: flex;
    align-items: center;
    margin:auto;
}
.header-stats ul {
        list-style: none;
}

@media screen and (max-width: 800px) {
	.mainpage-header {
		flex-direction: column;
		margin:2em;
	}
}

.mainpage-frame {
	box-shadow: 0 0 .3em #999;
	border-radius: 1em;
	width:100%;
}
.mainpage-frame:after {
	display: block;
	content: "";
	clear: both;
}
.separator {
	width:5%;
	margin:1em auto;
}
.frame-header {
	background-color:#b50014;
	border-radius: 1em 1em 0.25em 0.25em;
	color: #fff;
	padding: .4em .8em .5em;
	font-weight: bold;
}
.frame-header:before {
	display: inline-block;
	/* Add some content in order to get normal line height, then make it transparent */
	content: "x";
	color: transparent;
	width: 40px;
	opacity: .7;
	/*[[File:Hamsickwhite.svg]]*/
	background-image: url(https://shared.prolewiki.org/uploads/3/3d/Hamsickwhite.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
}
.frame-body {
	padding: 1em;
}

/*bringing some of the bootstrap framework*/
.frame-container{ /* ideally this should be the first <div> tag on the page and EVERYTHING is contained in it */
	display:flex;
	align-self:flex-start;
	flex-flow:row wrap;
	gap:15px;
	margin-bottom:2rem;
}

.col-1{flex:0 0 auto;width:8%}
.col-2{flex:0 0 auto;width:15%}
.col-3{flex:0 0 auto;width:24%}
.col-4{flex:0 0 auto;width:32%}
.col-5{flex:0 0 auto;width:40%}
.col-6{flex:0 0 auto;width:49%}
.col-7{flex:0 0 auto;width:57%}
.col-8{flex:0 0 auto;width:65%}
.col-9{flex:0 0 auto;width:76%}
.col-10{flex:0 0 auto;width:84%}
.col-11{flex:0 0 auto;width:90%}
.col-12{flex:0 0 auto;width:100%}

@media only screen and (max-width:768px){
	.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12{
		width:100%;
	}
	.frame-container{
		margin-bottom:15px; /* should be same as flex gap */
	}
	.quick-links-table tbody tr td{
		padding-right:10px;
	}
	.quick-links-table tbody tr td:last-child{
		padding-right:0;
	}
}