mewizard-blog / main.css
main.css
Raw
/* font import */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Monofett&display=swap');


/* meyerweb reset */
html, body, div, span, 
h1, h2, h3, h4, h5, h6, p, blockquote, 
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, figure, figcaption,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, details, embed, iframe,
footer, header, menu, nav, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

body {
    background: #0f2424;
    background-image: url(/assets/glitchbg.jpg);
    background-size: 100%;
    background-repeat: repeat;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, a, p, ul, ol, li, time, figcaption {
    color: whitesmoke;
    font-family: 'MS UI Gothic', sans-serif;
}

a, p, li {
    margin: 5px 0;
}

a:hover {
    background-color: rgba(0, 0, 0, 0.425);
}

figcaption {
    text-align: center;
}

figure {
    margin: 10px 0;
}

footer {
    margin: 0 auto;
}



h1 {
    text-align: center;
    font-size: 6rem;
    font-family: 'Monofett', 'Courier', monospace;
}


h2 {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'JetBrains Mono', 'Courier', monospace; 
    margin: 10px 0;
    text-transform: lowercase;
}

h3 {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'JetBrains Mono', 'Courier', monospace;
    text-transform: lowercase;
    margin-top: 20px;
}

h4 {
    font-size: 1.1rem;
    font-weight: bold;
}

header {
    margin: 1rem auto .5rem;
    max-width: 45%;
    grid-area: header;
}

hr {
    border-top: 1px solid whitesmoke;
    border-bottom: transparent;
}

iframe {
    width: 100%;
    height: 80vh;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.75);
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 6px;
}

img {
    width: 100%;
}

footer {
    grid-area: footer;
    background-color: rgba(0, 0, 0, 0.75);
    max-width: 50%;
    padding-top: 5px;
    margin: 0 auto 1rem;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 6px;
}

ul {

    list-style: "- " inside url('./assets/icons/star-bullet-3d.png');
}

.alert {
    background-color: rgba(0, 0, 0, 0.425);
    padding: 10px 20px;
    margin: 10px 0;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 6px;
}

.alert * {
    display: inline;
    position: relative;
    left: 10px;
}

.button {
    width: auto;
}

.center {
    display: block;
    margin: 5px auto;
    width: auto;
}

.content {
    grid-area: content;
}

.dropdown__btn {
    list-style: "- " inside url('./assets/icons/arrow-right-3d.png');
}

.dropdown__btn--active {
    list-style: "- " inside url('./assets/icons/arrow-down-3d.png');
}

.dropdown__menu {
    display: none;
}

.dropdown__menu a li {
    padding-left: 20px;
    padding-right: 0;
}

.flex-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.flex__image {
    flex: 1 1;
    min-width: 9rem;
}

.grid {
    display: grid;
    max-width: 50%;
    margin: 0 auto;
    grid-template: "header header"
                   "sidebar content"
                   "footer footer"
                   /1fr 3fr;
    column-gap: 10px;
}        

.icon {
    position: relative;
    top: 2px;
    margin: 0 3px;
    width: 15px;
}

.link-button {
    padding: 10px;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.425);
}

.link-button:hover {
    background-color: black;
}

.navless-content {
    width: 70%;
    margin: 0 auto;
}

.navlink {
    text-decoration: none;
}

.navtext {
    padding: 10px;
    margin: 0;
    width: 100%;
}

.navtext:hover {
    background-color: black;
}

.navtext--current {
    background-color: rgba(0, 0, 0, 0.425);
}


.navtext--first {
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

.pixelated {
    image-rendering: pixelated;
}

.post-listing {
    width: 100%;
    font-size: 1.05rem;
}

.post-listing__time {
    float: right;
}

.section {
    background-color: rgba(0, 0, 0, 0.75);
    padding: 15px 30px;
    margin: 10px 0;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 6px;
}

.section__columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}


.sidebar {
    grid-area: sidebar;
    padding: 0 20px 15px 0;
    margin: 10px 0;
    min-width: 6rem;
    background-color: rgba(0, 0, 0, 0.75);
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 6px;
}

.social {
    padding: 2px 3px 2px 0;
    border-radius: 3px;
}

.title {
    text-decoration: none;
    font-family: 'Monofett', 'Courier', monospace;
}

.title:hover {
    background-color: transparent;
}

.zine__page {
   width: 70%;
   display: block;
   margin: 10px auto;
}