mirror of
https://github.com/neon443/neon443.github.io.git
synced 2026-03-11 07:09:12 +00:00
Bar changes: + each item takes up the same amnt of space + hover: item grows, others shrink + hover: text size increases + if a link, bg color + text color inverts + if not link, bg color is sligtly darker/ligher + if not link clicked, message shows + neon443 is font-size 30 html changes: + removed ids for barItems, unnesccesary + spaced out baritem code to make more readable css changes: + added notlink toast js changes: + added not link toast
193 lines
3.7 KiB
CSS
193 lines
3.7 KiB
CSS
/*regular text (body, p, b, h*) styles*/
|
|
* {
|
|
margin: 0px;
|
|
font-family: system-ui;
|
|
transition: 0.2s;
|
|
}
|
|
b {
|
|
color: #ff6200
|
|
}
|
|
a {
|
|
color: #007AFF
|
|
}
|
|
body {
|
|
background-color: #ddd;
|
|
color: #222;
|
|
}
|
|
p {
|
|
font-size: 20px;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
h1 {
|
|
font-size: 40px;
|
|
font-weight: 750;
|
|
padding-top: 0px;
|
|
padding-bottom: 0px;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
h2 {
|
|
font-size: 30px;
|
|
font-weight: 400;
|
|
padding-top: 0px;
|
|
padding-bottom: 0px;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
h3 {
|
|
font-size: 25px;
|
|
font-weight: 400;
|
|
padding-top: 0px;
|
|
padding-bottom: 0px;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
/* regular text (body, p, b, h*) styles*/
|
|
|
|
.contentPush{
|
|
height: 65px;
|
|
}
|
|
.notLink {
|
|
position: fixed;
|
|
top: 47.5px;
|
|
width: 100%;
|
|
border-radius: 0% 0% 15% 15%;
|
|
text-align: center;
|
|
font-size: 0px;
|
|
}
|
|
/* Bar styling*/
|
|
.bar {
|
|
width: 100%;
|
|
position: fixed;
|
|
display: flex;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background-color: rgba(255, 255, 255, 0.25);
|
|
|
|
-webkit-backdrop-filter: blur(2.5px);
|
|
-moz-backdrop-filter: blur(2.5px);
|
|
backdrop-filter: blur(2.5px);
|
|
|
|
-webkit-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.25);
|
|
-moz-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.25);
|
|
box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.25);
|
|
}
|
|
.barItem {
|
|
float: left;
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
.barItem * {
|
|
display: block;
|
|
color: #222;
|
|
text-decoration: none;
|
|
font-size: 20px;
|
|
padding: 9.20px 12px;
|
|
}
|
|
.barItem h1 {
|
|
font-size: 30px;
|
|
padding-top: 2.5px;
|
|
padding-bottom: 2.5px;
|
|
}
|
|
.barItem:hover {
|
|
flex: 1.5;
|
|
background-color: #eee;
|
|
}
|
|
.barItem *:hover {
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
padding-top: 2.5px;
|
|
padding-bottom: 2.5px;
|
|
}
|
|
.barItem a:hover {
|
|
background-color: #111;
|
|
color: #eee;
|
|
|
|
animation-name: NAME;
|
|
animation-delay: 0.2s;
|
|
animation-duration: 4s;
|
|
animation-iteration-count: infinite;
|
|
|
|
-webkit-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.25);
|
|
-moz-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.25);
|
|
box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.25);
|
|
}
|
|
html:has(.barItem a:hover) .notLink {
|
|
font-size: 16px;
|
|
}
|
|
/* not Link toast*/
|
|
#notLinkToast {
|
|
visibility: hidden;
|
|
min-width: 250px;
|
|
margin-left: -125px;
|
|
background-color: #333;
|
|
color: #fff;
|
|
text-align: center;
|
|
border-radius: 2px;
|
|
padding: 16px;
|
|
position: fixed;
|
|
z-index: 1;
|
|
left: 50%;
|
|
top: 30px;
|
|
font-size: 17px;
|
|
}
|
|
|
|
#notLinkToast.show {
|
|
visibility: visible;
|
|
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
|
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
|
}
|
|
@-webkit-keyframes fadein {
|
|
from {top: 0; opacity: 0;}
|
|
to {top: 30px; opacity: 1;}
|
|
}
|
|
|
|
@keyframes fadein {
|
|
from {top: 0; opacity: 0;}
|
|
to {top: 30px; opacity: 1;}
|
|
}
|
|
|
|
@-webkit-keyframes fadeout {
|
|
from {top: 30px; opacity: 1;}
|
|
to {top: 0; opacity: 0;}
|
|
}
|
|
|
|
@keyframes fadeout {
|
|
from {top: 30px; opacity: 1;}
|
|
to {top: 0; opacity: 0;}
|
|
}
|
|
/* not Link toast */
|
|
/* Bar styling */
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background-color: #222;
|
|
color: #ddd;
|
|
}
|
|
.bar {
|
|
background-color: rgba(0, 0, 0, 0.25);
|
|
-webkit-box-shadow: 0px 0px 5px 5px rgba(255, 255, 255, 0.25);
|
|
-moz-box-shadow: 0px 0px 5px 5px rgba(255, 255, 255, 0.25);
|
|
box-shadow: 0px 0px 5px 5px rgba(255, 255, 255, 0.25);
|
|
}
|
|
.barItem * {
|
|
color: #ddd;
|
|
}
|
|
.barItem:hover {
|
|
background-color: #555;
|
|
}
|
|
.barItem a:hover {
|
|
background-color: #eee;
|
|
color: #111;
|
|
|
|
-webkit-box-shadow: 0px 0px 5px 5px rgba(255, 255, 255, 0.25);
|
|
-moz-box-shadow: 0px 0px 5px 5px rgba(255, 255, 255, 0.25);
|
|
box-shadow: 0px 0px 5px 5px rgba(255, 255, 255, 0.25);
|
|
}
|
|
}
|
|
@media screen and (max-width: 600px) {
|
|
img {
|
|
width: 100%;
|
|
}
|
|
} |