Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10/27/24 added responsiveness #88

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 22 additions & 11 deletions application/static/css/about.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
.about__blue-header {
padding: 70px 45px 25px 45px;
padding: 40px 25px 15px 25px;
background-color: #045BC0;
color: white;
box-shadow: inset 0 15px 12px -12px #c9daff;
display: grid;
grid-template-columns: 70% 30%;
}

.about__blue-header--text {
margin: 0px;
margin-bottom: 10px;
font-size: 17px;
font-weight: 300;
width: 60%;
width: 90%;
}

.about__blue-header--link {
Expand Down Expand Up @@ -57,7 +55,7 @@
text-align: center;
margin: 5%;
justify-content: end;
font-size: clamp(1.25rem,80%, 1.5rem);
font-size: clamp(1.25rem, 80%, 1.5rem);
}

.rounded-white-button {
Expand All @@ -73,16 +71,29 @@
text-align: center;
}

/* Desktop styles */
@media (min-width: 600px) {
.about__blue-header--text {
margin: 0px;
width: 60%;
}

.about__blue-header {
padding: 70px 45px 25px 45px;
display: grid;
grid-template-columns: 70% 30%;
}
}

@media (max-width:800px) {
.about__images{
.about__images {
flex-direction: column;
justify-items: center;
align-items: center;
}
.about__column{

.about__column {
width: 100%;

}

}
}
32 changes: 24 additions & 8 deletions application/static/css/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
padding: 40px;
}

.first-footer--container{
.first-footer--container {
width: 50%;
display: flex;
flex-direction: column;
Expand All @@ -18,9 +18,9 @@
max-width: 562px;
}

.first-footer--container h4{
.first-footer--container h4 {
margin: 0;
display:flex;
display: flex;
}

.first-footer--sub {
Expand All @@ -45,7 +45,7 @@
color: white
}

.second-footer--container{
.second-footer--container {
display: flex;
flex-direction: row;
}
Expand All @@ -55,7 +55,7 @@
margin-top: 0;
}

.second-footer--privacy{
.second-footer--privacy {
text-decoration: none;
color: white;
font-size: 16px;
Expand All @@ -65,14 +65,30 @@


@media (max-width:870px) {
.first-footer{
.first-footer {
flex-direction: column;
height: 100%;
gap: 1rem;

}

.first-footer--container{
.first-footer--container {
width: 100%;
}
}
}

@media (max-width: 450px) {
.second-footer {
padding: 0px 25px;
}

.first-footer--sub {
flex-direction: column;
}

.second-footer--container {
flex-direction: column;
align-items: center;
justify-content: center;
}
}
156 changes: 83 additions & 73 deletions application/static/css/input.css
Original file line number Diff line number Diff line change
@@ -1,73 +1,70 @@
.input__bottom {
grid-row: 3/span 1;
grid-column: 2/span 1;
align-items: end;
width: 100%;
grid-row: 3/span 1;
grid-column: 2/span 1;
align-items: end;
width: 100%;
}

.input__bottom--buttons{
align-items: end;
margin: 10px 0px;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
.input__bottom--buttons {
align-items: end;
margin: 10px 0px;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.input__bottom--text{
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 10px;
margin-top: 10px;
.input__bottom--text {
display: none;
}


.input__popUp-button {
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
background-color: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
background-color: white;
border: none;
padding: 0;
gap:5px;
gap: 5px;
}

.input__icon{
margin:0px;
display: inline-block;
.input__icon {
margin: 0px;
display: inline-block;
}

.input__filters{
display: flex;
justify-content: space-between;
width: 80%;
.input__filters {
display: flex;
justify-content: space-between;
width: 80%;
}

.input__submit{
width: 115px;
height: 39px;
background-color: #045BC0;
color: white;
font-size: 16px;
border: none;
border-radius: 999px;
cursor: pointer;
text-align: center;
line-height: 39px;
/* Center the text vertically */

}
.input__submit {
width: 115px;
height: 39px;
background-color: #045BC0;
color: white;
font-size: 16px;
border: none;
border-radius: 999px;
cursor: pointer;
text-align: center;
line-height: 39px;
/* Center the text vertically */

.input__text--button{
display: inline;
margin: 0;
color:#045BC0;
}

.input__text--button {
display: inline;
margin: 0;
color: #045BC0;
display: none;
}

.input__text--info{
margin: 0;
.input__text--info {
margin: 0;
width: 100%;
white-space: nowrap;
overflow: hidden;
Expand All @@ -76,9 +73,9 @@
}

.new-post {
margin: 3%;
display: grid;
grid-template-columns: 1fr minmax(550px, 700px) 1fr;
margin: 3%;
display: grid;
grid-template-columns: 1fr minmax(200px, 700px) 1fr;
place-items: center;
column-gap: 20px;
row-gap: 10px;
Expand All @@ -98,41 +95,41 @@

}

.new-post--desc{
resize:none;
.new-post--desc {
resize: none;
width: 100%;
min-height: 100px;
padding: 10px 9px;
}

.new-post--title::placeholder,
.new-post--desc::placeholder{
.new-post--desc::placeholder {
color: #C1C1C1;
font-size: 18px;

}

.new-post--desc::placeholder{
.new-post--desc::placeholder {
margin-top: 5px;
}

.new-post--pfp-container{
grid-column: 1;
align-self: start;
justify-self: end;
.new-post--pfp-container {
grid-column: 1;
align-self: start;
justify-self: end;
}

.new-post--pfp {

width: 40px;
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid #fff;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
border-radius: 50%;
border: 2px solid #fff;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.new-post-box--desc{
grid-row: 2/span 1;
.new-post-box--desc {
grid-row: 2/span 1;
}

.custom-select {
Expand All @@ -145,11 +142,24 @@
font-size: 1rem;
}

.input__error{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
.input__error {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
color: #ff0000;
}

}
/* Desktop styles */
@media (min-width: 600px) {
.input__text--button {
display: inline;
}

.input__bottom--text {
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 10px;
margin-top: 10px;
}
}
Loading