interstellar_ai/app/styles/models.css

186 lines
4.4 KiB
CSS
Raw Normal View History

2024-09-18 11:17:34 +02:00
.model-background {
2024-09-23 11:55:58 +02:00
grid-column: 1 / 2;
grid-row: 2 / 5;
2024-09-25 12:53:54 +02:00
overflow-y: scroll;
2024-09-23 11:55:58 +02:00
background-color: var(--models-background-color); /* Ensure this variable is defined */
2024-09-18 11:17:34 +02:00
border-radius: 2em;
padding: 1em;
2024-09-18 16:26:57 +02:00
margin-left: 1em;
height: 40vh;
2024-09-18 11:17:34 +02:00
box-sizing: border-box;
}
.models {
display: flex;
2024-09-25 12:53:54 +02:00
flex-direction: column;
height: 100%;
2024-09-18 11:17:34 +02:00
}
.models .titel {
padding-bottom: 1em;
display: flex;
justify-content: center;
align-items: center;
2024-09-18 16:26:57 +02:00
font-size: 0.7em;
2024-09-18 11:17:34 +02:00
}
2024-09-25 12:53:54 +02:00
.model-dropdown {
display: flex;
justify-content: center;
margin-bottom: 1em; /* Space between dropdown and models */
}
.model-dropdown label {
margin-right: 0.5em; /* Space between label and dropdown */
}
2024-09-18 11:17:34 +02:00
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5vh;
2024-09-25 12:53:54 +02:00
width: 100%; /* Ensure grid takes full width */
2024-09-18 11:17:34 +02:00
}
.model-box {
display: flex;
align-items: center;
justify-content: center;
2024-09-23 11:55:58 +02:00
color: var(--text-color); /* Use variable for text color */
2024-09-18 11:17:34 +02:00
border-radius: 5%;
overflow: hidden;
position: relative;
height: 18vh;
width: 18vh;
2024-09-25 12:53:54 +02:00
margin: auto; /* Center each model box in the grid cell */
2024-09-18 11:17:34 +02:00
}
.overlay {
z-index: 900;
position: absolute;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
2024-09-25 13:33:46 +02:00
color: var(--overlay-text-color); /* Use variable for overlay text color */
2024-09-18 11:17:34 +02:00
display: flex;
justify-content: center;
align-items: center;
2024-09-25 13:33:46 +02:00
font-size: large;
2024-09-18 11:17:34 +02:00
transition: opacity 0.5s ease;
pointer-events: none;
opacity: 0;
}
.overlay img {
align-self: flex-end;
justify-self: end;
height: 3vh;
width: 3vh;
position: absolute;
right: 15px;
bottom: 15px;
}
.model-box:hover .overlay {
opacity: 1;
}
2024-09-25 12:53:54 +02:00
/* Model background styles */
2024-09-18 11:17:34 +02:00
.code-model {
background-image: url(/img/code.jpg);
background-repeat: no-repeat;
background-size: cover;
}
.math-model {
background-image: url(/img/math.jpg);
2024-09-25 12:53:54 +02:00
background-color: var(--background-color);
2024-09-18 11:17:34 +02:00
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
.language-model {
background-image: url(/img/language.jpg);
2024-09-25 12:53:54 +02:00
background-color: #72cce4;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.character-model {
background-image: url(/img/character.jpg);
background-color: #72cce4;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.financial-model {
background-image: url(/img/financial.jpg);
background-color: #72cce4;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.weather-model {
background-image: url(/img/weather.jpg);
background-color: #72cce4;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.time-planner-model {
background-image: url(/img/time.jpg);
background-color: #72cce4;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.image-model {
background-image: url(/img/image.jpg);
background-color: #72cce4;
2024-09-18 11:17:34 +02:00
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.default-model {
background-image: url(/img/default.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
2024-09-25 12:53:54 +02:00
.model-dropdown {
display: flex;
flex-direction: column; /* Stack label and dropdown */
align-items: center; /* Center the content */
margin-bottom: 1em; /* Space between dropdown and models */
}
.model-dropdown label {
margin-bottom: 0.5em; /* Space between label and dropdown */
font-size: large; /* Increase font size for visibility */
color: var(--text-color); /* Use variable for text color */
}
#model-select {
padding: 0.5em; /* Padding for better touch targets */
border-radius: 5px; /* Rounded corners */
border: 1px solid var(--input-border-color); /* Border color */
background-color: var(--input-background-color); /* Background color */
color: var(--text-color); /* Text color */
font-size: medium; /* Font size for dropdown */
cursor: pointer; /* Cursor change on hover */
2024-09-25 13:33:46 +02:00
transition: all 0.3s ease-in-out, border 0.3s ease; /* Smooth transition */
2024-09-25 12:53:54 +02:00
}
2024-09-25 13:33:46 +02:00
#model-select option:hover{
background-color: gray;
2024-09-25 12:53:54 +02:00
}
2024-09-25 13:33:46 +02:00