Brak Belki - DVZ Shoutbox

Założony przez  DziubixGames.

Witam,
Mam problem z Shoutboxem przy próbie dodanie statystyk zepsuł mi się shoutbox tak jak widzicie na Obrazku.

   

<div id="shoutbox" class="front{$classes}">

<div class="thead">
<strong>{$lang->dvz_sb_shoutbox}</strong>
<p class="right"><a href="{$mybb->settings['bburl']}/index.php?action=shoutbox_archive">&laquo; {$lang->dvz_sb_archivelink}</a></p>
</div>

<div class="body">

{$panel}

<div class="window" style="height:{$mybb->settings['dvz_sb_height']}px">
<div class="data">
{$html}
</div>
</div>

</div>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/dvz_shoutbox.js"></script>
{$javascript}

</div>

a to kod z dvz_shoutbox
Najprościej:

#shoutbox .thead {
display: flex;
justify-content: space-between
}
#shoutbox .thead p {
margin: 0;
}
Nadajesz głównej belce w shoutboxie display flex, ustawianie się pomiędzy i zerujesz domyślny margines tagu p.
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.
Nie mam czegoś takiego jak ty mi napisałeś

/** ShoutBox Start **/
.window::-webkit-scrollbar {
    width: 10px;

}
 
.window::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
.window::-webkit-scrollbar-thumb {
  background-color:  #111;
  outline: 1px solid slategrey;
}

#shoutbox {
 margin-bottom: 10px; 
}

#shoutbox .archive-button {
    float: right;
margin-top: 35px;
    margin-right: 50px;
    height: 36px;
    width: 36px;
    background: #000;
    text-align: center;
    border-radius: 50%;
}

#shoutbox .head .right {
 float: right; margin: 0; font-size: 10px; line-height: 16px;
}

#shoutbox .head .right a,#shoutbox .head .right a:hover,#shoutbox .head .right a:visited {
color:#fff;
}

#shoutbox.collapsed .head {
 opacity: 0.6;
}

#shoutbox.collapsed .body {
 display: none;
}

#shoutbox input.text {
margin: 0; 
padding: 5px; 
width: 100%; 
box-sizing: border-box;
border: none; 
box-shadow: inset 0 2px 4px rgba(0,0,0,0.08); 
font-size: 12px; 
color: #eee;
    background: #111;
}

#shoutbox .minposts, #shoutbox .blocked {
 padding: 6px; font-size: 11px;
}

#shoutbox .panel.minposts {
 background: #FFFED8; color: #727250;
}

#shoutbox .panel.blocked {
 background: #FCEFEF; color: #543A3A;
}

#shoutbox .panel p {
 margin: 0;
}

#shoutbox .window {
overflow-y: scroll;
}

#shoutbox .data {
 display: table; width: 100%; border-top: solid 2px rgba(0,0,0,0.1); font-family: 'Lato', Arial, sans-serif; font-size: 12px;
}

#shoutbox.front .data {
 border-top: none;
}

#shoutbox .entry {
 display: table-row !important; width: 100%; transition: background-color 0.2s;
}

#shoutbox .entry:nth-child(even) {
 background-color: rgba(0,0,0,0.01);
}

#shoutbox .entry.new {
 background-color: rgba(255,255,100,0.1);
}

#shoutbox .entry > div {
    background: #090b0d;
    border-bottom: 1px solid #0f1214;
color: #cecece;
}

#shoutbox .entry:last-child > div {
 border-bottom: none;
}

#shoutbox .entry > div {
  display: table-cell;
padding: 5px 2px;
text-align: left;
}

#shoutbox .avatar img {
  margin: 0 auto; 
vertical-align: middle; 
height: 20px; 
width: 20px; 
border-radius:5px; 
border: 2px solid #222;
box-shadow: 0 0 2px rgba(0,0,0,0.1); 
cursor: pointer; 
transition-duration: 1s;
}

#shoutbox .entry:hover .avatar img{
transform:rotate(360deg);
-webkit-transform:rotate(360deg); 
-moz-transform:rotate(360deg); 
-o-transform:rotate(360deg); 
border-color:#006ad0;
}

#shoutbox .user {
  text-align: center; white-space: nowrap;
}

#shoutbox .text {
 width: 100%; color: #eee; padding-left:5px;
}

#shoutbox .info {
 font-size: 11px; white-space: nowrap; text-align: right;
}

#shoutbox .info .mod {
text-shadow:none;
}

#shoutbox .edit {
 color: #006ad0; padding: 6px 8px; font-size: 9px; font-weight: bold; text-decoration: none;
}

#shoutbox .edit:nth-of-type(2) {
 margin-right: 5px; border-right: solid 1px rgba(0,0,0,0.1);
}

#shoutbox .del {
 color: #006ad0; padding: 6px 8px; font-size: 9px; font-weight: bold; text-decoration: none;
}

#shoutbox .del:nth-of-type(2) {
 margin-right: 5px; border-right: solid 1px rgba(0,0,0,0.1);
}

/** ShoutBox End **/

/** ShoutBox Stats Start **/
.shoutbox-stats {
text-align: center;
    color: #eee;
    margin-bottom: 25px;
}

.stat {
    margin: 0 10px;
}

.block {
font-size: 11px;
background: #006ad0;
padding: 3px;
    border-radius: 2px;
    color: #fff;
}

/** ShoutBox Stats End **/
No właśnie nie ma, dlatego masz ten problem.
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.
i w którym miejscu to mam wkleić?
Tam gdzie trzymasz style od shoutboxa najlepiej, aczkolwiek w każdym arkuszu css zadziała.
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.
Dodałem i nie działa
Odśwież cache, zadziała na pewno przy poprawnym dodaniu.
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.



Użytkownicy przeglądający ten wątek:

1 gości