Skip to content

Commit

Permalink
Responsive sizing for org logo in org_view
Browse files Browse the repository at this point in the history
  • Loading branch information
abkruse committed Dec 26, 2016
1 parent 05b829b commit 2e2de55
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 20 deletions.
72 changes: 54 additions & 18 deletions members/static/css/members.css
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,11 @@ a.name-a {
/*margin-left: auto;*/
}

#star-img {
.org-card #star-img {
margin-left: 10%;
}

a#star-img.org-photo {
margin-left: 10%;
}

Expand Down Expand Up @@ -887,6 +891,8 @@ h5.org-members {

a.photo.star-img {
padding: 0;
margin-top: 0;
margin-bottom: 10%;
}

.user-card a.photo .user-img {
Expand Down Expand Up @@ -1212,7 +1218,7 @@ img.org-photo#mem-photo {
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

.right-profile, .left-profile, .org-left-profile {
.right-profile, .left-profile, .org-left-profile, .org-right-profile {
margin-top: 2%;
}

Expand Down Expand Up @@ -1834,11 +1840,21 @@ footer.sticky-footer {
margin-left: -30px;
}

.prof-img, .edit-img, .locked-img, .org-img, .org-photo {
.prof-img, .edit-img, .locked-img {
max-width: 250px;
max-height: 250px;
margin-left: 3%;
}

.org-img, .org-photo {
max-width: 250px;
max-height: 250px;
/*margin-left: 2%;*/
}

a#star-img.org-photo {
margin-left: 10%
}
}

@media only screen and (max-width: 1100px) {
Expand Down Expand Up @@ -1906,7 +1922,11 @@ footer.sticky-footer {


@media only screen and (max-width: 990px) {
#star-img {
.org-photo, .no-photo {
font-size: 150px;
}

a#star-img.org-photo {
margin-left: 0;
}

Expand All @@ -1917,8 +1937,8 @@ footer.sticky-footer {
}

.org-img, .org-photo {
width: 200px;
height: 200px;
width: 150px;
margin-left: 8%;
}

.event-card {
Expand Down Expand Up @@ -1970,31 +1990,34 @@ footer.sticky-footer {
}

@media only screen and (max-width: 810px) {
.prof-img, .edit-img, .locked-img, .org-img, .org-photo{
.prof-img, .edit-img, .locked-img {
min-width: 125px;
min-height: 125px;
margin-left: 2%;
}
}

@media only screen and (max-width: 810px) {
.prof-img, .edit-img, .locked-img, .org-img, .org-photo{
margin-left: 1%;
}
.org-img, .org-photo{
min-width: 125px;
margin-left: 5%;
}

@media only screen and (max-width: 750px) {
.org-photo, .no-photo {
font-size: 120px;
margin-left: 5%;
}

#star-img {
.org-img {
margin-left: 5%;
}

.org-photo #star-img {
margin-left: 10%;
}
}

@media only screen and (max-width: 700px) {
#star-img {
.org-photo #star-img {
margin-left: 0;
}

Expand All @@ -2017,11 +2040,16 @@ footer.sticky-footer {
position: absolute;
}

.prof-img, .edit-img, .locked-img, .org-img, .org-photo {
.prof-img, .edit-img, .locked-img{
max-width: 150px;
max-height: 150px;
margin-left: 3%;
}

.org-img, .org-photo {
max-width: 150px;
/*margin-left: 3%;*/
}
}

@media only screen and (max-width: 600px) {
Expand Down Expand Up @@ -2059,13 +2087,21 @@ footer.sticky-footer {
font-size: 160px;
}

#star-img {
a#star-img.org-photo {
margin-left: 10%;
}

.org-img, .org-photo {
min-width: 250px;
min-height: 250px;
min-width: 230px;
margin-left: 2%;
}

.org-left-profile {
min-width: 270px;
}

.org-right-profile {
min-width: 515px;
}

.prof-tabs {
Expand Down
4 changes: 2 additions & 2 deletions members/templates/members/org_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{% endblock %}

{% block content %}
<div class='org-left-profile col s6 m3 l3 offset-s3'>
<div class='org-left-profile col s6 m4 l3 offset-s3'>
<div class='photo-div'>
<div class='profile-img-box' id='change-opacity'>
<div class='editable-photo org-img'>
Expand Down Expand Up @@ -61,7 +61,7 @@ <h4>Edit Organization Picture</h4>
</div>
</div>

<div class='right-profile col s12 m9 l9'>
<div class='org-right-profile col s12 m8 l9'>
<div class='org-info'>
<h3 class='oswald col s10' style='margin-bottom:1%;'>{{ organization.name }}</h3>
<div>
Expand Down

0 comments on commit 2e2de55

Please sign in to comment.