MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 137: | Line 137: | ||
.header-index { | .header-index { | ||
cursor: pointer; | cursor: pointer; | ||
} | |||
.header-index a { | |||
color: black; | |||
} | } | ||
.header-index a:hover { | .header-index a:hover { |
Revision as of 09:33, 17 January 2024
/* CSS placed here will be applied to all skins */ /* White background in body */ @font-face { font-family: 'HALColant-TextRegular'; src: url('/fonts/HALColant-TextRegular.woff2') format('woff2'), url('/fonts/HALColant-TextRegular.woff') format('woff'); font-weight: normal; font-style: normal; } body { font-family: 'HALColant-TextRegular', sans-serif; background-color: white; transition: background-color 1s ease; } /* Mediawiki search results */ .mw-search-profile-tabs { display: none; } #mw-searchoptions { display: none; } /* Mediawiki horizontal navigation styles */ #mw-head { background-color: white; transition: background-color 1s ease; display: none; } #mw-page-base { background-color: white; transition: background-color 1s ease; background-image: none; } #mw-head-base { margin-top: -9%; margin-left: 0!important; } .mw-body, #left-navigation, #mw-data-after-content, .mw-footer { margin-left: 0!important; } .mw-body { border: none; margin-left: 15px!important; } #catlinks { display: none; } #p-logo a { display: none; } .mw-footer { display: none; } #header-container { display: flex; flex-wrap: wrap; margin: 0 auto; padding-bottom: 12%; } /* ------>Start Style for header */ a.mw-selflink { font-weight: normal; text-decoration: underline; } a.mw-selflink:hover { font-weight: normal; text-decoration: underline; } .head-col { width: calc(20% - 2px); box-sizing: border-box; height: fit-content; padding: 0 7px; margin-bottom: 30px; font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; } .head-col:not(:first-child) { margin-left: -1px; } .head-col:nth-child(5n + 1) { margin-left: 0; transform: none; } .head-col:last-child { margin-right: 0; } .head-col-extend { width: calc(40% - 2px); box-sizing: border-box; height: fit-content; margin-bottom: 30px; font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; border-bottom: 1px solid black; } .head-box { border: 1px solid black; } .head-nav { padding-left: 15px; padding-top: 5px; line-height: 23px; } .head-links { padding-top: 5px; } .head-filter { padding-top: 5px; } .header-entry-number { line-height: 28px; } .header-authors-title { border-top: 1px solid black; line-height: 28px; } .header-authors-title a { color: black; text-decoration: none; } .header-authors-title a:hover { font-style: italic; } .header-type { border-top: 1px solid black; line-height: 28px; } .header-index { cursor: pointer; } .header-index a { color: black; } .header-index a:hover { } .header-people { cursor: pointer; } .header-people a{ color: black!important; } .header-people a:hover{ color: black; } /* End Style for header<------ */ #list { display: flex; flex-wrap: wrap; margin: 0 auto; } #list.fade-out { position: absolute; width: 100%; height: 100%; background: white; opacity: 0.3; } .card { width: calc(20% - 2px); box-sizing: border-box; border: 1px solid black; height: fit-content; padding: 5px 7px 2px 7px; margin-bottom: 30px; font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; cursor: pointer; } .card:hover { } .card:not(:first-child) { margin-left: -1px; } .card:nth-child(5n + 1) { margin-left: 0; transform: none; } .card:last-child { margin-right: 0; border-right: 1px solid black; } .mw-body .firstHeading { display: none; } #mw-panel { display: none; } .people { border-top: 1px solid black; } .people a { color: black; text-decoration: underline; } .people a:hover { font-style: italic; color: black; } .type { border-top: 1px solid black; } .type a { color: black; text-decoration: none; } .type a:hover { font-style: italic; color: black; } .images { border-top: 1px solid black; padding-top: 5px; padding-bottom: 5px; display: flex; /* Use flexbox to align children in a row */ flex-wrap: nowrap; /* Prevent wrapping to the next line */ } .image1 { margin-right: 10px; /* Adjust the spacing between images */ transition: transform 0.3s ease; /* Add transition for smooth scaling */ transform-origin: top left; /* Set the transform origin */ } .image1 img { display: block; width: auto; height: 75px; } .image2 { margin-right: 10px; /* Adjust the spacing between images */ transition: transform 0.3s ease; /* Add transition for smooth scaling */ transform-origin: top left; /* Set the transform origin */ } .image2 img { display: block; width: auto; height: 75px; } .image3 { margin-right: 10px; /* Adjust the spacing between images */ transition: transform 0.3s ease; /* Add transition for smooth scaling */ transform-origin: top left; /* Set the transform origin */ } .image3 img { display: block; width: auto; height: 75px; } .image1:hover, .image2:hover, .image3:hover { transform: scale(2); /* Increase the scale factor as needed */ } /* Style the article window */ #show-article-wrapper { display: none; position: fixed; /* Change to fixed */ top: 0; right: 0; width: 40%; height: 100vh; /* Set to full viewport height */ overflow: auto; /* Enables scrolling if content overflows */ scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* Internet Explorer 10+ */ z-index: 2; /* Ensure it's above #list */ } /* Hides scrollbar for Webkit browsers */ #show-article-wrapper::-webkit-scrollbar { display: none; } #show-article { background-color: white; border: 1px solid; padding: 10px; margin-right: 5%; margin-top: 10%; } #article-frame { /* You can style #article-frame as needed */ } .article-metadata { display: flex; border-bottom: 1px solid black; } .article-metadata-label { text-transform: uppercase; margin-bottom: 0 !important; } .article-metadata-value { text-transform: capitalize; font-size: 12pt; letter-spacing: 0.4px; margin-top: 0 !important; } .article-metadata-column:not(:first-child) { margin-left: 20px; } .article-metadata-column:nth-child(n+2) { margin-left: 10%; } .article-label-description { text-transform: uppercase; margin-bottom: 0 !important; text-indent: 50px; } .article-label-image { text-transform: uppercase; margin-bottom: 0 !important; text-indent: 50px; } .article-label-reflection { text-transform: uppercase; margin-bottom: 0 !important; text-indent: 50px; } .article-label-quote { text-transform: uppercase; margin-bottom: 0 !important; text-indent: 50px; } .article-label-modification-date { text-transform: uppercase; margin-bottom: 0 !important; text-indent: 50px; color: grey; display: inline-block; } .article-entry-number { border-bottom: 1px solid black; font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; } .article-people { font-size: 16pt; line-height: 25px; letter-spacing: 0.4px; text-decoration: underline; text-align: center; padding-top: 15px; margin-bottom: 5px!important; } .article-people a { color: black; text-decoration: underline; } .article-people a:hover { font-style: italic; color: black; } .article-title-link { border-bottom: 1px solid black; padding-bottom: 7px; display: flex; /* Use flexbox */ flex-direction: column; /* Stack items vertically */ align-items: center; /* Align items horizontally in the center */ justify-content: center; /* Align items vertically in the center */ text-align: center; /* Center the text */ } .article-title { font-size: 16pt; line-height: 25px; letter-spacing: 0.4px; text-align: center; margin-bottom: 0!important; margin-top: 0 !important; max-width: 70%; } .article-type { font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; border-bottom: 1px solid black; margin-top: 0 !important; padding: 5px 0 5px 0; } .article-type a { color: black; text-decoration: none; } .article-type a:hover { font-style: italic; color: black; } .article-entity { font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; margin-top: 0 !important; } .article-discipline { font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; margin-top: 0 !important; } .article-subject { font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; margin-top: 0 !important; } .article-images { border-bottom: 1px solid black; padding-bottom: 10px; } .article-image { position: relative; } .external-link-icon { display: flex; /* Use flexbox */ align-items: center; /* Align items vertically in the center */ justify-content: center; /* Center the content horizontally */ width: 20px; /* Adjust the width as needed */ height: 20px; /* Adjust the height as needed */ } .external-link-icon img { width: 100%; /* Make the image fill the container */ height: auto; /* Maintain aspect ratio */ } .image-container { position: relative; display: inline-block; /* Adjusts to the size of the image */ } .image-container img { display: block; max-width: 100%; width: auto; height: 400px; } .caption-image1, .caption-image2, .caption-image3, .caption-image4, .caption-image5 { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: black; padding: 10px; text-align: center; font-size: 16pt; line-height: 16.5pt; font-style: italic; max-width: 100%; white-space: normal; /* Allow text wrapping */ overflow: visible; /* Let the text be visible */ text-overflow: ellipsis; /* Use ellipsis for text overflow */ border-radius: 5px; /* Optional: for better appearance */ } .image-container:hover .caption-image1, .image-container:hover .caption-image2, .image-container:hover .caption-image3, .image-container:hover .caption-image4, .image-container:hover .caption-image5 { display: block; } .article-description { font-size: 15pt; line-height: 25px; letter-spacing: 0.4px; text-align: left; text-indent: 50px; margin-top: 0 !important; border-bottom: 1px solid black; padding-bottom: 5px; } .article-reflection { font-size: 15pt; line-height: 25px; letter-spacing: 0.4px; text-align: left; text-indent: 50px; margin-top: 0 !important; border-bottom: 1px solid black; padding-bottom: 5px; } .article-quote { font-size: 21pt; font-style: italic; line-height: 30px; letter-spacing: 0.4px; text-align: left; text-indent: 50px; margin-top: 0 !important; border-bottom: 1px solid black; padding-bottom: 5px; } .article-modification-date { font-size: 11.5pt; margin-left: -43px; color: grey; line-height: 30px; letter-spacing: 0.4px; text-align: left; text-indent: 50px; margin-top: 0 !important; display: inline-block; } #related-articles { margin-top: 60px; margin-right: 4.5%; } .related-articles-label { text-transform: uppercase; margin-bottom: 0 !important; text-indent: 50px; } .related-articles-container { display: flex; flex-wrap: wrap; gap: 0; /* No gap between articles */ } .related-article { width: calc(50% - 1px); /* Adjusted width */ box-sizing: border-box; border: 1px solid black; height: fit-content; padding: 7px; margin-bottom: 30px; font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; cursor: pointer; } .related-article:not(:first-child) { margin-left: -1px; } .related-article:nth-child(2n + 1) { margin-left: 0; } .related-article:last-child { margin-right: 0; } .related-article-entry-number { } .related-article-people { text-decoration: underline; border-top: 1px solid black; } .related-article-title { } .related-article-type { border-top: 1px solid black; } #close-button { float: right; cursor: pointer; padding: 8px 0; font-size: 12pt; line-height: 25px; letter-spacing: 0.4px; } /* End Style for article window<------ */ .footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: fixed; left: 0; bottom: 15px; width: 100%; padding: 10px; box-sizing: border-box; } .suggestions { display: none!important; } .simpleSearch { grid-column: 1 / 2; padding-left: 3%; } #simpleSearch { grid-column: 1 / 2; text-align: left; } #simpleSearch:before { content: ""; position: absolute; top: 0; left: 0; width: 200%; height: 400%; background-color: rgba(255, 255, 255, 0.7); z-index: -1; margin-left: -10%; } #searchInput, .closing-bracket { display: none; border: none; } #simpleSearch:hover #searchInput { display: inline; border-bottom: 1px solid black; margin-left: -8px; } #simpleSearch:hover .closing-bracket { display: inline; } .nrs { grid-column: 2 / 3; /* Position in the center column */ text-align: center; } /* Styling for Authors/Creators */ .smw-column { width: 20%!important; } .smw-column ul li { list-style: none; } .smw-column-header { font-weight:normal; border-bottom: 1px solid black; margin-right: 10px; } .smw-column ul { font-size: 16pt; line-height: 27px; letter-spacing: 0.4px; text-align: center; text-decoration: underline; } .smw-column a { color: black; }