Site Theme
/* IMPORTS */ @charset "utf-8"; @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap'); @import url(http://ctatestwiki.wdfiles.com/local--code/component:broken-search/1); /* VARIABLES */ :root { --primary-color: #2c2e34; --secondary-color: gray; --accent-color: orange; --link-visited: #ffd88e; --header-title: "CTA Corporation"; --header-subtitle: "Central Threat and Anomalies"; --logo-img: url('http://ctatestwiki.wdfiles.com/local--files/site-theme/logo.png'); --banner-img: url('https://ctatestwiki.wdfiles.com/local--files/site-theme/ctabannergrid.png'); --search-img: url('https://ctatestwiki.wdfiles.com/local--files/site-theme/search.png'); --social-discord: url('http://ctatestwiki.wdfiles.com/local--files/site-theme/discord.png'); --social-discord-hover: url('http://ctatestwiki.wdfiles.com/local--files/site-theme/discordorange.png'); } /* BODY */ body { background-color: #34373d; color: #fff; font-family: "Noto Sans", sans-serif; } body { font-size: 0.8em; word-break: normal; -webkit-hyphens: manual; hyphens: manual; font-optical-sizing: auto; } h1, h2, h3, h4, h5, h6 { font-family: "Inter", sans-serif; font-weight: bold; } a { color: var(--accent-color); text-decoration: none; } a:hover { background: none; text-decoration: underline; } /* HEADER */ #header { display: flex; justify-content: center; flex-direction: column; align-items: flex-start; background-image: var(--logo-img); background-position: 15px 30px; background-repeat: no-repeat; background-size: 100px; height: 140px; padding-bottom: 22px; } #header, #top-bar { width: 100%; max-width: 64rem; margin: 0 auto; } #header h1, #header h2 { margin-left: 120px; float: left; } #header h1 span, #header h2 span { display: none; } #header h1 a { font-size: 180%; } #header h1 a:hover { text-decoration: none; } #header h1 a::before { display: flex; position: relative; content: var(--header-title); font-family: 'Inter', sans-serif; font-weight: 300; color: #fff; top: 10px; } #header h2::before { display: flex; position: relative; justify-content: center; width: 18.3rem; content: var(--header-subtitle); background: #fff; padding: 3px 10px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 90%; color: #34373d; top: 10px; } div#container-wrap { background: none; } div#extra-div-1 { background: var(--banner-img); position: absolute; top: 0; background-size: cover; background-repeat: no-repeat; background-position: 50% 50%; height: 140px; width: 100%; } /* TOPBAR */ #top-bar { display: flex; border-top: 5px solid var(--accent-color); justify-content: center; right: 0; z-index: 1; top: 140px; } #top-bar ul a { color: #fff; } #top-bar ul li { display: inline-flex; justify-content: center; cursor: pointer; border: none; flex-direction: column; } #top-bar ul li a { border: none; background: var(--accent-color); border-radius: 0 0 5px 5px; } #top-bar ul li:hover a, #top-bar ul li.sfhover a { background: #fff; color: var(--accent-color); text-decoration: none; } #top-bar > ul > li > ul { display: flex; position: absolute; justify-content: center; align-self: center; flex-flow: column; width: auto; margin-top: 1.4rem; top: 0rem; border: none; } #top-bar > ul > li > ul > li { display: flex; position: relative; align-items: center; } #top-bar ul li ul li a { text-align: center; border-radius: 0; } #top-bar ul li ul::before { position: relative; content: ''; height: 1rem; width: 100%; background: var(--accent-color); display: flex; align-self: flex-start; clip-path: polygon(0 80%, 40% 80%, 50% 25%, 60% 80%, 100% 80%, 100% 100%, 0 100%); } #top-bar ul li.sfhover a:hover, #top-bar ul li:hover a:hover { color: var(--accent-color); } #top-bar ul li.sfhover ul li a, #top-bar ul li:hover ul li a { border-width: 0; border-bottom: 1px solid var(--secondary-color); line-height: 200%; height: auto; max-height: none; padding-top: 0; padding-bottom: 0; background: var(--primary-color); color: #fff; } .mobile-top-bar { display: none; position: absolute; left: 1em; bottom: 0; z-index: 0 } /* SIDEBAR */ #side-bar { background: var(--primary-color); padding: 0; border: none; margin-left: 1em; position: relative; border-top: 10px solid var(--accent-color); border-radius: 5px 5px 0 0; overflow: hidden; width: 14rem; } #side-bar::before { content: ''; display: flex; position: absolute; left: 5rem; top: -2rem; background-image: var(--logo-img); background-size: 10rem; background-position: center; background-repeat: no-repeat; transform: rotate(-25deg); opacity: 25%; width: 10rem; height: 10rem; z-index: 50; } #side-bar .sidesection a { display: flex; color: #fff; border-bottom: 1px solid var(--secondary-color); } #side-bar .sidesection a:hover { color: var(--accent-color); text-decoration: none; } #side-bar p { margin: 0; } .sidecontainer { padding: 1em 1em 0 1em; } .sectionname { display: flex; background: var(--accent-color); color: var(--primary-color); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.75rem), calc(100% - 1.5rem) 100%, 0 100%); padding: 5px 11px; margin: 0.5em 0; } /* SIDEBAR SOCIALS */ #side-bar .socials { display: flex; justify-content: center; } #side-bar .socials a { display: none; border-bottom: none; } #side-bar a.discord { display: flex; justify-content: center; margin: 1rem 0; background-image: var(--social-discord); background-size: 2rem; background-position: center; background-repeat: no-repeat; background-color: var(--accent-color); width: 3rem; height: 3rem; border-radius: 10px; } #side-bar a.discord:hover { background-image: var(--social-discord-hover); background-color: #fff; } /* MOBILE SIDEBAR */ @media (max-width: 968px) { #side-bar { display: flex; flex-direction: column; position: fixed; margin: 0; height: 100%; top: 0; left: -20rem; transition: left 0.4s ease-in-out; overflow-y: auto; border-radius: 0; width: 15rem; z-index: 50; } #side-bar::before { background-size: 13rem; height: 13rem; left: 3.5rem; } #side-bar:target { left: 0; } #side-bar:focus-within { left: 0; } #side-bar:target a.close-menu { display: block; position: fixed; background: #000; width: 100%; height: 100%; top: 0; left: 0; z-index: -1; opacity: 0; visibility: visible; } #side-bar:not(:target) .close-menu { display: none; } #top-bar .open-menu a:hover { background: #fff; color: var(--accent-color); text-decoration: none; } #top-bar .open-menu a { display: flex; background: var(--accent-color); font-family: "Verdana", sans-serif; justify-content: center; position: fixed; top: 1em; left: 1em; color: #fff; text-decoration: none; width: 2rem; height: 2rem; line-height: 1.5em; font-size: 25px; align-items: center; } #top-bar .mobile-top-bar { display: block; } #top-bar .mobile-top-bar ul li { display: none; } } /* MAIN */ #content-wrap{ position: relative; margin: 2em auto 0; max-width: 67.5rem; min-height: 80rem; height: auto; } #main-content { display: flex; flex-direction: column; margin: 0 1.5rem 0 17rem; padding: 0rem .75rem .75rem; position: relative; overflow-wrap: break-word; } #page-content { min-height: 720px; } #page-content a { color: var(--accent-color); } #page-content a:hover { background: none; } #page-content a:visited { color: var(--link-visited); } a.newpage { color: red; } #page-title { color: var(--accent-color); margin: 0; } @media (max-width: 968px) { #main-content { margin: 0px 0.1em 0 0.1em; } } /* LOGIN */ #login-status { display: grid; justify-content: center; align-items: center; font-size: 0; top: 55px; z-index: 7; } #login-status img { padding: 0; width: 100%; height: 1%; object-fit: contain; } #login-status > a#account-topbutton { background: var(--primary-color); position: relative; color: #fff; margin: 5px 0 0 0; font-size: 0.5rem; text-align: center; padding: 0 1.25rem; border: none; border-bottom: 2px solid var(--accent-color); } #login-status a:first-child + span { width: 48px; height: 52px; background-image: url('http://ctatestwiki.wdfiles.com/local--files/site-theme/guestpfp.png'); background-size: 48px; background-repeat: no-repeat; cursor: pointer; } #login-status:hover > a:is(a.login-status-create-account.btn, a.login-status-sign-in.btn.btn-primary) { top: 52px; height: 1rem; width: 6rem; background: var(--primary-color); font-size: 0.7rem; padding: 2px 5px; } #login-status > a.login-status-create-account.btn, a.login-status-sign-in.btn.btn-primary { display: flex; justify-content: center; align-items: center; position: absolute; text-align: center; border-top: 1px solid var(--secondary-color); border-bottom: 1px solid var(--secondary-color); color: #fff; } #login-status a.login-status-create-account { inset-inline-end: 6.6rem; } #login-status a.login-status-create-account:hover { color: var(--accent-color); text-decoration: none; } #login-status a.login-status-sign-in:hover { color: var(--accent-color); text-decoration: none; } #login-status a.login-status-sign-in { inset-inline-end: 0; } #login-status > #account-options { font-size: 0.7rem; } #account-options { background: var(--primary-color); border: none; top: 67px; } #account-options ul { border-top: 1px solid gray; } #account-options ul { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); justify-content: center; align-items: center; } #account-options ul li { border-bottom: 1px solid var(--secondary-color); } #account-options ul li a { color: #fff; text-decoration: none; text-align: center; } #account-options ul li a:hover { color: var(--accent-color); } /* SEARCH */ #search-top-box { display: flex; align-self: flex-end; top: unset; } #search-top-box-form { background: var(--accent-color); position: absolute; right: 3.5rem; padding: 5px; } #search-top-box-form input.button { display: flex; flex-direction: column; cursor: pointer; font-size: 0; margin: 0; height: 1.5rem; width: 1.5rem; border: none; background: none; background-image: var(--search-img); background-size: 100%; background-repeat: no-repeat; } #search-top-box-input { display: none; } /* MOBILE */ @media (max-width: 968px) { #header { background-image: none; } #header h1, #header h2 { align-self: center; margin-left: 0; } div#header-extra-div-2 { background-image: var(--logo-img); background-position: center; background-size: 8rem; background-repeat: no-repeat; opacity: 40%; position: absolute; width: 100%; height: 100%; } #top-bar { display: none; } .mobile-top-bar { display: block; } #login-status { top: 21.5px; } #login-status a:first-child + span { width: 40px; height: 45px; background-size: 40px; } #search-top-box-form { bottom: 16px; right: 50px; } #search-top-box-form input.button { width: 1.2rem; height: 1.2rem; } } @media (max-width: 450px) { #header h1 a::before { font-size: 75%; } #header h2::before { font-size: 75%; width: 13rem; } } /* TABLES */ table.wiki-content-table { border: #fff; } table.wiki-content-table tr th { background: var(--primary-color); border-bottom: 3px solid var(--accent-color); color: #fff; } table.wiki-content-table tr td { background: var(--primary-color); color: #fff; } /* BLOCKQUOTE */ div.blockquote, blockquote { padding: 1px 1em; background-color: var(--primary-color); margin: 1em 3em; border: none; color: #fff; } div.whitequote { background: #fff; color: #000; padding: 1px 1em; margin: 1em 3em; } div.grayquote { background: var(--secondary-color); color: #fff; padding: 1px 1em; margin: 1em 3em; } #page-content :is(.blockquote, blockquote) > :is(.blockquote, blockquote) { background: #343841; } /* TABS */ .yui-navset .yui-nav { display: flex; justify-content: center; flex-wrap: wrap; align-items: flex-end; border-bottom: 5px solid var(--accent-color); } .yui-navset .yui-nav a { background: var(--primary-color); border: none; } .yui-navset .yui-nav .selected { margin: 0; } .yui-navset .yui-nav .selected a { background: var(--accent-color); } .yui-navset .yui-nav .selected a:focus { background: var(--accent-color); } .yui-navset .yui-nav li { flex-grow: 2; border: none; margin: 0; } .yui-navset .yui-nav li:hover { background: #fff; } .yui-navset .yui-nav li:hover a em { color: #000; } .yui-navset .yui-nav li a { text-align: center; width: 100%; } .yui-navset .yui-nav li a em { color: #fff; border: none; top: 0; } .yui-navset .yui-content { border: 0; background: var(--primary-color); } /* RATING MODULE */ #page-content .page-rate-widget-box a { background: var(--accent-color); color: #fff; } #page-content .page-rate-widget-box .rateup a:hover, #page-content .page-rate-widget-box .rateup a:focus { background: green; color: #fff; text-decoration: none; } #page-content .page-rate-widget-box .ratedown a:hover, #page-content .page-rate-widget-box .ratedown a:focus { background: red; color: #fff; text-decoration: none; } #page-content .page-rate-widget-box .cancel a:hover { background: var(--secondary-color); color: #fff; text-decoration: none; } .page-rate-widget-box .rate-points { background: #fff; color: #000; font-weight: normal; } /* POP-UPS TEXT BOXES */ .modal-body img { background: none!important; } #odialog-hovertips { color: #000; } #odialog-container { position: absolute; top:0; height: 100%; z-index: 50; width: 100%; } .owindow{ background-color: var(--primary-color); border: 1px solid #fff; } .owindow .title{ background: var(--accent-color); color: #fff; } .owindow .button-bar a { color: #000; margin: 0.2em 0.2em; padding: 0.1em 1em; text-decoration: none; background-color: #F4F4F4; border: 1px solid #AAA; } .owindow .owait .content { margin: 10px; padding: 0 50px 20px 50px; background-repeat: no-repeat; background-position: bottom center; background-image: url(../images/progress/progressbar.gif); border: none; } .owindow .osuccess .content { margin: 10px; padding: 0 50px; border: none; } /* EDIT */ #lock-info { color: black; } /* TOC */ #toc { background-color: var(--secondary-color); color: #fff; } .code { background-color: gray; } /* FORUMS */ .forum-start-box { display: flex; flex-direction: column; justify-content: center; } .forum-group { display: flex; flex-direction: column; justify-content: center; } .forum-group > div.head { background: var(--primary-color); border-radius: .3156rem .3156rem 0 0; border-bottom: 5px solid var(--accent-color); border-top: 0; border-left: 0; border-right: 0; } .forum-group table tr.head td, .forum-category-box table tr.head td { text-align: center; font-size: 85%; background-color: var(--secondary-color); } .forum-thread-box .description-block, .forum-category-box .description-block { background: var(--secondary-color); } .forum-thread-box .description-block .statistics { color: #fff; } .thread-container .post { width: 100%; } .thread-container .post .head { background: var(--secondary-color); }
