1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 13:44:12 +02:00

[ticket/12535] Make <a> adjust to the image width

PHPBB3-12535
This commit is contained in:
PayBas
2014-06-25 17:16:52 +02:00
parent ba2c40cde9
commit 5fedcf0fa8
7 changed files with 84 additions and 12 deletions

View File

@@ -586,6 +586,10 @@ li.breadcrumbs span:first-child > a {
margin-right: 8px;
}
.rtl .postprofile .avatar {
float: right;
}
.rtl .online {
background-position: 0 0;
}
@@ -1078,8 +1082,11 @@ li.breadcrumbs span:first-child > a {
border-width: 0 0 1px 0;
}
.rtl .postprofile dt, .rtl .postprofile dd.profile-rank, .rtl .search .postprofile dd {
margin: 0;
}
.rtl .postprofile .avatar {
float: right;
margin-left: 5px;
margin-right: 0;
}

View File

@@ -710,15 +710,28 @@ fieldset.polls dd div {
margin-bottom: 10px;
}
/* Post-profile avatars */
.postprofile .has-avatar .avatar-container {
margin-bottom: 3px;
overflow: hidden;
}
.postprofile .avatar-container:after {
clear: both;
content: '';
display: block;
}
.postprofile .avatar {
display: block;
border: none;
margin-bottom: 3px;
float: left;
max-width: 100%;
}
.postprofile .avatar img {
max-width: 90%;
display: block;
height: auto !important;
max-width: 100%;
}
dd.profile-warnings {

View File

@@ -424,16 +424,22 @@ fieldset.polls dd.resultbar, fieldset.polls dd.poll_option_percent {
margin: 0;
}
.postprofile .has-avatar .avatar-container {
margin: 0;
overflow: inherit;
}
.postprofile .avatar-container:after {
clear: none;
}
.postprofile .avatar {
display: block;
float: left;
margin-right: 5px;
}
.postprofile .avatar img {
width: auto !important;
height: auto !important;
display: block;
max-height: 32px;
}

View File

@@ -71,3 +71,8 @@ dd.option {
.header-avatar img {
height: 20px;
}
/* IE8 often can't handle max-width in %, so we use px instead */
.postprofile .avatar img {
max-width: 150px;
}