feat(js): implement utility functions for hiding and showing elements, and add event listeners for better interactivity feat(js): create a new roulette game in TP6 with random number generation and qualifying number logic fix(css): update styles for consistency and responsiveness across different screen sizes
183 lines
3.3 KiB
CSS
183 lines
3.3 KiB
CSS
@font-face {
|
|
font-family: JetBrainsMono;
|
|
src: url(assets/font/JetBrainsMono-Regular.woff2) format(woff2);
|
|
}
|
|
|
|
* {
|
|
font-family: JetBrainsMono;
|
|
--color-text: #f8f8f2;
|
|
--color-background: #282a36;
|
|
--color-current-line: #44475a;
|
|
--color-purple: #bd93f9;
|
|
}
|
|
|
|
body {
|
|
color: var(--color-text);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: var(--color-background);
|
|
flex-direction: column;
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
background-color: var(--color-current-line);
|
|
border-radius: 20px;
|
|
padding: 10px;
|
|
overflow: hidden;
|
|
& > .links {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 740px) {
|
|
header > .links {
|
|
flex-direction: row;
|
|
gap: 30px;
|
|
}
|
|
#display_header_links {
|
|
display: none;
|
|
}
|
|
}
|
|
@media screen and (max-width: 739px) {
|
|
header {
|
|
gap: 10px;
|
|
align-items: baseline;
|
|
& > .links {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
overlay: hidden;
|
|
transition: max-height 300ms ease-out;
|
|
max-height: 41px;
|
|
&.display_links {
|
|
max-height: 270px;
|
|
}
|
|
}
|
|
& > button {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
|
|
.header_button {
|
|
color: black;
|
|
padding: 10px 8px;
|
|
border-radius: 10px;
|
|
background-color: var(--color-purple);
|
|
text-decoration: none !important;
|
|
text-align: center;
|
|
}
|
|
|
|
.header_button:hover {
|
|
background-color: var(--color-purple);
|
|
}
|
|
|
|
#title {
|
|
padding: 1rem;
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 2rem;
|
|
justify-content: space-evenly;
|
|
background-color: var(--color-current-line);
|
|
border-radius: 20px;
|
|
padding: 4px 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
#main {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
#pokemon_team {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#grocery_list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
button {
|
|
color: black;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
background-color: var(--color-purple);
|
|
border: none;
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: var(--color-purple);
|
|
}
|
|
|
|
#content {
|
|
background-color: var(--color-current-line);
|
|
padding: 10px;
|
|
border-radius: 20px;
|
|
margin-left: 10rem;
|
|
margin-right: 10rem;
|
|
}
|
|
|
|
.project_box {
|
|
flex-direction: row;
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.project_box_thumbnail {
|
|
width: 20rem;
|
|
height: 20rem;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
input {
|
|
color: var(--color-text);
|
|
border-radius: 30px;
|
|
border: none;
|
|
padding: 10px;
|
|
background-color: var(--color-current-line);
|
|
margin: 10px;
|
|
}
|
|
|
|
select {
|
|
color: var(--color-text);
|
|
border-radius: 30px;
|
|
border: none;
|
|
padding: 10px;
|
|
background-color: var(--color-current-line);
|
|
margin: 10px;
|
|
}
|
|
|
|
#pokemon_frame {
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
|
|
.grocery_item {
|
|
margin: 15px;
|
|
}
|
|
|
|
.grocery_item_name {
|
|
padding: 10px;
|
|
background-color: var(--color-current-line);
|
|
border-color: var(--color-purple);
|
|
border-radius: 10px;
|
|
margin: 10px;
|
|
}
|