MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 95: | Line 95: | ||
border-top: 1px solid black; | border-top: 1px solid black; | ||
} | } | ||
/* | /* Style the modal */ | ||
.modal { | .modal { | ||
display: none; | display: none; | ||
position: fixed; | position: fixed; | ||
top: 0; | |||
left: 0; | left: 0; | ||
width: 100%; | |||
width: 100%; | height: 100%; | ||
height: 100%; | background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */ | ||
background-color: rgba(0,0,0,0. | |||
} | } | ||
/* | /* Style the modal content */ | ||
.modal-content { | .modal-content { | ||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
background-color: #fff; | |||
padding: 20px; | |||
border-radius: 8px; | |||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); | |||
color: | |||
} | } | ||
. | /* Style the close button */ | ||
.close { | |||
position: absolute; | |||
top: 10px; | |||
right: 10px; | |||
font-size: 20px; | |||
font-weight: bold; | |||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
/* End Style for modals<------ */ | /* End Style for modals<------ */ |
Revision as of 11:21, 8 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 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-body, #mw-head-base, #left-navigation, #mw-data-after-content, .mw-footer { margin-left: 0!important; } .mw-body { border: none; margin-left: 15px!important; } #p-logo a { display: none; } .mw-footer { display: none; } #list { display: flex; flex-wrap: wrap; margin: 0 auto; } .card { width: calc(20% - 2px); box-sizing: border-box; border: 1px solid black; height: fit-content; padding: 7px; margin-bottom: 30px; font-size: 12pt; line-height: 23.5px; letter-spacing: 0.4px; cursor: pointer; } .card:hover { background-color: lightgray; } .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 { text-decoration: underline; border-top: 1px solid black; } .type { border-top: 1px solid black; } /* Style the modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */ } /* Style the modal content */ .modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); } /* Style the close button */ .close { position: absolute; top: 10px; right: 10px; font-size: 20px; font-weight: bold; cursor: pointer; } /* End Style for modals<------ */ .footer { position: fixed; left: 0; bottom: 0; width: 100%; background-color: transparent; text-align: left; } .suggestions { display: none!important; } #simpleSearch { position: relative; display: flex; align-items: center; } #searchform { padding-left: 2%; padding-bottom: 2%; } #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 { margin-left: auto; padding-right: 50%; } #searchInput { margin-right: 8px; /* Adjust the spacing between search input and closing bracket */ } /* Style for the modal */ #myModal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid #888; padding: 20px; background-color: white; z-index: 1; }