More languages
More actions
No edit summary |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* remove unordered list bullet points that DPL creates for the main feed */ | |||
.essays-list li > a{ | .essays-list li > a{ | ||
display:none; | display:none; | ||
Line 7: | Line 8: | ||
} | } | ||
/* set up appearance differences between main feed and individual essay pages */ | |||
.essay-disappear{ | .essay-disappear{ | ||
display:block!important; | display:block!important; | ||
Line 15: | Line 17: | ||
} | } | ||
. | /* font styling with two deployable classes */ | ||
.essay-small{ | |||
font-size:0.8em; | |||
} | |||
.essay-big{ | |||
font-size:1.2em; | |||
} | } | ||
/* MAIN FEED AND SIDEBAR */ | |||
.essays-page{ | .essays-page{ | ||
display:flex; | display:flex; | ||
Line 45: | Line 53: | ||
.essays-sidebar-item > div{ | .essays-sidebar-item > div{ | ||
background-color: #eee; /* color is set from MediaWiki:Citizen.css for light and dark modes */ | background-color: #eee; /* color is set from MediaWiki:Citizen.css for light and dark modes, this is for other themes */ | ||
padding:2px 25px; | padding:2px 25px; | ||
border-radius:3px; | border-radius:3px; | ||
} | } | ||
Line 65: | Line 61: | ||
transform:scale(1); | transform:scale(1); | ||
transition:transform 0.4s; | transition:transform 0.4s; | ||
height:300px; | |||
} | } | ||
Line 73: | Line 70: | ||
/* MOBILE STYLING */ | |||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.essays-page{ | .essays-page{ | ||
Line 89: | Line 86: | ||
.infobox-essay{ | .infobox-essay{ | ||
margin-bottom:40px; | margin-bottom:40px; | ||
} | |||
.essay-picture{ | |||
height:240px; | |||
} | } | ||
} | } |
Revision as of 01:30, 19 September 2023
/* remove unordered list bullet points that DPL creates for the main feed */
.essays-list li > a{
display:none;
}
.essays-list li{
list-style-type: none;
}
/* set up appearance differences between main feed and individual essay pages */
.essay-disappear{
display:block!important;
}
.essay-disappear2{ /* opposite of essay-disappear; make something appear in individual view but disappear in the homepage */
display:none;
}
/* font styling with two deployable classes */
.essay-small{
font-size:0.8em;
}
.essay-big{
font-size:1.2em;
}
/* MAIN FEED AND SIDEBAR */
.essays-page{
display:flex;
flex-flow:row-reverse wrap;
}
.essays-list{
width:67%;
margin-right:3%;
}
.infobox-essay{
margin-bottom:80px;
}
.essays-sidebar{
width:30%;
padding-top:25px;
}
.essays-sidebar-item{
width:100%;
margin-bottom:20px;
}
.essays-sidebar-item > div{
background-color: #eee; /* color is set from MediaWiki:Citizen.css for light and dark modes, this is for other themes */
padding:2px 25px;
border-radius:3px;
}
.essay-picture img{
transform:scale(1);
transition:transform 0.4s;
height:300px;
}
.essay-picture img:hover{
transform:scale(1.03);
transition:transform 0.4s;
}
/* MOBILE STYLING */
@media screen and (max-width: 768px) {
.essays-page{
display:flex;
flex-wrap:wrap;
flex-direction:column;
}
.essays-list{
width:100%;
}
.essays-sidebar{
width:100%;
padding-top:0;
}
.infobox-essay{
margin-bottom:40px;
}
.essay-picture{
height:240px;
}
}