RetroDECK-Website/css/style.css

192 lines
3.7 KiB
CSS
Raw Normal View History

2024-04-18 13:19:40 +00:00
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
2024-09-23 18:50:08 +00:00
@font-face {
font-family: "Upheaval TT";
src: url("../assets/fonts/upheavtt.ttf");
}
@font-face {
font-family: "Exo";
src: url("../assets/fonts/exo.otf");
}
2024-09-23 21:05:30 +00:00
/* CSS Variables */
2024-09-23 18:50:08 +00:00
:root {
--rd-purple: #946beb;
--rd-blue: #1a9fff;
--rd-black: #222;
--gradient-1: linear-gradient(45deg, var(--rd-purple) 30%, var(--rd-blue));
--gradient-2: linear-gradient(45deg, var(--rd-blue) 30%, var(--rd-purple));
2024-09-23 21:05:30 +00:00
--pixel-font: "Upheaval TT", monospace;
--body-font: "Exo", serif;
--transition-speed: 0.1s;
2024-09-23 18:50:08 +00:00
}
html, body {
overflow-x: hidden;
}
2024-04-18 13:19:40 +00:00
body {
2024-09-23 18:50:08 +00:00
background: var(--rd-black);
/* overflow-x: hidden; */
2024-09-23 18:50:08 +00:00
}
2024-10-25 12:55:20 +00:00
p {
margin-bottom: 0.5rem;
}
2024-09-23 18:50:08 +00:00
/* Nav and Footer Styles */
nav, footer {
background: var(--rd-blue);
2024-09-23 21:05:30 +00:00
font-family: var(--pixel-font);
2024-09-23 18:50:08 +00:00
}
nav {
border-bottom: var(--rd-purple) solid 5px;
font-size: x-large;
}
nav i.bi {
font-size: small;
}
nav .nav-link:hover, nav .nav-link.show {
color: white;
2024-09-23 20:43:37 +00:00
}
nav .dropdown-menu.show {
2024-09-23 18:50:08 +00:00
background: var(--rd-purple);
border: white solid 1px;
font-size: large;
}
nav a.dropdown-item:hover {
2024-09-23 18:50:08 +00:00
background: var(--rd-blue);
color: white;
}
nav a.dropdown-item:hover svg {
fill: white;
2024-09-23 18:50:08 +00:00
}
2024-09-23 22:14:08 +00:00
footer {
border-top: var(--rd-purple) solid 5px;
}
#pixel-font-switch:checked {
background-color: #946beb;
border-color: white;
}
#pixel-font-switch {
border-color: #946beb;
}
2024-09-23 18:50:08 +00:00
/* Jumbotron Styles */
.jumbotron {
border: white 2px solid;
}
2024-09-23 20:43:37 +00:00
.jumbotron h1,h2 {
2024-09-23 21:05:30 +00:00
font-family: var(--pixel-font);
text-shadow: 2px 2px var(--rd-black);
2024-09-23 20:43:37 +00:00
color: white;
2024-09-23 18:50:08 +00:00
}
2024-10-16 15:43:00 +00:00
p {
2024-09-23 21:05:30 +00:00
font-family: var(--body-font);
2024-09-23 20:43:37 +00:00
font-size: larger;
2024-09-23 18:50:08 +00:00
}
.gradient-1 {
background: var(--gradient-1) !important;
}
.gradient-2 {
background: var(--gradient-2) !important;
}
/* Features Styles */
#features {
background: #000;
border-top: var(--rd-purple) 5px solid;
border-bottom: var(--rd-purple) 5px solid;
transition: 0.25s;
}
2024-09-24 23:16:37 +00:00
.feature-card {
background: var(--rd-blue);
border: white 2px solid;
2024-09-27 17:05:42 +00:00
text-align: left;
2024-10-16 15:43:00 +00:00
width: 100%;
}
.screenshot, .feature-card {
border-radius: 5px;
2024-09-24 23:16:37 +00:00
}
.feature-card h3 {
color: white;
font-family: var(--pixel-font);
text-shadow: 2px 2px var(--rd-black);
}
.feature-card p {
font-family: var(--body-font);
2024-09-23 22:14:08 +00:00
}
#extra-features img {
max-height: 50px;
}
2024-10-16 15:43:00 +00:00
/* Alternating Color Styles */
#features .row {
2024-10-25 12:55:20 +00:00
padding-top: 30px;
2024-09-27 17:05:42 +00:00
}
2024-10-16 15:43:00 +00:00
#features .row:nth-child(odd) .screenshot {
border: var(--rd-blue) 2px solid;
2024-09-27 17:05:42 +00:00
}
2024-10-16 15:43:00 +00:00
#features .row:nth-child(odd) .feature-card {
border: white 2px solid;
background: var(--rd-blue);
2024-09-27 17:05:42 +00:00
}
2024-10-16 15:43:00 +00:00
#features .row:nth-child(odd) h3 {
/* text-shadow: 2px 2px var(--rd-purple); */
2024-10-16 15:43:00 +00:00
padding-right: 20px;
}
#features .row:nth-child(even) .screenshot {
border: var(--rd-purple) 2px solid;
}
#features .row:nth-child(even) .feature-card {
border: white 2px solid;
background: var(--rd-purple);
}
2024-09-23 18:50:08 +00:00
/* Link Styles */
2024-10-17 14:58:40 +00:00
.jumbotron a, footer a, a.btn, .feature-card a, .feature-card a {
2024-09-23 18:50:08 +00:00
color: var(--rd-purple);
background: var(--rd-black);
text-decoration: none;
padding: 5px;
border: white 1px solid;
border-radius: 5px;
2024-09-23 21:05:30 +00:00
font-family: var(--pixel-font);
2024-04-23 16:16:44 +00:00
}
2024-10-17 14:58:40 +00:00
.jumbotron a:hover, footer a:hover, a.btn:hover, .feature-card a:hover {
2024-09-23 18:50:08 +00:00
color: white;
background: var(--rd-purple);
border-color: var(--rd-black);
transition: var(--transition-speed);
}
.jumbotron .btn:hover svg {
fill: white;
transition: var(--transition-speed);
2024-09-23 17:03:56 +00:00
}