spip.comment.less 2.48 KB
Newer Older
Pierre's avatar
Pierre committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

/* Habillage des forums
---------------------------------------------- */

@import "css/variables.less";
@import "css/mixins.less";

/* commentaires loin du texte */
.comments {margin-top:3em;}


/* comments list */
.comments-items {list-style: none;margin-left: 0;}
.comments-items .comments-items {
  margin-left: 0;
  .diese { top:7px; }
  .comment-meta { background-color: lighten(@commentBackground, 20%);}
}
.comments-items .comments-items .comments-items .comments-items .comments-items {margin-left: @gridGutterWidth;}


.comment {
  overflow:hidden;
  position: relative;
  padding-bottom: 0;
  margin-bottom:0;
}

.comment-meta {
  min-height: 20px;
  padding: 19px;
  background-color: @commentBackground;

  .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
  border:1px solid lighten(@commentBorder, 15%);
  border-top:6px solid @commentBorder;
  padding-right: 25px; /* ne pas entrer le texte dans le permalink */

  margin-bottom:0;

  padding-left: @gridColumnWidth+2*@gridGutterWidth;
  position: relative;
  
  .spip_logos {
    position:absolute;
    left: @gridGutterWidth;
    top: 10px; /* gravatar à la taille 30px */
  }
  .permalink {
    position: absolute;
    right: 5px; /* éviter le # qui touche le bord */
    font-size: 2em;
    color: darken(@commentBorder, 15%);
  }
  .item { display:none; } /* pas de «en réponse à» */
}


.comment-meta .forum-titre {display: block;}
.comment-content {
  background: @commentBackgroundTexte;
  padding-left: @gridColumnWidth+2*@gridGutterWidth;
  padding-right:@baseLineHeight;
  padding-top:@baseLineHeight;
  padding-bottom:@baseLineHeight;
  margin-bottom:0;

  border:1px solid lighten(@commentBorder, 15%);
  
  overflow:auto;
  overflow-x:none;
}

.comment-reply { clear: both; text-align: right; margin-bottom:0;margin-top: @baseLineHeight/2;visibility: hidden;}
.comment:hover .comment-reply {visibility: visible;position: relative;}
/* avec plugin comments */
.comment-item:hover >.comment-reply {visibility: visible;position: relative;}

/* en thread */
.comments-thread .comment-item {margin-bottom:@baseLineHeight*2;}
.comments-thread .comment-item .comment-item {margin-bottom:0;}
.comments-thread .permalink.in-reply-to {bottom:0;}


.boutons.modererforum {text-align: right;position: absolute;top: 0;right: 2em;display: none;}
.comment:hover .boutons.modererforum {display: block;}

/* pleine largeur et non 80% */
.formulaire_forum form textarea#texte { width:96%; } 
.formulaire_forum  .markItUp .markItUpContainer .markItUpHeader { width:96%; }