Комментарий #9383862

Aizek Shturm
@grin3671, Решил тоже у себя в профиле поднять блоки, в код, который у меня был
.p-profiles-show .profile-content .cc-2 > .c-left { display: none; }
.p-profiles-show .profile-content .cc-2 > .c-right { display: flex; flex-direction: row-reverse; width: 100%; float: none; margin: 0; }
.p-profiles-show .profile-content .cc-2 > .c-right > .cc-2a { flex-shrink: 0; width: 19%; margin: 0 0 0 30px !important; }
.p-profiles-show .profile-content .cc-2 > .c-right > .block { flex-grow: 1; }
.p-profiles-show .profile-content .cc-2 > .c-right .cc-2a > .c-column { width: 100%; }
.p-profiles-show .lifetime { display: none; }
.p-profiles-show .profile-content .activity:last-child { display: none; }

Добавил, Ваш код и у меня почему-то всё осталось без изменений -_-
.p-profiles-show .profile-content .cc-2 > .c-left { display: none; }
.p-profiles-show .profile-content .cc-2 > .c-right { display: flex; flex-direction: row-reverse; width: 100%; float: none; margin: 0; }
.p-profiles-show .profile-content .cc-2 > .c-right > .cc-2a { flex-shrink: 0; width: 19%; margin: 0 0 0 30px !important; }
@media screen and (min-width: 768px) { #profiles_show .profile-head .c-brief .avatar { margin-bottom: 10px; }
#profiles_show .c-additionals, #profiles_show .profile-head::after { display: none; }
#profiles_show .profile-content > .cc-2 { width: 100%; padding-right: 0px; margin-bottom: 10px; }
#profiles_show .profile-content > .cc-2 > .c-right > .block { width: 100%; clear: left; } }
.p-profiles-show .profile-content .cc-2 > .c-right .cc-2a > .c-column { width: 100%; }
.p-profiles-show .lifetime { display: none; }
.p-profiles-show .profile-content .activity:last-child { display: none; }

Что я сделал не так?
Ответы
grin3671
grin3671#
@Aizek Shturm, в профиле /solr не отображаются друзья и клубы, поэтому весь блок .profile-content > .cc-2 умещается слева от истории, а под историей появляется пустое пространство.
В случае, когда .profile-content > .cc-2 содержит что-то помимо одного блока, код будет совсем другой, я так даже и не скажу, что нужно, чтобы поднять только блок «Избранное». В этом случае легче всего убрать одну из записей истории, которая и без этого скрыта:
@media (min-width: 768px) {
  /* Родительский блок для графиков активности */
  .profile-content > .cc-2 > .c-left,
  /* Последняя запись истории */
  #profiles_show .profile-head .c-history .entry:nth-child(3) {
    display: none;
  }
}
назад
Твой комментарий
Вернуться к редактированию
Предпросмотр
Скрыть