Files
CNN_Website/website/src/Reviews.css
T
2026-05-15 06:18:12 +02:00

211 lines
4.0 KiB
CSS

.review-description {
margin: 70px;
font-size: 1.1rem;
width: min(800px, 70vw);
height: fit-content;
}
.input-box {
display: grid;
gap: 10px;
column-gap: 10vw;
width: 98vw;
max-width: calc(3 * 200px + 10vw * 2);
min-height: 100vh;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-auto-rows: fit-content(300px);
justify-items: center;
align-items: center;
align-self: center;
justify-self: center;
}
.input-component-box {
display: grid;
width: fit-content;
min-width: 200px;
height: fit-content;
grid-template-rows: 30px minmax(150px, 1fr) fit-content(30px);
justify-items: center;
align-items: center;
gap: 20px;
}
.input-component-box.text {
grid-column: 1 / -1;
}
.description {
grid-column: 1;
grid-row: 1;
align-self: flex-end;
margin: 0;
}
.input-component {
grid-column: 1;
grid-row: 2;
align-self: flex-start;
}
.description.second {
grid-column: 1;
grid-row: 3;
align-self: flex-start;
}
.review-select-dropdown {
width: fit-content;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: fit-content;
gap: 0px;
user-select: none;
--radius: 16px;
}
.review-select-dropdown.rating {
width: calc(60px*3);
}
.review-select-button {
width: 200px;
height: 50px;
cursor: pointer;
background: var(--surface);
border: 1px solid var(--surface);
outline: none;
color: black;
font-weight: bold;
border-radius: var(--radius);
}
.rating .review-select-button {
width: 60px;
}
.review-select-button.active {
border-top-right-radius: var(--radius);
border-top-left-radius: var(--radius);
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom: 2px solid black;
}
.review-select-button:hover {
border: 2px solid white;
color: white;
font-weight: bold;
}
.review-select-menu {
width: 200px;
grid-auto-rows: 40px;
}
.website .review-select-menu {
grid-template-rows: repeat(2, 40px);
grid-template-areas:
"box0" "box1";
}
.rating .review-select-menu {
width: fit-content;
grid-template-columns: repeat(3, 60px);
grid-template-areas:
"box0 box1 box2"
"box0 box3 box2";
}
.review-select-item {
cursor: pointer;
border: 2px solid var(--surface);
background: var(--surface);
text-align: center;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0;
}
.review-select-item:hover {
cursor: pointer;
border: 2px solid white;
font-weight: bold;
}
.rating .review-select-box-0 {
border-bottom-left-radius: var(--radius);
border-top-left-radius: var(--radius);
}
.rating .review-select-box-2 {
border-bottom-right-radius: var(--radius);
border-top-right-radius: var(--radius);
}
.website .review-select-box-1 {
border-bottom-left-radius: var(--radius);
border-bottom-right-radius: var(--radius);
}
.review-text-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: fit-content;
height: fit-content;
}
.review-text {
resize: none;
overflow:auto;
width: min(600px, 98vw);
height: 400px;
border-radius: 8px;
border: 2px solid var(--bg);
background: var(--surface);
color: black;
padding: 10px;
font-family: "Space Mono", monospace;
font-size: 15px;
}
/* width of scrollbar */
.review-text::-webkit-scrollbar {
width: 10px;
}
/* track (background) */
.review-text::-webkit-scrollbar-track {
background: #aeaeae;
border-radius: 10px;
}
/* handle */
.review-text::-webkit-scrollbar-thumb {
background: #535353;
border-radius: 10px;
cursor: pointer;
}
/* hover effect */
.review-text::-webkit-scrollbar-thumb:hover {
background: #2e2e2e;
}
.review-text:focus {
border: 2px solid white;
outline: none;
}
.review-text::placeholder {
color: white;
}