website/assets/style/style.css

265 lines
5.2 KiB
CSS
Raw Normal View History

2024-01-05 19:37:21 -07:00
@font-face {
font-family: "Monocraft";
src: local("Monocraft");
2024-01-17 04:28:22 -07:00
src: url("https://www.xbazzi.com/Monocraft.ttf") format("truetype");
2024-01-05 19:37:21 -07:00
}
:root {
2024-01-17 04:28:22 -07:00
--background: rgba(150, 150, 150, 0.95);
--main-color:#bf00ff;
2024-01-05 19:37:21 -07:00
--main-color-dk:#441261;
2024-02-25 12:05:29 -07:00
--accent-1: #8d0081;
2024-01-17 04:28:22 -07:00
--accent-2:#00FFFF;
2024-01-05 19:37:21 -07:00
--content-spacing:5px;
--background-img:url('../img/bg-beach5.png');
--banner:url('../img/bg_ascii2.png');
2024-01-05 19:37:21 -07:00
--banner-footer: url('../img/tiny-bar-green.png');
--titleBars:url('../img/tiny-bar-green.png');
--text-color: white;
--text-shadow-custom: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
--link-color:var(--accent-1);
--border:2px solid black;
--arrows:url('../assets/images/arrow.png');
}
html,
body {
margin: 0;
box-sizing: border-box;
font-family: "Times New Roman", Times, serif;
2024-01-05 19:37:21 -07:00
}
body {
background-color: black;
color: var(--text-color);
background-attachment: scroll;
z-index: 1;
}
.email-link {
position: absolute;
top: 10px; /* Adjust the position as needed */
right: 10px; /* Adjust the position as needed */
display: inline-block;
}
.blog-image {
width: 50%;
}
2024-01-05 19:37:21 -07:00
.topbar {
background-image:var(--banner);
background-size: 100% 100%;
height:150px;
padding-bottom:var(--content-spacing);
2024-01-05 19:37:21 -07:00
margin-bottom:var(--content-spacing);
2024-01-17 04:28:22 -07:00
/* border:var(--border); */
2024-01-05 19:37:21 -07:00
}
2024-01-17 04:28:22 -07:00
p.blog {
font-weight: bold;
display: inline-block; /* Ensure the background only covers the text */
}
.project-image {
display: block; /* Ensures the image does not have inline whitespace below it */
max-width: 20%; /* Ensures the image is responsive and fits its container */
height: auto; /* Maintains aspect ratio */
}
2024-01-05 19:37:21 -07:00
#container,
.topbar img {
max-width: 1000px;
2024-01-05 19:37:21 -07:00
margin: 0 auto;
}
#container a {
color:var(--link-color);
}
.topbar img {
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
}
#container {
border-top: none;
position: relative;
min-height: 100vh;
width: 100%;
z-index: 1;
}
/* Revised Pseudo-element Styles */
body::before {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: '';
background-image: var(--background-img);
2024-02-23 18:23:30 -07:00
background-size: 100% 100%; /* Ensure the image covers the entire element */
2024-01-05 19:37:21 -07:00
background-repeat: no-repeat; /* Prevent the image from repeating */
opacity: 0.8; /* Adjust the transparency */
z-index: -1;
}
#flex {
display: flex;
max-width:1000px;
2024-01-05 19:37:21 -07:00
}
aside {
2024-01-17 04:28:22 -07:00
font-weight: bold;
width: 25%;
2024-02-25 12:05:29 -07:00
height: 10%;
2024-01-05 19:37:21 -07:00
margin-left:var(--content-spacing);
}
.sidebar-container {
/*border:var(--border);*/
/*margin-top: var(--content-spacing);*/
2024-01-05 19:37:21 -07:00
background-color: var(--background);
}
2024-02-25 12:05:29 -07:00
.sidebar-title {
font-family: 'Monocraft';
2024-02-25 12:05:29 -07:00
padding: 3px 10px; /* Adjust top/bottom and left/right padding as needed */
2024-01-05 19:37:21 -07:00
background-image:var(--titleBars);
font-weight:bold;
2024-02-25 12:05:29 -07:00
font-size: 20px;
2024-01-05 19:37:21 -07:00
border:var(--border);
2024-01-17 04:28:22 -07:00
color: var(--title-text-color);
text-shadow: var(--text-shadow-custom);
}
2024-02-25 12:05:29 -07:00
2024-01-17 04:28:22 -07:00
.title {
font-family: 'Monocraft';
2024-02-25 12:05:29 -07:00
padding: 3px 10px; /* Adjust top/bottom and left/right padding as needed */
font-weight: bold;
font-size: 20px;
border: var(--border);
2024-01-17 04:28:22 -07:00
color: var(--title-text-color);
2024-01-05 19:37:21 -07:00
text-shadow: var(--text-shadow-custom);
2024-02-25 12:05:29 -07:00
background-image: var(--titleBars);
background-repeat: repeat-x;
margin-top: var(--content-spacing);
2024-02-25 12:05:29 -07:00
/* Remove text-indent if it's not needed */
/* Ensure padding does not prevent text from reaching the ends */
box-sizing: border-box; /* Ensures padding is included in the element's total width and height */
2024-01-05 19:37:21 -07:00
}
.navclass {
opacity: 1.0;
}
.wrapper {
opacity: 0.9;
}
main {
width: 74%;
}
nav {
/*position:sticky;*/
top:20px;
}
nav ul {
/*list-style-image:var(--arrows);*/
margin-left:0;
padding-left:30px;
}
nav ul li a {
color:var(--accent-1);
}
.content {
padding: 1px 20px;
2024-01-17 04:28:22 -07:00
opacity: 1;
background-color: var(--background);
font-size: 18px;
font-family: "Times New Roman", Times, serif;
2024-01-05 19:37:21 -07:00
}
footer {
background-color: rgb(70, 70, 70);
height:5%;
border: var(--border);
margin-bottom: var(--content-spacing);
2024-01-05 19:37:21 -07:00
margin-top:var(--content-spacing);
text-align: center;
}
.p footer {
margin: 5px;
2024-01-05 19:37:21 -07:00
}
2024-01-17 04:28:22 -07:00
2024-01-05 19:37:21 -07:00
/* button styles */
button {
background-image:var(--titleBars);
border:var(--border);
color:white;
margin-bottom:10px;
}
th {
color:var(--accent-2);
}
#linkNum {
color:var(--accent-2);
font-weight:bold;
}
h2 {
color:var(--accent-2);
}
#themeDiv {
2024-01-17 04:28:22 -07:00
position: sticky;
top: 550px;
2024-01-05 19:37:21 -07:00
}
@media only screen and (max-width: 640px) {
nav ul {
list-style-image:none;
list-style-type:none;
}
#flex {
flex-wrap:wrap;
}
main {
width:100%;
order:2;
}
2024-01-05 19:37:21 -07:00
aside {
display:block;
2024-01-17 04:28:22 -07:00
width:50%;
2024-01-05 19:37:21 -07:00
order:1;
margin-left:0;
}
nav ul {
display:flex;
flex-wrap:wrap;
}
nav ul li {
padding-right:10px;
}
nav ul > ul {
display:none;
}
2024-01-17 04:28:22 -07:00
}
@media only screen and (max-height: 640px) {
nav ul > ul {
display:none;
2024-01-05 19:37:21 -07:00
}
2024-01-17 04:28:22 -07:00
}