MediaWiki:Vector.css

From Wayne County, Ohio Online Resource Center
Revision as of 08:48, 18 February 2022 by WikiVisor (talk | contribs)
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* 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-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;
    height: 23px;
}

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

.portal-tabs ul li:first-of-type {
    background: #25336c;
}

.portal-tabs ul li:not(:first-of-type) {
    background: #575f7e;
    color: #ddd;
}

.portal-tabs ul li:not(:first-of-type):hover {
    background: #384165;
    color: #eee;
}

.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;
    /* font-weight: bold; */
}

.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: 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: 8px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 7%);
    border: 1px solid rgba(0,0,0,.2);
    flex-direction: column;
}

@media ( max-width: 1105px ) {
	.portal-top-nav {
		flex-direction: column;
		flex-wrap: wrap;
	}
	.portal-card {
	    flex: 1 0 calc(100% / 2 - 16px);
	}
}

@media ( max-width: 768px ) {
	.portal-card {
	    flex: 1 0 calc(100%);
	}
	.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;
	}
}

@media ( max-width: 768px ) and ( min-width: 480px ) {
	.portal-tabs ul li:first-of-type {
		align-self: end;
		margin-top: -47px;
		z-index: 1;
		border-top-left-radius: 1rem !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;
	}
}

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

.portal-card-img img {
	border-top-left-radius: .5rem !important;
	border-top-right-radius: .5rem !important;
}
.img-fluid {
	width: 100%;
	height: auto;
}