workshop/frontend/workshop.css
2024-12-29 01:39:52 +03:00

487 lines
8.7 KiB
CSS

body {
background-color: #1B2A3C;
color: white;
margin: 0;
padding: 0;
display: block;
}
.top-bar {
background-color: #171D25;
width: 100%;
height: 105px;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
z-index: 1000;
}
.main-container {
display: flex;
justify-content: center;
align-items: flex-start;
margin-top: 105px;
width: 100%;
position: relative;
flex-wrap: wrap;
}
.cards-container {
display: grid;
grid-template-columns: repeat(3, 200px);
grid-gap: 105px 20px;
justify-content: center;
margin-bottom: 40px;
}
.right-rectangle {
width: 295px;
height: 370px;
background: linear-gradient(to left, #0E141C, #111A23, #15202C);
margin-left: 20px;
margin-top: 40px;
border-radius: 0;
position: relative;
}
.show-products-title {
font-family: Arial, sans-serif;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 5px;
margin-left: 5px;
}
.game-modes-title {
font-family: Arial, sans-serif;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 0px;
margin-left: 5px;
}
.game-modes {
display: flex;
flex-direction: column;
gap: 5px;
position: absolute;
bottom: 10px;
left: 10px;
}
.game-mode {
font-family: Arial, sans-serif;
font-size: 13px;
color: rgba(255, 255, 255, 0.7);
display: flex;
align-items: center;
position: relative;
}
.game-mode input[type="checkbox"] {
margin-right: 10px;
width: 16px;
height: 16px;
cursor: pointer;
accent-color: blue;
}
.game-mode:hover {
background-color: #1B2A3C;
}
.game-mode:hover::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 295px;
height: 10px;
background-color: #1B2A3C;
z-index: -1;
}
.card {
position: relative;
width: 200px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.stars {
width: 81px;
height: 14px;
margin: 5px 0;
}
.card-title {
font-size: 16px;
color: white;
margin-top: 5px;
text-align: left;
}
.card img:not(.stars) {
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.description-popup {
display: none;
position: absolute;
width: 300px;
background-color: #61ABD7;
color: white;
font-size: 14px;
padding: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
z-index: 10;
left: 220px;
top: 0;
white-space: normal;
word-wrap: break-word;
}
.description-popup::after {
content: "";
position: absolute;
top: 10px;
left: -20px;
border-width: 10px;
border-style: solid;
border-color: transparent #61ABD7 transparent transparent;
}
.description-popup strong {
font-size: 16px;
margin-bottom: 10px;
display: block;
}
.description-popup p {
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
margin: 0;
}
.card:hover .description-popup {
display: block;
}
.pagination {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
position: relative;
bottom: 25px;
left: 0px;
width: 100%;
}
.pagebtn {
width: 40px;
height: 16px;
background-color: #2B475E;
color: #63AFCD;
font-family: Arial, sans-serif;
font-size: 16px;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
margin: 0 10px;
border-radius: 2px;
transition: background-color 0.3s, color 0.3s;
border: none;
}
.pagebtn:hover {
background-color: #66C0F4;
color: white;
}
.pagelink {
background-color: transparent;
color: white;
font-family: Arial, sans-serif;
font-size: 16px;
text-decoration: none;
margin: 0 5px;
}
.pagination_space {
margin: 0 5px;
}
.pagebtn:hover, .pagelink:hover {
background-color: #2A5B70;
}
.sort-button-container {
display: flex;
justify-content: flex-start;
margin-top: 15px;
margin-left: 15px;
}
.sort-button {
width: 148px;
height: 30px;
background: linear-gradient(to top, #384A65, #57749E);
color: white;
font-family: Arial, sans-serif;
font-size: 13px;
font-weight: normal;
border: none;
border-radius: 3px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
margin-top: 0px;
}
.sort-button:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.sort-button:active {
background: linear-gradient(to top, #2C3E55, #3D5B80);
}
.modal {
display: none;
position: fixed;
z-index: 1001;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 530px;
height: 315px;
background: linear-gradient(to left, #333840, #333840);
padding: 20px;
}
.modal-content {
color: white;
font-family: Arial, sans-serif;
position: relative;
}
.close-btn {
position: absolute;
top: -40px;
right: -15px;
color: white;
font-size: 30px;
cursor: pointer;
opacity: 0.7;
}
.close-btn:hover {
color: #f1f1f1;
opacity: 1;
}
.modal-content h2 {
margin-left: 25px;
}
.modal-rectangle {
position: absolute;
top: 105px;
left: 25px;
width: 480px;
height: 42px;
background-color: #292B2F;
border-radius: 3px;
z-index: 1002;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
}
.modal-rectangle .text-left {
font-family: Arial, sans-serif;
font-weight: bold;
font-size: 15px;
}
.modal-rectangle .text-center {
left: 240px;
font-family: Arial, sans-serif;
font-weight: bold;
font-size: 15px;
}
.date-input {
background-color: #33363E;
color: white;
border: none;
font-size: 14px;
height: 30px;
width: 205px;
border-radius: 3px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
z-index: 1003;
}
.date-input::-webkit-calendar-picker-indicator {
display: none;
}
.date-input:focus {
outline: none;
background-color: #4c4f58;
}
.cancel-button {
position: absolute;
bottom: -270px;
right: 25px;
width: 80px;
height: 30px;
background-color: #32363F;
color: white;
font-size: 14px;
font-family: Arial, sans-serif;
border: none;
border-radius: 3px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.cancel-button:hover {
background-color: #4A4F5A;
box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}
.ok-button {
position: absolute;
bottom: -270px;
right: 130px;
width: 50px;
height: 30px;
background-color: #6EA720;
color: white;
font-size: 14px;
font-family: Arial, sans-serif;
border: none;
border-radius: 3px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.ok-button:hover {
background-color: #A6FC30;
box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}
.search-container {
margin-top: 420px;
display: flex;
justify-content: center;
}
.search-input-container {
position: relative;
}
.search-input {
width: 250px;
height: 40px;
background-color: #2C3E55;
color: white;
font-size: 14px;
border: none;
border-radius: 3px;
padding-left: 10px;
outline: none;
padding-right: 40px;
}
.search-input::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.search-input:focus {
background-color: #3E4A61;
}
.search-button {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
padding: 0;
}
.search-button img {
width: 25px;
height: 25px;
object-fit: contain;
}
.filter-stars {
margin-top: 420px;
margin-right: 260px;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.filter-title {
margin-bottom: 10px;
}
.filter-stars {
position: absolute;
margin-top: 420px;
margin-right: -660px;
display: flex;
flex-direction: column;
align-items: center;
background-color: #2C3E55;
width: 300px;
height: 80px;
border-radius: 3px;
padding: 10px;
box-sizing: border-box;
}
.filter-title {
margin-bottom: 10px;
color: white;
font-size: 16px;
}
.stars-filter {
display: flex;
justify-content: space-between;
width: 100%;
}
.stars-filter label {
font-family: Arial, sans-serif;
font-size: 14px;
color: white;
display: flex;
flex-direction: column-reverse;
align-items: center;
}
.stars-filter input[type="checkbox"] {
margin-bottom: 5px;
width: 16px;
height: 16px;
cursor: pointer;
accent-color: #63AFCD;
}