Difference between revisions of "MediaWiki:Vector.css"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
Line 254: Line 254:
 
margin-top: .25rem;
 
margin-top: .25rem;
 
margin-left: 1.25rem;
 
margin-left: 1.25rem;
background: #fff;
+
background: #c8b9c9;
 
color: #222;
 
color: #222;
 
border-radius: 4px;
 
border-radius: 4px;

Revision as of 06:20, 20 February 2022

/* All CSS here will be loaded for users of the Vector skin */

#portal {
    max-width: 1440px;
    margin: auto;
}

.portal-pills {
	background: #25336c;
	color: #fff;
	padding: 1rem 2rem 1.5rem;
	border-bottom-left-radius: 1rem;
	border-bottom-right-radius: 1rem;
}

.portal-pills a {
	color: #fff !important;
}

.portal-pills a:hover {
	color: #ffed00 !important;
}

.portal-quick-search-label {
    background: #25336c;
    color: #fff;
    padding: 1rem 2rem 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.5rem;
    border-top-right-radius: 1rem;
}

.portal-tabs ul li {
    padding: .75rem 2rem;
    color: #fff;
    font-weight: bold;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    margin: 0 0.25rem 0 0 !important;
    height: 23px;
}

.portal-tabs ul {
    margin: 0;
    list-style: none;
    display: flex;
}

.portal-tabs ul li.active {
    background: #25336c;
}
.portal-tabs ul li.active a {
	color: #fff !important;
}
.portal-tabs ul li:not(.active) {
    background: #575f7e;
    color: #ddd;
}
.portal-tabs ul li:not(.active) a {
	color: #ddd !important;
}
.portal-tabs ul li:not(.active):hover {
    background: #384165;
    color: #eee;
}
.portal-tabs ul li:not(.active):hover a {
	color: #eee !important;
}
.portal-title {
    font-weight: 900;
    font-size: 2.75rem;
    padding: 1rem 0 2.5rem;
    line-height: 2.5rem;
}

.portal-welcome {
    font-weight: bold;
    color: #444;
    font-size: 1.15rem;
    margin-bottom: -.5rem;
    margin-top: 2.5rem;
}

.portal-top-nav {
    display: flex;
    justify-content: space-between;
}

.portal-links {
    line-height: 1.25rem;
}

.portal-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    flex-wrap: wrap;
    font-weight: bold;
}

.portal-links ul li {
    padding: 0;
}

.portal-links ul li:not(:last-of-type):after {
    content: "|";
    font-weight: 300;
    color: #777;
    margin: 0 .5rem;
}

.portal-pills ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.portal-pills ul li {
    padding: 0.75rem 1.25rem;
    margin-right: 0.5rem;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.portal-pills ul li:hover {
    background: rgba(255,255,255,.3);
    color: #ffed00;
}

.portal-content {
    display: flex;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-card {
    display: flex;
    flex: 1 0 calc(100% / 3 - 16px);
    background: #fff;
    min-height: 50px;
    border-radius: 1rem;
	box-shadow: 0 6px 12px rgb(0 0 0 / 15%);
    border: 0px solid rgba(0,0,0,.2);	
    flex-direction: column;
}

.portal-card-header {
    background: #25336c;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: bold;
    font-size: 1.35rem;
}

.portal-card-img {
	border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    max-height: 200px;
    overflow: hidden;
    border-bottom: 12px solid #25336c;
}

.portal-card-img img {
	border-top-left-radius: 1rem !important;
	border-top-right-radius: 1rem !important;
	margin-top: -15%;
}
.portal-card-body {
	padding: 1rem 1.75rem;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 0 auto;
}
.img-fluid {
	width: 100%;
	height: auto;
}

.portal-card-body-tagline {
    color: #666;
    font-size: 1.0375rem;
}

.portal-card-body-title {
    font-size: 1.45rem;
    font-weight: bold;
    line-height: 1.5rem;
    padding: 0 0 1rem 0;
}

.portal-card-body-title a {
	color: #25336c !important;
}

.portal-card-footer {
    background: #c9c9c9;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 1rem 2rem;
    font-size: .75rem;
}

.cta a {
	display: block;
    font-weight: bold;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    box-sizing: border-box;
    margin: 1rem 0;
}

.cta-primary a {
	color: #fff !important;
    background: #575f7e;
}

.info-block.portal-card {
	background: #bda5bd;
}

.info-block.right .portal-tabs ul {
    margin-left: auto;
    margin-right: -4px;
}

.info-block .portal-tabs ul li:first-of-type,
.info-block .portal-pills {
    background: #846884;
}

.info-block .portal-tabs ul li {
	font-size: 1.35rem;
}
.info-block .portal-pills {
	flex: 1;
	justify-content: space-between;
    display: flex;
    flex-direction: column;
}
.info-block .portal-pills > p {
	margin: 1.5rem auto;
}
.info-block .info-section {
	padding: .25rem 1rem;
	margin-top: .25rem;
	margin-left: 1.25rem;
	background: #c8b9c9;
	color: #222;
	border-radius: 4px;
}

.info-section a,
.info-section a:hover {
    color: #0645ad !important;	
}

.info-section:not(:last-of-type) {
    margin-bottom: 0.75rem;
}

.info-section.important {
    padding-left: 2rem;
    align-items: center;
    display: flex;
}

.info-section.important div { 
	padding: 0 0 0 1rem;
}

.info-section.important:before {
    content: '!';
    display: flex;
    height: 40px;
    width: 40px;
    margin-left: -60px;
    background: #ffffff;
    position: absolute;
    border-radius: 50%;
    border: 8px solid #846884;
    outline: 5px solid #fff;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #575f7e;
    font-weight: bold;
}

.info-footer {
	padding-left: 1.25rem;
	color: #ddd;
}

.event-list-day {
    font-size: 2rem;
    font-weight: bold;
    color: #846884;
}

.event-list-month {
    color: #846884;
}

.event-list-date {
    flex: 0 0 75px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 1.6rem;
    padding-top: .15rem;
}

.event-list-wrapper {
    display: flex;
    margin-bottom: 1rem;
}

.event-list-wrapper:first-of-type {
    margin-top: 2rem;	
}

.event-list-item-description {
    font-size: .85rem;
    line-height: 1.1rem;
    color: #444;
}

.event-list-item-title {
    font-size: 1.15rem;
    line-height: 1.5rem;
    font-weight: bold;
    list-style: none;
}

@media ( max-width: 1105px ) {
	.portal-top-nav {
		flex-direction: column;
		flex-wrap: wrap;
	}
	.portal-card {
	    flex: 1 0 calc(100% / 2 - 16px);
	}
	.portal-card-body {
		padding: 1rem 1.5rem;
	}
	.portal-card-img {
		height: 135px;
	}
	.portal-pills {
		padding: 1rem 1rem 1.5rem 1.5rem;
	}
}

@media ( max-width: 768px ) {
	.portal-content {
		margin-top: 0;
	}
	.portal-card {
	    flex: 1 0 calc(100%);
	    box-shadow: none;
	}
	.portal-quick-search .portal-tabs ul {
        flex-direction: column-reverse;
	}
	.portal-tabs ul li {
		margin: 0;
	}
	.portal-tabs ul li:not(:last-of-type), 
	.portal-quick-search-label {
	    border-radius: 0 !important;
	}
	.portal-top-nav {
    	flex-direction: column;
    	flex-wrap: wrap;
	}
	.portal-pills ul li {
    	padding: 0.5rem 1rem;
	}
	.portal-card-body {
		padding: 1rem .75rem;
	}
	.portal-card-img {
		max-height: unset;
		height: unset;
	}
	.portal-card-img img {
		margin-top: 0;
	}
	.info-block.portal-card {
	    margin: 2rem 0 1rem;
	    flex: 1 0 calc(100% - 28px);
	}
}

@media ( max-width: 768px ) and ( min-width: 480px ) {
	.portal-tabs ul li.active {
		align-self: end;
		z-index: 1;
		border-top-left-radius: 1rem !important;
	}
	.portal-quick-search .portal-tabs ul li.active {
		margin-top: -47px !important;
	}
	.portal-quick-search .portal-tabs ul li {
    	margin-right: 0 !important;
	}
}

@media ( max-width: 576px ) {
	.portal-pills {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.portal-pills ul li {
    	width: 100%;
    	margin-bottom: .25rem;
    	margin-right: 0;
	}
	.portal-quick-search-label {
		display: none;
	}
	.portal-card-body {
		padding: 1rem .5rem;
	}
}

@media ( max-width: 480px ) {
	.portal-pills {
		padding-top: 0 !important;
	}
	.portal-tabs ul li {
		margin-right: 0 !important;
	}
}