workshop/frontend/main.css

247 lines
4.3 KiB
CSS

body {
background-color: #1B2838;
color: white;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
height: 100vh;
overflow: auto;
}
.main-container {
display: flex;
justify-content: center;
align-items: flex-start;
width: 100%;
padding-top: 50px;
box-sizing: border-box;
}
.image-wrapper {
background-color: #233B53;
width: 950px;
min-height: 555px;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
position: relative;
border-radius: 5px;
overflow: hidden;
flex-wrap: wrap;
height: auto;
}
.image-container {
position: relative;
width: 635px;
height: 360px;
padding-top: 15px;
padding-left: 15px;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: contain;
}
.details-container {
width: 635px;
height: auto;
background-color: #19222C;
border: 3px solid #35465E;
box-sizing: border-box;
margin-top: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 10px 15px 10px 15px;
margin-left: 15px;
position: relative;
}
.card-title {
font-size: 20px;
font-family: Arial, sans-serif;
font-weight: bold;
margin: 0;
}
.description {
font-size: 16px;
font-family: Arial, sans-serif;
color: #A1B0C7;
margin-top: 10px;
line-height: 1.5;
}
.download-btn {
width: 138px;
height: 35px;
background: linear-gradient(to bottom, #A4D007, #536904);
color: white;
border: none;
border-radius: 2px;
font-family: Arial, sans-serif;
font-size: 19px;
cursor: pointer;
position: absolute;
top: 10px;
right: 15px;
}
.download-btn:hover {
background: linear-gradient(to bottom, #8DC50E, #475F2D);
}
.game-mode {
position: absolute;
top: 15px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.dynamic-data {
font-size: 14px;
font-weight: normal;
color: white;
}
.tags {
position: absolute;
top: 100px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.file-size {
position: absolute;
top: 150px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.file-size .dynamic-data {
font-size: 13px;
font-weight: normal;
color: #A1B0C7;
margin-left: 16px;
}
.added-time {
position: absolute;
top: 170px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.added-time .dynamic-data {
font-size: 13px;
font-weight: normal;
color: #A1B0C7;
margin-left: 45px;
}
.youtube-container {
margin-top: 15px;
width: 265px;
height: 150px;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 210px;
left: 660px;
}
@media screen and (max-width: 768px) {
body {
flex-direction: column;
align-items: center;
padding: 0 10px;
}
.main-container {
padding-top: 20px;
}
.image-wrapper {
width: 100%;
flex-direction: column;
align-items: center;
padding: 10px;
}
.image-container {
width: 100%;
height: auto;
padding: 0;
}
.image-container img {
width: 100%;
height: auto;
}
.details-container {
width: 100%;
margin-top: 15px;
margin-left: 0;
padding: 15px;
}
.download-btn {
position: static;
margin-top: 15px;
width: 100%;
height: 40px;
font-size: 18px;
}
.game-mode,
.tags,
.file-size,
.added-time {
position: static;
margin-top: 10px;
width: 100%;
text-align: left;
}
.dynamic-data {
margin-left: 0;
font-size: 14px;
}
.youtube-container {
position: static;
margin-top: 15px;
width: 100%;
height: auto;
}
.youtube-container iframe {
width: 100%;
height: auto;
}
}