Skip to content

Commit

Permalink
responsive-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant0708 committed Jun 18, 2024
1 parent 60d30b3 commit 5cb98f7
Showing 1 changed file with 43 additions and 23 deletions.
66 changes: 43 additions & 23 deletions src/components/page4/Pyq.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ html, body {
.file-item span{
background:#4CAF50;
padding: 12px 20px;
width: 300px;
color: white;
font-size: 20px;
border-radius: 8px;
Expand Down Expand Up @@ -152,7 +153,20 @@ html, body {
flex-direction: column;
align-items: center;
}

.file-item span{
font-size: 14px;
padding: 16px 12px ;
max-width: 150px;
min-width: 150px;
word-wrap: break-word;

}
.download-button{
font-size: 14px
}
.back-button{
font-size: 14px;
}
.semester-button {
width: 100%;
margin-bottom: 10px;
Expand All @@ -168,10 +182,13 @@ html, body {
}
}

@media (max-width: 600px) {.page-container {
@media (max-width: 600px) {
.page-container {
display: flex;
flex-direction: column;
min-height: 100vh;
padding: 0px;
margin: 0px;
background-color: #f8f9fa;
font-family: Arial, sans-serif;
}
Expand All @@ -185,25 +202,25 @@ html, body {
}

.head {
font-size: 2rem;
font-size: 1.5rem;
margin-bottom: 10px;
}

.year-heading {
font-size: 1.5rem;
margin-bottom: 20px;
margin-bottom: 10px;
}

.content-container {
width: 80%;
max-width: 800px;
width: 100%;

}

.pyq-box{
background: #ffffff;
margin: 0px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
margin-top: 10px;

}

.semester-selection {
Expand Down Expand Up @@ -235,14 +252,14 @@ html, body {
.subjects-container {
display: flex;
flex-direction: column;
gap: 20px;
gap: 10px;
margin-bottom: 20px;
}

.subject-box {
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px;
padding: 20px 10px;
}

.subject-title {
Expand All @@ -252,39 +269,42 @@ html, body {

.file-item {
display: flex;
justify-content: space-between;
justify-content: space-around;
align-items: center;
padding: 5px 0;
}

.download-button {
background-color: #28a745;

color: white;
border: none;
border-radius: 5px;
padding: 5px 10px;
font-size: 14px;
padding: 16px 12px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.file-item span{
font-size: 14px;
padding: 16px 12px ;
max-width: 100px;
min-width: 100px;
word-wrap: break-word;

.download-button:hover {
background-color: #218838;
}


.back-button {
background-color: #ffc107;
color: black;


border: none;
border-radius: 5px;
padding: 10px 20px;
padding: 16px 12px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease;
}

.back-button:hover {
background-color: #e0a800;
}


.subjects-container {
flex-direction: column;
Expand Down

0 comments on commit 5cb98f7

Please sign in to comment.