26 kwietnia 2016

Etykiety: Czyli zmiana wyglądu etykiet w poście i gadżetach


Dziś instrukcja na zmianę wyglądu etykiet, w poście oraz gadżetach. Do dzieła!

Etykiety w gadżetach:

.label-size a{
 float: left;
 height: 30px;
 line-height: 30px;
 position: relative;
 font-size: 14px;
 margin-bottom: 10px;
 margin-left: 10px;
 padding:0 20px 0 20px;
 background:#000;
 color:#fff;
 text-decoration:none;
 -moz-border-radius-bottomright:0px;
 -webkit-border-bottom-right-radius:0px;
 border-bottom-right-radius:0px;
 -moz-border-radius-topright:0px;
 -webkit-border-top-right-radius:0px;
 border-top-right-radius:0px;}
.label-size a:hover{background: #ccc;}
Etykiety w poście:
.post-labels {color: transparent;}
.post-labels  a {background: #80A0B0;padding: 3px;}
.post-labels a:hover {background: #806080; transition:all 1s;
 -moz-transition:all 1s;
 -webkit-transition:all 1s;
 -o-transition:all 1s;}


Kod:
.post-labels a{
white-space: nowrap;
padding:0 3px;
}
 .post-labels a:hover {}
.post-labels a:active {}
.post-labels:before{
content:url(http://funkyimg.com/i/212UH.png);
padding-right:5px;
}
.Label ul li span {
}

3 kwietnia 2016

Gotowy kod na wygląd komentarzy


Żeby było szybko i bez rozpisywania, bo trochę będę musiała wyjaśnić jeśli chodzi o kod. Często sama go używam, ponieważ jest taki uniwersalny i idealnie pasuje do minimalistycznych szablonów. Jednak jeśli chcecie zaszaleć, zmieniajcie! Kombinujcie! Możecie się pochwalić swoimi efektami :)

.comment p  {background: #f9f9f9;border: 1px solid #dddddd;border-radius:5px;padding: 5px;}
.comment p {font-family: arial; font-size:11px;}
.comment-header {border-bottom: 1px solid #6a6c74;}
.comments .comment .comment-actions a, .comments .thread-toggle a {background: #f9f9f9;border:1px solid #dddddd;font-family: arial; font-size:10px;text-transform:uppercase;padding: 2px; color: #8b8888;}
.comments .comment .comment-actions a:hover  {text-decoration: none;background:#6a6c74;color: #ffffff;
transition:all 1s;
 -moz-transition:all 1s;
 -webkit-transition:all 1s;
 -o-transition:all 1s;
}

.comments .thread-toggle a:hover  {text-decoration: none;background:#4bad3c;color: #ffffff;
transition:all 1s;
 -moz-transition:all 1s;
 -webkit-transition:all 1s;
 -o-transition:all 1s;
}

.comments .comment .comment-actions a {margin-left: 5px;}
.comments h4 {font-family: Verdana; font-size: 13px;text-transform:uppercase;letter-spacing: 1px; text-align: center;}
.comment-author  {font-family: arial; font-size: 9px;}
A teraz pokrótce omówię o co chodzi, bo może nie wszystko jest oczywiste. A więc zaczynając od początku kodu zaznaczony kolorem CZERWONYM - selektor .comment p, odpowiada za miejsce w którym jest tekst komentarza, czyli nadajemy kolor tła pod tekstem komentarza "background", border to ramka, jej wymiary i kolor i oczywiście padding aby tekst był ładnie widoczny i nie przylegający do ramki.
Kolorem ZIELONYM to kreska pod nickiem komentującego, która rozciąga się do końca ramki.
NIEBIESKI i POMARAŃCZOWY to nasze kochane ODPOWIEDZ i USUŃ w komentarzach. Kod nadaje koloru tła i ramkę, a po najeździe zmienia jego kolor tła.
CZARNY to margines.
RÓŻOWY to czcionka, rozmiar i dekoracja napisu {jakaś liczba} Komentarzy:, nad komentarzami.
SZARY to czcionka i wielkość nicku komentującego.


#comments .avatar-image-container img {
border: 1px solid #99173C;
border-radius:22px;
padding:3px;
}
.comments .avatar-image-container {
max-height: 43px;
width: 43px;
}
.comments .comments-content .comment-header {
margin: 10px 0 15px 50px;}
.comments .comments-content .user {
letter-spacing: 2px;
font: italic normal 27px Georgia, 'Trebuchet MS',Trebuchet,Verdana,sans-serif;
padding: 0 5px 0;
font-style: italic;
font-weight: normal;
}
.comments .comments-content .user a:link {
}
.comments .comments-content .datetime {
padding: 0 0 0 21px;
margin: 25px 5px 0 10px;
float: right;
background-image: url('http://imageshack.com/a/img836/7074/vtv9.png ');
background-repeat: no-repeat;
}


.comments .comments-content .icon.blog-author {
right: 0;
position: absolute;
display: inline-block;
margin: 0 0 -17px 6px;
}
.comments .thread-expanded .thread-arrow, .comments .thread-collapsed .thread-arrow {
display: none;}
.comments .thread-toggle, .comments .continue  {
background-image: url('http://imageshack.com/a/img208/3200/q9yj.png');
padding: 0 0 0 21px;
background-repeat: no-repeat;
text-transform: uppercase;
font-size: 11px;
letter-spacing: 1px;
}
.comments .continue, .comments .continue a  {display:inline-block;font-weight:normal;}
.comments .thread-toggle a:link, .comments .thread-toggle a:visited, .comments .continue a:link, .comments .continue a:visited {
padding: 0;
}
.comments .thread-toggle a:hover, .comments .continue a:hover {
}
.comments .comments-content .inline-thread {
padding: .5em 0 .5em 1em;
}
.comments .comment .comment-actions {
font-size:10px;
text-transform:uppercase;
padding: 1px 0;
}
.comments .comment .comment-actions a {
border: 1px solid;
background-color: #fff;
margin: 0 0 0 7px;
padding: 0 10px;
}
.comments .comment .comment-actions  a:hover{
text-decoration:none;
}
.comments .avatar-image-container img {
max-width: 34px;
}
.user {
font-size:21px;
font-weight: normal!important;
font-family: 'Berkshire Swash', cursive;
}
.icon.blog-author:before {
content:"Autor";
font-size:12px;
font:;
}
.comments  .avatar-image-container{
width:38px;
position:absolute;
right:5px;
z-index: 1;
float: none;
max-height: none;
}
.icon.blog-author{
width:auto!important;
}
.datetime{
text-transform:uppercase;
}
.comment-content {
padding:0 5px;
}
.comment-header {
background-color:;
padding:11px;
font-size:10px;
    background-image: url(http://funkyimg.com/i/212sJ.png);
    background-repeat: no-repeat;
    background-position: top right;
background-size:10%;
    padding-right: 45px!important;
}
.comment-block{
margin-left:0!important;
}
.comment {
position:relative;
}
.comment-actions a {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 5px 10px!important;
font-size:10px;
background-color:;
margin-right:1px;
}
.comment-actions a:hover {
}
.comment-actions{
}
.comments .avatar-image-container img{
width:42px;
height:42px;
max-width:none;
}
.comments .avatar-image-container{
width:48px;
height:48px;
padding:5px;
}
.comments .thread-expanded .thread-arrow,.comments .thread-collapsed .thread-arrow{
display:none;
}
.comments .continue a, .thread-count a{
display:inline-block;
font-weight:400;
text-transform:uppercase;
font-size:10px;
padding:5px 10px;
color:;
background-color:;
}
.comments .continue a:hover, .thread-count a:hover{
background-color:;
}

.comments .comments-content .comment-header,.comments .comments-content .comment-content{margin:0;}
.comments h4, h4 {  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 170%;}
.comments h4 {text-align:center;}
.comments .comments-content .icon.blog-author {
  background-repeat: no-repeat;
  background-image: url();
width:auto;
}
.comments .comments-content .icon.blog-author:before {
content: "Autor";
  font-size:12px;
}
.comments .continue a, .thread-count a { /*odpowiedz*/
text-transform:uppercase;
font-weight:400;
}
.comments .comment-block {/*tło pojedynczego komentarza*/
margin-left:70px;
border:1px solid #ddd;
padding:20px;
}

.comments .avatar-image-container {max-height:45px;width:45px;margin-top: 10px; margin-left: 10px;}
.comments .avatar-image-container img {max-width:45px;}

.comments .comments-content .user { /*nick użytkownika*/
  font-family: 'Roboto Condensed', sans-serif;
font-size:170%;
font-weight:400;
}
.comments .comments-content .datetime {/*data*/
display:block;
margin:0;
  text-transform: uppercase;
}
.comments .comments-content .comment-header {/*nagłowek komentarza*/
font-size: 80%;
}
.comments .comments-content .comment-content{ /*treść komentarza*/
margin:0;
padding:10px 0;
}
.comment-actions.secondary-text { /*s.topka komanetarza*/
display:block;
margin-top:10px;
margin-bottom:-12px;
text-align:right;
}
.comments .comment .comment-actions a { /*odpowiedz i usuń w stopce */
  text-transform: uppercase;
  padding: 10px 15px;
  background-color: ;
  color: #fff;
  font-size: 80%;
}
.comments .comments-content .comment-replies { /*pasek z odpowiedziami*/
margin-left: 36px;
margin-top: 1em;
}
.comments .comments-content .inline-thread {
  padding: .5em 1em;
}

.comments h4 {
  font: italic normal 150% Georgia, serif;
  text-transform: lowercase;
  text-align:center;
}
.comments .comments-content .icon.blog-author {
  background-repeat: no-repeat;
  background-image: url();
  width:auto;
  font-size:100%;
}
.icon.blog-author{
  width:auto!important;
}
.icon.blog-author:before {
  content:"Autor";
  font-size:12px;
  letter-spacing:0;
}
.comments  .avatar-image-container{
  border:1px solid ;
  position:absolute;
  left:0px;
  padding:5px;
  background-color:#fff;
  z-index: 1;
  float: none;
  max-height: none;
  overflow: visible;
  width: auto;
  z-index: 1;
  max-height:50px;
  border-radius:50%;
}
.comments .avatar-image-container img {
  border-radius:50%;
  max-width:50px;
  width:50px;
  max-height:50px;
  height:50px;
}
.comment-header {
  padding: 5px 5px 5px 45px;
  margin: 3px 15px 0 30px !important;
  border:1px solid #ffffff;
  position: relative;
  top: 10px;
}
.user {
font:italic normal 150% Georgia, serif !important;
  letter-spacing: -2px;
}
.datetime{
font-size:9px;
text-transform:uppercase;
}
.comment-content {
padding:25px 15px;
}

.comment-block{
margin-left:0!important;
}
.comment {
position:relative;
}
.comment-actions a {
  display: inline-block;
  font:italic normal 100% Georgia, serif;
  letter-spacing: 1px;
  text-align: center;
  padding: 3px 15px!important;
}
.comment-actions a:hover {
  background-color:;
  color: ;
}
.comment-actions{
  margin: -20px 0 15px 15px;
  display: block;
}

.comments .thread-expanded .thread-arrow, .comments .thread-collapsed .thread-arrow {
background-image:none;
}
.thread-count a:link, .thread-count a:visited {
display:block;
width:100%;
padding:5px;
text-transform:uppercase;
font-size:10px;
}
.comments .continue a {
text-transform:uppercase;
font-size:10px;
font-weight:normal;
}
.comments .comments-content .inline-thread{padding:0;}
.comments .comments-content .user {
font-size: 17px;
font-family: 'Dosis';
letter-spacing: 1px;
font-weight: normal !important;
}
.comments .comments-content .datetime {
font-size: 11px;
font-family: 'Dosis';
letter-spacing: 1px;
text-transform: uppercase;
}
.comment-header {
padding: 10px;
border-bottom: 2px solid #4d5055;
background: white;
box-shadow: 0 2px 0 #8D9095;
padding-bottom: 5px !important;
}
.comments .comment .comment-actions a {
font-size: 11px;
font-family: 'Dosis';
letter-spacing: 1px;
text-transform: uppercase;
margin-right: -1px;
text-decoration: none !important;
border-left: 1px solid #4d5055;
border-right: 1px solid #4d5055;
padding: 4px;
transition: all 0.5s;
}
.comments .comment .comment-actions a:hover {
text-decoration: none !important;
border-left: 1px solid #4d5055;
border-right: 1px solid #4d5055;
background: #4d5055;
color: #ffffff !important;
transition: all 0.5s;
}
.comments .thread-toggle a , .continue a {
font-size: 11px;
font-family: 'Dosis';
letter-spacing: 1px;
text-transform: uppercase;
}
.avatar-image-container {
border-radius: 100%;
box-shadow: 7px 0 0 #4d5055,  0 7px 0 #000000, -7px 0 0 #4d5055, 0 -7px 0 #000000;
}
.comments-content {
width: 570px;
}